ETH Price: $2,443.01 (+1.24%)

Contract

0x917D62bbB22cfEE0aBC0A0999004C3a0626D7FEd
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...205422062024-08-16 15:51:5956 days ago1723823519IN
0x917D62bb...0626D7FEd
0 ETH0.000116484.8
Set Approval For...199692482024-05-28 15:25:47136 days ago1716909947IN
0x917D62bb...0626D7FEd
0 ETH0.0008585535.37819343
Set Approval For...175368442023-06-22 18:09:11477 days ago1687457351IN
0x917D62bb...0626D7FEd
0 ETH0.0007913917.13719374
Safe Transfer Fr...171451412023-04-28 14:12:47532 days ago1682691167IN
0x917D62bb...0626D7FEd
0 ETH0.0015074737.95826278
Set Approval For...171448842023-04-28 13:20:47532 days ago1682688047IN
0x917D62bb...0626D7FEd
0 ETH0.0016503435.7372202
Set Approval For...169801712023-04-05 4:15:11556 days ago1680668111IN
0x917D62bb...0626D7FEd
0 ETH0.0008709635.76556153
Set Approval For...166871312023-02-22 23:06:35597 days ago1677107195IN
0x917D62bb...0626D7FEd
0 ETH0.0007645331.50391933
Set Approval For...164798742023-01-24 23:12:35626 days ago1674601955IN
0x917D62bb...0626D7FEd
0 ETH0.0013305228.81181191
Set Approval For...163699682023-01-09 14:53:47641 days ago1673276027IN
0x917D62bb...0626D7FEd
0 ETH0.0006173725.35225098
Set Approval For...163063042022-12-31 17:41:59650 days ago1672508519IN
0x917D62bb...0626D7FEd
0 ETH0.0007604516.43739833
Safe Transfer Fr...163061742022-12-31 17:15:47650 days ago1672506947IN
0x917D62bb...0626D7FEd
0 ETH0.0007901815.15792082
Set Approval For...163021942022-12-31 3:55:11651 days ago1672458911IN
0x917D62bb...0626D7FEd
0 ETH0.0008027117.35516958
Set Approval For...162160942022-12-19 3:36:35663 days ago1671420995IN
0x917D62bb...0626D7FEd
0 ETH0.000612.97253961
Set Approval For...161731982022-12-13 3:48:35669 days ago1670903315IN
0x917D62bb...0626D7FEd
0 ETH0.0006370413.7948416
Set Approval For...159496672022-11-11 22:10:47700 days ago1668204647IN
0x917D62bb...0626D7FEd
0 ETH0.0007487116.21289178
Set Approval For...158459472022-10-28 10:25:47714 days ago1666952747IN
0x917D62bb...0626D7FEd
0 ETH0.0002564310.53055187
Set Approval For...158458742022-10-28 10:11:11714 days ago1666951871IN
0x917D62bb...0626D7FEd
0 ETH0.0002815711.56276875
Set Approval For...157265572022-10-11 18:08:11731 days ago1665511691IN
0x917D62bb...0626D7FEd
0 ETH0.000666825.30373213
Set Approval For...157265562022-10-11 18:07:59731 days ago1665511679IN
0x917D62bb...0626D7FEd
0 ETH0.0006904428.35251221
Set Approval For...157012242022-10-08 5:17:23735 days ago1665206243IN
0x917D62bb...0626D7FEd
0 ETH0.000313556.77929478
Set Approval For...155116162022-09-10 23:40:59762 days ago1662853259IN
0x917D62bb...0626D7FEd
0 ETH0.000597712.94304146
Set Approval For...154429352022-08-30 22:19:02773 days ago1661897942IN
0x917D62bb...0626D7FEd
0 ETH0.001163725.19934039
Set Approval For...153593112022-08-17 14:45:42786 days ago1660747542IN
0x917D62bb...0626D7FEd
0 ETH0.00053421.92864653
Set Approval For...153355052022-08-13 20:24:02790 days ago1660422242IN
0x917D62bb...0626D7FEd
0 ETH0.000327567.09313893
Safe Transfer Fr...152513762022-07-31 16:42:34803 days ago1659285754IN
0x917D62bb...0626D7FEd
0 ETH0.0006119711.78273591
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
137301422021-12-02 23:16:231044 days ago1638486983
0x917D62bb...0626D7FEd
10.336 ETH
137300452021-12-02 22:53:361044 days ago1638485616
0x917D62bb...0626D7FEd
5.168 ETH
137300262021-12-02 22:49:451044 days ago1638485385
0x917D62bb...0626D7FEd
10.336 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CHROMAMORPHS

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : CM_1155.sol
// SPDX-License-Identifier: MIT
// Author: sqrtofpi (square root of pi) https://twitter.com/sqrt_of_pi_314

pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract CHROMAMORPHS is
    ERC1155,
    Ownable,
    PaymentSplitter
{
    using SafeMath for uint256;
    using SafeMath for uint16;

    uint256 public MAX_AC_SUPPLY = 100;
    uint256 public MAX_REG_SUPPLY = 233;
    uint256 public MAX_COL_SUPPLY = 100;
    uint256 public COL_TOKEN_ID = MAX_AC_SUPPLY + MAX_REG_SUPPLY + 1;

    uint256 public MAX_SUPPLY = MAX_AC_SUPPLY+MAX_REG_SUPPLY + MAX_COL_SUPPLY;

    uint256 public AC_MINT_COUNT = 0;
    uint256 public REG_MINT_COUNT = 0;
    uint256 public COLLECTOR_MINT_COUNT = 0;
    
    uint256[] reg_mint_order;
    bool mint_order_created = false;
    bool permanent_end_AC_sale = false;

    uint16 _maxPurchaseCount = 5;
    uint256 _mintPrice = 0.08 ether;
    string _baseURIValue;

    mapping(uint256 => address) _AC_owner;
    mapping(uint256 => bool) _AC_claimed;
    mapping(uint256 => bool) _REG_claimed;
    mapping(uint256 => bool) _COL_claimed;
    mapping(uint256 => bool) _AC_added;
    uint256[] registeredACs;

    bool public saleIsActive = false;
    bool public ACsaleIsActive = false;
    bool public CMsaleIsActive = false;

    // Splitter inputs
    address LCLMACHINE = 0x78eF20A8aBc67E4E1B8C882D332D58154F242E27;
    uint256 LCLMACHINE_SHARE = 40;
    address TANGO = 0xf7CBbA9dACF655e16f3226b280301907f2d30CCF;
    uint256 TANGO_SHARE = 40;
    address SQRTOFPI = 0xDb214A3FD7f81c68bfb74047D6e02d11dc0E2076;
    uint256 SQRTOFPI_SHARE = 20;
    
    address[] payee_addresses = [LCLMACHINE,TANGO,SQRTOFPI];
    uint256[] payee_shares = [LCLMACHINE_SHARE,TANGO_SHARE,SQRTOFPI_SHARE];

    constructor() ERC1155("") PaymentSplitter(payee_addresses, payee_shares) {}

    function setBaseURI(string memory newBase) public onlyOwner {
        _baseURIValue = newBase;
    }

    function uri(uint256 _tokenID) public view override returns (string memory) {
    return string(abi.encodePacked(_baseURIValue, Strings.toString(_tokenID),".json"));

    }
    
    // Toggles for Sale and Presale states
    function startSaleState() public onlyOwner {
        require(mint_order_created, "mint order not yet created");
        saleIsActive = true;

    }

    function stopSaleState() public onlyOwner {
        saleIsActive = false;
    }
    
    function startACSaleState() public onlyOwner {
        require(!permanent_end_AC_sale, "AC sale permanently ended");
        ACsaleIsActive = true;
        CMsaleIsActive = true;
    }

    function stopACSaleState() public onlyOwner {
        ACsaleIsActive = false;
    }

    function startCOLSaleState() public onlyOwner {
        CMsaleIsActive = true;
    }

    function stopCOLSaleState() public onlyOwner {
        CMsaleIsActive = false;
    }

    // getters and setters for minting limits
    function maxPurchaseCount() public view returns (uint256) {
        return _maxPurchaseCount;
    }

    function setMaxPurchaseCount(uint16 count) public onlyOwner {
        _maxPurchaseCount = count;
    }

    function create_mint_order() public onlyOwner {
        require(!mint_order_created, "already created mint order");
        ACsaleIsActive = false;
        permanent_end_AC_sale = true;

        for (uint256 i = 1; i < registeredACs.length + 1; i++){
            if (_AC_added[i] && !_AC_claimed[i]){
            reg_mint_order.push(i);
            }
        }

        for (uint256 i = MAX_REG_SUPPLY+MAX_AC_SUPPLY; i > MAX_AC_SUPPLY; i--){
            reg_mint_order.push(i);
        }

        mint_order_created = true;
    }

    function getRegisteredLength() public view returns (uint256){
        return registeredACs.length;
    }

    function getMintOrderLength() public view returns (uint256){
        return reg_mint_order.length;
    }

    function getMintOrderItem(uint256 item) public view returns (uint256){
        return reg_mint_order[item];
    }
    
    // getters and setters for mint price
    function baseMintPrice() public view returns (uint256) {
        return _mintPrice;
    }

    function setBaseMintPrice(uint256 price) public onlyOwner {
        _mintPrice = price;
    }

    function mintPrice(uint256 numberOfTokens) public view returns (uint256) {
        return _mintPrice.mul(numberOfTokens);
    }
    
    
    // Validate AC holders
    function addACOwners(uint8[] calldata ACtokenIDs,address[] calldata addresses) external onlyOwner{
        require(ACtokenIDs.length == addresses.length);
        for (uint256 i = 0; i < addresses.length; i++) {
            require(ACtokenIDs[i]>=1 && ACtokenIDs[i] <= MAX_AC_SUPPLY);

            _AC_owner[ACtokenIDs[i]] = addresses[i];
            if (!_AC_added[ACtokenIDs[i]]){
                _AC_added[ACtokenIDs[i]] = true;
                registeredACs.push(ACtokenIDs[i]);
            }
        }
    }
    
    
    function ownsAllACs(uint256[] calldata requested_tokens) public view returns (bool) {
        for (uint256 i = 0; i < requested_tokens.length; i++) {
            require(_AC_owner[requested_tokens[i]] == msg.sender);
        }
        return true;
    }
    
    function checkIfACclaimed(uint256 AC_id) public view returns (bool) {
           return _AC_claimed[AC_id];
    }

    function checkIfCOLclaimed(uint256 AC_id) public view returns (bool) {
           return _COL_claimed[AC_id];
    }

    function getOwnerOfAC(uint256 AC_id) public view returns (address) {
        return _AC_owner[AC_id];
    }
    
    // MODIFIERS
    modifier REGmintCountMeetsSupply(uint256 numberOfTokens) {
        require(
            numberOfTokens <= reg_mint_order.length,
            "Purchase would exceed remaining supply"
        );
        _;
    }
    

    modifier doesNotExceedMaxPurchaseCount(uint256 numberOfTokens) {
        require(
            numberOfTokens <= _maxPurchaseCount,
            "Cannot mint more than 5 token at a time"
        );
        _;
    }

    modifier validatePurchasePrice(uint256 numberOfTokens) {
        require(
            mintPrice(numberOfTokens) == msg.value,
            "Ether value sent is not correct"
        );
        _;
    }


    // Minting Functions
    
    // Minting Functions: internals

    // mint Chromamorph by the owner of the corresponding AutoChroma holder
    function _mintCMTokensfromAC(uint256[] calldata tokens_to_mint, address to)
        internal
    {
        for (uint256 i = 0; i < tokens_to_mint.length; i++) {
            require(tokens_to_mint[i]<=MAX_AC_SUPPLY);
            require(!_AC_claimed[tokens_to_mint[i]]);
            _AC_claimed[tokens_to_mint[i]] = true;
            _mint(to, tokens_to_mint[i],1,"");
            AC_MINT_COUNT +=1;
        }
    }

    function _mintREGTokens(uint256 numberOfTokens, address to) internal {
        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 token_id = reg_mint_order[reg_mint_order.length-1];
            require(!_REG_claimed[token_id]);
            _REG_claimed[token_id] = true;
            reg_mint_order.pop();
            _mint(to, token_id,1,"");
            REG_MINT_COUNT += 1;
        }
    }

    // mint Collectos Edition by the owner of the corresponding AutoChroma holder
    function _mintCOLTokens(uint256[] calldata tokens_to_mint, address to)
        internal
    {
        for (uint256 i = 0; i < tokens_to_mint.length; i++) {
            require(!_COL_claimed[tokens_to_mint[i]]);
            _COL_claimed[tokens_to_mint[i]] = true;
            _mint(to, COL_TOKEN_ID,1,"");        
            COLLECTOR_MINT_COUNT +=1;
        }
    }
    
    // Minting Functions: public

    function ContractOwnerMint(uint256 numberOfTokens)
        public
        REGmintCountMeetsSupply(numberOfTokens)
        onlyOwner
    {
        require(mint_order_created, "mint order not created yet");
        _mintREGTokens(numberOfTokens, msg.sender);
    }

    
    function mintAutochromaOwner(uint256[] calldata tokens_to_mint)
        public
        payable
        validatePurchasePrice(tokens_to_mint.length)
    {
        require(ACsaleIsActive, "Sale has not started yet");
        require(ownsAllACs(tokens_to_mint));
        _mintCMTokensfromAC(tokens_to_mint, msg.sender);
    }
    
    function mintCollectors(uint256[] calldata tokens_to_mint)
        public
    {
        require(CMsaleIsActive, "Sale has not started yet");
        require(ownsAllACs(tokens_to_mint));
        _mintCOLTokens(tokens_to_mint, msg.sender);
    }
    
    function mintMorphs(uint256 numberOfTokens)
        public
        payable
        REGmintCountMeetsSupply(numberOfTokens)
        doesNotExceedMaxPurchaseCount(numberOfTokens)
        validatePurchasePrice(numberOfTokens)
    {
        require(saleIsActive, "Sale has not started yet");
        require(mint_order_created, "mint order not created yet");
        _mintREGTokens(numberOfTokens, msg.sender);
    }
    
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 6 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 13 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 11 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

File 12 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"AC_MINT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACsaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CMsaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COLLECTOR_MINT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COL_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"ContractOwnerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"MAX_AC_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_COL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REG_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REG_MINT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"ACtokenIDs","type":"uint8[]"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addACOwners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"AC_id","type":"uint256"}],"name":"checkIfACclaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"AC_id","type":"uint256"}],"name":"checkIfCOLclaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"create_mint_order","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"item","type":"uint256"}],"name":"getMintOrderItem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintOrderLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"AC_id","type":"uint256"}],"name":"getOwnerOfAC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRegisteredLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchaseCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens_to_mint","type":"uint256[]"}],"name":"mintAutochromaOwner","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens_to_mint","type":"uint256[]"}],"name":"mintCollectors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintMorphs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"requested_tokens","type":"uint256[]"}],"name":"ownsAllACs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"price","type":"uint256"}],"name":"setBaseMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBase","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxPurchaseCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startACSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startCOLSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopACSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopCOLSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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"},{"stateMutability":"payable","type":"receive"}]

6080604052606460095560e9600a556064600b55600a5460095462000025919062000736565b6200003290600162000736565b600c55600b54600a546009546200004a919062000736565b62000056919062000736565b600d556000600e819055600f8190556010556012805463ffffffff19166205000017905567011c37937e080000601355601b80546001600160b81b0319167678ef20a8abc67e4e1b8c882d332d58154f242e2700000017908190556028601c819055601d805473f7cbba9dacf655e16f3226b280301907f2d30ccf6001600160a01b03199182168117909255601e92909255601f805473db214a3fd7f81c68bfb74047d6e02d11dc0e207693168317905560146020908155604080516060810182526001600160a01b0363010000009096049590951685529084019190915282015262000148906021906003620005fb565b506040518060600160405280601c548152602001601e54815260200160205481525060229060036200017c92919062000665565b503480156200018a57600080fd5b506021805480602002602001604051908101604052809291908181526020018280548015620001e357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620001c4575b505050505060228054806020026020016040519081016040528092919081815260200182805480156200023657602002820191906000526020600020905b81548152602001906001019080831162000221575b5050505050604051806020016040528060008152506200025c81620003a260201b60201c565b506200026833620003bb565b8051825114620002da5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b60008251116200032d5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620002d1565b60005b8251811015620003995762000384838281518110620003535762000353620007c2565b6020026020010151838381518110620003705762000370620007c2565b60200260200101516200040d60201b60201c565b8062000390816200078e565b91505062000330565b505050620007d8565b8051620003b7906002906020840190620006a3565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200047a5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620002d1565b60008111620004cc5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620002d1565b6001600160a01b03821660009081526006602052604090205415620005485760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620002d1565b60088054600181019091557ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0384169081179091556000908152600660205260409020819055600454620005b290829062000736565b600455604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b82805482825590600052602060002090810192821562000653579160200282015b828111156200065357825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200061c565b50620006619291506200071f565b5090565b82805482825590600052602060002090810192821562000653579160200282015b828111156200065357825182559160200191906001019062000686565b828054620006b19062000751565b90600052602060002090601f016020900481019282620006d5576000855562000653565b82601f10620006f057805160ff191683800117855562000653565b828001600101855582156200065357918201828111156200065357825182559160200191906001019062000686565b5b8082111562000661576000815560010162000720565b600082198211156200074c576200074c620007ac565b500190565b600181811c908216806200076657607f821691505b602082108114156200078857634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620007a557620007a5620007ac565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b61338b80620007e86000396000f3fe60806040526004361061031c5760003560e01c80638559dff3116101ab578063c78cd40d116100f7578063e98dcfd311610095578063f242432a1161006f578063f242432a14610981578063f2fde38b146109a1578063f7ecae35146109c1578063fa9d07cf146109d657600080fd5b8063e98dcfd314610922578063eb8d244414610937578063f13e9eec1461095157600080fd5b8063dcea48aa116100d1578063dcea48aa14610884578063e33b7de3146108a4578063e6a72acf146108b9578063e985e9c5146108d957600080fd5b8063c78cd40d14610823578063cc1eddd114610838578063ce7c2ac21461084e57600080fd5b80639507331211610164578063a6aac9c61161013e578063a6aac9c6146107ce578063af90e795146107e3578063b5e64024146107f8578063c2662ace1461080e57600080fd5b806395073312146107585780639852595c14610778578063a22cb465146107ae57600080fd5b80638559dff31461068157806387556268146106965780638b83209b146106b65780638d28926f146106ee5780638da5cb5b146107245780638dc699741461074257600080fd5b80632eb2c2d61161026a5780633cf924a01161022357806348d10aee116101fd57806348d10aee1461060a5780634e1273f41461061f57806355f804b31461064c578063715018a61461066c57600080fd5b80633cf924a0146105b55780633e652a11146105d4578063420401e9146105ea57600080fd5b80632eb2c2d61461051757806332cb6b0c14610537578063330ad7851461054d5780633613fffc1461056057806337617e67146105805780633a98ef39146105a057600080fd5b806319165587116102d7578063222cb901116102b1578063222cb901146104a257806323acbd51146104c2578063263af81e146104e15780632da5b7551461050157600080fd5b8063191655871461043d5780631c58fe321461045d5780631e24f37b1461048d57600080fd5b8062f5cfc11461036a578062fdd58e1461038157806301ffc9a7146103b457806303a1b65c146103e45780630e89341c146103fa5780631814fabe1461042757600080fd5b36610365577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037657600080fd5b5061037f6109e9565b005b34801561038d57600080fd5b506103a161039c366004612a78565b610b93565b6040519081526020015b60405180910390f35b3480156103c057600080fd5b506103d46103cf366004612c22565b610c25565b60405190151581526020016103ab565b3480156103f057600080fd5b506103a1600b5481565b34801561040657600080fd5b5061041a610415366004612cc8565b610c77565b6040516103ab9190612f1d565b34801561043357600080fd5b506103a1600f5481565b34801561044957600080fd5b5061037f6104583660046128da565b610cab565b34801561046957600080fd5b506103d4610478366004612cc8565b60009081526018602052604090205460ff1690565b34801561049957600080fd5b506011546103a1565b3480156104ae57600080fd5b5061037f6104bd366004612ca4565b610e7c565b3480156104ce57600080fd5b50601b546103d490610100900460ff1681565b3480156104ed57600080fd5b50601b546103d49062010000900460ff1681565b34801561050d57600080fd5b506103a1600a5481565b34801561052357600080fd5b5061037f610532366004612930565b610ec6565b34801561054357600080fd5b506103a1600d5481565b61037f61055b366004612cc8565b610f5d565b34801561056c57600080fd5b5061037f61057b366004612bb7565b6110cb565b34801561058c57600080fd5b506103a161059b366004612cc8565b6112ec565b3480156105ac57600080fd5b506004546103a1565b3480156105c157600080fd5b5060125462010000900461ffff166103a1565b3480156105e057600080fd5b506103a160095481565b3480156105f657600080fd5b5061037f610605366004612cc8565b611313565b34801561061657600080fd5b5061037f611342565b34801561062b57600080fd5b5061063f61063a366004612aa4565b611378565b6040516103ab9190612ee5565b34801561065857600080fd5b5061037f610667366004612c5c565b6114a1565b34801561067857600080fd5b5061037f6114e2565b34801561068d57600080fd5b506013546103a1565b3480156106a257600080fd5b5061037f6106b1366004612b76565b611518565b3480156106c257600080fd5b506106d66106d1366004612cc8565b61155e565b6040516001600160a01b0390911681526020016103ab565b3480156106fa57600080fd5b506106d6610709366004612cc8565b6000908152601560205260409020546001600160a01b031690565b34801561073057600080fd5b506003546001600160a01b03166106d6565b34801561074e57600080fd5b506103a160105481565b34801561076457600080fd5b5061037f610773366004612cc8565b61158e565b34801561078457600080fd5b506103a16107933660046128da565b6001600160a01b031660009081526007602052604090205490565b3480156107ba57600080fd5b5061037f6107c9366004612a45565b611638565b3480156107da57600080fd5b5061037f611643565b3480156107ef57600080fd5b5061037f61167a565b34801561080457600080fd5b506103a1600e5481565b34801561081a57600080fd5b5061037f6116b2565b34801561082f57600080fd5b5061037f6116ef565b34801561084457600080fd5b506103a1600c5481565b34801561085a57600080fd5b506103a16108693660046128da565b6001600160a01b031660009081526006602052604090205490565b34801561089057600080fd5b506103d461089f366004612b76565b611784565b3480156108b057600080fd5b506005546103a1565b3480156108c557600080fd5b506103a16108d4366004612cc8565b6117f0565b3480156108e557600080fd5b506103d46108f43660046128f7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561092e57600080fd5b50601a546103a1565b34801561094357600080fd5b50601b546103d49060ff1681565b34801561095d57600080fd5b506103d461096c366004612cc8565b60009081526016602052604090205460ff1690565b34801561098d57600080fd5b5061037f61099c3660046129dd565b611800565b3480156109ad57600080fd5b5061037f6109bc3660046128da565b611887565b3480156109cd57600080fd5b5061037f611922565b61037f6109e4366004612b76565b6119ad565b6003546001600160a01b03163314610a1c5760405162461bcd60e51b8152600401610a1390613084565b60405180910390fd5b60125460ff1615610a6f5760405162461bcd60e51b815260206004820152601a60248201527f616c72656164792063726561746564206d696e74206f726465720000000000006044820152606401610a13565b601b805461ff00199081169091556012805490911661010017905560015b601a54610a9b9060016130dc565b811015610b1c5760008181526019602052604090205460ff168015610acf575060008181526016602052604090205460ff16155b15610b0a57601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68018190555b80610b14816131e8565b915050610a8d565b506000600954600a54610b2f91906130dc565b90505b600954811115610b8357601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680181905580610b7b8161316a565b915050610b32565b506012805460ff19166001179055565b60006001600160a01b038316610bff5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a13565b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610c5657506001600160e01b031982166303a24d0760e21b145b80610c7157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606014610c8483611a4f565b604051602001610c95929190612d87565b6040516020818303038152906040529050919050565b6001600160a01b038116600090815260066020526040902054610d1f5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610a13565b600060055447610d2f91906130dc565b6001600160a01b0383166000908152600760209081526040808320546004546006909352908320549394509192610d669085613108565b610d7091906130f4565b610d7a9190613127565b905080610ddd5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610a13565b6001600160a01b038316600090815260076020526040902054610e019082906130dc565b6001600160a01b038416600090815260076020526040902055600554610e289082906130dc565b600555610e358382611b54565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6003546001600160a01b03163314610ea65760405162461bcd60e51b8152600401610a1390613084565b6012805461ffff909216620100000263ffff000019909216919091179055565b6001600160a01b038516331480610ee25750610ee285336108f4565b610f495760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a13565b610f568585858585611c6d565b5050505050565b6011548190811115610f815760405162461bcd60e51b8152600401610a1390612ff4565b601254829062010000900461ffff16811115610fef5760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f74206d696e74206d6f7265207468616e203520746f6b656e20617460448201526620612074696d6560c81b6064820152608401610a13565b8234610ffa826117f0565b146110475760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a13565b601b5460ff166110695760405162461bcd60e51b8152600401610a1390612f78565b60125460ff166110bb5760405162461bcd60e51b815260206004820152601a60248201527f6d696e74206f72646572206e6f742063726561746564207965740000000000006044820152606401610a13565b6110c58433611e4a565b50505050565b6003546001600160a01b031633146110f55760405162461bcd60e51b8152600401610a1390613084565b82811461110157600080fd5b60005b81811015610f5657600185858381811061112057611120613259565b90506020020160208101906111359190612ce1565b60ff1610158015611171575060095485858381811061115657611156613259565b905060200201602081019061116b9190612ce1565b60ff1611155b61117a57600080fd5b82828281811061118c5761118c613259565b90506020020160208101906111a191906128da565b601560008787858181106111b7576111b7613259565b90506020020160208101906111cc9190612ce1565b60ff16815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506019600086868481811061121757611217613259565b905060200201602081019061122c9190612ce1565b60ff9081168252602082019290925260400160002054166112da5760016019600087878581811061125f5761125f613259565b90506020020160208101906112749190612ce1565b60ff1681526020810191909152604001600020805460ff1916911515919091179055601a8585838181106112aa576112aa613259565b90506020020160208101906112bf9190612ce1565b81546001810183556000928352602090922060ff9091169101555b806112e4816131e8565b915050611104565b60006011828154811061130157611301613259565b90600052602060002001549050919050565b6003546001600160a01b0316331461133d5760405162461bcd60e51b8152600401610a1390613084565b601355565b6003546001600160a01b0316331461136c5760405162461bcd60e51b8152600401610a1390613084565b601b805460ff19169055565b606081518351146113dd5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a13565b600083516001600160401b038111156113f8576113f861326f565b604051908082528060200260200182016040528015611421578160200160208202803683370190505b50905060005b84518110156114995761146c85828151811061144557611445613259565b602002602001015185838151811061145f5761145f613259565b6020026020010151610b93565b82828151811061147e5761147e613259565b6020908102919091010152611492816131e8565b9050611427565b509392505050565b6003546001600160a01b031633146114cb5760405162461bcd60e51b8152600401610a1390613084565b80516114de906014906020840190612702565b5050565b6003546001600160a01b0316331461150c5760405162461bcd60e51b8152600401610a1390613084565b6115166000611f2e565b565b601b5462010000900460ff166115405760405162461bcd60e51b8152600401610a1390612f78565b61154a8282611784565b61155357600080fd5b6114de828233611f80565b60006008828154811061157357611573613259565b6000918252602090912001546001600160a01b031692915050565b60115481908111156115b25760405162461bcd60e51b8152600401610a1390612ff4565b6003546001600160a01b031633146115dc5760405162461bcd60e51b8152600401610a1390613084565b60125460ff1661162e5760405162461bcd60e51b815260206004820152601a60248201527f6d696e74206f72646572206e6f742063726561746564207965740000000000006044820152606401610a13565b6114de8233611e4a565b6114de338383612055565b6003546001600160a01b0316331461166d5760405162461bcd60e51b8152600401610a1390613084565b601b805461ff0019169055565b6003546001600160a01b031633146116a45760405162461bcd60e51b8152600401610a1390613084565b601b805462ff000019169055565b6003546001600160a01b031633146116dc5760405162461bcd60e51b8152600401610a1390613084565b601b805462ff0000191662010000179055565b6003546001600160a01b031633146117195760405162461bcd60e51b8152600401610a1390613084565b601254610100900460ff16156117715760405162461bcd60e51b815260206004820152601960248201527f41432073616c65207065726d616e656e746c7920656e646564000000000000006044820152606401610a13565b601b805462ffff00191662010100179055565b6000805b828110156117e65733601560008686858181106117a7576117a7613259565b60209081029290920135835250810191909152604001600020546001600160a01b0316146117d457600080fd5b806117de816131e8565b915050611788565b5060019392505050565b601354600090610c719083612136565b6001600160a01b03851633148061181c575061181c85336108f4565b61187a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610a13565b610f568585858585612149565b6003546001600160a01b031633146118b15760405162461bcd60e51b8152600401610a1390613084565b6001600160a01b0381166119165760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a13565b61191f81611f2e565b50565b6003546001600160a01b0316331461194c5760405162461bcd60e51b8152600401610a1390613084565b60125460ff1661199e5760405162461bcd60e51b815260206004820152601a60248201527f6d696e74206f72646572206e6f742079657420637265617465640000000000006044820152606401610a13565b601b805460ff19166001179055565b80346119b8826117f0565b14611a055760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a13565b601b54610100900460ff16611a2c5760405162461bcd60e51b8152600401610a1390612f78565b611a368383611784565b611a3f57600080fd5b611a4a83833361226f565b505050565b606081611a735750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a9d5780611a87816131e8565b9150611a969050600a836130f4565b9150611a77565b6000816001600160401b03811115611ab757611ab761326f565b6040519080825280601f01601f191660200182016040528015611ae1576020820181803683370190505b5090505b8415611b4c57611af6600183613127565b9150611b03600a86613203565b611b0e9060306130dc565b60f81b818381518110611b2357611b23613259565b60200101906001600160f81b031916908160001a905350611b45600a866130f4565b9450611ae5565b949350505050565b80471015611ba45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a13565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611bf1576040519150601f19603f3d011682016040523d82523d6000602084013e611bf6565b606091505b5050905080611a4a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a13565b8151835114611ccf5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a13565b6001600160a01b038416611cf55760405162461bcd60e51b8152600401610a1390612faf565b3360005b8451811015611ddc576000858281518110611d1657611d16613259565b602002602001015190506000858381518110611d3457611d34613259565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611d845760405162461bcd60e51b8152600401610a139061303a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611dc19084906130dc565b9250508190555050505080611dd5906131e8565b9050611cf9565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611e2c929190612ef8565b60405180910390a4611e42818787878787612381565b505050505050565b60005b82811015611a4a576011805460009190611e6990600190613127565b81548110611e7957611e79613259565b6000918252602080832090910154808352601790915260409091205490915060ff1615611ea557600080fd5b6000818152601760205260409020805460ff191660011790556011805480611ecf57611ecf613243565b60019003818190600052602060002001600090559055611f0183826001604051806020016040528060008152506124ec565b6001600f6000828254611f1491906130dc565b90915550829150611f269050816131e8565b915050611e4d565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b828110156110c55760186000858584818110611fa157611fa1613259565b602090810292909201358352508101919091526040016000205460ff1615611fc857600080fd5b600160186000868685818110611fe057611fe0613259565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061202a82600c546001604051806020016040528060008152506124ec565b60016010600082825461203d91906130dc565b9091555081905061204d816131e8565b915050611f83565b816001600160a01b0316836001600160a01b031614156120c95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a13565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006121428284613108565b9392505050565b6001600160a01b03841661216f5760405162461bcd60e51b8152600401610a1390612faf565b3361218881878761217f886125ed565b610f56886125ed565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156121c95760405162461bcd60e51b8152600401610a139061303a565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122069084906130dc565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612266828888888888612638565b50505050505050565b60005b828110156110c55760095484848381811061228f5761228f613259565b9050602002013511156122a157600080fd5b601660008585848181106122b7576122b7613259565b602090810292909201358352508101919091526040016000205460ff16156122de57600080fd5b6001601660008686858181106122f6576122f6613259565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055506123568285858481811061233857612338613259565b905060200201356001604051806020016040528060008152506124ec565b6001600e600082825461236991906130dc565b90915550819050612379816131e8565b915050612272565b6001600160a01b0384163b15611e425760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906123c59089908990889088908890600401612e42565b602060405180830381600087803b1580156123df57600080fd5b505af192505050801561240f575060408051601f3d908101601f1916820190925261240c91810190612c3f565b60015b6124bc5761241b613285565b806308c379a0141561245557506124306132a1565b8061243b5750612457565b8060405162461bcd60e51b8152600401610a139190612f1d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a13565b6001600160e01b0319811663bc197c8160e01b146122665760405162461bcd60e51b8152600401610a1390612f30565b6001600160a01b03841661254c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a13565b3361255d8160008761217f886125ed565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061258d9084906130dc565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f5681600087878787612638565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061262757612627613259565b602090810291909101015292915050565b6001600160a01b0384163b15611e425760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061267c9089908990889088908890600401612ea0565b602060405180830381600087803b15801561269657600080fd5b505af19250505080156126c6575060408051601f3d908101601f191682019092526126c391810190612c3f565b60015b6126d25761241b613285565b6001600160e01b0319811663f23a6e6160e01b146122665760405162461bcd60e51b8152600401610a1390612f30565b82805461270e90613181565b90600052602060002090601f0160209004810192826127305760008555612776565b82601f1061274957805160ff1916838001178555612776565b82800160010185558215612776579182015b8281111561277657825182559160200191906001019061275b565b50612782929150612786565b5090565b5b808211156127825760008155600101612787565b60006001600160401b038311156127b4576127b461326f565b6040516127cb601f8501601f1916602001826131bc565b8091508381528484840111156127e057600080fd5b83836020830137600060208583010152509392505050565b60008083601f84011261280a57600080fd5b5081356001600160401b0381111561282157600080fd5b6020830191508360208260051b850101111561283c57600080fd5b9250929050565b600082601f83011261285457600080fd5b81356020612861826130b9565b60405161286e82826131bc565b8381528281019150858301600585901b8701840188101561288e57600080fd5b60005b858110156128ad57813584529284019290840190600101612891565b5090979650505050505050565b600082601f8301126128cb57600080fd5b6121428383356020850161279b565b6000602082840312156128ec57600080fd5b81356121428161332a565b6000806040838503121561290a57600080fd5b82356129158161332a565b915060208301356129258161332a565b809150509250929050565b600080600080600060a0868803121561294857600080fd5b85356129538161332a565b945060208601356129638161332a565b935060408601356001600160401b038082111561297f57600080fd5b61298b89838a01612843565b945060608801359150808211156129a157600080fd5b6129ad89838a01612843565b935060808801359150808211156129c357600080fd5b506129d0888289016128ba565b9150509295509295909350565b600080600080600060a086880312156129f557600080fd5b8535612a008161332a565b94506020860135612a108161332a565b9350604086013592506060860135915060808601356001600160401b03811115612a3957600080fd5b6129d0888289016128ba565b60008060408385031215612a5857600080fd5b8235612a638161332a565b91506020830135801515811461292557600080fd5b60008060408385031215612a8b57600080fd5b8235612a968161332a565b946020939093013593505050565b60008060408385031215612ab757600080fd5b82356001600160401b0380821115612ace57600080fd5b818501915085601f830112612ae257600080fd5b81356020612aef826130b9565b604051612afc82826131bc565b8381528281019150858301600585901b870184018b1015612b1c57600080fd5b600096505b84871015612b48578035612b348161332a565b835260019690960195918301918301612b21565b5096505086013592505080821115612b5f57600080fd5b50612b6c85828601612843565b9150509250929050565b60008060208385031215612b8957600080fd5b82356001600160401b03811115612b9f57600080fd5b612bab858286016127f8565b90969095509350505050565b60008060008060408587031215612bcd57600080fd5b84356001600160401b0380821115612be457600080fd5b612bf0888389016127f8565b90965094506020870135915080821115612c0957600080fd5b50612c16878288016127f8565b95989497509550505050565b600060208284031215612c3457600080fd5b81356121428161333f565b600060208284031215612c5157600080fd5b81516121428161333f565b600060208284031215612c6e57600080fd5b81356001600160401b03811115612c8457600080fd5b8201601f81018413612c9557600080fd5b611b4c8482356020840161279b565b600060208284031215612cb657600080fd5b813561ffff8116811461214257600080fd5b600060208284031215612cda57600080fd5b5035919050565b600060208284031215612cf357600080fd5b813560ff8116811461214257600080fd5b600081518084526020808501945080840160005b83811015612d3457815187529582019590820190600101612d18565b509495945050505050565b60008151808452612d5781602086016020860161313e565b601f01601f19169290920160200192915050565b60008151612d7d81856020860161313e565b9290920192915050565b600080845481600182811c915080831680612da357607f831692505b6020808410821415612dc357634e487b7160e01b86526022600452602486fd5b818015612dd75760018114612de857612e15565b60ff19861689528489019650612e15565b60008b81526020902060005b86811015612e0d5781548b820152908501908301612df4565b505084890196505b505050505050612e39612e288286612d6b565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612e6e90830186612d04565b8281036060840152612e808186612d04565b90508281036080840152612e948185612d3f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612eda90830184612d3f565b979650505050505050565b6020815260006121426020830184612d04565b604081526000612f0b6040830185612d04565b8281036020840152612e398185612d04565b6020815260006121426020830184612d3f565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526018908201527f53616c6520686173206e6f742073746172746564207965740000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526026908201527f507572636861736520776f756c64206578636565642072656d61696e696e6720604082015265737570706c7960d01b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b038211156130d2576130d261326f565b5060051b60200190565b600082198211156130ef576130ef613217565b500190565b6000826131035761310361322d565b500490565b600081600019048311821515161561312257613122613217565b500290565b60008282101561313957613139613217565b500390565b60005b83811015613159578181015183820152602001613141565b838111156110c55750506000910152565b60008161317957613179613217565b506000190190565b600181811c9082168061319557607f821691505b602082108114156131b657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156131e1576131e161326f565b6040525050565b60006000198214156131fc576131fc613217565b5060010190565b6000826132125761321261322d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561329e5760046000803e5060005160e01c5b90565b600060443d10156132af5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156132de57505050505090565b82850191508151818111156132f65750505050505090565b843d87010160208285010111156133105750505050505090565b61331f602082860101876131bc565b509095945050505050565b6001600160a01b038116811461191f57600080fd5b6001600160e01b03198116811461191f57600080fdfea2646970667358221220cc94ab7d41b124f084768f8dc4da07b179ad4fae28c0a1ef3ea81c7d3aac182c64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061031c5760003560e01c80638559dff3116101ab578063c78cd40d116100f7578063e98dcfd311610095578063f242432a1161006f578063f242432a14610981578063f2fde38b146109a1578063f7ecae35146109c1578063fa9d07cf146109d657600080fd5b8063e98dcfd314610922578063eb8d244414610937578063f13e9eec1461095157600080fd5b8063dcea48aa116100d1578063dcea48aa14610884578063e33b7de3146108a4578063e6a72acf146108b9578063e985e9c5146108d957600080fd5b8063c78cd40d14610823578063cc1eddd114610838578063ce7c2ac21461084e57600080fd5b80639507331211610164578063a6aac9c61161013e578063a6aac9c6146107ce578063af90e795146107e3578063b5e64024146107f8578063c2662ace1461080e57600080fd5b806395073312146107585780639852595c14610778578063a22cb465146107ae57600080fd5b80638559dff31461068157806387556268146106965780638b83209b146106b65780638d28926f146106ee5780638da5cb5b146107245780638dc699741461074257600080fd5b80632eb2c2d61161026a5780633cf924a01161022357806348d10aee116101fd57806348d10aee1461060a5780634e1273f41461061f57806355f804b31461064c578063715018a61461066c57600080fd5b80633cf924a0146105b55780633e652a11146105d4578063420401e9146105ea57600080fd5b80632eb2c2d61461051757806332cb6b0c14610537578063330ad7851461054d5780633613fffc1461056057806337617e67146105805780633a98ef39146105a057600080fd5b806319165587116102d7578063222cb901116102b1578063222cb901146104a257806323acbd51146104c2578063263af81e146104e15780632da5b7551461050157600080fd5b8063191655871461043d5780631c58fe321461045d5780631e24f37b1461048d57600080fd5b8062f5cfc11461036a578062fdd58e1461038157806301ffc9a7146103b457806303a1b65c146103e45780630e89341c146103fa5780631814fabe1461042757600080fd5b36610365577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037657600080fd5b5061037f6109e9565b005b34801561038d57600080fd5b506103a161039c366004612a78565b610b93565b6040519081526020015b60405180910390f35b3480156103c057600080fd5b506103d46103cf366004612c22565b610c25565b60405190151581526020016103ab565b3480156103f057600080fd5b506103a1600b5481565b34801561040657600080fd5b5061041a610415366004612cc8565b610c77565b6040516103ab9190612f1d565b34801561043357600080fd5b506103a1600f5481565b34801561044957600080fd5b5061037f6104583660046128da565b610cab565b34801561046957600080fd5b506103d4610478366004612cc8565b60009081526018602052604090205460ff1690565b34801561049957600080fd5b506011546103a1565b3480156104ae57600080fd5b5061037f6104bd366004612ca4565b610e7c565b3480156104ce57600080fd5b50601b546103d490610100900460ff1681565b3480156104ed57600080fd5b50601b546103d49062010000900460ff1681565b34801561050d57600080fd5b506103a1600a5481565b34801561052357600080fd5b5061037f610532366004612930565b610ec6565b34801561054357600080fd5b506103a1600d5481565b61037f61055b366004612cc8565b610f5d565b34801561056c57600080fd5b5061037f61057b366004612bb7565b6110cb565b34801561058c57600080fd5b506103a161059b366004612cc8565b6112ec565b3480156105ac57600080fd5b506004546103a1565b3480156105c157600080fd5b5060125462010000900461ffff166103a1565b3480156105e057600080fd5b506103a160095481565b3480156105f657600080fd5b5061037f610605366004612cc8565b611313565b34801561061657600080fd5b5061037f611342565b34801561062b57600080fd5b5061063f61063a366004612aa4565b611378565b6040516103ab9190612ee5565b34801561065857600080fd5b5061037f610667366004612c5c565b6114a1565b34801561067857600080fd5b5061037f6114e2565b34801561068d57600080fd5b506013546103a1565b3480156106a257600080fd5b5061037f6106b1366004612b76565b611518565b3480156106c257600080fd5b506106d66106d1366004612cc8565b61155e565b6040516001600160a01b0390911681526020016103ab565b3480156106fa57600080fd5b506106d6610709366004612cc8565b6000908152601560205260409020546001600160a01b031690565b34801561073057600080fd5b506003546001600160a01b03166106d6565b34801561074e57600080fd5b506103a160105481565b34801561076457600080fd5b5061037f610773366004612cc8565b61158e565b34801561078457600080fd5b506103a16107933660046128da565b6001600160a01b031660009081526007602052604090205490565b3480156107ba57600080fd5b5061037f6107c9366004612a45565b611638565b3480156107da57600080fd5b5061037f611643565b3480156107ef57600080fd5b5061037f61167a565b34801561080457600080fd5b506103a1600e5481565b34801561081a57600080fd5b5061037f6116b2565b34801561082f57600080fd5b5061037f6116ef565b34801561084457600080fd5b506103a1600c5481565b34801561085a57600080fd5b506103a16108693660046128da565b6001600160a01b031660009081526006602052604090205490565b34801561089057600080fd5b506103d461089f366004612b76565b611784565b3480156108b057600080fd5b506005546103a1565b3480156108c557600080fd5b506103a16108d4366004612cc8565b6117f0565b3480156108e557600080fd5b506103d46108f43660046128f7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561092e57600080fd5b50601a546103a1565b34801561094357600080fd5b50601b546103d49060ff1681565b34801561095d57600080fd5b506103d461096c366004612cc8565b60009081526016602052604090205460ff1690565b34801561098d57600080fd5b5061037f61099c3660046129dd565b611800565b3480156109ad57600080fd5b5061037f6109bc3660046128da565b611887565b3480156109cd57600080fd5b5061037f611922565b61037f6109e4366004612b76565b6119ad565b6003546001600160a01b03163314610a1c5760405162461bcd60e51b8152600401610a1390613084565b60405180910390fd5b60125460ff1615610a6f5760405162461bcd60e51b815260206004820152601a60248201527f616c72656164792063726561746564206d696e74206f726465720000000000006044820152606401610a13565b601b805461ff00199081169091556012805490911661010017905560015b601a54610a9b9060016130dc565b811015610b1c5760008181526019602052604090205460ff168015610acf575060008181526016602052604090205460ff16155b15610b0a57601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68018190555b80610b14816131e8565b915050610a8d565b506000600954600a54610b2f91906130dc565b90505b600954811115610b8357601180546001810182556000919091527f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680181905580610b7b8161316a565b915050610b32565b506012805460ff19166001179055565b60006001600160a01b038316610bff5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610a13565b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610c5657506001600160e01b031982166303a24d0760e21b145b80610c7157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606014610c8483611a4f565b604051602001610c95929190612d87565b6040516020818303038152906040529050919050565b6001600160a01b038116600090815260066020526040902054610d1f5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610a13565b600060055447610d2f91906130dc565b6001600160a01b0383166000908152600760209081526040808320546004546006909352908320549394509192610d669085613108565b610d7091906130f4565b610d7a9190613127565b905080610ddd5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610a13565b6001600160a01b038316600090815260076020526040902054610e019082906130dc565b6001600160a01b038416600090815260076020526040902055600554610e289082906130dc565b600555610e358382611b54565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6003546001600160a01b03163314610ea65760405162461bcd60e51b8152600401610a1390613084565b6012805461ffff909216620100000263ffff000019909216919091179055565b6001600160a01b038516331480610ee25750610ee285336108f4565b610f495760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a13565b610f568585858585611c6d565b5050505050565b6011548190811115610f815760405162461bcd60e51b8152600401610a1390612ff4565b601254829062010000900461ffff16811115610fef5760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f74206d696e74206d6f7265207468616e203520746f6b656e20617460448201526620612074696d6560c81b6064820152608401610a13565b8234610ffa826117f0565b146110475760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a13565b601b5460ff166110695760405162461bcd60e51b8152600401610a1390612f78565b60125460ff166110bb5760405162461bcd60e51b815260206004820152601a60248201527f6d696e74206f72646572206e6f742063726561746564207965740000000000006044820152606401610a13565b6110c58433611e4a565b50505050565b6003546001600160a01b031633146110f55760405162461bcd60e51b8152600401610a1390613084565b82811461110157600080fd5b60005b81811015610f5657600185858381811061112057611120613259565b90506020020160208101906111359190612ce1565b60ff1610158015611171575060095485858381811061115657611156613259565b905060200201602081019061116b9190612ce1565b60ff1611155b61117a57600080fd5b82828281811061118c5761118c613259565b90506020020160208101906111a191906128da565b601560008787858181106111b7576111b7613259565b90506020020160208101906111cc9190612ce1565b60ff16815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506019600086868481811061121757611217613259565b905060200201602081019061122c9190612ce1565b60ff9081168252602082019290925260400160002054166112da5760016019600087878581811061125f5761125f613259565b90506020020160208101906112749190612ce1565b60ff1681526020810191909152604001600020805460ff1916911515919091179055601a8585838181106112aa576112aa613259565b90506020020160208101906112bf9190612ce1565b81546001810183556000928352602090922060ff9091169101555b806112e4816131e8565b915050611104565b60006011828154811061130157611301613259565b90600052602060002001549050919050565b6003546001600160a01b0316331461133d5760405162461bcd60e51b8152600401610a1390613084565b601355565b6003546001600160a01b0316331461136c5760405162461bcd60e51b8152600401610a1390613084565b601b805460ff19169055565b606081518351146113dd5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a13565b600083516001600160401b038111156113f8576113f861326f565b604051908082528060200260200182016040528015611421578160200160208202803683370190505b50905060005b84518110156114995761146c85828151811061144557611445613259565b602002602001015185838151811061145f5761145f613259565b6020026020010151610b93565b82828151811061147e5761147e613259565b6020908102919091010152611492816131e8565b9050611427565b509392505050565b6003546001600160a01b031633146114cb5760405162461bcd60e51b8152600401610a1390613084565b80516114de906014906020840190612702565b5050565b6003546001600160a01b0316331461150c5760405162461bcd60e51b8152600401610a1390613084565b6115166000611f2e565b565b601b5462010000900460ff166115405760405162461bcd60e51b8152600401610a1390612f78565b61154a8282611784565b61155357600080fd5b6114de828233611f80565b60006008828154811061157357611573613259565b6000918252602090912001546001600160a01b031692915050565b60115481908111156115b25760405162461bcd60e51b8152600401610a1390612ff4565b6003546001600160a01b031633146115dc5760405162461bcd60e51b8152600401610a1390613084565b60125460ff1661162e5760405162461bcd60e51b815260206004820152601a60248201527f6d696e74206f72646572206e6f742063726561746564207965740000000000006044820152606401610a13565b6114de8233611e4a565b6114de338383612055565b6003546001600160a01b0316331461166d5760405162461bcd60e51b8152600401610a1390613084565b601b805461ff0019169055565b6003546001600160a01b031633146116a45760405162461bcd60e51b8152600401610a1390613084565b601b805462ff000019169055565b6003546001600160a01b031633146116dc5760405162461bcd60e51b8152600401610a1390613084565b601b805462ff0000191662010000179055565b6003546001600160a01b031633146117195760405162461bcd60e51b8152600401610a1390613084565b601254610100900460ff16156117715760405162461bcd60e51b815260206004820152601960248201527f41432073616c65207065726d616e656e746c7920656e646564000000000000006044820152606401610a13565b601b805462ffff00191662010100179055565b6000805b828110156117e65733601560008686858181106117a7576117a7613259565b60209081029290920135835250810191909152604001600020546001600160a01b0316146117d457600080fd5b806117de816131e8565b915050611788565b5060019392505050565b601354600090610c719083612136565b6001600160a01b03851633148061181c575061181c85336108f4565b61187a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610a13565b610f568585858585612149565b6003546001600160a01b031633146118b15760405162461bcd60e51b8152600401610a1390613084565b6001600160a01b0381166119165760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a13565b61191f81611f2e565b50565b6003546001600160a01b0316331461194c5760405162461bcd60e51b8152600401610a1390613084565b60125460ff1661199e5760405162461bcd60e51b815260206004820152601a60248201527f6d696e74206f72646572206e6f742079657420637265617465640000000000006044820152606401610a13565b601b805460ff19166001179055565b80346119b8826117f0565b14611a055760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610a13565b601b54610100900460ff16611a2c5760405162461bcd60e51b8152600401610a1390612f78565b611a368383611784565b611a3f57600080fd5b611a4a83833361226f565b505050565b606081611a735750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a9d5780611a87816131e8565b9150611a969050600a836130f4565b9150611a77565b6000816001600160401b03811115611ab757611ab761326f565b6040519080825280601f01601f191660200182016040528015611ae1576020820181803683370190505b5090505b8415611b4c57611af6600183613127565b9150611b03600a86613203565b611b0e9060306130dc565b60f81b818381518110611b2357611b23613259565b60200101906001600160f81b031916908160001a905350611b45600a866130f4565b9450611ae5565b949350505050565b80471015611ba45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a13565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611bf1576040519150601f19603f3d011682016040523d82523d6000602084013e611bf6565b606091505b5050905080611a4a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a13565b8151835114611ccf5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a13565b6001600160a01b038416611cf55760405162461bcd60e51b8152600401610a1390612faf565b3360005b8451811015611ddc576000858281518110611d1657611d16613259565b602002602001015190506000858381518110611d3457611d34613259565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611d845760405162461bcd60e51b8152600401610a139061303a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611dc19084906130dc565b9250508190555050505080611dd5906131e8565b9050611cf9565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611e2c929190612ef8565b60405180910390a4611e42818787878787612381565b505050505050565b60005b82811015611a4a576011805460009190611e6990600190613127565b81548110611e7957611e79613259565b6000918252602080832090910154808352601790915260409091205490915060ff1615611ea557600080fd5b6000818152601760205260409020805460ff191660011790556011805480611ecf57611ecf613243565b60019003818190600052602060002001600090559055611f0183826001604051806020016040528060008152506124ec565b6001600f6000828254611f1491906130dc565b90915550829150611f269050816131e8565b915050611e4d565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b828110156110c55760186000858584818110611fa157611fa1613259565b602090810292909201358352508101919091526040016000205460ff1615611fc857600080fd5b600160186000868685818110611fe057611fe0613259565b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555061202a82600c546001604051806020016040528060008152506124ec565b60016010600082825461203d91906130dc565b9091555081905061204d816131e8565b915050611f83565b816001600160a01b0316836001600160a01b031614156120c95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a13565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60006121428284613108565b9392505050565b6001600160a01b03841661216f5760405162461bcd60e51b8152600401610a1390612faf565b3361218881878761217f886125ed565b610f56886125ed565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156121c95760405162461bcd60e51b8152600401610a139061303a565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122069084906130dc565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612266828888888888612638565b50505050505050565b60005b828110156110c55760095484848381811061228f5761228f613259565b9050602002013511156122a157600080fd5b601660008585848181106122b7576122b7613259565b602090810292909201358352508101919091526040016000205460ff16156122de57600080fd5b6001601660008686858181106122f6576122f6613259565b90506020020135815260200190815260200160002060006101000a81548160ff0219169083151502179055506123568285858481811061233857612338613259565b905060200201356001604051806020016040528060008152506124ec565b6001600e600082825461236991906130dc565b90915550819050612379816131e8565b915050612272565b6001600160a01b0384163b15611e425760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906123c59089908990889088908890600401612e42565b602060405180830381600087803b1580156123df57600080fd5b505af192505050801561240f575060408051601f3d908101601f1916820190925261240c91810190612c3f565b60015b6124bc5761241b613285565b806308c379a0141561245557506124306132a1565b8061243b5750612457565b8060405162461bcd60e51b8152600401610a139190612f1d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a13565b6001600160e01b0319811663bc197c8160e01b146122665760405162461bcd60e51b8152600401610a1390612f30565b6001600160a01b03841661254c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a13565b3361255d8160008761217f886125ed565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061258d9084906130dc565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f5681600087878787612638565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061262757612627613259565b602090810291909101015292915050565b6001600160a01b0384163b15611e425760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061267c9089908990889088908890600401612ea0565b602060405180830381600087803b15801561269657600080fd5b505af19250505080156126c6575060408051601f3d908101601f191682019092526126c391810190612c3f565b60015b6126d25761241b613285565b6001600160e01b0319811663f23a6e6160e01b146122665760405162461bcd60e51b8152600401610a1390612f30565b82805461270e90613181565b90600052602060002090601f0160209004810192826127305760008555612776565b82601f1061274957805160ff1916838001178555612776565b82800160010185558215612776579182015b8281111561277657825182559160200191906001019061275b565b50612782929150612786565b5090565b5b808211156127825760008155600101612787565b60006001600160401b038311156127b4576127b461326f565b6040516127cb601f8501601f1916602001826131bc565b8091508381528484840111156127e057600080fd5b83836020830137600060208583010152509392505050565b60008083601f84011261280a57600080fd5b5081356001600160401b0381111561282157600080fd5b6020830191508360208260051b850101111561283c57600080fd5b9250929050565b600082601f83011261285457600080fd5b81356020612861826130b9565b60405161286e82826131bc565b8381528281019150858301600585901b8701840188101561288e57600080fd5b60005b858110156128ad57813584529284019290840190600101612891565b5090979650505050505050565b600082601f8301126128cb57600080fd5b6121428383356020850161279b565b6000602082840312156128ec57600080fd5b81356121428161332a565b6000806040838503121561290a57600080fd5b82356129158161332a565b915060208301356129258161332a565b809150509250929050565b600080600080600060a0868803121561294857600080fd5b85356129538161332a565b945060208601356129638161332a565b935060408601356001600160401b038082111561297f57600080fd5b61298b89838a01612843565b945060608801359150808211156129a157600080fd5b6129ad89838a01612843565b935060808801359150808211156129c357600080fd5b506129d0888289016128ba565b9150509295509295909350565b600080600080600060a086880312156129f557600080fd5b8535612a008161332a565b94506020860135612a108161332a565b9350604086013592506060860135915060808601356001600160401b03811115612a3957600080fd5b6129d0888289016128ba565b60008060408385031215612a5857600080fd5b8235612a638161332a565b91506020830135801515811461292557600080fd5b60008060408385031215612a8b57600080fd5b8235612a968161332a565b946020939093013593505050565b60008060408385031215612ab757600080fd5b82356001600160401b0380821115612ace57600080fd5b818501915085601f830112612ae257600080fd5b81356020612aef826130b9565b604051612afc82826131bc565b8381528281019150858301600585901b870184018b1015612b1c57600080fd5b600096505b84871015612b48578035612b348161332a565b835260019690960195918301918301612b21565b5096505086013592505080821115612b5f57600080fd5b50612b6c85828601612843565b9150509250929050565b60008060208385031215612b8957600080fd5b82356001600160401b03811115612b9f57600080fd5b612bab858286016127f8565b90969095509350505050565b60008060008060408587031215612bcd57600080fd5b84356001600160401b0380821115612be457600080fd5b612bf0888389016127f8565b90965094506020870135915080821115612c0957600080fd5b50612c16878288016127f8565b95989497509550505050565b600060208284031215612c3457600080fd5b81356121428161333f565b600060208284031215612c5157600080fd5b81516121428161333f565b600060208284031215612c6e57600080fd5b81356001600160401b03811115612c8457600080fd5b8201601f81018413612c9557600080fd5b611b4c8482356020840161279b565b600060208284031215612cb657600080fd5b813561ffff8116811461214257600080fd5b600060208284031215612cda57600080fd5b5035919050565b600060208284031215612cf357600080fd5b813560ff8116811461214257600080fd5b600081518084526020808501945080840160005b83811015612d3457815187529582019590820190600101612d18565b509495945050505050565b60008151808452612d5781602086016020860161313e565b601f01601f19169290920160200192915050565b60008151612d7d81856020860161313e565b9290920192915050565b600080845481600182811c915080831680612da357607f831692505b6020808410821415612dc357634e487b7160e01b86526022600452602486fd5b818015612dd75760018114612de857612e15565b60ff19861689528489019650612e15565b60008b81526020902060005b86811015612e0d5781548b820152908501908301612df4565b505084890196505b505050505050612e39612e288286612d6b565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612e6e90830186612d04565b8281036060840152612e808186612d04565b90508281036080840152612e948185612d3f565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612eda90830184612d3f565b979650505050505050565b6020815260006121426020830184612d04565b604081526000612f0b6040830185612d04565b8281036020840152612e398185612d04565b6020815260006121426020830184612d3f565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526018908201527f53616c6520686173206e6f742073746172746564207965740000000000000000604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526026908201527f507572636861736520776f756c64206578636565642072656d61696e696e6720604082015265737570706c7960d01b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006001600160401b038211156130d2576130d261326f565b5060051b60200190565b600082198211156130ef576130ef613217565b500190565b6000826131035761310361322d565b500490565b600081600019048311821515161561312257613122613217565b500290565b60008282101561313957613139613217565b500390565b60005b83811015613159578181015183820152602001613141565b838111156110c55750506000910152565b60008161317957613179613217565b506000190190565b600181811c9082168061319557607f821691505b602082108114156131b657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156131e1576131e161326f565b6040525050565b60006000198214156131fc576131fc613217565b5060010190565b6000826132125761321261322d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561329e5760046000803e5060005160e01c5b90565b600060443d10156132af5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156132de57505050505090565b82850191508151818111156132f65750505050505090565b843d87010160208285010111156133105750505050505090565b61331f602082860101876131bc565b509095945050505050565b6001600160a01b038116811461191f57600080fd5b6001600160e01b03198116811461191f57600080fdfea2646970667358221220cc94ab7d41b124f084768f8dc4da07b179ad4fae28c0a1ef3ea81c7d3aac182c64736f6c63430008070033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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