ETH Price: $2,641.57 (-16.19%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From212802912024-11-27 16:30:3567 days ago1732725035IN
0x46C878D4...4A9759859
0 ETH0.0015108426.18366757
Transfer From182426252023-09-29 16:41:11492 days ago1696005671IN
0x46C878D4...4A9759859
0 ETH0.0009704816.82237329
Set Approval For...179252862023-08-16 5:23:59536 days ago1692163439IN
0x46C878D4...4A9759859
0 ETH0.0009468620.52020251
Safe Transfer Fr...175577212023-06-25 16:36:35588 days ago1687710995IN
0x46C878D4...4A9759859
0 ETH0.0009981215.14538035
Safe Transfer Fr...170425612023-04-14 2:41:35660 days ago1681440095IN
0x46C878D4...4A9759859
0 ETH0.0017461928.57784338
Safe Transfer Fr...169743732023-04-04 8:32:23670 days ago1680597143IN
0x46C878D4...4A9759859
0 ETH0.0011750519.23068615
Set Approval For...169694842023-04-03 15:48:59671 days ago1680536939IN
0x46C878D4...4A9759859
0 ETH0.001639735.53536997
Set Approval For...163183352023-01-02 9:56:47762 days ago1672653407IN
0x46C878D4...4A9759859
0 ETH0.0006409313.89029131
Set Approval For...160268792022-11-22 16:56:59803 days ago1669136219IN
0x46C878D4...4A9759859
0 ETH0.0007054615.28870722
Set Approval For...159649632022-11-14 1:22:35812 days ago1668388955IN
0x46C878D4...4A9759859
0 ETH0.0006189413.41356702
Safe Transfer Fr...158323942022-10-26 12:57:47830 days ago1666789067IN
0x46C878D4...4A9759859
0 ETH0.0006782614.06425372
Safe Transfer Fr...158323822022-10-26 12:55:23830 days ago1666788923IN
0x46C878D4...4A9759859
0 ETH0.0006949214.40973453
Safe Transfer Fr...158323692022-10-26 12:52:47830 days ago1666788767IN
0x46C878D4...4A9759859
0 ETH0.0008883213.59827579
Safe Transfer Fr...158323542022-10-26 12:49:47830 days ago1666788587IN
0x46C878D4...4A9759859
0 ETH0.0008541113.07464237
Set Approval For...155027032022-09-09 12:17:17877 days ago1662725837IN
0x46C878D4...4A9759859
0 ETH0.0009797721.23339379
Set Approval For...154535442022-09-01 15:05:39885 days ago1662044739IN
0x46C878D4...4A9759859
0 ETH0.001896341.0962164
Set Approval For...153726872022-08-19 17:41:15898 days ago1660930875IN
0x46C878D4...4A9759859
0 ETH0.0015236532.96022238
Set Approval For...153720442022-08-19 15:21:02898 days ago1660922462IN
0x46C878D4...4A9759859
0 ETH0.0007907217.13645379
Set Approval For...153135462022-08-10 9:23:15907 days ago1660123395IN
0x46C878D4...4A9759859
0 ETH0.000438919.51208132
Set Approval For...152731062022-08-04 2:03:30913 days ago1659578610IN
0x46C878D4...4A9759859
0 ETH0.0005587212.1084931
Set Approval For...151285362022-07-12 15:05:56936 days ago1657638356IN
0x46C878D4...4A9759859
0 ETH0.0022558248.79889812
Set Approval For...150621472022-07-02 8:56:19946 days ago1656752179IN
0x46C878D4...4A9759859
0 ETH0.0005436611.78227629
Set Approval For...150601042022-07-02 1:35:10947 days ago1656725710IN
0x46C878D4...4A9759859
0 ETH0.0008816419.10685001
Set Approval For...150389752022-06-28 9:17:13950 days ago1656407833IN
0x46C878D4...4A9759859
0 ETH0.0014553331.48225935
Set Approval For...150295012022-06-26 14:47:32952 days ago1656254852IN
0x46C878D4...4A9759859
0 ETH0.0014182730.73651037
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
146356732022-04-22 16:11:171017 days ago1650643877
0x46C878D4...4A9759859
7.04 ETH
141524272022-02-06 12:09:371092 days ago1644149377
0x46C878D4...4A9759859
1.98 ETH
135547442021-11-05 5:29:161185 days ago1636090156
0x46C878D4...4A9759859
41.58 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Mehtaverse

Compiler Version
v0.8.8+commit.dddeac2f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Mehtaverse.sol
// SPDX-License-Identifier: None
pragma solidity ^0.8.8;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import './ERC2981.sol';

struct SaleConfig {
  uint32 privateSaleStartTime;
  uint32 preSaleStartTime;
  uint32 publicSaleStartTime;
  uint16 privateSaleSupplyLimit;
  uint8 publicSaleTxLimit;
}

contract Mehtaverse is Ownable, ERC721, ERC2981 {
  using SafeMath for uint256;
  using SafeCast for uint256;
  using ECDSA for bytes32;

  uint256 public constant supplyLimit = 2222;
  uint256 public mintPrice = 0.22 ether;
  uint256 public totalSupply = 0;

  SaleConfig public saleConfig;

  address public whitelistSigner;

  string public baseURI;

  uint256 public PROVENANCE_HASH;
  uint256 public randomizedStartIndex;

  mapping(address => uint) private presaleMinted;

  address payable public withdrawalAddress;

  bytes32 private DOMAIN_SEPARATOR;
  bytes32 private PRIVATE_SALE_TYPEHASH = keccak256("privateSale(address buyer,uint256 limit)");
  bytes32 private PRESALE_TYPEHASH = keccak256("presale(address buyer,uint256 limit)");

  constructor(
    string memory inputBaseUri,
    address payable inputWithdrawalAddress,
    uint256 provenance
  ) ERC721("Mehtaverse", "MEH") {
    baseURI = inputBaseUri;
    withdrawalAddress = inputWithdrawalAddress;
    PROVENANCE_HASH = provenance;

    saleConfig = SaleConfig({
      privateSaleStartTime:   1635690120, //31 Oct 2021 22:22:00 UTC+0800
      preSaleStartTime:       1635776520, //1 Nov 2021 22:22:00 UTC+0800
      publicSaleStartTime:    1635862920, //2 Nov 2021 22:22:00 UTC+0800
      privateSaleSupplyLimit: 267,
      publicSaleTxLimit:      5
    });

    _setRoyalties(withdrawalAddress, 750); // 7.5% royalties

    uint256 chainId;
      assembly {
        chainId := chainid()
      }

    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
        keccak256(bytes("Mehtaverse")),
        keccak256(bytes("1")),
        chainId,
        address(this))
    );
  }

  function _baseURI() internal view override returns (string memory) {
    return baseURI;
  }

  function setBaseURI(string memory newBaseUri) external onlyOwner {
    baseURI = newBaseUri;
  }

  function setProvenance(uint256 provenanceHash) external onlyOwner {
    require(randomizedStartIndex == 0, "Starting index already set");
    
    PROVENANCE_HASH = provenanceHash;
  }

  function setWithdrawalAddress(address payable newAddress) external onlyOwner {
    withdrawalAddress = newAddress;
  }

  function setMintPrice(uint newPrice) external onlyOwner {
    mintPrice = newPrice;
  }

  function setWhiteListSigner(address signer) external onlyOwner {
    whitelistSigner = signer;
  }
  
  function setRoyalties(address recipient, uint256 value) external onlyOwner {
    require(recipient != address(0), "zero address");
    _setRoyalties(recipient, value);
  }

  function configureSales(
    uint256 privateSaleStartTime,
    uint256 preSaleStartTime,
    uint256 publicSaleStartTime,
    uint256 privateSaleSupplyLimit,
    uint256 publicSaleTxLimit
  ) external onlyOwner {
    uint32 _privateSaleStartTime = privateSaleStartTime.toUint32();
    uint32 _preSaleStartTime = preSaleStartTime.toUint32();
    uint32 _publicSaleStartTime = publicSaleStartTime.toUint32();
    uint16 _privateSaleSupplyLimit = privateSaleSupplyLimit.toUint16();
    uint8 _publicSaleTxLimit = publicSaleTxLimit.toUint8();

    require(0 < _privateSaleStartTime, "Invalid time");
    require(_privateSaleStartTime < _preSaleStartTime, "Invalid time");
    require(_preSaleStartTime < _publicSaleStartTime, "Invalid time");

    saleConfig = SaleConfig({
      privateSaleStartTime: _privateSaleStartTime,
      preSaleStartTime: _preSaleStartTime,
      publicSaleStartTime: _publicSaleStartTime,
      privateSaleSupplyLimit: _privateSaleSupplyLimit,
      publicSaleTxLimit: _publicSaleTxLimit
    });
  }

  function buyPrivateSale(bytes memory signature, uint numberOfTokens, uint approvedLimit) external payable {
    SaleConfig memory _saleConfig = saleConfig;

    require(block.timestamp >= _saleConfig.privateSaleStartTime && block.timestamp < _saleConfig.preSaleStartTime, "Private sale not active");
    require(whitelistSigner != address(0), "White list signer not yet set");
    require(msg.value == mintPrice.mul(numberOfTokens), "Incorrect payment");
    require((presaleMinted[msg.sender] + numberOfTokens) <= approvedLimit, "Wallet limit exceeded");
    require((totalSupply + numberOfTokens) <= _saleConfig.privateSaleSupplyLimit, "Private sale limit exceeded");

    bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(PRIVATE_SALE_TYPEHASH, msg.sender, approvedLimit))));
    address signer = digest.recover(signature);

    require(signer != address(0) && signer == whitelistSigner, "Invalid signature");

    presaleMinted[msg.sender] = presaleMinted[msg.sender] + numberOfTokens;
    mint(msg.sender, numberOfTokens);
  }

  function buyPresale(bytes memory signature, uint numberOfTokens, uint approvedLimit) external payable {
    require(block.timestamp >= saleConfig.preSaleStartTime && block.timestamp < saleConfig.publicSaleStartTime, "Presale is not active");
    require(whitelistSigner != address(0), "White list signer not yet set");
    require(msg.value == mintPrice.mul(numberOfTokens), "Incorrect payment");
    require((presaleMinted[msg.sender] + numberOfTokens) <= approvedLimit, "Wallet limit exceeded");
    
    bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(PRESALE_TYPEHASH, msg.sender, approvedLimit))));

    address signer = digest.recover(signature);

    require(signer != address(0) && signer == whitelistSigner, "Invalid signature");

    presaleMinted[msg.sender] = presaleMinted[msg.sender] + numberOfTokens;
    mint(msg.sender, numberOfTokens);
  }

  function buy(uint numberOfTokens) external payable {
    SaleConfig memory _saleConfig = saleConfig;

    require(block.timestamp >= _saleConfig.publicSaleStartTime, "Sale is not active");
    require(msg.value == mintPrice.mul(numberOfTokens), "Incorrect payment");
    require(numberOfTokens <= _saleConfig.publicSaleTxLimit, "Transaction limit exceeded");

    mint(msg.sender, numberOfTokens);
  }

  function mint(address to, uint numberOfTokens) private {
    require(totalSupply.add(numberOfTokens) <= supplyLimit, "Not enough tokens left");

    uint256 newId = totalSupply;

    for(uint i = 0; i < numberOfTokens; i++) {
      newId += 1;
      _safeMint(to, newId);
    }

    totalSupply = newId;
  }

  function reserve(address to, uint256 numberOfTokens) external onlyOwner {
    mint(to, numberOfTokens);
  }

  function rollStartIndex() external onlyOwner {
    require(PROVENANCE_HASH != 0, 'Provenance hash not set');
    require(randomizedStartIndex == 0, 'Index already set');
    require(block.timestamp >= saleConfig.publicSaleStartTime, "Too early to roll start index");

    uint256 number = uint256(
      keccak256(abi.encodePacked(blockhash(block.number - 1), block.coinbase, block.difficulty))
    );

    randomizedStartIndex = number % supplyLimit + 1;
  }

  function withdraw() external onlyOwner {
    require(address(this).balance > 0, "No balance to withdraw");
    
    (bool success, ) = withdrawalAddress.call{value: address(this).balance}("");
    require(success, "Withdrawal failed");
  }

  /// @inheritdoc	ERC165
  function supportsInterface(bytes4 interfaceId)
    public
    view
    override(ERC721, ERC2981)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 16 : 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 3 of 16 : 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 16 : SafeCast.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits");
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits");
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= type(int128).min && value <= type(int128).max, "SafeCast: value doesn't fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= type(int64).min && value <= type(int64).max, "SafeCast: value doesn't fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= type(int32).min && value <= type(int32).max, "SafeCast: value doesn't fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= type(int16).min && value <= type(int16).max, "SafeCast: value doesn't fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= type(int8).min && value <= type(int8).max, "SafeCast: value doesn't fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

File 5 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 6 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 7 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;

import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import './IERC2981.sol';

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
contract ERC2981 is ERC165, IERC2981 {
  struct RoyaltyInfo {
    address recipient;
    uint24 amount;
  }

  RoyaltyInfo private _royalties;

  /// @dev Sets token royalties
  /// @param recipient recipient of the royalties
  /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
  function _setRoyalties(address recipient, uint256 value) internal {
    require(value <= 10000, 'ERC2981Royalties: Too high');
    _royalties = RoyaltyInfo(recipient, uint24(value));
  }

  /// @inheritdoc	IERC2981
  function royaltyInfo(uint256, uint256 value)
    external
    view
    override
    returns (address receiver, uint256 royaltyAmount)
  {
    RoyaltyInfo memory royalties = _royalties;
    receiver = royalties.recipient;
    royaltyAmount = (value * royalties.amount) / 10000;
  }

  /// @inheritdoc	ERC165
  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override
    returns (bool)
  {
    return
      interfaceId == type(IERC2981).interfaceId ||
      super.supportsInterface(interfaceId);
  }
}

File 8 of 16 : 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 16 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 10 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 16 of 16 : IERC2981.sol
// SPDX-License-Identifier: None
pragma solidity ^0.8.8;

///
/// @dev Interface for the NFT Royalty Standard
///
interface IERC2981 {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(
        uint256 _tokenId,
        uint256 _salePrice
    ) external view returns (
        address receiver,
        uint256 royaltyAmount
    );
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"inputBaseUri","type":"string"},{"internalType":"address payable","name":"inputWithdrawalAddress","type":"address"},{"internalType":"uint256","name":"provenance","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"approvedLimit","type":"uint256"}],"name":"buyPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"approvedLimit","type":"uint256"}],"name":"buyPrivateSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"privateSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"preSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"privateSaleSupplyLimit","type":"uint256"},{"internalType":"uint256","name":"publicSaleTxLimit","type":"uint256"}],"name":"configureSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizedStartIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rollStartIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"privateSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"preSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint16","name":"privateSaleSupplyLimit","type":"uint16"},{"internalType":"uint8","name":"publicSaleTxLimit","type":"uint8"}],"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":"string","name":"newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"provenanceHash","type":"uint256"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setWhiteListSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAddress","type":"address"}],"name":"setWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405267030d98d59a96000060085560006009557f2d7173bb85257749067cf2394128322d69d62432c8745f1fbe23fc09b9f781426012557f62b1d609957efd7198a66f841063387013c1f07f57cbb6ae3cd625ddd9f9ebab6013553480156200006a57600080fd5b506040516200367c3803806200367c8339810160408190526200008d916200045b565b6040518060400160405280600a8152602001694d65687461766572736560b01b8152506040518060400160405280600381526020016209a8a960eb1b815250620000e6620000e06200028d60201b60201c565b62000291565b8151620000fb90600190602085019062000382565b5080516200011190600290602084019062000382565b50508351620001299150600c90602086019062000382565b50601080546001600160a01b0319166001600160a01b038416908117909155600d8290556040805160a08101825263617ea688815263617ff808602082015263618149889181019190915261010b60608201526005608090910152600a80546001600160781b0319166e05010b61814988617ff808617ea688179055620001b3906102ee620002e1565b5050604080518082018252600a8152694d65687461766572736560b01b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527f2f356ed634b3aacf76bcf1e9045bba94c1f02af401736278923bda2b7ce6076d818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c090910190925281519101206011555062000592565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612710811115620003385760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b828054620003909062000555565b90600052602060002090601f016020900481019282620003b45760008555620003ff565b82601f10620003cf57805160ff1916838001178555620003ff565b82800160010185558215620003ff579182015b82811115620003ff578251825591602001919060010190620003e2565b506200040d92915062000411565b5090565b5b808211156200040d576000815560010162000412565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200045657600080fd5b919050565b6000806000606084860312156200047157600080fd5b83516001600160401b03808211156200048957600080fd5b818601915086601f8301126200049e57600080fd5b815181811115620004b357620004b362000428565b604051601f8201601f19908116603f01168101908382118183101715620004de57620004de62000428565b81604052828152602093508984848701011115620004fb57600080fd5b600091505b828210156200051f578482018401518183018501529083019062000500565b82821115620005315760008484830101525b9650620005439150508682016200043e565b93505050604084015190509250925092565b600181811c908216806200056a57607f821691505b602082108114156200058c57634e487b7160e01b600052602260045260246000fd5b50919050565b6130da80620005a26000396000f3fe6080604052600436106102305760003560e01c80636c0360eb1161012e578063b88d4fde116100ab578063ef81b4d41161006f578063ef81b4d4146106da578063f2bcd022146106fa578063f2fde38b1461071a578063f4a0a5281461073a578063ff1b65561461075a57600080fd5b8063b88d4fde1461061e578063c87b56dd1461063e578063cc47a40b1461065e578063d96a094a1461067e578063e985e9c51461069157600080fd5b80638c7ea24b116100f25780638c7ea24b146105255780638da5cb5b1461054557806390aa0b0f1461056357806395d89b41146105e9578063a22cb465146105fe57600080fd5b80636c0360eb1461049b57806370a08231146104b0578063715018a6146104d057806372d29c90146104e557806384bdb6e01461050557600080fd5b80632a3dd109116101bc5780634537fb27116101805780634537fb271461041d57806355f804b3146104305780635aca1982146104505780636352211e146104655780636817c76c1461048557600080fd5b80632a3dd109146103805780632a55205a146103965780633266e957146103d55780633ccfd60b146103e857806342842e0e146103fd57600080fd5b8063095ea7b311610203578063095ea7b3146102e657806318160ddd1461030657806319d1997a1461032a57806321b8092e1461034057806323b872dd1461036057600080fd5b806301ffc9a714610235578063069683101461026a57806306fdde031461028c578063081812fc146102ae575b600080fd5b34801561024157600080fd5b50610255610250366004612a16565b610770565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061028a610285366004612a33565b610781565b005b34801561029857600080fd5b506102a1610809565b6040516102619190612aa4565b3480156102ba57600080fd5b506102ce6102c9366004612a33565b61089b565b6040516001600160a01b039091168152602001610261565b3480156102f257600080fd5b5061028a610301366004612acc565b610930565b34801561031257600080fd5b5061031c60095481565b604051908152602001610261565b34801561033657600080fd5b5061031c6108ae81565b34801561034c57600080fd5b5061028a61035b366004612af8565b610a46565b34801561036c57600080fd5b5061028a61037b366004612b15565b610a92565b34801561038c57600080fd5b5061031c600e5481565b3480156103a257600080fd5b506103b66103b1366004612b56565b610ac3565b604080516001600160a01b039093168352602083019190915201610261565b61028a6103e3366004612c24565b610b18565b3480156103f457600080fd5b5061028a610d9e565b34801561040957600080fd5b5061028a610418366004612b15565b610eab565b61028a61042b366004612c24565b610ec6565b34801561043c57600080fd5b5061028a61044b366004612c72565b6111fc565b34801561045c57600080fd5b5061028a61123d565b34801561047157600080fd5b506102ce610480366004612a33565b6113c8565b34801561049157600080fd5b5061031c60085481565b3480156104a757600080fd5b506102a161143f565b3480156104bc57600080fd5b5061031c6104cb366004612af8565b6114cd565b3480156104dc57600080fd5b5061028a611554565b3480156104f157600080fd5b5061028a610500366004612cbb565b61158a565b34801561051157600080fd5b5061028a610520366004612af8565b61171c565b34801561053157600080fd5b5061028a610540366004612acc565b611768565b34801561055157600080fd5b506000546001600160a01b03166102ce565b34801561056f57600080fd5b50600a546105ad9063ffffffff808216916401000000008104821691600160401b82041690600160601b810461ffff1690600160701b900460ff1685565b6040805163ffffffff96871681529486166020860152929094169183019190915261ffff16606082015260ff909116608082015260a001610261565b3480156105f557600080fd5b506102a16117e1565b34801561060a57600080fd5b5061028a610619366004612cf6565b6117f0565b34801561062a57600080fd5b5061028a610639366004612d34565b6118b5565b34801561064a57600080fd5b506102a1610659366004612a33565b6118ed565b34801561066a57600080fd5b5061028a610679366004612acc565b6119c8565b61028a61068c366004612a33565b6119fc565b34801561069d57600080fd5b506102556106ac366004612da0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156106e657600080fd5b50600b546102ce906001600160a01b031681565b34801561070657600080fd5b506010546102ce906001600160a01b031681565b34801561072657600080fd5b5061028a610735366004612af8565b611b20565b34801561074657600080fd5b5061028a610755366004612a33565b611bb8565b34801561076657600080fd5b5061031c600d5481565b600061077b82611be7565b92915050565b6000546001600160a01b031633146107b45760405162461bcd60e51b81526004016107ab90612dce565b60405180910390fd5b600e54156108045760405162461bcd60e51b815260206004820152601a60248201527f5374617274696e6720696e64657820616c72656164792073657400000000000060448201526064016107ab565b600d55565b60606001805461081890612e03565b80601f016020809104026020016040519081016040528092919081815260200182805461084490612e03565b80156108915780601f1061086657610100808354040283529160200191610891565b820191906000526020600020905b81548152906001019060200180831161087457829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109145760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ab565b506000908152600560205260409020546001600160a01b031690565b600061093b826113c8565b9050806001600160a01b0316836001600160a01b031614156109a95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107ab565b336001600160a01b03821614806109c557506109c581336106ac565b610a375760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107ab565b610a418383611c0c565b505050565b6000546001600160a01b03163314610a705760405162461bcd60e51b81526004016107ab90612dce565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610a9c3382611c7a565b610ab85760405162461bcd60e51b81526004016107ab90612e3e565b610a41838383611d71565b604080518082019091526007546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610b049086612ea5565b610b0e9190612eda565b9150509250929050565b600a54640100000000900463ffffffff164210801590610b465750600a54600160401b900463ffffffff1642105b610b8a5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b60448201526064016107ab565b600b546001600160a01b0316610be25760405162461bcd60e51b815260206004820152601d60248201527f5768697465206c697374207369676e6572206e6f74207965742073657400000060448201526064016107ab565b600854610bef9083611f11565b3414610c0d5760405162461bcd60e51b81526004016107ab90612eee565b336000908152600f60205260409020548190610c2a908490612f19565b1115610c705760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d081b1a5b5a5d08195e18d959591959605a1b60448201526064016107ab565b6011546013546040805160208101929092523390820152606081018390526000919060800160405160208183030381529060405280519060200120604051602001610cd292919061190160f01b81526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506000610cf88286611f1d565b90506001600160a01b03811615801590610d1f5750600b546001600160a01b038281169116145b610d5f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016107ab565b336000908152600f6020526040902054610d7a908590612f19565b336000818152600f6020526040902091909155610d979085611f41565b5050505050565b6000546001600160a01b03163314610dc85760405162461bcd60e51b81526004016107ab90612dce565b60004711610e115760405162461bcd60e51b81526020600482015260166024820152754e6f2062616c616e636520746f20776974686472617760501b60448201526064016107ab565b6010546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610e5e576040519150601f19603f3d011682016040523d82523d6000602084013e610e63565b606091505b5050905080610ea85760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064016107ab565b50565b610a41838383604051806020016040528060008152506118b5565b6040805160a081018252600a5463ffffffff808216808452640100000000830482166020850152600160401b830490911693830193909352600160601b810461ffff166060830152600160701b900460ff166080820152904210801590610f365750806020015163ffffffff1642105b610f825760405162461bcd60e51b815260206004820152601760248201527f507269766174652073616c65206e6f742061637469766500000000000000000060448201526064016107ab565b600b546001600160a01b0316610fda5760405162461bcd60e51b815260206004820152601d60248201527f5768697465206c697374207369676e6572206e6f74207965742073657400000060448201526064016107ab565b600854610fe79084611f11565b34146110055760405162461bcd60e51b81526004016107ab90612eee565b336000908152600f60205260409020548290611022908590612f19565b11156110685760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d081b1a5b5a5d08195e18d959591959605a1b60448201526064016107ab565b806060015161ffff168360095461107f9190612f19565b11156110cd5760405162461bcd60e51b815260206004820152601b60248201527f507269766174652073616c65206c696d6974206578636565646564000000000060448201526064016107ab565b601154601254604080516020810192909252339082015260608101849052600091906080016040516020818303038152906040528051906020012060405160200161112f92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181529190528051602090910120905060006111558287611f1d565b90506001600160a01b0381161580159061117c5750600b546001600160a01b038281169116145b6111bc5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016107ab565b336000908152600f60205260409020546111d7908690612f19565b336000818152600f60205260409020919091556111f49086611f41565b505050505050565b6000546001600160a01b031633146112265760405162461bcd60e51b81526004016107ab90612dce565b805161123990600c906020840190612970565b5050565b6000546001600160a01b031633146112675760405162461bcd60e51b81526004016107ab90612dce565b600d546112b65760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e63652068617368206e6f742073657400000000000000000060448201526064016107ab565b600e54156112fa5760405162461bcd60e51b8152602060048201526011602482015270125b99195e08185b1c9958591e481cd95d607a1b60448201526064016107ab565b600a54600160401b900463ffffffff164210156113595760405162461bcd60e51b815260206004820152601d60248201527f546f6f206561726c7920746f20726f6c6c20737461727420696e64657800000060448201526064016107ab565b6000611366600143612f31565b60408051914060208301526bffffffffffffffffffffffff194160601b169082015244605482015260740160408051601f19818403018152919052805160209091012090506113b76108ae82612f48565b6113c2906001612f19565b600e5550565b6000818152600360205260408120546001600160a01b03168061077b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107ab565b600c805461144c90612e03565b80601f016020809104026020016040519081016040528092919081815260200182805461147890612e03565b80156114c55780601f1061149a576101008083540402835291602001916114c5565b820191906000526020600020905b8154815290600101906020018083116114a857829003601f168201915b505050505081565b60006001600160a01b0382166115385760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107ab565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461157e5760405162461bcd60e51b81526004016107ab90612dce565b6115886000611fd8565b565b6000546001600160a01b031633146115b45760405162461bcd60e51b81526004016107ab90612dce565b60006115bf86612028565b905060006115cc86612028565b905060006115d986612028565b905060006115e686612091565b905060006115f3866120f4565b90508463ffffffff1660001061161b5760405162461bcd60e51b81526004016107ab90612f5c565b8363ffffffff168563ffffffff16106116465760405162461bcd60e51b81526004016107ab90612f5c565b8263ffffffff168463ffffffff16106116715760405162461bcd60e51b81526004016107ab90612f5c565b6040805160a08101825263ffffffff968716808252958716602082018190529490961690860181905261ffff929092166060860181905260ff919091166080909501859052600a805467ffffffffffffffff1916909417640100000000909302929092176dffffffffffff00000000000000001916600160401b90910261ffff60601b191617600160601b9091021760ff60701b1916600160701b9092029190911790555050505050565b6000546001600160a01b031633146117465760405162461bcd60e51b81526004016107ab90612dce565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117925760405162461bcd60e51b81526004016107ab90612dce565b6001600160a01b0382166117d75760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b60448201526064016107ab565b6112398282612155565b60606002805461081890612e03565b6001600160a01b0382163314156118495760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ab565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118bf3383611c7a565b6118db5760405162461bcd60e51b81526004016107ab90612e3e565b6118e7848484846121f1565b50505050565b6000818152600360205260409020546060906001600160a01b031661196c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107ab565b6000611976612224565b9050600081511161199657604051806020016040528060008152506119c1565b806119a084612233565b6040516020016119b1929190612f82565b6040516020818303038152906040525b9392505050565b6000546001600160a01b031633146119f25760405162461bcd60e51b81526004016107ab90612dce565b6112398282611f41565b6040805160a081018252600a5463ffffffff8082168352640100000000820481166020840152600160401b820416928201839052600160601b810461ffff166060830152600160701b900460ff16608082015290421015611a945760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016107ab565b600854611aa19083611f11565b3414611abf5760405162461bcd60e51b81526004016107ab90612eee565b806080015160ff16821115611b165760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e206c696d697420657863656564656400000000000060448201526064016107ab565b6112393383611f41565b6000546001600160a01b03163314611b4a5760405162461bcd60e51b81526004016107ab90612dce565b6001600160a01b038116611baf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ab565b610ea881611fd8565b6000546001600160a01b03163314611be25760405162461bcd60e51b81526004016107ab90612dce565b600855565b60006001600160e01b0319821663152a902d60e11b148061077b575061077b82612331565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c41826113c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611cf35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ab565b6000611cfe836113c8565b9050806001600160a01b0316846001600160a01b03161480611d395750836001600160a01b0316611d2e8461089b565b6001600160a01b0316145b80611d6957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d84826113c8565b6001600160a01b031614611dec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107ab565b6001600160a01b038216611e4e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ab565b611e59600082611c0c565b6001600160a01b0383166000908152600460205260408120805460019290611e82908490612f31565b90915550506001600160a01b0382166000908152600460205260408120805460019290611eb0908490612f19565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006119c18284612ea5565b6000806000611f2c8585612381565b91509150611f39816123f1565b509392505050565b6009546108ae90611f5290836125ac565b1115611f995760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b60448201526064016107ab565b60095460005b82811015611fd057611fb2600183612f19565b9150611fbe84836125b8565b80611fc881612fb1565b915050611f9f565b506009555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600063ffffffff82111561208d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016107ab565b5090565b600061ffff82111561208d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201526536206269747360d01b60648201526084016107ab565b600060ff82111561208d5760405162461bcd60e51b815260206004820152602560248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2038604482015264206269747360d81b60648201526084016107ab565b6127108111156121a75760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016107ab565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b6121fc848484611d71565b612208848484846125d2565b6118e75760405162461bcd60e51b81526004016107ab90612fcc565b6060600c805461081890612e03565b6060816122575750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612281578061226b81612fb1565b915061227a9050600a83612eda565b915061225b565b60008167ffffffffffffffff81111561229c5761229c612b78565b6040519080825280601f01601f1916602001820160405280156122c6576020820181803683370190505b5090505b8415611d69576122db600183612f31565b91506122e8600a86612f48565b6122f3906030612f19565b60f81b8183815181106123085761230861301e565b60200101906001600160f81b031916908160001a90535061232a600a86612eda565b94506122ca565b60006001600160e01b031982166380ac58cd60e01b148061236257506001600160e01b03198216635b5e139f60e01b145b8061077b57506301ffc9a760e01b6001600160e01b031983161461077b565b6000808251604114156123b85760208301516040840151606085015160001a6123ac878285856126df565b945094505050506123ea565b8251604014156123e257602083015160408401516123d78683836127cc565b9350935050506123ea565b506000905060025b9250929050565b600081600481111561240557612405613034565b141561240e5750565b600181600481111561242257612422613034565b14156124705760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107ab565b600281600481111561248457612484613034565b14156124d25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107ab565b60038160048111156124e6576124e6613034565b141561253f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107ab565b600481600481111561255357612553613034565b1415610ea85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107ab565b60006119c18284612f19565b6112398282604051806020016040528060008152506127fb565b60006001600160a01b0384163b156126d457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061261690339089908890889060040161304a565b602060405180830381600087803b15801561263057600080fd5b505af1925050508015612660575060408051601f3d908101601f1916820190925261265d91810190613087565b60015b6126ba573d80801561268e576040519150601f19603f3d011682016040523d82523d6000602084013e612693565b606091505b5080516126b25760405162461bcd60e51b81526004016107ab90612fcc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d69565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561271657506000905060036127c3565b8460ff16601b1415801561272e57508460ff16601c14155b1561273f57506000905060046127c3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612793573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127bc576000600192509250506127c3565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127ed878288856126df565b935093505050935093915050565b612805838361282e565b61281260008484846125d2565b610a415760405162461bcd60e51b81526004016107ab90612fcc565b6001600160a01b0382166128845760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ab565b6000818152600360205260409020546001600160a01b0316156128e95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ab565b6001600160a01b0382166000908152600460205260408120805460019290612912908490612f19565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461297c90612e03565b90600052602060002090601f01602090048101928261299e57600085556129e4565b82601f106129b757805160ff19168380011785556129e4565b828001600101855582156129e4579182015b828111156129e45782518255916020019190600101906129c9565b5061208d9291505b8082111561208d57600081556001016129ec565b6001600160e01b031981168114610ea857600080fd5b600060208284031215612a2857600080fd5b81356119c181612a00565b600060208284031215612a4557600080fd5b5035919050565b60005b83811015612a67578181015183820152602001612a4f565b838111156118e75750506000910152565b60008151808452612a90816020860160208601612a4c565b601f01601f19169290920160200192915050565b6020815260006119c16020830184612a78565b6001600160a01b0381168114610ea857600080fd5b60008060408385031215612adf57600080fd5b8235612aea81612ab7565b946020939093013593505050565b600060208284031215612b0a57600080fd5b81356119c181612ab7565b600080600060608486031215612b2a57600080fd5b8335612b3581612ab7565b92506020840135612b4581612ab7565b929592945050506040919091013590565b60008060408385031215612b6957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612ba957612ba9612b78565b604051601f8501601f19908116603f01168101908282118183101715612bd157612bd1612b78565b81604052809350858152868686011115612bea57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612c1557600080fd5b6119c183833560208501612b8e565b600080600060608486031215612c3957600080fd5b833567ffffffffffffffff811115612c5057600080fd5b612c5c86828701612c04565b9660208601359650604090950135949350505050565b600060208284031215612c8457600080fd5b813567ffffffffffffffff811115612c9b57600080fd5b8201601f81018413612cac57600080fd5b611d6984823560208401612b8e565b600080600080600060a08688031215612cd357600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008060408385031215612d0957600080fd5b8235612d1481612ab7565b915060208301358015158114612d2957600080fd5b809150509250929050565b60008060008060808587031215612d4a57600080fd5b8435612d5581612ab7565b93506020850135612d6581612ab7565b925060408501359150606085013567ffffffffffffffff811115612d8857600080fd5b612d9487828801612c04565b91505092959194509250565b60008060408385031215612db357600080fd5b8235612dbe81612ab7565b91506020830135612d2981612ab7565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612e1757607f821691505b60208210811415612e3857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612ebf57612ebf612e8f565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612ee957612ee9612ec4565b500490565b602080825260119082015270125b98dbdc9c9958dd081c185e5b595b9d607a1b604082015260600190565b60008219821115612f2c57612f2c612e8f565b500190565b600082821015612f4357612f43612e8f565b500390565b600082612f5757612f57612ec4565b500690565b6020808252600c908201526b496e76616c69642074696d6560a01b604082015260600190565b60008351612f94818460208801612a4c565b835190830190612fa8818360208801612a4c565b01949350505050565b6000600019821415612fc557612fc5612e8f565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061307d90830184612a78565b9695505050505050565b60006020828403121561309957600080fd5b81516119c181612a0056fea26469706673582212201c9e5c909bd3983da3c3f677f3cc416d2a792e072c8f75e4b82ae48085acacda64736f6c63430008080033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000007666ac59d43dfaf938cd603cbc40c6e4600c5bf3db5313566d2d2aacc38f13b656e7db7b83b66a224b14dff2be52d984134b7700000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57636f763648733941596363766e556e52564c754b6e525750357744686e6154787336424e75385a544d6a372f00000000000000000000

Deployed Bytecode

0x6080604052600436106102305760003560e01c80636c0360eb1161012e578063b88d4fde116100ab578063ef81b4d41161006f578063ef81b4d4146106da578063f2bcd022146106fa578063f2fde38b1461071a578063f4a0a5281461073a578063ff1b65561461075a57600080fd5b8063b88d4fde1461061e578063c87b56dd1461063e578063cc47a40b1461065e578063d96a094a1461067e578063e985e9c51461069157600080fd5b80638c7ea24b116100f25780638c7ea24b146105255780638da5cb5b1461054557806390aa0b0f1461056357806395d89b41146105e9578063a22cb465146105fe57600080fd5b80636c0360eb1461049b57806370a08231146104b0578063715018a6146104d057806372d29c90146104e557806384bdb6e01461050557600080fd5b80632a3dd109116101bc5780634537fb27116101805780634537fb271461041d57806355f804b3146104305780635aca1982146104505780636352211e146104655780636817c76c1461048557600080fd5b80632a3dd109146103805780632a55205a146103965780633266e957146103d55780633ccfd60b146103e857806342842e0e146103fd57600080fd5b8063095ea7b311610203578063095ea7b3146102e657806318160ddd1461030657806319d1997a1461032a57806321b8092e1461034057806323b872dd1461036057600080fd5b806301ffc9a714610235578063069683101461026a57806306fdde031461028c578063081812fc146102ae575b600080fd5b34801561024157600080fd5b50610255610250366004612a16565b610770565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b5061028a610285366004612a33565b610781565b005b34801561029857600080fd5b506102a1610809565b6040516102619190612aa4565b3480156102ba57600080fd5b506102ce6102c9366004612a33565b61089b565b6040516001600160a01b039091168152602001610261565b3480156102f257600080fd5b5061028a610301366004612acc565b610930565b34801561031257600080fd5b5061031c60095481565b604051908152602001610261565b34801561033657600080fd5b5061031c6108ae81565b34801561034c57600080fd5b5061028a61035b366004612af8565b610a46565b34801561036c57600080fd5b5061028a61037b366004612b15565b610a92565b34801561038c57600080fd5b5061031c600e5481565b3480156103a257600080fd5b506103b66103b1366004612b56565b610ac3565b604080516001600160a01b039093168352602083019190915201610261565b61028a6103e3366004612c24565b610b18565b3480156103f457600080fd5b5061028a610d9e565b34801561040957600080fd5b5061028a610418366004612b15565b610eab565b61028a61042b366004612c24565b610ec6565b34801561043c57600080fd5b5061028a61044b366004612c72565b6111fc565b34801561045c57600080fd5b5061028a61123d565b34801561047157600080fd5b506102ce610480366004612a33565b6113c8565b34801561049157600080fd5b5061031c60085481565b3480156104a757600080fd5b506102a161143f565b3480156104bc57600080fd5b5061031c6104cb366004612af8565b6114cd565b3480156104dc57600080fd5b5061028a611554565b3480156104f157600080fd5b5061028a610500366004612cbb565b61158a565b34801561051157600080fd5b5061028a610520366004612af8565b61171c565b34801561053157600080fd5b5061028a610540366004612acc565b611768565b34801561055157600080fd5b506000546001600160a01b03166102ce565b34801561056f57600080fd5b50600a546105ad9063ffffffff808216916401000000008104821691600160401b82041690600160601b810461ffff1690600160701b900460ff1685565b6040805163ffffffff96871681529486166020860152929094169183019190915261ffff16606082015260ff909116608082015260a001610261565b3480156105f557600080fd5b506102a16117e1565b34801561060a57600080fd5b5061028a610619366004612cf6565b6117f0565b34801561062a57600080fd5b5061028a610639366004612d34565b6118b5565b34801561064a57600080fd5b506102a1610659366004612a33565b6118ed565b34801561066a57600080fd5b5061028a610679366004612acc565b6119c8565b61028a61068c366004612a33565b6119fc565b34801561069d57600080fd5b506102556106ac366004612da0565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156106e657600080fd5b50600b546102ce906001600160a01b031681565b34801561070657600080fd5b506010546102ce906001600160a01b031681565b34801561072657600080fd5b5061028a610735366004612af8565b611b20565b34801561074657600080fd5b5061028a610755366004612a33565b611bb8565b34801561076657600080fd5b5061031c600d5481565b600061077b82611be7565b92915050565b6000546001600160a01b031633146107b45760405162461bcd60e51b81526004016107ab90612dce565b60405180910390fd5b600e54156108045760405162461bcd60e51b815260206004820152601a60248201527f5374617274696e6720696e64657820616c72656164792073657400000000000060448201526064016107ab565b600d55565b60606001805461081890612e03565b80601f016020809104026020016040519081016040528092919081815260200182805461084490612e03565b80156108915780601f1061086657610100808354040283529160200191610891565b820191906000526020600020905b81548152906001019060200180831161087457829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166109145760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ab565b506000908152600560205260409020546001600160a01b031690565b600061093b826113c8565b9050806001600160a01b0316836001600160a01b031614156109a95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107ab565b336001600160a01b03821614806109c557506109c581336106ac565b610a375760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107ab565b610a418383611c0c565b505050565b6000546001600160a01b03163314610a705760405162461bcd60e51b81526004016107ab90612dce565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610a9c3382611c7a565b610ab85760405162461bcd60e51b81526004016107ab90612e3e565b610a41838383611d71565b604080518082019091526007546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610b049086612ea5565b610b0e9190612eda565b9150509250929050565b600a54640100000000900463ffffffff164210801590610b465750600a54600160401b900463ffffffff1642105b610b8a5760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b60448201526064016107ab565b600b546001600160a01b0316610be25760405162461bcd60e51b815260206004820152601d60248201527f5768697465206c697374207369676e6572206e6f74207965742073657400000060448201526064016107ab565b600854610bef9083611f11565b3414610c0d5760405162461bcd60e51b81526004016107ab90612eee565b336000908152600f60205260409020548190610c2a908490612f19565b1115610c705760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d081b1a5b5a5d08195e18d959591959605a1b60448201526064016107ab565b6011546013546040805160208101929092523390820152606081018390526000919060800160405160208183030381529060405280519060200120604051602001610cd292919061190160f01b81526002810192909252602282015260420190565b60408051601f19818403018152919052805160209091012090506000610cf88286611f1d565b90506001600160a01b03811615801590610d1f5750600b546001600160a01b038281169116145b610d5f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016107ab565b336000908152600f6020526040902054610d7a908590612f19565b336000818152600f6020526040902091909155610d979085611f41565b5050505050565b6000546001600160a01b03163314610dc85760405162461bcd60e51b81526004016107ab90612dce565b60004711610e115760405162461bcd60e51b81526020600482015260166024820152754e6f2062616c616e636520746f20776974686472617760501b60448201526064016107ab565b6010546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610e5e576040519150601f19603f3d011682016040523d82523d6000602084013e610e63565b606091505b5050905080610ea85760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064016107ab565b50565b610a41838383604051806020016040528060008152506118b5565b6040805160a081018252600a5463ffffffff808216808452640100000000830482166020850152600160401b830490911693830193909352600160601b810461ffff166060830152600160701b900460ff166080820152904210801590610f365750806020015163ffffffff1642105b610f825760405162461bcd60e51b815260206004820152601760248201527f507269766174652073616c65206e6f742061637469766500000000000000000060448201526064016107ab565b600b546001600160a01b0316610fda5760405162461bcd60e51b815260206004820152601d60248201527f5768697465206c697374207369676e6572206e6f74207965742073657400000060448201526064016107ab565b600854610fe79084611f11565b34146110055760405162461bcd60e51b81526004016107ab90612eee565b336000908152600f60205260409020548290611022908590612f19565b11156110685760405162461bcd60e51b815260206004820152601560248201527415d85b1b195d081b1a5b5a5d08195e18d959591959605a1b60448201526064016107ab565b806060015161ffff168360095461107f9190612f19565b11156110cd5760405162461bcd60e51b815260206004820152601b60248201527f507269766174652073616c65206c696d6974206578636565646564000000000060448201526064016107ab565b601154601254604080516020810192909252339082015260608101849052600091906080016040516020818303038152906040528051906020012060405160200161112f92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181529190528051602090910120905060006111558287611f1d565b90506001600160a01b0381161580159061117c5750600b546001600160a01b038281169116145b6111bc5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016107ab565b336000908152600f60205260409020546111d7908690612f19565b336000818152600f60205260409020919091556111f49086611f41565b505050505050565b6000546001600160a01b031633146112265760405162461bcd60e51b81526004016107ab90612dce565b805161123990600c906020840190612970565b5050565b6000546001600160a01b031633146112675760405162461bcd60e51b81526004016107ab90612dce565b600d546112b65760405162461bcd60e51b815260206004820152601760248201527f50726f76656e616e63652068617368206e6f742073657400000000000000000060448201526064016107ab565b600e54156112fa5760405162461bcd60e51b8152602060048201526011602482015270125b99195e08185b1c9958591e481cd95d607a1b60448201526064016107ab565b600a54600160401b900463ffffffff164210156113595760405162461bcd60e51b815260206004820152601d60248201527f546f6f206561726c7920746f20726f6c6c20737461727420696e64657800000060448201526064016107ab565b6000611366600143612f31565b60408051914060208301526bffffffffffffffffffffffff194160601b169082015244605482015260740160408051601f19818403018152919052805160209091012090506113b76108ae82612f48565b6113c2906001612f19565b600e5550565b6000818152600360205260408120546001600160a01b03168061077b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107ab565b600c805461144c90612e03565b80601f016020809104026020016040519081016040528092919081815260200182805461147890612e03565b80156114c55780601f1061149a576101008083540402835291602001916114c5565b820191906000526020600020905b8154815290600101906020018083116114a857829003601f168201915b505050505081565b60006001600160a01b0382166115385760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107ab565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461157e5760405162461bcd60e51b81526004016107ab90612dce565b6115886000611fd8565b565b6000546001600160a01b031633146115b45760405162461bcd60e51b81526004016107ab90612dce565b60006115bf86612028565b905060006115cc86612028565b905060006115d986612028565b905060006115e686612091565b905060006115f3866120f4565b90508463ffffffff1660001061161b5760405162461bcd60e51b81526004016107ab90612f5c565b8363ffffffff168563ffffffff16106116465760405162461bcd60e51b81526004016107ab90612f5c565b8263ffffffff168463ffffffff16106116715760405162461bcd60e51b81526004016107ab90612f5c565b6040805160a08101825263ffffffff968716808252958716602082018190529490961690860181905261ffff929092166060860181905260ff919091166080909501859052600a805467ffffffffffffffff1916909417640100000000909302929092176dffffffffffff00000000000000001916600160401b90910261ffff60601b191617600160601b9091021760ff60701b1916600160701b9092029190911790555050505050565b6000546001600160a01b031633146117465760405162461bcd60e51b81526004016107ab90612dce565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117925760405162461bcd60e51b81526004016107ab90612dce565b6001600160a01b0382166117d75760405162461bcd60e51b815260206004820152600c60248201526b7a65726f206164647265737360a01b60448201526064016107ab565b6112398282612155565b60606002805461081890612e03565b6001600160a01b0382163314156118495760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107ab565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118bf3383611c7a565b6118db5760405162461bcd60e51b81526004016107ab90612e3e565b6118e7848484846121f1565b50505050565b6000818152600360205260409020546060906001600160a01b031661196c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107ab565b6000611976612224565b9050600081511161199657604051806020016040528060008152506119c1565b806119a084612233565b6040516020016119b1929190612f82565b6040516020818303038152906040525b9392505050565b6000546001600160a01b031633146119f25760405162461bcd60e51b81526004016107ab90612dce565b6112398282611f41565b6040805160a081018252600a5463ffffffff8082168352640100000000820481166020840152600160401b820416928201839052600160601b810461ffff166060830152600160701b900460ff16608082015290421015611a945760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016107ab565b600854611aa19083611f11565b3414611abf5760405162461bcd60e51b81526004016107ab90612eee565b806080015160ff16821115611b165760405162461bcd60e51b815260206004820152601a60248201527f5472616e73616374696f6e206c696d697420657863656564656400000000000060448201526064016107ab565b6112393383611f41565b6000546001600160a01b03163314611b4a5760405162461bcd60e51b81526004016107ab90612dce565b6001600160a01b038116611baf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ab565b610ea881611fd8565b6000546001600160a01b03163314611be25760405162461bcd60e51b81526004016107ab90612dce565b600855565b60006001600160e01b0319821663152a902d60e11b148061077b575061077b82612331565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c41826113c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600360205260408120546001600160a01b0316611cf35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107ab565b6000611cfe836113c8565b9050806001600160a01b0316846001600160a01b03161480611d395750836001600160a01b0316611d2e8461089b565b6001600160a01b0316145b80611d6957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611d84826113c8565b6001600160a01b031614611dec5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107ab565b6001600160a01b038216611e4e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ab565b611e59600082611c0c565b6001600160a01b0383166000908152600460205260408120805460019290611e82908490612f31565b90915550506001600160a01b0382166000908152600460205260408120805460019290611eb0908490612f19565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006119c18284612ea5565b6000806000611f2c8585612381565b91509150611f39816123f1565b509392505050565b6009546108ae90611f5290836125ac565b1115611f995760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b60448201526064016107ab565b60095460005b82811015611fd057611fb2600183612f19565b9150611fbe84836125b8565b80611fc881612fb1565b915050611f9f565b506009555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600063ffffffff82111561208d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203360448201526532206269747360d01b60648201526084016107ab565b5090565b600061ffff82111561208d5760405162461bcd60e51b815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203160448201526536206269747360d01b60648201526084016107ab565b600060ff82111561208d5760405162461bcd60e51b815260206004820152602560248201527f53616665436173743a2076616c756520646f65736e27742066697420696e2038604482015264206269747360d81b60648201526084016107ab565b6127108111156121a75760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016107ab565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b6121fc848484611d71565b612208848484846125d2565b6118e75760405162461bcd60e51b81526004016107ab90612fcc565b6060600c805461081890612e03565b6060816122575750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612281578061226b81612fb1565b915061227a9050600a83612eda565b915061225b565b60008167ffffffffffffffff81111561229c5761229c612b78565b6040519080825280601f01601f1916602001820160405280156122c6576020820181803683370190505b5090505b8415611d69576122db600183612f31565b91506122e8600a86612f48565b6122f3906030612f19565b60f81b8183815181106123085761230861301e565b60200101906001600160f81b031916908160001a90535061232a600a86612eda565b94506122ca565b60006001600160e01b031982166380ac58cd60e01b148061236257506001600160e01b03198216635b5e139f60e01b145b8061077b57506301ffc9a760e01b6001600160e01b031983161461077b565b6000808251604114156123b85760208301516040840151606085015160001a6123ac878285856126df565b945094505050506123ea565b8251604014156123e257602083015160408401516123d78683836127cc565b9350935050506123ea565b506000905060025b9250929050565b600081600481111561240557612405613034565b141561240e5750565b600181600481111561242257612422613034565b14156124705760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107ab565b600281600481111561248457612484613034565b14156124d25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107ab565b60038160048111156124e6576124e6613034565b141561253f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107ab565b600481600481111561255357612553613034565b1415610ea85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107ab565b60006119c18284612f19565b6112398282604051806020016040528060008152506127fb565b60006001600160a01b0384163b156126d457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061261690339089908890889060040161304a565b602060405180830381600087803b15801561263057600080fd5b505af1925050508015612660575060408051601f3d908101601f1916820190925261265d91810190613087565b60015b6126ba573d80801561268e576040519150601f19603f3d011682016040523d82523d6000602084013e612693565b606091505b5080516126b25760405162461bcd60e51b81526004016107ab90612fcc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d69565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561271657506000905060036127c3565b8460ff16601b1415801561272e57508460ff16601c14155b1561273f57506000905060046127c3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612793573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127bc576000600192509250506127c3565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127ed878288856126df565b935093505050935093915050565b612805838361282e565b61281260008484846125d2565b610a415760405162461bcd60e51b81526004016107ab90612fcc565b6001600160a01b0382166128845760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ab565b6000818152600360205260409020546001600160a01b0316156128e95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ab565b6001600160a01b0382166000908152600460205260408120805460019290612912908490612f19565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461297c90612e03565b90600052602060002090601f01602090048101928261299e57600085556129e4565b82601f106129b757805160ff19168380011785556129e4565b828001600101855582156129e4579182015b828111156129e45782518255916020019190600101906129c9565b5061208d9291505b8082111561208d57600081556001016129ec565b6001600160e01b031981168114610ea857600080fd5b600060208284031215612a2857600080fd5b81356119c181612a00565b600060208284031215612a4557600080fd5b5035919050565b60005b83811015612a67578181015183820152602001612a4f565b838111156118e75750506000910152565b60008151808452612a90816020860160208601612a4c565b601f01601f19169290920160200192915050565b6020815260006119c16020830184612a78565b6001600160a01b0381168114610ea857600080fd5b60008060408385031215612adf57600080fd5b8235612aea81612ab7565b946020939093013593505050565b600060208284031215612b0a57600080fd5b81356119c181612ab7565b600080600060608486031215612b2a57600080fd5b8335612b3581612ab7565b92506020840135612b4581612ab7565b929592945050506040919091013590565b60008060408385031215612b6957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612ba957612ba9612b78565b604051601f8501601f19908116603f01168101908282118183101715612bd157612bd1612b78565b81604052809350858152868686011115612bea57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612c1557600080fd5b6119c183833560208501612b8e565b600080600060608486031215612c3957600080fd5b833567ffffffffffffffff811115612c5057600080fd5b612c5c86828701612c04565b9660208601359650604090950135949350505050565b600060208284031215612c8457600080fd5b813567ffffffffffffffff811115612c9b57600080fd5b8201601f81018413612cac57600080fd5b611d6984823560208401612b8e565b600080600080600060a08688031215612cd357600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008060408385031215612d0957600080fd5b8235612d1481612ab7565b915060208301358015158114612d2957600080fd5b809150509250929050565b60008060008060808587031215612d4a57600080fd5b8435612d5581612ab7565b93506020850135612d6581612ab7565b925060408501359150606085013567ffffffffffffffff811115612d8857600080fd5b612d9487828801612c04565b91505092959194509250565b60008060408385031215612db357600080fd5b8235612dbe81612ab7565b91506020830135612d2981612ab7565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612e1757607f821691505b60208210811415612e3857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612ebf57612ebf612e8f565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612ee957612ee9612ec4565b500490565b602080825260119082015270125b98dbdc9c9958dd081c185e5b595b9d607a1b604082015260600190565b60008219821115612f2c57612f2c612e8f565b500190565b600082821015612f4357612f43612e8f565b500390565b600082612f5757612f57612ec4565b500690565b6020808252600c908201526b496e76616c69642074696d6560a01b604082015260600190565b60008351612f94818460208801612a4c565b835190830190612fa8818360208801612a4c565b01949350505050565b6000600019821415612fc557612fc5612e8f565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061307d90830184612a78565b9695505050505050565b60006020828403121561309957600080fd5b81516119c181612a0056fea26469706673582212201c9e5c909bd3983da3c3f677f3cc416d2a792e072c8f75e4b82ae48085acacda64736f6c63430008080033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000007666ac59d43dfaf938cd603cbc40c6e4600c5bf3db5313566d2d2aacc38f13b656e7db7b83b66a224b14dff2be52d984134b7700000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d57636f763648733941596363766e556e52564c754b6e525750357744686e6154787336424e75385a544d6a372f00000000000000000000

-----Decoded View---------------
Arg [0] : inputBaseUri (string): ipfs://QmWcov6Hs9AYccvnUnRVLuKnRWP5wDhnaTxs6BNu8ZTMj7/
Arg [1] : inputWithdrawalAddress (address): 0x07666ac59D43dfaf938Cd603cBc40C6e4600C5bF
Arg [2] : provenance (uint256): 27911222707580884619593149239111280666729557248758498726632668972645015140208

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000007666ac59d43dfaf938cd603cbc40c6e4600c5bf
Arg [2] : 3db5313566d2d2aacc38f13b656e7db7b83b66a224b14dff2be52d984134b770
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d57636f763648733941596363766e556e52564c754b6e52
Arg [5] : 5750357744686e6154787336424e75385a544d6a372f00000000000000000000


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.