ERC-721
Overview
Max Total Supply
25 MBH
Holders
23
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MBHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MekaBeastHeroes
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-01-16 */ /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; ////import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; ////import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity 0.8.17; ////import "@openzeppelin/contracts/access/Ownable.sol"; ////import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; abstract contract TeamPaidFirst is Ownable, ReentrancyGuard { struct PayeeDetail { address payable payeeAddress; uint256 shares; } address payable public projectAddress; PayeeDetail[] public payeeDetails; uint256 public balanceAfterTeamPayments; uint8 private _shareDenominator; mapping(address => bool) private _payees; event TeamMemberPaid( address payee, uint256 payableBalance, uint256 paymentAmount ); modifier onlyOwnerOrTeamMember() { if (_msgSender() == owner() || _payees[_msgSender()]) { _; } else { revert NotOwnerOrPayee(); } } error ZeroAddress(); error ZeroAmount(); error SharesExceeded(); error InvalidShareDenominator(); error PaymentFailed(); error NotOwnerOrPayee(); error NoPayableBalance(); error ExceedsWithdrawLimit(); constructor(address payable project, uint8 shareDenominator) { if (project == address(0)) { revert ZeroAddress(); } if (shareDenominator == 0) { revert InvalidShareDenominator(); } projectAddress = project; _shareDenominator = shareDenominator; } function _addPayee(address payable payeeAddress, uint256 shares) internal onlyOwner { PayeeDetail memory payeeDetail = PayeeDetail(payeeAddress, shares); _payees[payeeDetail.payeeAddress] = true; payeeDetails.push(payeeDetail); _validateAllocation(); } function _validateAllocation() private view { uint256 totalAllocatedShares; for (uint8 i = 0; i < payeeDetails.length; i++) { PayeeDetail memory payeeDetail = payeeDetails[i]; if (payeeDetail.payeeAddress == address(0)) { revert ZeroAddress(); } totalAllocatedShares = totalAllocatedShares + payeeDetail.shares; if (totalAllocatedShares / _shareDenominator > 100) { revert SharesExceeded(); } } } function payTeam() external onlyOwnerOrTeamMember nonReentrant { if(address(this).balance <= balanceAfterTeamPayments) { revert NoPayableBalance(); } uint256 payableBalance = address(this).balance - balanceAfterTeamPayments; for (uint256 i = 0; i < payeeDetails.length; i++) { PayeeDetail memory payee = payeeDetails[i]; uint256 paymentAmount = (payableBalance * (payee.shares/_shareDenominator)) / 100; // Keep track of the balance after each time the team is paid so we don't pay the team // on amounts they've already been paid from balanceAfterTeamPayments += (payableBalance - paymentAmount); // solhint-disable-next-line multiple-sends if (!payable(payee.payeeAddress).send(paymentAmount)) { revert PaymentFailed(); } emit TeamMemberPaid( payee.payeeAddress, payableBalance, paymentAmount ); } } function withdraw(uint256 amount) external onlyOwner nonReentrant { if(amount == 0) { revert ZeroAmount(); } if(amount > balanceAfterTeamPayments) { revert ExceedsWithdrawLimit(); } balanceAfterTeamPayments -= amount; if (!payable(projectAddress).send(amount)) { revert PaymentFailed(); } } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; ////import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; ////import "../../interfaces/IERC2981.sol"; ////import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * ////IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; ////import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } /** * SourceUnit: MekaBeastHeroes.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity 0.8.17; ////import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; ////import "@openzeppelin/contracts/utils/Strings.sol"; ////import "@openzeppelin/contracts/token/common/ERC2981.sol"; ////import "erc721a/contracts/ERC721A.sol"; ////import "../../../../Common/Contracts/paper-hand-labs/TeamPaidFirst.sol"; /* ███╗ ███╗███████╗██╗ ██╗ █████╗ ██████╗ ███████╗ █████╗ ███████╗████████╗ ████╗ ████║██╔════╝██║ ██╔╝██╔══██╗ ██╔══██╗██╔════╝██╔══██╗██╔════╝╚══██╔══╝ ██╔████╔██║█████╗ █████╔╝ ███████║ ██████╔╝█████╗ ███████║███████╗ ██║ ██║╚██╔╝██║██╔══╝ ██╔═██╗ ██╔══██║ ██╔══██╗██╔══╝ ██╔══██║╚════██║ ██║ ██║ ╚═╝ ██║███████╗██║ ██╗██║ ██║ ██████╔╝███████╗██║ ██║███████║ ██║ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ██╗ ██╗███████╗██████╗ ██████╗ ███████╗███████╗ ██║ ██║██╔════╝██╔══██╗██╔═══██╗██╔════╝██╔════╝ ███████║█████╗ ██████╔╝██║ ██║█████╗ ███████╗ ██╔══██║██╔══╝ ██╔══██╗██║ ██║██╔══╝ ╚════██║ ██║ ██║███████╗██║ ██║╚██████╔╝███████╗███████║ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝ */ /** @title Meka Beast Heroes @author Paper Hand Labs <hello[at]paperhandlabs[dot]com> */ contract MekaBeastHeroes is ERC721A, ERC2981, TeamPaidFirst { using Strings for uint256; uint256 public constant MAX_SUPPLY = 300; uint8 public constant DAILY_ACCRUAL_RATE = 12; uint256 public mintPrice = 0.488 ether; bytes32 public allowListMerkleRoot; bool public mintActive; uint256 public revealedCount; // (minter => number of mints) mapping(address => uint8) public mintCounts; // (tokenId => epoch timestamp since mint or the last transfer) mapping(uint256 => uint256) public tokenAccrualStart; string public baseURI; string public contractURI; address private constant _TREASURY = 0x150A156f1937F6c9EBd9547c13e108d43332CB4a; address private constant _PAPER_HAND_LABS = 0x338E0421b72dA8ADc371f3247255A8c7dc4fa69d; // (tokenId => should override accrual start date reset) mapping(uint256 => bool) private _overrideTokenAccrualReset; event MintStateChanged(bool active); event MintPriceChanged(uint256 newPrice); event BatchRevealed(uint256 batchSize, uint256 totalRevealed); event AccrualReset( uint256 indexed tokenId, uint256 indexed timestamp, address indexed holder ); /** @notice Ensures that the msg.sender is present in the merkle tree by validating the provided proof against the merkle root */ modifier validProof(bytes32[] calldata merkleProof) { if ( !MerkleProof.verify( merkleProof, allowListMerkleRoot, keccak256(abi.encodePacked(_msgSender())) ) ) { revert InvalidProof(); } _; } error NotOwner(); error QueryForNonexistentToken(); error InvalidProof(); error EmptyString(string source); error MintInactive(); error IncorrectAmount(); error AllowedMintQuantityExceeded(); error InvalidMerkleRoot(); error ExceedsMaxSupply(); error ZeroQuantity(); constructor( string memory name, string memory symbol, string memory baseUri, string memory contractUri ) ERC721A(name, symbol) TeamPaidFirst(payable(_TREASURY), 1) { if (bytes(name).length == 0) { revert EmptyString("name"); } if (bytes(symbol).length == 0) { revert EmptyString("symbol"); } if (bytes(baseUri).length == 0) { revert EmptyString("baseUri"); } if (bytes(contractUri).length == 0) { revert EmptyString("contractUri"); } baseURI = baseUri; contractURI = contractUri; // PHL, 9% _addPayee(payable(_PAPER_HAND_LABS), 9); } /** @notice Allows individuals on the allow list to mint 1 NFT. @param merkleProof the merkle proof used to prove that the msg.sender is, in fact, part of the allow list. */ function mint(bytes32[] calldata merkleProof) external payable nonReentrant validProof(merkleProof) { if (!mintActive) { revert MintInactive(); } if (msg.value != mintPrice) { revert IncorrectAmount(); } if (mintCounts[_msgSender()] != 0) { revert AllowedMintQuantityExceeded(); } mintCounts[_msgSender()] = 1; _internalMint(_msgSender(), 1); } /** @notice Allows the contract owner to mint and transfer NFTs to the the specified address. @param recipient the address that the NFT should be transferred to @param qty the number of NFTs to mint and transfer to the `recipient` */ function mintTo(address recipient, uint256 qty) external nonReentrant onlyOwner { _internalMint(recipient, qty); } /** @notice Allows holders - or accounts approved by the owner - to burn the specified NFT. @dev {ERC721A-_burn} validates that the caller is the owner or approved @param tokenId The id of the NFT/token to burn */ function burn(uint256 tokenId) external { _burn(tokenId, true); tokenAccrualStart[tokenId] = 0; } /** @notice Allows holders - or accounts approved by the owner - to transfer their NFT without losing their accrued ORB energy. @dev We prevent the token accruals from being reset by overriding the accrual start date reset through `_overrideTokenAccrualReset`, which is checked in `_afterTokenTransfers`. @dev {ERC721A-safeTransferFrom} validates that the caller is the owner or approved @param tokenId the Id of the NFT/token to transfer. @param recipient The account that the NFT should be transferred to */ function transferWithAccrual(uint256 tokenId, address recipient) external nonReentrant { _overrideTokenAccrualReset[tokenId] = true; super.safeTransferFrom(_msgSender(), recipient, tokenId); } /** @notice Allows the contract owner to set the baseURI. @param newURI the new baseURI */ function setBaseURI(string calldata newURI) external onlyOwner { if (bytes(newURI).length == 0) { revert EmptyString("newURI"); } baseURI = newURI; } /** @notice Allows the contract owner to set the contractURI. @param newURI the new contractURI */ function setContractURI(string calldata newURI) external onlyOwner { if (bytes(newURI).length == 0) { revert EmptyString("newURI"); } contractURI = newURI; } /** @notice Allows the contract owner to activate/deactivate the minting functionality. @param active the boolean value indication whether minting is allowed */ function setMintState(bool active) external onlyOwner { if (allowListMerkleRoot == bytes32(0)) { revert InvalidMerkleRoot(); } mintActive = active; emit MintStateChanged(active); } /** @notice Allows the contract owner to change the minting price, if the need arises. @param newPrice the new minting price */ function setMintPrice(uint256 newPrice) external onlyOwner { mintPrice = newPrice; emit MintPriceChanged(newPrice); } /** @notice Allows the contract owner to change the merkle root. This is used when addresses are added to or removed from the allow list. @param merkleRoot the new merkle tree root */ function setMerkleRoot(bytes32 merkleRoot) external onlyOwner { if (merkleRoot == bytes32(0)) { revert InvalidMerkleRoot(); } allowListMerkleRoot = merkleRoot; } /** @notice Allows the contract owner to sequentially reveal NFTs one-by-one, or in arbitrary size batches. @dev If `batchSize` would exceed the number of unrevealed NFTs, we set it to the number of unrevealed. @dev We intentionally allow unminted NFTs to be flagged as revealed so they'll reveal immediately upon minting, if the need arises. @dev The revealed/unreveal metadata is managed off-chain. @param batchSize the number of NFTs to be revealed since the last batch reveal. */ function revealBatch(uint256 batchSize) external onlyOwner { if (revealedCount + batchSize > MAX_SUPPLY) { batchSize = MAX_SUPPLY - revealedCount; } revealedCount += batchSize; emit BatchRevealed(batchSize, revealedCount); } /** @notice This is from ERC721AQueryable. This function is not internally/externally accessible by contracts inheriting from ERC721AQueryable, so we have to recreate the function here in order to make it public. By recreating this as a public function, we can utilize it for getTokenAccrualsByOwner, and reduce the number of round-trips to the contract. @dev Returns an array of token IDs owned by `owner`. This function scans the ownership mapping and is O(`totalSupply`) in complexity. It is meant to be called off-chain. See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into multiple smaller scans if the collection is large enough to cause an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) public view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for ( uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i ) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } /** @notice Returns the amount of ORB energy accrued for the specified `tokenId`, based on how long it has been held for. ORB Enery is accrued at 12/day. @param tokenId The Id of the NFT to get the accrued ORB energy for. @return A {uint256} value with the total amount of ORB energy accrued */ function getTokenAccrual(uint256 tokenId) external view returns (uint256) { if (!_exists(tokenId)) { revert QueryForNonexistentToken(); } // solhint-disable-next-line not-rely-on-time return calculateAccrualAtPointInTime(tokenId, block.timestamp); } /** @notice Returns the token Ids and their respective ORB energey for the specified `owner`. @param owner The address of the holder account to get the accrued ORB energy for. @return tokenIds A {uint256} array of tokenIds held by the `owner` address. @return accruals A {uint256} array of total accrued ORB enery for the token at the same index in `tokenIds`. */ function getTokenAccrualsByOwner(address owner) external view returns (uint256[] memory tokenIds, uint256[] memory accruals) { tokenIds = tokensOfOwner(owner); accruals = new uint256[](tokenIds.length); for (uint256 i = 0; i < tokenIds.length; i++) { // solhint-disable-next-line not-rely-on-time accruals[i] = calculateAccrualAtPointInTime(tokenIds[i], block.timestamp); } } /** @notice Returns the metadata uri for the specified tokenId. @param tokenId The Id of the NFT to get the metadata uri for. @return A string value for the metadata uri for the specified `tokenId`. */ function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) { if (!_exists(tokenId)) { revert QueryForNonexistentToken(); } return string(abi.encodePacked(baseURI, "/", tokenId.toString())); } /** @notice Query if a contract implements an interface @param interfaceId The interface identifier, as specified in ERC-165 @dev Interface identification is specified in ERC-165. This function uses less than 30,000 gas. @return `true` if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, `false` otherwise */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } /** @notice Calculates the total amount of ORB energy accrued for the specified `tokenId` since the specified `accruedUntilTimestamp`. @notice ORB enery is accrued at a rate of 12/day. Only full days result in accrual. @dev The number of days held is calculated as the time difference in seconds between the accrual start time and end time (accruedUntilTimestamp). @dev ORB enery is calculated as full days held * 12. @param tokenId The Id of the NFT to calculate the ORB energy accrual for. @param accruedUntilTimestamp The EPOCH timestamp to use as the end date for the accrual calculation. @return A {uint256} value representing the total amount of ORB energy accrued. */ function calculateAccrualAtPointInTime( uint256 tokenId, uint256 accruedUntilTimestamp ) public view returns (uint256) { uint256 daysHeld = (accruedUntilTimestamp - tokenAccrualStart[tokenId]) / 86400; // We only consider full days, so ignore partial day accruals return daysHeld * DAILY_ACCRUAL_RATE; } /** @notice Resets the ORB accrual start time to the current time for the specified tokenIds, unless the reset is overridden through `transferWithAccrual`. This means that any transfers, sales, etc. will lose any accrued ORB energy unless `transferWithAccrual` is used. @dev This hook is called after any standard token transfers (transfer, safeTransfer, burn, mint, etc.). */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal override { super._afterTokenTransfers(from, to, startTokenId, quantity); for (uint256 i = 0; i < quantity; i++) { uint256 currentTokenId = startTokenId + i; if (!_overrideTokenAccrualReset[currentTokenId]) { // solhint-disable-next-line not-rely-on-time uint256 currentTimestamp = block.timestamp; tokenAccrualStart[currentTokenId] = currentTimestamp; emit AccrualReset(currentTokenId, currentTimestamp, to); } // Remove the previous reset override so any future transfers that don't // go through transferWithAccrual will result in the accrual start date // being reset for this token _overrideTokenAccrualReset[currentTokenId] = false; } } /** @notice Overrides the default startTokenId as defined in {ERC721A-startTokenId}. @dev By default, ERC721A starts minting from 0, which is undesirable in our case, so we'll override that to start from 1. @return A {uint256} value to use for the first minted token Id. */ function _startTokenId() internal pure override returns (uint256) { return 1; } /** @notice Convenience minting function shared by `mint` and `mintTo` */ function _internalMint(address recipient, uint256 qty) private { if (qty == 0) { revert ZeroQuantity(); } if ((_totalMinted() + qty) > MAX_SUPPLY) { revert ExceedsMaxSupply(); } _safeMint(recipient, qty); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"string","name":"contractUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowedMintQuantityExceeded","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"string","name":"source","type":"string"}],"name":"EmptyString","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"ExceedsWithdrawLimit","type":"error"},{"inputs":[],"name":"IncorrectAmount","type":"error"},{"inputs":[],"name":"InvalidMerkleRoot","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidShareDenominator","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintInactive","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoPayableBalance","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NotOwnerOrPayee","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"PaymentFailed","type":"error"},{"inputs":[],"name":"QueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SharesExceeded","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroAmount","type":"error"},{"inputs":[],"name":"ZeroQuantity","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"holder","type":"address"}],"name":"AccrualReset","type":"event"},{"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":false,"internalType":"uint256","name":"batchSize","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalRevealed","type":"uint256"}],"name":"BatchRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"MintPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"MintStateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"payableBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"TeamMemberPaid","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":"DAILY_ACCRUAL_RATE","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"balanceAfterTeamPayments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"accruedUntilTimestamp","type":"uint256"}],"name":"calculateAccrualAtPointInTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenAccrual","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getTokenAccrualsByOwner","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"accruals","type":"uint256[]"}],"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":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCounts","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","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":"payTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"payeeDetails","outputs":[{"internalType":"address payable","name":"payeeAddress","type":"address"},{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"batchSize","type":"uint256"}],"name":"revealBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenAccrualStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"transferWithAccrual","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526706c5b96a1a6400006011553480156200001d57600080fd5b506040516200340f3803806200340f83398101604081905262000040916200057f565b73150a156f1937f6c9ebd9547c13e108d43332cb4a600185856002620000678382620006c6565b506003620000768282620006c6565b505060016000555062000089336200025b565b6001600b556001600160a01b038216620000b65760405163d92e233d60e01b815260040160405180910390fd5b8060ff16600003620000db57604051637ea5ed4560e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b039390931692909217909155600f805460ff191660ff909216919091179055835160000362000155576040516318a996bb60e21b81526004016200014c906020808252600490820152636e616d6560e01b604082015260600190565b60405180910390fd5b825160000362000192576040516318a996bb60e21b81526020600482015260066024820152651cde5b589bdb60d21b60448201526064016200014c565b8151600003620001d0576040516318a996bb60e21b81526020600482015260076024820152666261736555726960c81b60448201526064016200014c565b805160000362000212576040516318a996bb60e21b815260206004820152600b60248201526a636f6e747261637455726960a81b60448201526064016200014c565b6017620002208382620006c6565b5060186200022f8282620006c6565b506200025173338e0421b72da8adc371f3247255a8c7dc4fa69d6009620002ad565b505050506200081f565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002b762000376565b6040805180820182526001600160a01b038481168083526020808401868152600092835260109091529381208054600160ff199091168117909155600d8054918201815590915282517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5600290920291820180546001600160a01b031916919093161790915591517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb69092019190915562000371620003d4565b505050565b600a546001600160a01b03163314620003d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200014c565b565b6000805b600d5460ff82161015620004b6576000600d8260ff168154811062000401576200040162000792565b60009182526020918290206040805180820190915260029092020180546001600160a01b0316808352600190910154928201929092529150620004575760405163d92e233d60e01b815260040160405180910390fd5b6020810151620004689084620007be565b600f54909350606490620004809060ff1685620007da565b1115620004a05760405163dc6857ab60e01b815260040160405180910390fd5b5080620004ad81620007fd565b915050620003d8565b5050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620004e257600080fd5b81516001600160401b0380821115620004ff57620004ff620004ba565b604051601f8301601f19908116603f011681019082821181831017156200052a576200052a620004ba565b816040528381526020925086838588010111156200054757600080fd5b600091505b838210156200056b57858201830151818301840152908201906200054c565b600093810190920192909252949350505050565b600080600080608085870312156200059657600080fd5b84516001600160401b0380821115620005ae57600080fd5b620005bc88838901620004d0565b95506020870151915080821115620005d357600080fd5b620005e188838901620004d0565b94506040870151915080821115620005f857600080fd5b6200060688838901620004d0565b935060608701519150808211156200061d57600080fd5b506200062c87828801620004d0565b91505092959194509250565b600181811c908216806200064d57607f821691505b6020821081036200066e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037157600081815260208120601f850160051c810160208610156200069d5750805b601f850160051c820191505b81811015620006be57828155600101620006a9565b505050505050565b81516001600160401b03811115620006e257620006e2620004ba565b620006fa81620006f3845462000638565b8462000674565b602080601f831160018114620007325760008415620007195750858301515b600019600386901b1c1916600185901b178555620006be565b600085815260208120601f198616915b82811015620007635788860151825594840194600190910190840162000742565b5085821015620007825787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115620007d457620007d4620007a8565b92915050565b600082620007f857634e487b7160e01b600052601260045260246000fd5b500490565b600060ff821660ff8103620008165762000816620007a8565b60010192915050565b612be0806200082f6000396000f3fe6080604052600436106103085760003560e01c8063715018a61161019a578063b88d4fde116100e1578063e8a3d4851161008a578063f4a0a52811610064578063f4a0a528146108a4578063f64c3f0a146108c4578063f77e58ae146108e457600080fd5b8063e8a3d48514610826578063e985e9c51461083b578063f2fde38b1461088457600080fd5b8063c87b56dd116100bb578063c87b56dd146107d1578063d6dae0cd146107f1578063e2ea89561461080657600080fd5b8063b88d4fde14610788578063bbd78e931461079b578063c0341fa6146107b157600080fd5b806395d89b4111610143578063ac78dc161161011d578063ac78dc1614610733578063b488311b14610748578063b77a147b1461077557600080fd5b806395d89b41146106e85780639bb906e0146106fd578063a22cb4651461071357600080fd5b80638462151c116101745780638462151c1461067d5780638da5cb5b146106aa578063938e3d7b146106c857600080fd5b8063715018a61461062857806378cf124f1461063d5780637cb647591461065d57600080fd5b806332cb6b0c1161025e57806355f804b3116102075780636817c76c116101e15780636817c76c146105dd5780636c0360eb146105f357806370a082311461060857600080fd5b806355f804b31461056f57806358556c121461058f5780636352211e146105bd57600080fd5b806342966c681161023857806342966c68146104ed578063449a52f81461050d578063532778791461052d57600080fd5b806332cb6b0c146104a45780633cf96af1146104ba57806342842e0e146104da57600080fd5b806318160ddd116102c057806326412aca1161029a57806326412aca146104445780632a55205a146104645780632e1a7d4d1461048457600080fd5b806318160ddd146103f057806323b872dd1461041757806325fd90f31461042a57600080fd5b8063081812fc116102f1578063081812fc14610364578063095ea7b31461039c5780630c9b7e13146103b157600080fd5b806301ffc9a71461030d57806306fdde0314610342575b600080fd5b34801561031957600080fd5b5061032d610328366004612477565b6108fa565b60405190151581526020015b60405180910390f35b34801561034e57600080fd5b5061035761091a565b60405161033991906124e4565b34801561037057600080fd5b5061038461037f3660046124f7565b6109ac565b6040516001600160a01b039091168152602001610339565b6103af6103aa36600461252c565b610a09565b005b3480156103bd57600080fd5b506103d16103cc3660046124f7565b610acf565b604080516001600160a01b039093168352602083019190915201610339565b3480156103fc57600080fd5b5060015460005403600019015b604051908152602001610339565b6103af610425366004612556565b610b07565b34801561043657600080fd5b5060135461032d9060ff1681565b34801561045057600080fd5b506103af61045f3660046125a2565b610ce9565b34801561047057600080fd5b506103d161047f3660046125bd565b610d59565b34801561049057600080fd5b506103af61049f3660046124f7565b610e14565b3480156104b057600080fd5b5061040961012c81565b3480156104c657600080fd5b50600c54610384906001600160a01b031681565b6103af6104e8366004612556565b610f04565b3480156104f957600080fd5b506103af6105083660046124f7565b610f24565b34801561051957600080fd5b506103af61052836600461252c565b610f40565b34801561053957600080fd5b5061055d6105483660046125df565b60156020526000908152604090205460ff1681565b60405160ff9091168152602001610339565b34801561057b57600080fd5b506103af61058a3660046125fa565b610f68565b34801561059b57600080fd5b506105af6105aa3660046125df565b610fbd565b6040516103399291906126a7565b3480156105c957600080fd5b506103846105d83660046124f7565b611075565b3480156105e957600080fd5b5061040960115481565b3480156105ff57600080fd5b50610357611080565b34801561061457600080fd5b506104096106233660046125df565b61110e565b34801561063457600080fd5b506103af611176565b34801561064957600080fd5b506103af6106583660046126d5565b61118a565b34801561066957600080fd5b506103af6106783660046124f7565b6111bc565b34801561068957600080fd5b5061069d6106983660046125df565b6111e7565b6040516103399190612701565b3480156106b657600080fd5b50600a546001600160a01b0316610384565b3480156106d457600080fd5b506103af6106e33660046125fa565b6112eb565b3480156106f457600080fd5b5061035761133b565b34801561070957600080fd5b5061040960125481565b34801561071f57600080fd5b506103af61072e366004612714565b61134a565b34801561073f57600080fd5b506103af6113b6565b34801561075457600080fd5b506104096107633660046124f7565b60166020526000908152604090205481565b6103af61078336600461273e565b6115bd565b6103af6107963660046127b7565b611766565b3480156107a757600080fd5b5061040960145481565b3480156107bd57600080fd5b506104096107cc3660046125bd565b6117b0565b3480156107dd57600080fd5b506103576107ec3660046124f7565b6117ef565b3480156107fd57600080fd5b5061055d600c81565b34801561081257600080fd5b506104096108213660046124f7565b611849565b34801561083257600080fd5b5061035761187b565b34801561084757600080fd5b5061032d610856366004612893565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561089057600080fd5b506103af61089f3660046125df565b611888565b3480156108b057600080fd5b506103af6108bf3660046124f7565b611915565b3480156108d057600080fd5b506103af6108df3660046124f7565b611952565b3480156108f057600080fd5b50610409600e5481565b6000610905826119d4565b80610914575061091482611a54565b92915050565b606060028054610929906128bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610955906128bd565b80156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b5050505050905090565b60006109b782611aa2565b6109ed576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a1482611075565b9050336001600160a01b03821614610a6657610a308133610856565b610a66576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600d8181548110610adf57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000610b1282611ad7565b9050836001600160a01b0316816001600160a01b031614610b5f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610b8b8187335b6001600160a01b039081169116811491141790565b610bb657610b998633610856565b610bb657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610bf6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610c0157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610c9357600184016000818152600460205260408120549003610c91576000548114610c915760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610ce18686866001611b66565b505050505050565b610cf1611c12565b601254610d1157604051639dd854d360e01b815260040160405180910390fd5b6013805460ff19168215159081179091556040519081527f992fe84c8bbd52855b22035907ca1f9e1d6bcbb390bc81150808e8443d01668c906020015b60405180910390a150565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610dd85750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610dfc906bffffffffffffffffffffffff168761290d565b610e069190612924565b915196919550909350505050565b610e1c611c12565b610e24611c6c565b80600003610e5e576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54811115610e9a576040517fc02fc37d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e6000828254610eac9190612946565b9091555050600c546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610ef7576040516307a4ced160e51b815260040160405180910390fd5b610f016001600b55565b50565b610f1f83838360405180602001604052806000815250611766565b505050565b610f2f816001611cc5565b600090815260166020526040812055565b610f48611c6c565b610f50611c12565b610f5a8282611e36565b610f646001600b55565b5050565b610f70611c12565b6000819003610fb0576040516318a996bb60e21b81526020600482015260066024820152656e657755524960d01b60448201526064015b60405180910390fd5b6017610f1f82848361299f565b606080610fc9836111e7565b9150815167ffffffffffffffff811115610fe557610fe56127a1565b60405190808252806020026020018201604052801561100e578160200160208202803683370190505b50905060005b825181101561106f5761104083828151811061103257611032612a5f565b6020026020010151426117b0565b82828151811061105257611052612a5f565b60209081029190910101528061106781612a75565b915050611014565b50915091565b600061091482611ad7565b6017805461108d906128bd565b80601f01602080910402602001604051908101604052809291908181526020018280546110b9906128bd565b80156111065780601f106110db57610100808354040283529160200191611106565b820191906000526020600020905b8154815290600101906020018083116110e957829003601f168201915b505050505081565b60006001600160a01b038216611150576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61117e611c12565b6111886000611ecd565b565b611192611c6c565b6000828152601960205260409020805460ff19166001179055610f5a6111b53390565b8284610f04565b6111c4611c12565b806111e257604051639dd854d360e01b815260040160405180910390fd5b601255565b606060008060006111f78561110e565b905060008167ffffffffffffffff811115611214576112146127a1565b60405190808252806020026020018201604052801561123d578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081019190915290915060015b8386146112df5761127881611f2c565b915081604001516112d75781516001600160a01b03161561129857815194505b876001600160a01b0316856001600160a01b0316036112d757808387806001019850815181106112ca576112ca612a5f565b6020026020010181815250505b600101611268565b50909695505050505050565b6112f3611c12565b600081900361132e576040516318a996bb60e21b81526020600482015260066024820152656e657755524960d01b6044820152606401610fa7565b6018610f1f82848361299f565b606060038054610929906128bd565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314806113de57503360009081526010602052604090205460ff165b1561158b576113eb611c6c565b600e544711611426576040517f7ac5237f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600e54476114369190612946565b905060005b600d5481101561157f576000600d828154811061145a5761145a612a5f565b600091825260208083206040805180820190915260029093020180546001600160a01b0316835260010154908201819052600f549193506064916114a39160ff90911690612924565b6114ad908661290d565b6114b79190612924565b90506114c38185612946565b600e60008282546114d49190612a8e565b909155505081516040516001600160a01b039091169082156108fc029083906000818181858888f1935050505061151e576040516307a4ced160e51b815260040160405180910390fd5b8151604080516001600160a01b0390921682526020820186905281018290527f38eb0ca2a3c8d54ed43becde8d31f720d1902caa6fdb19049112d64692b467af9060600160405180910390a15050808061157790612a75565b91505061143b565b50506111886001600b55565b6040517f232b7a3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115c5611c6c565b818161163c828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120611fab565b611672576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60135460ff166116ae576040517f343295c400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60115434146116e9576040517f69640e7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526015602052604090205460ff1615611733576040517ff37edc8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152601560205260409020805460ff1916600190811790915561175a9190611e36565b5050610f646001600b55565b611771848484610b07565b6001600160a01b0383163b156117aa5761178d84848484611fc1565b6117aa576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600082815260166020526040812054819062015180906117d09085612946565b6117da9190612924565b90506117e7600c8261290d565b949350505050565b60606117fa82611aa2565b61181757604051636c01c8cf60e11b815260040160405180910390fd5b6017611822836120ac565b604051602001611833929190612aa1565b6040516020818303038152906040529050919050565b600061185482611aa2565b61187157604051636c01c8cf60e11b815260040160405180910390fd5b61091482426117b0565b6018805461108d906128bd565b611890611c12565b6001600160a01b03811661190c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610fa7565b610f0181611ecd565b61191d611c12565b60118190556040518181527f25b1f9f6b6e61dfca5575239769e4450ed2e49176670837f5d1a82a9a2fc693f90602001610d4e565b61195a611c12565b61012c8160145461196b9190612a8e565b1115611983576014546119809061012c612946565b90505b80601460008282546119959190612a8e565b90915550506014546040805183815260208101929092527f75ac8f259038a0ab4134de3b31c8dc5c89e9e8f21886707f2697bda351ea3bbc9101610d4e565b60006301ffc9a760e01b6001600160e01b031983161480611a1e57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806109145750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061091457506301ffc9a760e01b6001600160e01b0319831614610914565b600081600111158015611ab6575060005482105b8015610914575050600090815260046020526040902054600160e01b161590565b60008180600111611b3457600054811015611b345760008181526004602052604081205490600160e01b82169003611b32575b80600003611b2b575060001901600081815260046020526040902054611b0a565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611c0b576000611b7d8285612a8e565b60008181526019602052604090205490915060ff16611be3576000818152601660205260408082204290819055905190916001600160a01b03881691839185917fc0661bcb60a896b1a9fcad2d5bec6c241efd9a2bbc98ada22a56ea9e991e2d949190a4505b6000908152601960205260409020805460ff1916905580611c0381612a75565b915050611b69565b5050505050565b600a546001600160a01b031633146111885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fa7565b6002600b5403611cbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610fa7565b6002600b55565b6000611cd083611ad7565b905080600080611cee86600090815260066020526040902080549091565b915091508415611d2e57611d03818433610b76565b611d2e57611d118333610856565b611d2e57604051632ce44b5f60e11b815260040160405180910390fd5b8015611d3957600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040812091909155600160e11b85169003611de057600186016000818152600460205260408120549003611dde576000548114611dde5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4611e26836000886001611b66565b5050600180548101905550505050565b80600003611e70576040517ff4f5b73300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61012c81611e816000546000190190565b611e8b9190612a8e565b1115611ec3576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f64828261214c565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461091490604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b600082611fb88584612166565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ff6903390899088908890600401612b51565b6020604051808303816000875af1925050508015612031575060408051601f3d908101601f1916820190925261202e91810190612b8d565b60015b61208f573d80801561205f576040519150601f19603f3d011682016040523d82523d6000602084013e612064565b606091505b508051600003612087576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060006120b9836121b3565b600101905060008167ffffffffffffffff8111156120d9576120d96127a1565b6040519080825280601f01601f191660200182016040528015612103576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461210d57509392505050565b610f64828260405180602001604052806000815250612295565b600081815b84518110156121ab576121978286838151811061218a5761218a612a5f565b60200260200101516122fb565b9150806121a381612a75565b91505061216b565b509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106121fc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612228576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061224657662386f26fc10000830492506010015b6305f5e100831061225e576305f5e100830492506008015b612710831061227257612710830492506004015b60648310612284576064830492506002015b600a83106109145760010192915050565b61229f8383612327565b6001600160a01b0383163b15610f1f576000548281035b6122c96000868380600101945086611fc1565b6122e6576040516368d2bf6b60e11b815260040160405180910390fd5b8181106122b6578160005414611c0b57600080fd5b6000818310612317576000828152602084905260409020611b2b565b5060009182526020526040902090565b6000805490829003612365576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461241457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016123dc565b508160000361244f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000908155610f1f9150848385611b66565b6001600160e01b031981168114610f0157600080fd5b60006020828403121561248957600080fd5b8135611b2b81612461565b60005b838110156124af578181015183820152602001612497565b50506000910152565b600081518084526124d0816020860160208601612494565b601f01601f19169290920160200192915050565b602081526000611b2b60208301846124b8565b60006020828403121561250957600080fd5b5035919050565b80356001600160a01b038116811461252757600080fd5b919050565b6000806040838503121561253f57600080fd5b61254883612510565b946020939093013593505050565b60008060006060848603121561256b57600080fd5b61257484612510565b925061258260208501612510565b9150604084013590509250925092565b8035801515811461252757600080fd5b6000602082840312156125b457600080fd5b611b2b82612592565b600080604083850312156125d057600080fd5b50508035926020909101359150565b6000602082840312156125f157600080fd5b611b2b82612510565b6000806020838503121561260d57600080fd5b823567ffffffffffffffff8082111561262557600080fd5b818501915085601f83011261263957600080fd5b81358181111561264857600080fd5b86602082850101111561265a57600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b8381101561269c57815187529582019590820190600101612680565b509495945050505050565b6040815260006126ba604083018561266c565b82810360208401526126cc818561266c565b95945050505050565b600080604083850312156126e857600080fd5b823591506126f860208401612510565b90509250929050565b602081526000611b2b602083018461266c565b6000806040838503121561272757600080fd5b61273083612510565b91506126f860208401612592565b6000806020838503121561275157600080fd5b823567ffffffffffffffff8082111561276957600080fd5b818501915085601f83011261277d57600080fd5b81358181111561278c57600080fd5b8660208260051b850101111561265a57600080fd5b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156127cd57600080fd5b6127d685612510565b93506127e460208601612510565b925060408501359150606085013567ffffffffffffffff8082111561280857600080fd5b818701915087601f83011261281c57600080fd5b81358181111561282e5761282e6127a1565b604051601f8201601f19908116603f01168101908382118183101715612856576128566127a1565b816040528281528a602084870101111561286f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156128a657600080fd5b6128af83612510565b91506126f860208401612510565b600181811c908216806128d157607f821691505b6020821081036128f157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610914576109146128f7565b60008261294157634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610914576109146128f7565b601f821115610f1f57600081815260208120601f850160051c810160208610156129805750805b601f850160051c820191505b81811015610ce15782815560010161298c565b67ffffffffffffffff8311156129b7576129b76127a1565b6129cb836129c583546128bd565b83612959565b6000601f8411600181146129ff57600085156129e75750838201355b600019600387901b1c1916600186901b178355611c0b565b600083815260209020601f19861690835b82811015612a305786850135825560209485019460019092019101612a10565b5086821015612a4d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201612a8757612a876128f7565b5060010190565b80820180821115610914576109146128f7565b6000808454612aaf816128bd565b60018281168015612ac75760018114612adc57612b0b565b60ff1984168752821515830287019450612b0b565b8860005260208060002060005b85811015612b025781548a820152908401908201612ae9565b50505082870194505b507f2f00000000000000000000000000000000000000000000000000000000000000845286519250612b438382860160208a01612494565b919092010195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b8360808301846124b8565b9695505050505050565b600060208284031215612b9f57600080fd5b8151611b2b8161246156fea2646970667358221220fc3f98c0c581857baea02687b4f691b3f0247fcdd7ad5b61fd48f9fc09b3e85f64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000114d656b61204265617374204865726f657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d42480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003968747470733a2f2f6d656b6162656173742d6865726f732e6170702e706170657268616e646c6162732e696f2f6170692f6d6574616461746100000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f6d656b6162656173742d6865726f732e6170702e706170657268616e646c6162732e696f2f6170692f6d657461646174612f636f6e7472616374000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103085760003560e01c8063715018a61161019a578063b88d4fde116100e1578063e8a3d4851161008a578063f4a0a52811610064578063f4a0a528146108a4578063f64c3f0a146108c4578063f77e58ae146108e457600080fd5b8063e8a3d48514610826578063e985e9c51461083b578063f2fde38b1461088457600080fd5b8063c87b56dd116100bb578063c87b56dd146107d1578063d6dae0cd146107f1578063e2ea89561461080657600080fd5b8063b88d4fde14610788578063bbd78e931461079b578063c0341fa6146107b157600080fd5b806395d89b4111610143578063ac78dc161161011d578063ac78dc1614610733578063b488311b14610748578063b77a147b1461077557600080fd5b806395d89b41146106e85780639bb906e0146106fd578063a22cb4651461071357600080fd5b80638462151c116101745780638462151c1461067d5780638da5cb5b146106aa578063938e3d7b146106c857600080fd5b8063715018a61461062857806378cf124f1461063d5780637cb647591461065d57600080fd5b806332cb6b0c1161025e57806355f804b3116102075780636817c76c116101e15780636817c76c146105dd5780636c0360eb146105f357806370a082311461060857600080fd5b806355f804b31461056f57806358556c121461058f5780636352211e146105bd57600080fd5b806342966c681161023857806342966c68146104ed578063449a52f81461050d578063532778791461052d57600080fd5b806332cb6b0c146104a45780633cf96af1146104ba57806342842e0e146104da57600080fd5b806318160ddd116102c057806326412aca1161029a57806326412aca146104445780632a55205a146104645780632e1a7d4d1461048457600080fd5b806318160ddd146103f057806323b872dd1461041757806325fd90f31461042a57600080fd5b8063081812fc116102f1578063081812fc14610364578063095ea7b31461039c5780630c9b7e13146103b157600080fd5b806301ffc9a71461030d57806306fdde0314610342575b600080fd5b34801561031957600080fd5b5061032d610328366004612477565b6108fa565b60405190151581526020015b60405180910390f35b34801561034e57600080fd5b5061035761091a565b60405161033991906124e4565b34801561037057600080fd5b5061038461037f3660046124f7565b6109ac565b6040516001600160a01b039091168152602001610339565b6103af6103aa36600461252c565b610a09565b005b3480156103bd57600080fd5b506103d16103cc3660046124f7565b610acf565b604080516001600160a01b039093168352602083019190915201610339565b3480156103fc57600080fd5b5060015460005403600019015b604051908152602001610339565b6103af610425366004612556565b610b07565b34801561043657600080fd5b5060135461032d9060ff1681565b34801561045057600080fd5b506103af61045f3660046125a2565b610ce9565b34801561047057600080fd5b506103d161047f3660046125bd565b610d59565b34801561049057600080fd5b506103af61049f3660046124f7565b610e14565b3480156104b057600080fd5b5061040961012c81565b3480156104c657600080fd5b50600c54610384906001600160a01b031681565b6103af6104e8366004612556565b610f04565b3480156104f957600080fd5b506103af6105083660046124f7565b610f24565b34801561051957600080fd5b506103af61052836600461252c565b610f40565b34801561053957600080fd5b5061055d6105483660046125df565b60156020526000908152604090205460ff1681565b60405160ff9091168152602001610339565b34801561057b57600080fd5b506103af61058a3660046125fa565b610f68565b34801561059b57600080fd5b506105af6105aa3660046125df565b610fbd565b6040516103399291906126a7565b3480156105c957600080fd5b506103846105d83660046124f7565b611075565b3480156105e957600080fd5b5061040960115481565b3480156105ff57600080fd5b50610357611080565b34801561061457600080fd5b506104096106233660046125df565b61110e565b34801561063457600080fd5b506103af611176565b34801561064957600080fd5b506103af6106583660046126d5565b61118a565b34801561066957600080fd5b506103af6106783660046124f7565b6111bc565b34801561068957600080fd5b5061069d6106983660046125df565b6111e7565b6040516103399190612701565b3480156106b657600080fd5b50600a546001600160a01b0316610384565b3480156106d457600080fd5b506103af6106e33660046125fa565b6112eb565b3480156106f457600080fd5b5061035761133b565b34801561070957600080fd5b5061040960125481565b34801561071f57600080fd5b506103af61072e366004612714565b61134a565b34801561073f57600080fd5b506103af6113b6565b34801561075457600080fd5b506104096107633660046124f7565b60166020526000908152604090205481565b6103af61078336600461273e565b6115bd565b6103af6107963660046127b7565b611766565b3480156107a757600080fd5b5061040960145481565b3480156107bd57600080fd5b506104096107cc3660046125bd565b6117b0565b3480156107dd57600080fd5b506103576107ec3660046124f7565b6117ef565b3480156107fd57600080fd5b5061055d600c81565b34801561081257600080fd5b506104096108213660046124f7565b611849565b34801561083257600080fd5b5061035761187b565b34801561084757600080fd5b5061032d610856366004612893565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561089057600080fd5b506103af61089f3660046125df565b611888565b3480156108b057600080fd5b506103af6108bf3660046124f7565b611915565b3480156108d057600080fd5b506103af6108df3660046124f7565b611952565b3480156108f057600080fd5b50610409600e5481565b6000610905826119d4565b80610914575061091482611a54565b92915050565b606060028054610929906128bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610955906128bd565b80156109a25780601f10610977576101008083540402835291602001916109a2565b820191906000526020600020905b81548152906001019060200180831161098557829003601f168201915b5050505050905090565b60006109b782611aa2565b6109ed576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a1482611075565b9050336001600160a01b03821614610a6657610a308133610856565b610a66576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600d8181548110610adf57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000610b1282611ad7565b9050836001600160a01b0316816001600160a01b031614610b5f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610b8b8187335b6001600160a01b039081169116811491141790565b610bb657610b998633610856565b610bb657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610bf6576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610c0157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610c9357600184016000818152600460205260408120549003610c91576000548114610c915760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610ce18686866001611b66565b505050505050565b610cf1611c12565b601254610d1157604051639dd854d360e01b815260040160405180910390fd5b6013805460ff19168215159081179091556040519081527f992fe84c8bbd52855b22035907ca1f9e1d6bcbb390bc81150808e8443d01668c906020015b60405180910390a150565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610dd85750604080518082019091526008546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610dfc906bffffffffffffffffffffffff168761290d565b610e069190612924565b915196919550909350505050565b610e1c611c12565b610e24611c6c565b80600003610e5e576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54811115610e9a576040517fc02fc37d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e6000828254610eac9190612946565b9091555050600c546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610ef7576040516307a4ced160e51b815260040160405180910390fd5b610f016001600b55565b50565b610f1f83838360405180602001604052806000815250611766565b505050565b610f2f816001611cc5565b600090815260166020526040812055565b610f48611c6c565b610f50611c12565b610f5a8282611e36565b610f646001600b55565b5050565b610f70611c12565b6000819003610fb0576040516318a996bb60e21b81526020600482015260066024820152656e657755524960d01b60448201526064015b60405180910390fd5b6017610f1f82848361299f565b606080610fc9836111e7565b9150815167ffffffffffffffff811115610fe557610fe56127a1565b60405190808252806020026020018201604052801561100e578160200160208202803683370190505b50905060005b825181101561106f5761104083828151811061103257611032612a5f565b6020026020010151426117b0565b82828151811061105257611052612a5f565b60209081029190910101528061106781612a75565b915050611014565b50915091565b600061091482611ad7565b6017805461108d906128bd565b80601f01602080910402602001604051908101604052809291908181526020018280546110b9906128bd565b80156111065780601f106110db57610100808354040283529160200191611106565b820191906000526020600020905b8154815290600101906020018083116110e957829003601f168201915b505050505081565b60006001600160a01b038216611150576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61117e611c12565b6111886000611ecd565b565b611192611c6c565b6000828152601960205260409020805460ff19166001179055610f5a6111b53390565b8284610f04565b6111c4611c12565b806111e257604051639dd854d360e01b815260040160405180910390fd5b601255565b606060008060006111f78561110e565b905060008167ffffffffffffffff811115611214576112146127a1565b60405190808252806020026020018201604052801561123d578160200160208202803683370190505b5060408051608081018252600080825260208201819052918101829052606081019190915290915060015b8386146112df5761127881611f2c565b915081604001516112d75781516001600160a01b03161561129857815194505b876001600160a01b0316856001600160a01b0316036112d757808387806001019850815181106112ca576112ca612a5f565b6020026020010181815250505b600101611268565b50909695505050505050565b6112f3611c12565b600081900361132e576040516318a996bb60e21b81526020600482015260066024820152656e657755524960d01b6044820152606401610fa7565b6018610f1f82848361299f565b606060038054610929906128bd565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314806113de57503360009081526010602052604090205460ff165b1561158b576113eb611c6c565b600e544711611426576040517f7ac5237f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600e54476114369190612946565b905060005b600d5481101561157f576000600d828154811061145a5761145a612a5f565b600091825260208083206040805180820190915260029093020180546001600160a01b0316835260010154908201819052600f549193506064916114a39160ff90911690612924565b6114ad908661290d565b6114b79190612924565b90506114c38185612946565b600e60008282546114d49190612a8e565b909155505081516040516001600160a01b039091169082156108fc029083906000818181858888f1935050505061151e576040516307a4ced160e51b815260040160405180910390fd5b8151604080516001600160a01b0390921682526020820186905281018290527f38eb0ca2a3c8d54ed43becde8d31f720d1902caa6fdb19049112d64692b467af9060600160405180910390a15050808061157790612a75565b91505061143b565b50506111886001600b55565b6040517f232b7a3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115c5611c6c565b818161163c828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120611fab565b611672576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60135460ff166116ae576040517f343295c400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60115434146116e9576040517f69640e7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526015602052604090205460ff1615611733576040517ff37edc8900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152601560205260409020805460ff1916600190811790915561175a9190611e36565b5050610f646001600b55565b611771848484610b07565b6001600160a01b0383163b156117aa5761178d84848484611fc1565b6117aa576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600082815260166020526040812054819062015180906117d09085612946565b6117da9190612924565b90506117e7600c8261290d565b949350505050565b60606117fa82611aa2565b61181757604051636c01c8cf60e11b815260040160405180910390fd5b6017611822836120ac565b604051602001611833929190612aa1565b6040516020818303038152906040529050919050565b600061185482611aa2565b61187157604051636c01c8cf60e11b815260040160405180910390fd5b61091482426117b0565b6018805461108d906128bd565b611890611c12565b6001600160a01b03811661190c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610fa7565b610f0181611ecd565b61191d611c12565b60118190556040518181527f25b1f9f6b6e61dfca5575239769e4450ed2e49176670837f5d1a82a9a2fc693f90602001610d4e565b61195a611c12565b61012c8160145461196b9190612a8e565b1115611983576014546119809061012c612946565b90505b80601460008282546119959190612a8e565b90915550506014546040805183815260208101929092527f75ac8f259038a0ab4134de3b31c8dc5c89e9e8f21886707f2697bda351ea3bbc9101610d4e565b60006301ffc9a760e01b6001600160e01b031983161480611a1e57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806109145750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061091457506301ffc9a760e01b6001600160e01b0319831614610914565b600081600111158015611ab6575060005482105b8015610914575050600090815260046020526040902054600160e01b161590565b60008180600111611b3457600054811015611b345760008181526004602052604081205490600160e01b82169003611b32575b80600003611b2b575060001901600081815260046020526040902054611b0a565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015611c0b576000611b7d8285612a8e565b60008181526019602052604090205490915060ff16611be3576000818152601660205260408082204290819055905190916001600160a01b03881691839185917fc0661bcb60a896b1a9fcad2d5bec6c241efd9a2bbc98ada22a56ea9e991e2d949190a4505b6000908152601960205260409020805460ff1916905580611c0381612a75565b915050611b69565b5050505050565b600a546001600160a01b031633146111885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610fa7565b6002600b5403611cbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610fa7565b6002600b55565b6000611cd083611ad7565b905080600080611cee86600090815260066020526040902080549091565b915091508415611d2e57611d03818433610b76565b611d2e57611d118333610856565b611d2e57604051632ce44b5f60e11b815260040160405180910390fd5b8015611d3957600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040812091909155600160e11b85169003611de057600186016000818152600460205260408120549003611dde576000548114611dde5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4611e26836000886001611b66565b5050600180548101905550505050565b80600003611e70576040517ff4f5b73300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61012c81611e816000546000190190565b611e8b9190612a8e565b1115611ec3576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f64828261214c565b600a80546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461091490604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b600082611fb88584612166565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ff6903390899088908890600401612b51565b6020604051808303816000875af1925050508015612031575060408051601f3d908101601f1916820190925261202e91810190612b8d565b60015b61208f573d80801561205f576040519150601f19603f3d011682016040523d82523d6000602084013e612064565b606091505b508051600003612087576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060006120b9836121b3565b600101905060008167ffffffffffffffff8111156120d9576120d96127a1565b6040519080825280601f01601f191660200182016040528015612103576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461210d57509392505050565b610f64828260405180602001604052806000815250612295565b600081815b84518110156121ab576121978286838151811061218a5761218a612a5f565b60200260200101516122fb565b9150806121a381612a75565b91505061216b565b509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106121fc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612228576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061224657662386f26fc10000830492506010015b6305f5e100831061225e576305f5e100830492506008015b612710831061227257612710830492506004015b60648310612284576064830492506002015b600a83106109145760010192915050565b61229f8383612327565b6001600160a01b0383163b15610f1f576000548281035b6122c96000868380600101945086611fc1565b6122e6576040516368d2bf6b60e11b815260040160405180910390fd5b8181106122b6578160005414611c0b57600080fd5b6000818310612317576000828152602084905260409020611b2b565b5060009182526020526040902090565b6000805490829003612365576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461241457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016123dc565b508160000361244f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000908155610f1f9150848385611b66565b6001600160e01b031981168114610f0157600080fd5b60006020828403121561248957600080fd5b8135611b2b81612461565b60005b838110156124af578181015183820152602001612497565b50506000910152565b600081518084526124d0816020860160208601612494565b601f01601f19169290920160200192915050565b602081526000611b2b60208301846124b8565b60006020828403121561250957600080fd5b5035919050565b80356001600160a01b038116811461252757600080fd5b919050565b6000806040838503121561253f57600080fd5b61254883612510565b946020939093013593505050565b60008060006060848603121561256b57600080fd5b61257484612510565b925061258260208501612510565b9150604084013590509250925092565b8035801515811461252757600080fd5b6000602082840312156125b457600080fd5b611b2b82612592565b600080604083850312156125d057600080fd5b50508035926020909101359150565b6000602082840312156125f157600080fd5b611b2b82612510565b6000806020838503121561260d57600080fd5b823567ffffffffffffffff8082111561262557600080fd5b818501915085601f83011261263957600080fd5b81358181111561264857600080fd5b86602082850101111561265a57600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b8381101561269c57815187529582019590820190600101612680565b509495945050505050565b6040815260006126ba604083018561266c565b82810360208401526126cc818561266c565b95945050505050565b600080604083850312156126e857600080fd5b823591506126f860208401612510565b90509250929050565b602081526000611b2b602083018461266c565b6000806040838503121561272757600080fd5b61273083612510565b91506126f860208401612592565b6000806020838503121561275157600080fd5b823567ffffffffffffffff8082111561276957600080fd5b818501915085601f83011261277d57600080fd5b81358181111561278c57600080fd5b8660208260051b850101111561265a57600080fd5b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156127cd57600080fd5b6127d685612510565b93506127e460208601612510565b925060408501359150606085013567ffffffffffffffff8082111561280857600080fd5b818701915087601f83011261281c57600080fd5b81358181111561282e5761282e6127a1565b604051601f8201601f19908116603f01168101908382118183101715612856576128566127a1565b816040528281528a602084870101111561286f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156128a657600080fd5b6128af83612510565b91506126f860208401612510565b600181811c908216806128d157607f821691505b6020821081036128f157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610914576109146128f7565b60008261294157634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610914576109146128f7565b601f821115610f1f57600081815260208120601f850160051c810160208610156129805750805b601f850160051c820191505b81811015610ce15782815560010161298c565b67ffffffffffffffff8311156129b7576129b76127a1565b6129cb836129c583546128bd565b83612959565b6000601f8411600181146129ff57600085156129e75750838201355b600019600387901b1c1916600186901b178355611c0b565b600083815260209020601f19861690835b82811015612a305786850135825560209485019460019092019101612a10565b5086821015612a4d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201612a8757612a876128f7565b5060010190565b80820180821115610914576109146128f7565b6000808454612aaf816128bd565b60018281168015612ac75760018114612adc57612b0b565b60ff1984168752821515830287019450612b0b565b8860005260208060002060005b85811015612b025781548a820152908401908201612ae9565b50505082870194505b507f2f00000000000000000000000000000000000000000000000000000000000000845286519250612b438382860160208a01612494565b919092010195945050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612b8360808301846124b8565b9695505050505050565b600060208284031215612b9f57600080fd5b8151611b2b8161246156fea2646970667358221220fc3f98c0c581857baea02687b4f691b3f0247fcdd7ad5b61fd48f9fc09b3e85f64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000114d656b61204265617374204865726f657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d42480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003968747470733a2f2f6d656b6162656173742d6865726f732e6170702e706170657268616e646c6162732e696f2f6170692f6d6574616461746100000000000000000000000000000000000000000000000000000000000000000000000000004268747470733a2f2f6d656b6162656173742d6865726f732e6170702e706170657268616e646c6162732e696f2f6170692f6d657461646174612f636f6e7472616374000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Meka Beast Heroes
Arg [1] : symbol (string): MBH
Arg [2] : baseUri (string): https://mekabeast-heros.app.paperhandlabs.io/api/metadata
Arg [3] : contractUri (string): https://mekabeast-heros.app.paperhandlabs.io/api/metadata/contract
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 4d656b61204265617374204865726f6573000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4d42480000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000039
Arg [9] : 68747470733a2f2f6d656b6162656173742d6865726f732e6170702e70617065
Arg [10] : 7268616e646c6162732e696f2f6170692f6d6574616461746100000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [12] : 68747470733a2f2f6d656b6162656173742d6865726f732e6170702e70617065
Arg [13] : 7268616e646c6162732e696f2f6170692f6d657461646174612f636f6e747261
Arg [14] : 6374000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
97900:16132:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110173:487;;;;;;;;;;-1:-1:-1;110173:487:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;110173:487:0;;;;;;;;46307:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;52798:218::-;;;;;;;;;;-1:-1:-1;52798:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1743:55:1;;;1725:74;;1713:2;1698:18;52798:218:0;1579:226:1;52231:408:0;;;;;;:::i;:::-;;:::i;:::-;;32424:33;;;;;;;;;;-1:-1:-1;32424:33:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;2478:55:1;;;2460:74;;2565:2;2550:18;;2543:34;;;;2433:18;32424:33:0;2270:313:1;42058:323:0;;;;;;;;;;-1:-1:-1;113635:1:0;42332:12;42119:7;42316:13;:28;-1:-1:-1;;42316:46:0;42058:323;;;2734:25:1;;;2722:2;2707:18;42058:323:0;2588:177:1;56437:2825:0;;;;;;:::i;:::-;;:::i;98192:22::-;;;;;;;;;;-1:-1:-1;98192:22:0;;;;;;;;103971:236;;;;;;;;;;-1:-1:-1;103971:236:0;;;;;:::i;:::-;;:::i;80257:442::-;;;;;;;;;;-1:-1:-1;80257:442:0;;;;;:::i;:::-;;:::i;35477:411::-;;;;;;;;;;-1:-1:-1;35477:411:0;;;;;:::i;:::-;;:::i;98001:40::-;;;;;;;;;;;;98038:3;98001:40;;32378:37;;;;;;;;;;-1:-1:-1;32378:37:0;;;;-1:-1:-1;;;;;32378:37:0;;;59358:193;;;;;;:::i;:::-;;:::i;102147:120::-;;;;;;;;;;-1:-1:-1;102147:120:0;;;;;:::i;:::-;;:::i;101716:160::-;;;;;;;;;;-1:-1:-1;101716:160:0;;;;;:::i;:::-;;:::i;98294:43::-;;;;;;;;;;-1:-1:-1;98294:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4618:4:1;4606:17;;;4588:36;;4576:2;4561:18;98294:43:0;4446:184:1;103233:194:0;;;;;;;;;;-1:-1:-1;103233:194:0;;;;;:::i;:::-;;:::i;108741:476::-;;;;;;;;;;-1:-1:-1;108741:476:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;47700:152::-;;;;;;;;;;-1:-1:-1;47700:152:0;;;;;:::i;:::-;;:::i;98102:38::-;;;;;;;;;;;;;;;;98476:21;;;;;;;;;;;;;:::i;43242:233::-;;;;;;;;;;-1:-1:-1;43242:233:0;;;;;:::i;:::-;;:::i;5959:103::-;;;;;;;;;;;;;:::i;102864:240::-;;;;;;;;;;-1:-1:-1;102864:240:0;;;;;:::i;:::-;;:::i;104741:208::-;;;;;;;;;;-1:-1:-1;104741:208:0;;;;;:::i;:::-;;:::i;106661:979::-;;;;;;;;;;-1:-1:-1;106661:979:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;5311:87::-;;;;;;;;;;-1:-1:-1;5384:6:0;;-1:-1:-1;;;;;5384:6:0;5311:87;;103564:202;;;;;;;;;;-1:-1:-1;103564:202:0;;;;;:::i;:::-;;:::i;46483:104::-;;;;;;;;;;;;;:::i;98149:34::-;;;;;;;;;;;;;;;;53356:234;;;;;;;;;;-1:-1:-1;53356:234:0;;;;;:::i;:::-;;:::i;34395:1074::-;;;;;;;;;;;;;:::i;98415:52::-;;;;;;;;;;-1:-1:-1;98415:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;100926:507;;;;;;:::i;:::-;;:::i;60149:407::-;;;;;;:::i;:::-;;:::i;98221:28::-;;;;;;;;;;;;;;;;111430:373;;;;;;;;;;-1:-1:-1;111430:373:0;;;;;:::i;:::-;;:::i;109465:307::-;;;;;;;;;;-1:-1:-1;109465:307:0;;;;;:::i;:::-;;:::i;98048:45::-;;;;;;;;;;;;98091:2;98048:45;;107995:305;;;;;;;;;;-1:-1:-1;107995:305:0;;;;;:::i;:::-;;:::i;98504:25::-;;;;;;;;;;;;;:::i;53747:164::-;;;;;;;;;;-1:-1:-1;53747:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;53868:25:0;;;53844:4;53868:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;53747:164;6217:201;;;;;;;;;;-1:-1:-1;6217:201:0;;;;;:::i;:::-;;:::i;104374:140::-;;;;;;;;;;-1:-1:-1;104374:140:0;;;;;:::i;:::-;;:::i;105536:282::-;;;;;;;;;;-1:-1:-1;105536:282:0;;;;;:::i;:::-;;:::i;32464:39::-;;;;;;;;;;;;;;;;110173:487;110321:4;110559:38;110585:11;110559:25;:38::i;:::-;:93;;;;110614:38;110640:11;110614:25;:38::i;:::-;110539:113;110173:487;-1:-1:-1;;110173:487:0:o;46307:100::-;46361:13;46394:5;46387:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46307:100;:::o;52798:218::-;52874:7;52899:16;52907:7;52899;:16::i;:::-;52894:64;;52924:34;;;;;;;;;;;;;;52894:64;-1:-1:-1;52978:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;52978:30:0;;52798:218::o;52231:408::-;52320:13;52336:16;52344:7;52336;:16::i;:::-;52320:32;-1:-1:-1;76564:10:0;-1:-1:-1;;;;;52369:28:0;;;52365:175;;52417:44;52434:5;76564:10;53747:164;:::i;52417:44::-;52412:128;;52489:35;;;;;;;;;;;;;;52412:128;52552:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;52552:35:0;-1:-1:-1;;;;;52552:35:0;;;;;;;;;52603:28;;52552:24;;52603:28;;;;;;;52309:330;52231:408;;:::o;32424:33::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32424:33:0;;;;-1:-1:-1;32424:33:0;:::o;56437:2825::-;56579:27;56609;56628:7;56609:18;:27::i;:::-;56579:57;;56694:4;-1:-1:-1;;;;;56653:45:0;56669:19;-1:-1:-1;;;;;56653:45:0;;56649:86;;56707:28;;;;;;;;;;;;;;56649:86;56749:27;55545:24;;;:15;:24;;;;;55773:26;;56940:68;55773:26;56982:4;76564:10;56988:19;-1:-1:-1;;;;;55019:32:0;;;54863:28;;55148:20;;55170:30;;55145:56;;54560:659;56940:68;56935:180;;57028:43;57045:4;76564:10;53747:164;:::i;57028:43::-;57023:92;;57080:35;;-1:-1:-1;;;57080:35:0;;;;;;;;;;;57023:92;-1:-1:-1;;;;;57132:16:0;;57128:52;;57157:23;;;;;;;;;;;;;;57128:52;57329:15;57326:160;;;57469:1;57448:19;57441:30;57326:160;-1:-1:-1;;;;;57866:24:0;;;;;;;:18;:24;;;;;;57864:26;;-1:-1:-1;;57864:26:0;;;57935:22;;;;;;;;;57933:24;;-1:-1:-1;57933:24:0;;;51089:11;51064:23;51060:41;51047:63;-1:-1:-1;;;51047:63:0;58228:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;58523:47:0;;:52;;58519:627;;58628:1;58618:11;;58596:19;58751:30;;;:17;:30;;;;;;:35;;58747:384;;58889:13;;58874:11;:28;58870:242;;59036:30;;;;:17;:30;;;;;:52;;;58870:242;58577:569;58519:627;59193:7;59189:2;-1:-1:-1;;;;;59174:27:0;59183:4;-1:-1:-1;;;;;59174:27:0;;;;;;;;;;;59212:42;59233:4;59239:2;59243:7;59252:1;59212:20;:42::i;:::-;56568:2694;;;56437:2825;;;:::o;103971:236::-;5197:13;:11;:13::i;:::-;104040:19:::1;::::0;104036:92:::1;;104097:19;;-1:-1:-1::0;;;104097:19:0::1;;;;;;;;;;;104036:92;104140:10;:19:::0;;-1:-1:-1;;104140:19:0::1;::::0;::::1;;::::0;;::::1;::::0;;;104175:24:::1;::::0;586:41:1;;;104175:24:0::1;::::0;574:2:1;559:18;104175:24:0::1;;;;;;;;103971:236:::0;:::o;80257:442::-;80354:7;80412:27;;;:17;:27;;;;;;;;80383:56;;;;;;;;;-1:-1:-1;;;;;80383:56:0;;;;;-1:-1:-1;;;80383:56:0;;;;;;;;;;;;80354:7;;80452:92;;-1:-1:-1;80503:29:0;;;;;;;;;80513:19;80503:29;-1:-1:-1;;;;;80503:29:0;;;;-1:-1:-1;;;80503:29:0;;;;;;;;80452:92;80594:23;;;;80556:21;;81065:5;;80581:36;;80580:58;80581:36;:10;:36;:::i;:::-;80580:58;;;;:::i;:::-;80659:16;;;;;-1:-1:-1;80257:442:0;;-1:-1:-1;;;;80257:442:0:o;35477:411::-;5197:13;:11;:13::i;:::-;3367:21:::1;:19;:21::i;:::-;35557:6:::2;35567:1;35557:11:::0;35554:62:::2;;35592:12;;;;;;;;;;;;;;35554:62;35648:24;;35639:6;:33;35636:94;;;35696:22;;;;;;;;;;;;;;35636:94;35770:6;35742:24;;:34;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;35802:14:0::2;::::0;35794:36:::2;::::0;-1:-1:-1;;;;;35802:14:0;;::::2;::::0;35794:36;::::2;;;::::0;35823:6;;35802:14:::2;35794:36:::0;35802:14;35794:36;35823:6;35802:14;35794:36;::::2;;;;;;35789:92;;35854:15;;-1:-1:-1::0;;;35854:15:0::2;;;;;;;;;;;35789:92;3411:20:::1;2805:1:::0;3931:7;:22;3748:213;3411:20:::1;35477:411:::0;:::o;59358:193::-;59504:39;59521:4;59527:2;59531:7;59504:39;;;;;;;;;;;;:16;:39::i;:::-;59358:193;;;:::o;102147:120::-;102198:20;102204:7;102213:4;102198:5;:20::i;:::-;102258:1;102229:26;;;:17;:26;;;;;:30;102147:120::o;101716:160::-;3367:21;:19;:21::i;:::-;5197:13:::1;:11;:13::i;:::-;101839:29:::2;101853:9;101864:3;101839:13;:29::i;:::-;3411:20:::0;2805:1;3931:7;:22;3748:213;3411:20;101716:160;;:::o;103233:194::-;5197:13;:11;:13::i;:::-;103335:1:::1;103311:25:::0;;;103307:86:::1;;103360:21;::::0;-1:-1:-1;;;103360:21:0;;11117:2:1;103360:21:0::1;::::0;::::1;11099::1::0;11156:1;11136:18;;;11129:29;-1:-1:-1;;;11174:18:1;;;11167:36;11220:18;;103360:21:0::1;;;;;;;;103307:86;103403:7;:16;103413:6:::0;;103403:7;:16:::1;:::i;108741:476::-:0;108839:25;108866;108920:20;108934:5;108920:13;:20::i;:::-;108909:31;;108976:8;:15;108962:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;108962:30:0;;108951:41;;109010:9;109005:205;109029:8;:15;109025:1;:19;109005:205;;;109139:59;109169:8;109178:1;109169:11;;;;;;;;:::i;:::-;;;;;;;109182:15;109139:29;:59::i;:::-;109125:8;109134:1;109125:11;;;;;;;;:::i;:::-;;;;;;;;;;:73;109046:3;;;;:::i;:::-;;;;109005:205;;;;108741:476;;;:::o;47700:152::-;47772:7;47815:27;47834:7;47815:18;:27::i;98476:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;43242:233::-;43314:7;-1:-1:-1;;;;;43338:19:0;;43334:60;;43366:28;;;;;;;;;;;;;;43334:60;-1:-1:-1;;;;;;43412:25:0;;;;;:18;:25;;;;;;37401:13;43412:55;;43242:233::o;5959:103::-;5197:13;:11;:13::i;:::-;6024:30:::1;6051:1;6024:18;:30::i;:::-;5959:103::o:0;102864:240::-;3367:21;:19;:21::i;:::-;102985:35:::1;::::0;;;:26:::1;:35;::::0;;;;:42;;-1:-1:-1;;102985:42:0::1;103023:4;102985:42;::::0;;103040:56:::1;103063:12;76564:10:::0;;76477:105;103063:12:::1;103077:9;103088:7;103040:22;:56::i;104741:208::-:0;5197:13;:11;:13::i;:::-;104818:10;104814:83:::1;;104866:19;;-1:-1:-1::0;;;104866:19:0::1;;;;;;;;;;;104814:83;104909:19;:32:::0;104741:208::o;106661:979::-;106747:16;106806:19;106840:25;106880:22;106905:16;106915:5;106905:9;:16::i;:::-;106880:41;;106936:25;106978:14;106964:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;106964:29:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106936:57:0;;-1:-1:-1;113635:1:0;107054:538;107138:14;107123:11;:29;107054:538;;107221:15;107234:1;107221:12;:15::i;:::-;107209:27;;107259:9;:16;;;107300:8;107255:73;107350:14;;-1:-1:-1;;;;;107350:28:0;;107346:111;;107423:14;;;-1:-1:-1;107346:111:0;107500:5;-1:-1:-1;;;;;107479:26:0;:17;-1:-1:-1;;;;;107479:26:0;;107475:102;;107556:1;107530:8;107539:13;;;;;;107530:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;107475:102;107171:3;;107054:538;;;-1:-1:-1;107613:8:0;;106661:979;-1:-1:-1;;;;;;106661:979:0:o;103564:202::-;5197:13;:11;:13::i;:::-;103670:1:::1;103646:25:::0;;;103642:86:::1;;103695:21;::::0;-1:-1:-1;;;103695:21:0;;11117:2:1;103695:21:0::1;::::0;::::1;11099::1::0;11156:1;11136:18;;;11129:29;-1:-1:-1;;;11174:18:1;;;11167:36;11220:18;;103695:21:0::1;10915:329:1::0;103642:86:0::1;103738:11;:20;103752:6:::0;;103738:11;:20:::1;:::i;46483:104::-:0;46539:13;46572:7;46565:14;;;;;:::i;53356:234::-;76564:10;53451:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;53451:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;53451:60:0;;;;;;;;;;53527:55;;586:41:1;;;53451:49:0;;76564:10;53527:55;;559:18:1;53527:55:0;;;;;;;53356:234;;:::o;34395:1074::-;5384:6;;-1:-1:-1;;;;;5384:6:0;76564:10;32772:23;;:48;;-1:-1:-1;76564:10:0;32799:21;;;;:7;:21;;;;;;;;32772:48;32768:139;;;3367:21:::1;:19;:21::i;:::-;34497:24:::2;;34472:21;:49;34469:106;;34545:18;;;;;;;;;;;;;;34469:106;34587:22;34636:24;;34612:21;:48;;;;:::i;:::-;34587:73;;34678:9;34673:789;34697:12;:19:::0;34693:23;::::2;34673:789;;;34738:24;34765:12;34778:1;34765:15;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;34738:42:::2;::::0;;;;::::2;::::0;;;34765:15:::2;::::0;;::::2;;34738:42:::0;;-1:-1:-1;;;;;34738:42:0::2;::::0;;;::::2;::::0;;;::::2;::::0;;;34853:17:::2;::::0;34738:42;;-1:-1:-1;34875:3:0::2;::::0;34840:30:::2;::::0;34853:17:::2;::::0;;::::2;::::0;34840:30:::2;:::i;:::-;34822:49;::::0;:14;:49:::2;:::i;:::-;34821:57;;;;:::i;:::-;34797:81:::0;-1:-1:-1;35082:30:0::2;34797:81:::0;35082:14;:30:::2;:::i;:::-;35053:24;;:60;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;35200:18:0;;35192:47:::2;::::0;-1:-1:-1;;;;;35192:32:0;;::::2;::::0;:47;::::2;;;::::0;35225:13;;35200:18:::2;35192:47:::0;35200:18;35192:47;35225:13;35192:32;:47;::::2;;;;;;35187:111;;35267:15;;-1:-1:-1::0;;;35267:15:0::2;;;;;;;;;;;35187:111;35352:18:::0;;35319:131:::2;::::0;;-1:-1:-1;;;;;13994:55:1;;;13976:74;;14081:2;14066:18;;14059:34;;;14109:18;;14102:34;;;35319:131:0::2;::::0;13964:2:1;13949:18;35319:131:0::2;;;;;;;34723:739;;34718:3;;;;;:::i;:::-;;;;34673:789;;;;34458:1011;3411:20:::1;2805:1:::0;3931:7;:22;3748:213;32768:139;32878:17;;;;;;;;;;;;;;100926:507;3367:21;:19;:21::i;:::-;101049:11:::1;;99398:161;99435:11;;99398:161;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;99465:19:0::1;::::0;99513:30:::1;::::0;-1:-1:-1;;76564:10:0;14296:2:1;14292:15;14288:53;99513:30:0::1;::::0;::::1;14276:66:1::0;99465:19:0;;-1:-1:-1;14358:12:1;;;-1:-1:-1;99513:30:0::1;;;;;;;;;;;;99503:41;;;;;;99398:18;:161::i;:::-;99379:240;;99593:14;;;;;;;;;;;;;;99379:240;101083:10:::2;::::0;::::2;;101078:65;;101117:14;;;;;;;;;;;;;;101078:65;101172:9;;101159;:22;101155:79;;101205:17;;;;;;;;;;;;;;101155:79;76564:10:::0;101250:24:::2;::::0;;;:10:::2;:24;::::0;;;;;::::2;;:29:::0;101246:98:::2;;101303:29;;;;;;;;;;;;;;101246:98;76564:10:::0;101356:24:::2;::::0;;;:10:::2;:24;::::0;;;;:28;;-1:-1:-1;;101356:28:0::2;101383:1;101356:28:::0;;::::2;::::0;;;101395:30:::2;::::0;76564:10;101395:13:::2;:30::i;:::-;3399:1:::1;;3411:20:::0;2805:1;3931:7;:22;3748:213;60149:407;60324:31;60337:4;60343:2;60347:7;60324:12;:31::i;:::-;-1:-1:-1;;;;;60370:14:0;;;:19;60366:183;;60409:56;60440:4;60446:2;60450:7;60459:5;60409:30;:56::i;:::-;60404:145;;60493:40;;-1:-1:-1;;;60493:40:0;;;;;;;;;;;60404:145;60149:407;;;;:::o;111430:373::-;111563:7;111640:26;;;:17;:26;;;;;;111563:7;;111670:5;;111603:63;;:21;:63;:::i;:::-;111602:73;;;;:::i;:::-;111583:92;-1:-1:-1;111766:29:0;98091:2;111583:92;111766:29;:::i;:::-;111759:36;111430:373;-1:-1:-1;;;;111430:373:0:o;109465:307::-;109575:13;109611:16;109619:7;109611;:16::i;:::-;109606:83;;109651:26;;-1:-1:-1;;;109651:26:0;;;;;;;;;;;109606:83;109730:7;109744:18;:7;:16;:18::i;:::-;109713:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;109699:65;;109465:307;;;:::o;107995:305::-;108060:7;108085:16;108093:7;108085;:16::i;:::-;108080:83;;108125:26;;-1:-1:-1;;;108125:26:0;;;;;;;;;;;108080:83;108237:55;108267:7;108276:15;108237:29;:55::i;98504:25::-;;;;;;;:::i;6217:201::-;5197:13;:11;:13::i;:::-;-1:-1:-1;;;;;6306:22:0;::::1;6298:73;;;::::0;-1:-1:-1;;;6298:73:0;;15752:2:1;6298:73:0::1;::::0;::::1;15734:21:1::0;15791:2;15771:18;;;15764:30;15830:34;15810:18;;;15803:62;15901:8;15881:18;;;15874:36;15927:19;;6298:73:0::1;15550:402:1::0;6298:73:0::1;6382:28;6401:8;6382:18;:28::i;104374:140::-:0;5197:13;:11;:13::i;:::-;104444:9:::1;:20:::0;;;104480:26:::1;::::0;2734:25:1;;;104480:26:0::1;::::0;2722:2:1;2707:18;104480:26:0::1;2588:177:1::0;105536:282:0;5197:13;:11;:13::i;:::-;98038:3:::1;105626:9;105610:13;;:25;;;;:::i;:::-;:38;105606:109;;;105690:13;::::0;105677:26:::1;::::0;98038:3:::1;105677:26;:::i;:::-;105665:38;;105606:109;105744:9;105727:13;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;105796:13:0::1;::::0;105771:39:::1;::::0;;16131:25:1;;;16187:2;16172:18;;16165:34;;;;105771:39:0::1;::::0;16104:18:1;105771:39:0::1;15957:248:1::0;45405:639:0;45490:4;-1:-1:-1;;;;;;;;;45814:25:0;;;;:102;;-1:-1:-1;45891:25:0;-1:-1:-1;;;;;;45891:25:0;;;45814:102;:179;;;-1:-1:-1;;;;;;;;45968:25:0;;;;45405:639::o;79987:215::-;80089:4;-1:-1:-1;;;;;;80113:41:0;;80128:26;80113:41;;:81;;-1:-1:-1;;;;;;;;;;17908:40:0;;;80158:36;17799:157;54169:282;54234:4;54290:7;113635:1;54271:26;;:66;;;;;54324:13;;54314:7;:23;54271:66;:153;;;;-1:-1:-1;;54375:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;54375:44:0;:49;;54169:282::o;48855:1275::-;48922:7;48957;;113635:1;49006:23;49002:1061;;49059:13;;49052:4;:20;49048:1015;;;49097:14;49114:23;;;:17;:23;;;;;;;-1:-1:-1;;;49203:24:0;;:29;;49199:845;;49868:113;49875:6;49885:1;49875:11;49868:113;;-1:-1:-1;;;49946:6:0;49928:25;;;;:17;:25;;;;;;49868:113;;;50014:6;48855:1275;-1:-1:-1;;;48855:1275:0:o;49199:845::-;49074:989;49048:1015;50091:31;;;;;;;;;;;;;;112238:992;112484:9;112479:744;112503:8;112499:1;:12;112479:744;;;112533:22;112558:16;112573:1;112558:12;:16;:::i;:::-;112596:42;;;;:26;:42;;;;;;112533:41;;-1:-1:-1;112596:42:0;;112591:338;;112722:24;112785:33;;;:17;:33;;;;;;112749:15;112785:52;;;;112863:50;;112749:15;;-1:-1:-1;;;;;112863:50:0;;;112749:15;;112803:14;;112863:50;;112722:24;112863:50;112640:289;112591:338;113206:5;113161:42;;;:26;:42;;;;;:50;;-1:-1:-1;;113161:50:0;;;112513:3;;;;:::i;:::-;;;;112479:744;;;;112238:992;;;;:::o;5476:132::-;5384:6;;-1:-1:-1;;;;;5384:6:0;76564:10;5540:23;5532:68;;;;-1:-1:-1;;;5532:68:0;;16412:2:1;5532:68:0;;;16394:21:1;;;16431:18;;;16424:30;16490:34;16470:18;;;16463:62;16542:18;;5532:68:0;16210:356:1;3447:293:0;2849:1;3581:7;;:19;3573:63;;;;-1:-1:-1;;;3573:63:0;;16773:2:1;3573:63:0;;;16755:21:1;16812:2;16792:18;;;16785:30;16851:33;16831:18;;;16824:61;16902:18;;3573:63:0;16571:355:1;3573:63:0;2849:1;3714:7;:18;3447:293::o;71006:3081::-;71086:27;71116;71135:7;71116:18;:27::i;:::-;71086:57;-1:-1:-1;71086:57:0;71156:12;;71278:35;71305:7;55434:27;55545:24;;;:15;:24;;;;;55773:26;;55545:24;;55332:485;71278:35;71221:92;;;;71330:13;71326:316;;;71451:68;71476:15;71493:4;76564:10;71499:19;76477:105;71451:68;71446:184;;71543:43;71560:4;76564:10;53747:164;:::i;71543:43::-;71538:92;;71595:35;;-1:-1:-1;;;71595:35:0;;;;;;;;;;;71538:92;71798:15;71795:160;;;71938:1;71917:19;71910:30;71795:160;-1:-1:-1;;;;;72557:24:0;;;;;;:18;:24;;;;;:60;;72585:32;72557:60;;;51089:11;51064:23;51060:41;51047:63;72945:43;51047:63;72855:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;73180:47:0;;:52;;73176:627;;73285:1;73275:11;;73253:19;73408:30;;;:17;:30;;;;;;:35;;73404:384;;73546:13;;73531:11;:28;73527:242;;73693:30;;;;:17;:30;;;;;:52;;;73527:242;73234:569;73176:627;73831:35;;73858:7;;73854:1;;-1:-1:-1;;;;;73831:35:0;;;;;73854:1;;73831:35;73877:50;73898:4;73912:1;73916:7;73925:1;73877:20;:50::i;:::-;-1:-1:-1;;74054:12:0;:14;;;;;;-1:-1:-1;;;;71006:3081:0:o;113743:286::-;113821:3;113828:1;113821:8;113817:62;;113853:14;;;;;;;;;;;;;;113817:62;98038:3;113913;113896:14;42534:7;42725:13;-1:-1:-1;;42725:31:0;;42479:296;113896:14;:20;;;;:::i;:::-;113895:35;113891:93;;;113954:18;;;;;;;;;;;;;;113891:93;113996:25;114006:9;114017:3;113996:9;:25::i;6578:191::-;6671:6;;;-1:-1:-1;;;;;6688:17:0;;;-1:-1:-1;;6688:17:0;;;;;;;6721:40;;6671:6;;;6688:17;6671:6;;6721:40;;6652:16;;6721:40;6641:128;6578:191;:::o;48303:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48431:24:0;;;;:17;:24;;;;;;48412:44;;-1:-1:-1;;;;;;;;;;;;;50339:41:0;;;;38060:3;50425:33;;;50391:68;;-1:-1:-1;;;50391:68:0;-1:-1:-1;;;50489:24:0;;:29;;-1:-1:-1;;;50470:48:0;;;;38581:3;50558:28;;;;-1:-1:-1;;;50529:58:0;-1:-1:-1;50229:366:0;86458:190;86583:4;86636;86607:25;86620:5;86627:4;86607:12;:25::i;:::-;:33;;86458:190;-1:-1:-1;;;;86458:190:0:o;62640:716::-;62824:88;;-1:-1:-1;;;62824:88:0;;62803:4;;-1:-1:-1;;;;;62824:45:0;;;;;:88;;76564:10;;62891:4;;62897:7;;62906:5;;62824:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62824:88:0;;;;;;;;-1:-1:-1;;62824:88:0;;;;;;;;;;;;:::i;:::-;;;62820:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63107:6;:13;63124:1;63107:18;63103:235;;63153:40;;-1:-1:-1;;;63153:40:0;;;;;;;;;;;63103:235;63296:6;63290:13;63281:6;63277:2;63273:15;63266:38;62820:529;-1:-1:-1;;;;;;62983:64:0;-1:-1:-1;;;62983:64:0;;-1:-1:-1;62640:716:0;;;;;;:::o;83286:::-;83342:13;83393:14;83410:17;83421:5;83410:10;:17::i;:::-;83430:1;83410:21;83393:38;;83446:20;83480:6;83469:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83469:18:0;-1:-1:-1;83446:41:0;-1:-1:-1;83611:28:0;;;83627:2;83611:28;83668:288;-1:-1:-1;;83700:5:0;83842:8;83837:2;83826:14;;83821:30;83700:5;83808:44;83898:2;83889:11;;;-1:-1:-1;83919:21:0;83668:288;83919:21;-1:-1:-1;83977:6:0;83286:716;-1:-1:-1;;;83286:716:0:o;70309:112::-;70386:27;70396:2;70400:8;70386:27;;;;;;;;;;;;:9;:27::i;87325:296::-;87408:7;87451:4;87408:7;87466:118;87490:5;:12;87486:1;:16;87466:118;;;87539:33;87549:12;87563:5;87569:1;87563:8;;;;;;;;:::i;:::-;;;;;;;87539:9;:33::i;:::-;87524:48;-1:-1:-1;87504:3:0;;;;:::i;:::-;;;;87466:118;;;-1:-1:-1;87601:12:0;87325:296;-1:-1:-1;;;87325:296:0:o;29220:922::-;29273:7;;29360:6;29351:15;;29347:102;;29396:6;29387:15;;;-1:-1:-1;29431:2:0;29421:12;29347:102;29476:6;29467:5;:15;29463:102;;29512:6;29503:15;;;-1:-1:-1;29547:2:0;29537:12;29463:102;29592:6;29583:5;:15;29579:102;;29628:6;29619:15;;;-1:-1:-1;29663:2:0;29653:12;29579:102;29708:5;29699;:14;29695:99;;29743:5;29734:14;;;-1:-1:-1;29777:1:0;29767:11;29695:99;29821:5;29812;:14;29808:99;;29856:5;29847:14;;;-1:-1:-1;29890:1:0;29880:11;29808:99;29934:5;29925;:14;29921:99;;29969:5;29960:14;;;-1:-1:-1;30003:1:0;29993:11;29921:99;30047:5;30038;:14;30034:66;;30083:1;30073:11;30128:6;29220:922;-1:-1:-1;;29220:922:0:o;69536:689::-;69667:19;69673:2;69677:8;69667:5;:19::i;:::-;-1:-1:-1;;;;;69728:14:0;;;:19;69724:483;;69768:11;69782:13;69830:14;;;69863:233;69894:62;69933:1;69937:2;69941:7;;;;;;69950:5;69894:30;:62::i;:::-;69889:167;;69992:40;;-1:-1:-1;;;69992:40:0;;;;;;;;;;;69889:167;70091:3;70083:5;:11;69863:233;;70178:3;70161:13;;:20;70157:34;;70183:8;;;94365:149;94428:7;94459:1;94455;:5;:51;;94590:13;94684:15;;;94720:4;94713:15;;;94767:4;94751:21;;94455:51;;;-1:-1:-1;94590:13:0;94684:15;;;94720:4;94713:15;94767:4;94751:21;;;94365:149::o;63818:2966::-;63891:20;63914:13;;;63942;;;63938:44;;63964:18;;;;;;;;;;;;;;63938:44;-1:-1:-1;;;;;64470:22:0;;;;;;:18;:22;;;;37539:2;64470:22;;;:71;;64508:32;64496:45;;64470:71;;;64784:31;;;:17;:31;;;;;-1:-1:-1;51520:15:0;;51494:24;51490:46;51089:11;51064:23;51060:41;51057:52;51047:63;;64784:173;;65019:23;;;;64784:31;;64470:22;;65784:25;64470:22;;65637:335;66298:1;66284:12;66280:20;66238:346;66339:3;66330:7;66327:16;66238:346;;66557:7;66547:8;66544:1;66517:25;66514:1;66511;66506:59;66392:1;66379:15;66238:346;;;66242:77;66617:8;66629:1;66617:13;66613:45;;66639:19;;;;;;;;;;;;;;66613:45;66675:13;:19;;;66716:60;;-1:-1:-1;66749:2:0;66753:12;66767:8;66716:20;:60::i;14:177:1:-;-1:-1:-1;;;;;;92:5:1;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:250::-;723:1;733:113;747:6;744:1;741:13;733:113;;;823:11;;;817:18;804:11;;;797:39;769:2;762:10;733:113;;;-1:-1:-1;;880:1:1;862:16;;855:27;638:250::o;893:271::-;935:3;973:5;967:12;1000:6;995:3;988:19;1016:76;1085:6;1078:4;1073:3;1069:14;1062:4;1055:5;1051:16;1016:76;:::i;:::-;1146:2;1125:15;-1:-1:-1;;1121:29:1;1112:39;;;;1153:4;1108:50;;893:271;-1:-1:-1;;893:271:1:o;1169:220::-;1318:2;1307:9;1300:21;1281:4;1338:45;1379:2;1368:9;1364:18;1356:6;1338:45;:::i;1394:180::-;1453:6;1506:2;1494:9;1485:7;1481:23;1477:32;1474:52;;;1522:1;1519;1512:12;1474:52;-1:-1:-1;1545:23:1;;1394:180;-1:-1:-1;1394:180:1:o;1810:196::-;1878:20;;-1:-1:-1;;;;;1927:54:1;;1917:65;;1907:93;;1996:1;1993;1986:12;1907:93;1810:196;;;:::o;2011:254::-;2079:6;2087;2140:2;2128:9;2119:7;2115:23;2111:32;2108:52;;;2156:1;2153;2146:12;2108:52;2179:29;2198:9;2179:29;:::i;:::-;2169:39;2255:2;2240:18;;;;2227:32;;-1:-1:-1;;;2011:254:1:o;2770:328::-;2847:6;2855;2863;2916:2;2904:9;2895:7;2891:23;2887:32;2884:52;;;2932:1;2929;2922:12;2884:52;2955:29;2974:9;2955:29;:::i;:::-;2945:39;;3003:38;3037:2;3026:9;3022:18;3003:38;:::i;:::-;2993:48;;3088:2;3077:9;3073:18;3060:32;3050:42;;2770:328;;;;;:::o;3103:160::-;3168:20;;3224:13;;3217:21;3207:32;;3197:60;;3253:1;3250;3243:12;3268:180;3324:6;3377:2;3365:9;3356:7;3352:23;3348:32;3345:52;;;3393:1;3390;3383:12;3345:52;3416:26;3432:9;3416:26;:::i;3453:248::-;3521:6;3529;3582:2;3570:9;3561:7;3557:23;3553:32;3550:52;;;3598:1;3595;3588:12;3550:52;-1:-1:-1;;3621:23:1;;;3691:2;3676:18;;;3663:32;;-1:-1:-1;3453:248:1:o;4255:186::-;4314:6;4367:2;4355:9;4346:7;4342:23;4338:32;4335:52;;;4383:1;4380;4373:12;4335:52;4406:29;4425:9;4406:29;:::i;4635:592::-;4706:6;4714;4767:2;4755:9;4746:7;4742:23;4738:32;4735:52;;;4783:1;4780;4773:12;4735:52;4823:9;4810:23;4852:18;4893:2;4885:6;4882:14;4879:34;;;4909:1;4906;4899:12;4879:34;4947:6;4936:9;4932:22;4922:32;;4992:7;4985:4;4981:2;4977:13;4973:27;4963:55;;5014:1;5011;5004:12;4963:55;5054:2;5041:16;5080:2;5072:6;5069:14;5066:34;;;5096:1;5093;5086:12;5066:34;5141:7;5136:2;5127:6;5123:2;5119:15;5115:24;5112:37;5109:57;;;5162:1;5159;5152:12;5109:57;5193:2;5185:11;;;;;5215:6;;-1:-1:-1;4635:592:1;;-1:-1:-1;;;;4635:592:1:o;5232:435::-;5285:3;5323:5;5317:12;5350:6;5345:3;5338:19;5376:4;5405:2;5400:3;5396:12;5389:19;;5442:2;5435:5;5431:14;5463:1;5473:169;5487:6;5484:1;5481:13;5473:169;;;5548:13;;5536:26;;5582:12;;;;5617:15;;;;5509:1;5502:9;5473:169;;;-1:-1:-1;5658:3:1;;5232:435;-1:-1:-1;;;;;5232:435:1:o;5672:465::-;5929:2;5918:9;5911:21;5892:4;5955:56;6007:2;5996:9;5992:18;5984:6;5955:56;:::i;:::-;6059:9;6051:6;6047:22;6042:2;6031:9;6027:18;6020:50;6087:44;6124:6;6116;6087:44;:::i;:::-;6079:52;5672:465;-1:-1:-1;;;;;5672:465:1:o;6142:254::-;6210:6;6218;6271:2;6259:9;6250:7;6246:23;6242:32;6239:52;;;6287:1;6284;6277:12;6239:52;6323:9;6310:23;6300:33;;6352:38;6386:2;6375:9;6371:18;6352:38;:::i;:::-;6342:48;;6142:254;;;;;:::o;6586:261::-;6765:2;6754:9;6747:21;6728:4;6785:56;6837:2;6826:9;6822:18;6814:6;6785:56;:::i;7034:254::-;7099:6;7107;7160:2;7148:9;7139:7;7135:23;7131:32;7128:52;;;7176:1;7173;7166:12;7128:52;7199:29;7218:9;7199:29;:::i;:::-;7189:39;;7247:35;7278:2;7267:9;7263:18;7247:35;:::i;7293:615::-;7379:6;7387;7440:2;7428:9;7419:7;7415:23;7411:32;7408:52;;;7456:1;7453;7446:12;7408:52;7496:9;7483:23;7525:18;7566:2;7558:6;7555:14;7552:34;;;7582:1;7579;7572:12;7552:34;7620:6;7609:9;7605:22;7595:32;;7665:7;7658:4;7654:2;7650:13;7646:27;7636:55;;7687:1;7684;7677:12;7636:55;7727:2;7714:16;7753:2;7745:6;7742:14;7739:34;;;7769:1;7766;7759:12;7739:34;7822:7;7817:2;7807:6;7804:1;7800:14;7796:2;7792:23;7788:32;7785:45;7782:65;;;7843:1;7840;7833:12;7913:184;-1:-1:-1;;;7962:1:1;7955:88;8062:4;8059:1;8052:15;8086:4;8083:1;8076:15;8102:1138;8197:6;8205;8213;8221;8274:3;8262:9;8253:7;8249:23;8245:33;8242:53;;;8291:1;8288;8281:12;8242:53;8314:29;8333:9;8314:29;:::i;:::-;8304:39;;8362:38;8396:2;8385:9;8381:18;8362:38;:::i;:::-;8352:48;;8447:2;8436:9;8432:18;8419:32;8409:42;;8502:2;8491:9;8487:18;8474:32;8525:18;8566:2;8558:6;8555:14;8552:34;;;8582:1;8579;8572:12;8552:34;8620:6;8609:9;8605:22;8595:32;;8665:7;8658:4;8654:2;8650:13;8646:27;8636:55;;8687:1;8684;8677:12;8636:55;8723:2;8710:16;8745:2;8741;8738:10;8735:36;;;8751:18;;:::i;:::-;8826:2;8820:9;8794:2;8880:13;;-1:-1:-1;;8876:22:1;;;8900:2;8872:31;8868:40;8856:53;;;8924:18;;;8944:22;;;8921:46;8918:72;;;8970:18;;:::i;:::-;9010:10;9006:2;8999:22;9045:2;9037:6;9030:18;9085:7;9080:2;9075;9071;9067:11;9063:20;9060:33;9057:53;;;9106:1;9103;9096:12;9057:53;9162:2;9157;9153;9149:11;9144:2;9136:6;9132:15;9119:46;9207:1;9202:2;9197;9189:6;9185:15;9181:24;9174:35;9228:6;9218:16;;;;;;;8102:1138;;;;;;;:::o;9245:260::-;9313:6;9321;9374:2;9362:9;9353:7;9349:23;9345:32;9342:52;;;9390:1;9387;9380:12;9342:52;9413:29;9432:9;9413:29;:::i;:::-;9403:39;;9461:38;9495:2;9484:9;9480:18;9461:38;:::i;9510:437::-;9589:1;9585:12;;;;9632;;;9653:61;;9707:4;9699:6;9695:17;9685:27;;9653:61;9760:2;9752:6;9749:14;9729:18;9726:38;9723:218;;-1:-1:-1;;;9794:1:1;9787:88;9898:4;9895:1;9888:15;9926:4;9923:1;9916:15;9723:218;;9510:437;;;:::o;9952:184::-;-1:-1:-1;;;10001:1:1;9994:88;10101:4;10098:1;10091:15;10125:4;10122:1;10115:15;10141:168;10214:9;;;10245;;10262:15;;;10256:22;;10242:37;10232:71;;10283:18;;:::i;10503:274::-;10543:1;10569;10559:189;;-1:-1:-1;;;10601:1:1;10594:88;10705:4;10702:1;10695:15;10733:4;10730:1;10723:15;10559:189;-1:-1:-1;10762:9:1;;10503:274::o;10782:128::-;10849:9;;;10870:11;;;10867:37;;;10884:18;;:::i;11375:545::-;11477:2;11472:3;11469:11;11466:448;;;11513:1;11538:5;11534:2;11527:17;11583:4;11579:2;11569:19;11653:2;11641:10;11637:19;11634:1;11630:27;11624:4;11620:38;11689:4;11677:10;11674:20;11671:47;;;-1:-1:-1;11712:4:1;11671:47;11767:2;11762:3;11758:12;11755:1;11751:20;11745:4;11741:31;11731:41;;11822:82;11840:2;11833:5;11830:13;11822:82;;;11885:17;;;11866:1;11855:13;11822:82;;12096:1206;12220:18;12215:3;12212:27;12209:53;;;12242:18;;:::i;:::-;12271:94;12361:3;12321:38;12353:4;12347:11;12321:38;:::i;:::-;12315:4;12271:94;:::i;:::-;12391:1;12416:2;12411:3;12408:11;12433:1;12428:616;;;;13088:1;13105:3;13102:93;;;-1:-1:-1;13161:19:1;;;13148:33;13102:93;-1:-1:-1;;12053:1:1;12049:11;;;12045:24;12041:29;12031:40;12077:1;12073:11;;;12028:57;13208:78;;12401:895;;12428:616;11322:1;11315:14;;;11359:4;11346:18;;-1:-1:-1;;12464:17:1;;;12565:9;12587:229;12601:7;12598:1;12595:14;12587:229;;;12690:19;;;12677:33;12662:49;;12797:4;12782:20;;;;12750:1;12738:14;;;;12617:12;12587:229;;;12591:3;12844;12835:7;12832:16;12829:159;;;12968:1;12964:6;12958:3;12952;12949:1;12945:11;12941:21;12937:34;12933:39;12920:9;12915:3;12911:19;12898:33;12894:79;12886:6;12879:95;12829:159;;;13031:1;13025:3;13022:1;13018:11;13014:19;13008:4;13001:33;12401:895;;12096:1206;;;:::o;13307:184::-;-1:-1:-1;;;13356:1:1;13349:88;13456:4;13453:1;13446:15;13480:4;13477:1;13470:15;13496:135;13535:3;13556:17;;;13553:43;;13576:18;;:::i;:::-;-1:-1:-1;13623:1:1;13612:13;;13496:135::o;13636:125::-;13701:9;;;13722:10;;;13719:36;;;13735:18;;:::i;14381:1164::-;14658:3;14687:1;14720:6;14714:13;14750:36;14776:9;14750:36;:::i;:::-;14805:1;14822:18;;;14849:133;;;;14996:1;14991:356;;;;14815:532;;14849:133;-1:-1:-1;;14882:24:1;;14870:37;;14955:14;;14948:22;14936:35;;14927:45;;;-1:-1:-1;14849:133:1;;14991:356;15022:6;15019:1;15012:17;15052:4;15097:2;15094:1;15084:16;15122:1;15136:165;15150:6;15147:1;15144:13;15136:165;;;15228:14;;15215:11;;;15208:35;15271:16;;;;15165:10;;15136:165;;;15140:3;;;15330:6;15325:3;15321:16;15314:23;;14815:532;;15368:3;15363;15356:16;15403:6;15397:13;15381:29;;15419:77;15487:8;15482:2;15477:3;15473:12;15466:4;15458:6;15454:17;15419:77;:::i;:::-;15516:18;;;;15512:27;;;-1:-1:-1;;;;;14381:1164:1:o;16931:512::-;17125:4;-1:-1:-1;;;;;17235:2:1;17227:6;17223:15;17212:9;17205:34;17287:2;17279:6;17275:15;17270:2;17259:9;17255:18;17248:43;;17327:6;17322:2;17311:9;17307:18;17300:34;17370:3;17365:2;17354:9;17350:18;17343:31;17391:46;17432:3;17421:9;17417:19;17409:6;17391:46;:::i;:::-;17383:54;16931:512;-1:-1:-1;;;;;;16931:512:1:o;17448:249::-;17517:6;17570:2;17558:9;17549:7;17545:23;17541:32;17538:52;;;17586:1;17583;17576:12;17538:52;17618:9;17612:16;17637:30;17661:5;17637:30;:::i
Swarm Source
ipfs://fc3f98c0c581857baea02687b4f691b3f0247fcdd7ad5b61fd48f9fc09b3e85f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.