Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 405 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer From | 16390623 | 1163 days ago | IN | 0 ETH | 0.00071437 | ||||
| Transfer From | 16390621 | 1163 days ago | IN | 0 ETH | 0.00113439 | ||||
| Withdraw | 16321778 | 1172 days ago | IN | 0 ETH | 0.00052293 | ||||
| Set Approval For... | 16321633 | 1172 days ago | IN | 0 ETH | 0.00084954 | ||||
| Set Approval For... | 16321617 | 1172 days ago | IN | 0 ETH | 0.00087419 | ||||
| Set Approval For... | 16321612 | 1172 days ago | IN | 0 ETH | 0.00089976 | ||||
| Set Approval For... | 16321612 | 1172 days ago | IN | 0 ETH | 0.00089976 | ||||
| Set Approval For... | 16321612 | 1172 days ago | IN | 0 ETH | 0.00089976 | ||||
| Set Approval For... | 16321608 | 1172 days ago | IN | 0 ETH | 0.00093238 | ||||
| Set Approval For... | 16321601 | 1172 days ago | IN | 0 ETH | 0.0008603 | ||||
| Set Approval For... | 16321601 | 1172 days ago | IN | 0 ETH | 0.0008603 | ||||
| Set Approval For... | 16321600 | 1172 days ago | IN | 0 ETH | 0.00078956 | ||||
| Set Approval For... | 16321600 | 1172 days ago | IN | 0 ETH | 0.00078956 | ||||
| Set Approval For... | 16321595 | 1172 days ago | IN | 0 ETH | 0.0008 | ||||
| Set Approval For... | 16321594 | 1172 days ago | IN | 0 ETH | 0.00074425 | ||||
| Set Approval For... | 16321594 | 1172 days ago | IN | 0 ETH | 0.00078335 | ||||
| Set Approval For... | 16321592 | 1172 days ago | IN | 0 ETH | 0.00083166 | ||||
| Set Approval For... | 16321592 | 1172 days ago | IN | 0 ETH | 0.0004761 | ||||
| Set Approval For... | 16321592 | 1172 days ago | IN | 0 ETH | 0.00083209 | ||||
| Transfer From | 16321589 | 1172 days ago | IN | 0 ETH | 0.00089585 | ||||
| Transfer From | 16321589 | 1172 days ago | IN | 0 ETH | 0.00089585 | ||||
| Transfer From | 16321589 | 1172 days ago | IN | 0 ETH | 0.00089585 | ||||
| Transfer From | 16321589 | 1172 days ago | IN | 0 ETH | 0.00089561 | ||||
| Transfer From | 16321589 | 1172 days ago | IN | 0 ETH | 0.00089585 | ||||
| Transfer From | 16321589 | 1172 days ago | IN | 0 ETH | 0.00089585 |
Latest 6 internal transactions
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
JokerByLedger
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-01-02
*/
/**
*Submitted for verification at Etherscan.io on 2023-01-01
*/
// SPDX-License-Identifier: 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);
}
}
}
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);
}
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @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);
}
}
// 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;
}
}
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @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);
}
}
// 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;
}
}
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @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)
}
}
}
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.9;
contract JokerByLedger is ERC721A, Ownable {
using Strings for uint256;
uint256 public maxSupply = 444;
uint256 public mintPrice = .004 ether;
uint256 public maxPerWallet = 4;
bool public paused = true;
string public baseURI = "ipfs://Qmb3XckVz6y2C4vN85hhjtKDpKStw6CaCyB89sKrjxAp1C/";
mapping(address => uint256) public mintPerWallet;
constructor() ERC721A("444 Joker by Ledger", "JbL") {}
function mint(uint256 _quantity) external payable {
require(!paused, "Mint is not started");
require(
(totalSupply() + _quantity) <= maxSupply,
"Max supply reached"
);
require(
(mintPerWallet[msg.sender] + _quantity) <= maxPerWallet,
"Max mint reached"
);
require(msg.value >= (mintPrice * _quantity), "Send the exact amount");
mintPerWallet[msg.sender] += _quantity;
_safeMint(msg.sender, _quantity);
}
function reserveMint(address receiver, uint256 mintAmount)
external
onlyOwner
{
_safeMint(receiver, mintAmount);
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
}
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
function _startTokenId() internal view virtual override returns (uint256) {
return 1;
}
function setBaseURI(string memory uri) public onlyOwner {
baseURI = uri;
}
function startSale() external onlyOwner {
paused = !paused;
}
function setSupply(uint256 _newAmount) external onlyOwner {
maxSupply = _newAmount;
}
function setPrice(uint256 _newPrice) external onlyOwner {
mintPrice = _newPrice;
}
function withdraw() external onlyOwner {
(bool success, ) = payable(msg.sender).call{
value: address(this).balance
}("");
require(success, "Transfer failed.");
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526101bc600955660e35fa931a0000600a556004600b556001600c60006101000a81548160ff0219169083151502179055506040518060600160405280603681526020016200351760369139600d90816200005f91906200048d565b503480156200006d57600080fd5b506040518060400160405280601381526020017f343434204a6f6b6572206279204c6564676572000000000000000000000000008152506040518060400160405280600381526020017f4a624c00000000000000000000000000000000000000000000000000000000008152508160029081620000eb91906200048d565b508060039081620000fd91906200048d565b506200010e6200013c60201b60201c565b6000819055505050620001366200012a6200014560201b60201c565b6200014d60201b60201c565b62000574565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200029557607f821691505b602082108103620002ab57620002aa6200024d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002d6565b620003218683620002d6565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200036e62000368620003628462000339565b62000343565b62000339565b9050919050565b6000819050919050565b6200038a836200034d565b620003a2620003998262000375565b848454620002e3565b825550505050565b600090565b620003b9620003aa565b620003c68184846200037f565b505050565b5b81811015620003ee57620003e2600082620003af565b600181019050620003cc565b5050565b601f8211156200043d576200040781620002b1565b6200041284620002c6565b8101602085101562000422578190505b6200043a6200043185620002c6565b830182620003cb565b50505b505050565b600082821c905092915050565b6000620004626000198460080262000442565b1980831691505092915050565b60006200047d83836200044f565b9150826002028217905092915050565b620004988262000213565b67ffffffffffffffff811115620004b457620004b36200021e565b5b620004c082546200027c565b620004cd828285620003f2565b600060209050601f831160018114620005055760008415620004f0578287015190505b620004fc85826200046f565b8655506200056c565b601f1984166200051586620002b1565b60005b828110156200053f5784890151825560018201915060208501945060208101905062000518565b868310156200055f57848901516200055b601f8916826200044f565b8355505b6001600288020188555050505b505050505050565b612f9380620005846000396000f3fe6080604052600436106101cd5760003560e01c80636c0360eb116100f7578063a22cb46511610095578063c87b56dd11610064578063c87b56dd146105f9578063d5abeb0114610636578063e985e9c514610661578063f2fde38b1461069e576101cd565b8063a22cb46514610574578063b0ea18021461059d578063b66a0e5d146105c6578063b88d4fde146105dd576101cd565b80638da5cb5b116100d15780638da5cb5b146104d957806391b7f5ed1461050457806395d89b411461052d578063a0712d6814610558576101cd565b80636c0360eb1461045a57806370a0823114610485578063715018a6146104c2576101cd565b80633b4c4b251161016f57806355f804b31161013e57806355f804b31461039e5780635c975abb146103c75780636352211e146103f25780636817c76c1461042f576101cd565b80633b4c4b25146103175780633ccfd60b1461034057806342842e0e14610357578063453c231014610373576101cd565b8063095ea7b3116101ab578063095ea7b31461027757806313413cd21461029357806318160ddd146102d057806323b872dd146102fb576101cd565b806301ffc9a7146101d257806306fdde031461020f578063081812fc1461023a575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190611f64565b6106c7565b6040516102069190611fac565b60405180910390f35b34801561021b57600080fd5b50610224610759565b6040516102319190612057565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c91906120af565b6107eb565b60405161026e919061211d565b60405180910390f35b610291600480360381019061028c9190612164565b61086a565b005b34801561029f57600080fd5b506102ba60048036038101906102b591906121a4565b6109ae565b6040516102c791906121e0565b60405180910390f35b3480156102dc57600080fd5b506102e56109c6565b6040516102f291906121e0565b60405180910390f35b610315600480360381019061031091906121fb565b6109dd565b005b34801561032357600080fd5b5061033e600480360381019061033991906120af565b610cff565b005b34801561034c57600080fd5b50610355610d11565b005b610371600480360381019061036c91906121fb565b610dc8565b005b34801561037f57600080fd5b50610388610de8565b60405161039591906121e0565b60405180910390f35b3480156103aa57600080fd5b506103c560048036038101906103c09190612383565b610dee565b005b3480156103d357600080fd5b506103dc610e09565b6040516103e99190611fac565b60405180910390f35b3480156103fe57600080fd5b50610419600480360381019061041491906120af565b610e1c565b604051610426919061211d565b60405180910390f35b34801561043b57600080fd5b50610444610e2e565b60405161045191906121e0565b60405180910390f35b34801561046657600080fd5b5061046f610e34565b60405161047c9190612057565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a791906121a4565b610ec2565b6040516104b991906121e0565b60405180910390f35b3480156104ce57600080fd5b506104d7610f7a565b005b3480156104e557600080fd5b506104ee610f8e565b6040516104fb919061211d565b60405180910390f35b34801561051057600080fd5b5061052b600480360381019061052691906120af565b610fb8565b005b34801561053957600080fd5b50610542610fca565b60405161054f9190612057565b60405180910390f35b610572600480360381019061056d91906120af565b61105c565b005b34801561058057600080fd5b5061059b600480360381019061059691906123f8565b611245565b005b3480156105a957600080fd5b506105c460048036038101906105bf9190612164565b611350565b005b3480156105d257600080fd5b506105db611366565b005b6105f760048036038101906105f291906124d9565b61139a565b005b34801561060557600080fd5b50610620600480360381019061061b91906120af565b61140d565b60405161062d9190612057565b60405180910390f35b34801561064257600080fd5b5061064b611489565b60405161065891906121e0565b60405180910390f35b34801561066d57600080fd5b506106886004803603810190610683919061255c565b61148f565b6040516106959190611fac565b60405180910390f35b3480156106aa57600080fd5b506106c560048036038101906106c091906121a4565b611523565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107525750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610768906125cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610794906125cb565b80156107e15780601f106107b6576101008083540402835291602001916107e1565b820191906000526020600020905b8154815290600101906020018083116107c457829003601f168201915b5050505050905090565b60006107f6826115a6565b61082c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061087582610e1c565b90508073ffffffffffffffffffffffffffffffffffffffff16610896611605565b73ffffffffffffffffffffffffffffffffffffffff16146108f9576108c2816108bd611605565b61148f565b6108f8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e6020528060005260406000206000915090505481565b60006109d061160d565b6001546000540303905090565b60006109e882611616565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610a5b846116e2565b91509150610a718187610a6c611605565b611709565b610abd57610a8686610a81611605565b61148f565b610abc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610b23576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b30868686600161174d565b8015610b3b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c0985610be5888887611753565b7c02000000000000000000000000000000000000000000000000000000001761177b565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610c8f5760006001850190506000600460008381526020019081526020016000205403610c8d576000548114610c8c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610cf786868660016117a6565b505050505050565b610d076117ac565b8060098190555050565b610d196117ac565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610d3f9061262d565b60006040518083038185875af1925050503d8060008114610d7c576040519150601f19603f3d011682016040523d82523d6000602084013e610d81565b606091505b5050905080610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc9061268e565b60405180910390fd5b50565b610de38383836040518060200160405280600081525061139a565b505050565b600b5481565b610df66117ac565b80600d9081610e05919061285a565b5050565b600c60009054906101000a900460ff1681565b6000610e2782611616565b9050919050565b600a5481565b600d8054610e41906125cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6d906125cb565b8015610eba5780601f10610e8f57610100808354040283529160200191610eba565b820191906000526020600020905b815481529060010190602001808311610e9d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f29576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610f826117ac565b610f8c600061182a565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fc06117ac565b80600a8190555050565b606060038054610fd9906125cb565b80601f0160208091040260200160405190810160405280929190818152602001828054611005906125cb565b80156110525780601f1061102757610100808354040283529160200191611052565b820191906000526020600020905b81548152906001019060200180831161103557829003601f168201915b5050505050905090565b600c60009054906101000a900460ff16156110ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a390612978565b60405180910390fd5b600954816110b86109c6565b6110c291906129c7565b1115611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fa90612a47565b60405180910390fd5b600b5481600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461115191906129c7565b1115611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990612ab3565b60405180910390fd5b80600a546111a09190612ad3565b3410156111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990612b61565b60405180910390fd5b80600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461123191906129c7565b9250508190555061124233826118f0565b50565b8060076000611252611605565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112ff611605565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113449190611fac565b60405180910390a35050565b6113586117ac565b61136282826118f0565b5050565b61136e6117ac565b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b6113a58484846109dd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611407576113d08484848461190e565b611406576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611418826115a6565b611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144e90612bf3565b60405180910390fd5b600d61146283611a5e565b604051602001611473929190612d1e565b6040516020818303038152906040529050919050565b60095481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61152b6117ac565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190612dbf565b60405180910390fd5b6115a38161182a565b50565b6000816115b161160d565b111580156115c0575060005482105b80156115fe575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061162561160d565b116116ab576000548110156116aa5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036116a8575b6000810361169e576004600083600190039350838152602001908152602001600020549050611674565b80925050506116dd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861176a868684611b2c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6117b4611b35565b73ffffffffffffffffffffffffffffffffffffffff166117d2610f8e565b73ffffffffffffffffffffffffffffffffffffffff1614611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90612e2b565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61190a828260405180602001604052806000815250611b3d565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611934611605565b8786866040518563ffffffff1660e01b81526004016119569493929190612ea0565b6020604051808303816000875af192505050801561199257506040513d601f19601f8201168201806040525081019061198f9190612f01565b60015b611a0b573d80600081146119c2576040519150601f19603f3d011682016040523d82523d6000602084013e6119c7565b606091505b506000815103611a03576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060006001611a6d84611bda565b01905060008167ffffffffffffffff811115611a8c57611a8b612258565b5b6040519080825280601f01601f191660200182016040528015611abe5781602001600182028036833780820191505090505b509050600082602001820190505b600115611b21578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611b1557611b14612f2e565b5b04945060008503611acc575b819350505050919050565b60009392505050565b600033905090565b611b478383611d2d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611bd557600080549050600083820390505b611b87600086838060010194508661190e565b611bbd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110611b74578160005414611bd257600080fd5b50505b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c38577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611c2e57611c2d612f2e565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611c75576d04ee2d6d415b85acef81000000008381611c6b57611c6a612f2e565b5b0492506020810190505b662386f26fc100008310611ca457662386f26fc100008381611c9a57611c99612f2e565b5b0492506010810190505b6305f5e1008310611ccd576305f5e1008381611cc357611cc2612f2e565b5b0492506008810190505b6127108310611cf2576127108381611ce857611ce7612f2e565b5b0492506004810190505b60648310611d155760648381611d0b57611d0a612f2e565b5b0492506002810190505b600a8310611d24576001810190505b80915050919050565b60008054905060008203611d6d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d7a600084838561174d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611df183611de26000866000611753565b611deb85611ee8565b1761177b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611e9257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611e57565b5060008203611ecd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611ee360008483856117a6565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611f4181611f0c565b8114611f4c57600080fd5b50565b600081359050611f5e81611f38565b92915050565b600060208284031215611f7a57611f79611f02565b5b6000611f8884828501611f4f565b91505092915050565b60008115159050919050565b611fa681611f91565b82525050565b6000602082019050611fc16000830184611f9d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612001578082015181840152602081019050611fe6565b60008484015250505050565b6000601f19601f8301169050919050565b600061202982611fc7565b6120338185611fd2565b9350612043818560208601611fe3565b61204c8161200d565b840191505092915050565b60006020820190508181036000830152612071818461201e565b905092915050565b6000819050919050565b61208c81612079565b811461209757600080fd5b50565b6000813590506120a981612083565b92915050565b6000602082840312156120c5576120c4611f02565b5b60006120d38482850161209a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612107826120dc565b9050919050565b612117816120fc565b82525050565b6000602082019050612132600083018461210e565b92915050565b612141816120fc565b811461214c57600080fd5b50565b60008135905061215e81612138565b92915050565b6000806040838503121561217b5761217a611f02565b5b60006121898582860161214f565b925050602061219a8582860161209a565b9150509250929050565b6000602082840312156121ba576121b9611f02565b5b60006121c88482850161214f565b91505092915050565b6121da81612079565b82525050565b60006020820190506121f560008301846121d1565b92915050565b60008060006060848603121561221457612213611f02565b5b60006122228682870161214f565b93505060206122338682870161214f565b92505060406122448682870161209a565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6122908261200d565b810181811067ffffffffffffffff821117156122af576122ae612258565b5b80604052505050565b60006122c2611ef8565b90506122ce8282612287565b919050565b600067ffffffffffffffff8211156122ee576122ed612258565b5b6122f78261200d565b9050602081019050919050565b82818337600083830152505050565b6000612326612321846122d3565b6122b8565b90508281526020810184848401111561234257612341612253565b5b61234d848285612304565b509392505050565b600082601f83011261236a5761236961224e565b5b813561237a848260208601612313565b91505092915050565b60006020828403121561239957612398611f02565b5b600082013567ffffffffffffffff8111156123b7576123b6611f07565b5b6123c384828501612355565b91505092915050565b6123d581611f91565b81146123e057600080fd5b50565b6000813590506123f2816123cc565b92915050565b6000806040838503121561240f5761240e611f02565b5b600061241d8582860161214f565b925050602061242e858286016123e3565b9150509250929050565b600067ffffffffffffffff82111561245357612452612258565b5b61245c8261200d565b9050602081019050919050565b600061247c61247784612438565b6122b8565b90508281526020810184848401111561249857612497612253565b5b6124a3848285612304565b509392505050565b600082601f8301126124c0576124bf61224e565b5b81356124d0848260208601612469565b91505092915050565b600080600080608085870312156124f3576124f2611f02565b5b60006125018782880161214f565b94505060206125128782880161214f565b93505060406125238782880161209a565b925050606085013567ffffffffffffffff81111561254457612543611f07565b5b612550878288016124ab565b91505092959194509250565b6000806040838503121561257357612572611f02565b5b60006125818582860161214f565b92505060206125928582860161214f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806125e357607f821691505b6020821081036125f6576125f561259c565b5b50919050565b600081905092915050565b50565b60006126176000836125fc565b915061262282612607565b600082019050919050565b60006126388261260a565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000612678601083611fd2565b915061268382612642565b602082019050919050565b600060208201905081810360008301526126a78161266b565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026127107fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826126d3565b61271a86836126d3565b95508019841693508086168417925050509392505050565b6000819050919050565b600061275761275261274d84612079565b612732565b612079565b9050919050565b6000819050919050565b6127718361273c565b61278561277d8261275e565b8484546126e0565b825550505050565b600090565b61279a61278d565b6127a5818484612768565b505050565b5b818110156127c9576127be600082612792565b6001810190506127ab565b5050565b601f82111561280e576127df816126ae565b6127e8846126c3565b810160208510156127f7578190505b61280b612803856126c3565b8301826127aa565b50505b505050565b600082821c905092915050565b600061283160001984600802612813565b1980831691505092915050565b600061284a8383612820565b9150826002028217905092915050565b61286382611fc7565b67ffffffffffffffff81111561287c5761287b612258565b5b61288682546125cb565b6128918282856127cd565b600060209050601f8311600181146128c457600084156128b2578287015190505b6128bc858261283e565b865550612924565b601f1984166128d2866126ae565b60005b828110156128fa578489015182556001820191506020850194506020810190506128d5565b868310156129175784890151612913601f891682612820565b8355505b6001600288020188555050505b505050505050565b7f4d696e74206973206e6f74207374617274656400000000000000000000000000600082015250565b6000612962601383611fd2565b915061296d8261292c565b602082019050919050565b6000602082019050818103600083015261299181612955565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006129d282612079565b91506129dd83612079565b92508282019050808211156129f5576129f4612998565b5b92915050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000612a31601283611fd2565b9150612a3c826129fb565b602082019050919050565b60006020820190508181036000830152612a6081612a24565b9050919050565b7f4d6178206d696e74207265616368656400000000000000000000000000000000600082015250565b6000612a9d601083611fd2565b9150612aa882612a67565b602082019050919050565b60006020820190508181036000830152612acc81612a90565b9050919050565b6000612ade82612079565b9150612ae983612079565b9250828202612af781612079565b91508282048414831517612b0e57612b0d612998565b5b5092915050565b7f53656e642074686520657861637420616d6f756e740000000000000000000000600082015250565b6000612b4b601583611fd2565b9150612b5682612b15565b602082019050919050565b60006020820190508181036000830152612b7a81612b3e565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000612bdd602f83611fd2565b9150612be882612b81565b604082019050919050565b60006020820190508181036000830152612c0c81612bd0565b9050919050565b600081905092915050565b60008154612c2b816125cb565b612c358186612c13565b94506001821660008114612c505760018114612c6557612c98565b60ff1983168652811515820286019350612c98565b612c6e856126ae565b60005b83811015612c9057815481890152600182019150602081019050612c71565b838801955050505b50505092915050565b6000612cac82611fc7565b612cb68185612c13565b9350612cc6818560208601611fe3565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000612d08600583612c13565b9150612d1382612cd2565b600582019050919050565b6000612d2a8285612c1e565b9150612d368284612ca1565b9150612d4182612cfb565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612da9602683611fd2565b9150612db482612d4d565b604082019050919050565b60006020820190508181036000830152612dd881612d9c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612e15602083611fd2565b9150612e2082612ddf565b602082019050919050565b60006020820190508181036000830152612e4481612e08565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612e7282612e4b565b612e7c8185612e56565b9350612e8c818560208601611fe3565b612e958161200d565b840191505092915050565b6000608082019050612eb5600083018761210e565b612ec2602083018661210e565b612ecf60408301856121d1565b8181036060830152612ee18184612e67565b905095945050505050565b600081519050612efb81611f38565b92915050565b600060208284031215612f1757612f16611f02565b5b6000612f2584828501612eec565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea2646970667358221220abd33b0a754ace6bdf6607bde0b52914ffc9d9cebededd52c504ffc1f456810464736f6c63430008110033697066733a2f2f516d623358636b567a3679324334764e383568686a744b44704b5374773643614379423839734b726a78417031432f
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c80636c0360eb116100f7578063a22cb46511610095578063c87b56dd11610064578063c87b56dd146105f9578063d5abeb0114610636578063e985e9c514610661578063f2fde38b1461069e576101cd565b8063a22cb46514610574578063b0ea18021461059d578063b66a0e5d146105c6578063b88d4fde146105dd576101cd565b80638da5cb5b116100d15780638da5cb5b146104d957806391b7f5ed1461050457806395d89b411461052d578063a0712d6814610558576101cd565b80636c0360eb1461045a57806370a0823114610485578063715018a6146104c2576101cd565b80633b4c4b251161016f57806355f804b31161013e57806355f804b31461039e5780635c975abb146103c75780636352211e146103f25780636817c76c1461042f576101cd565b80633b4c4b25146103175780633ccfd60b1461034057806342842e0e14610357578063453c231014610373576101cd565b8063095ea7b3116101ab578063095ea7b31461027757806313413cd21461029357806318160ddd146102d057806323b872dd146102fb576101cd565b806301ffc9a7146101d257806306fdde031461020f578063081812fc1461023a575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f49190611f64565b6106c7565b6040516102069190611fac565b60405180910390f35b34801561021b57600080fd5b50610224610759565b6040516102319190612057565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c91906120af565b6107eb565b60405161026e919061211d565b60405180910390f35b610291600480360381019061028c9190612164565b61086a565b005b34801561029f57600080fd5b506102ba60048036038101906102b591906121a4565b6109ae565b6040516102c791906121e0565b60405180910390f35b3480156102dc57600080fd5b506102e56109c6565b6040516102f291906121e0565b60405180910390f35b610315600480360381019061031091906121fb565b6109dd565b005b34801561032357600080fd5b5061033e600480360381019061033991906120af565b610cff565b005b34801561034c57600080fd5b50610355610d11565b005b610371600480360381019061036c91906121fb565b610dc8565b005b34801561037f57600080fd5b50610388610de8565b60405161039591906121e0565b60405180910390f35b3480156103aa57600080fd5b506103c560048036038101906103c09190612383565b610dee565b005b3480156103d357600080fd5b506103dc610e09565b6040516103e99190611fac565b60405180910390f35b3480156103fe57600080fd5b50610419600480360381019061041491906120af565b610e1c565b604051610426919061211d565b60405180910390f35b34801561043b57600080fd5b50610444610e2e565b60405161045191906121e0565b60405180910390f35b34801561046657600080fd5b5061046f610e34565b60405161047c9190612057565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a791906121a4565b610ec2565b6040516104b991906121e0565b60405180910390f35b3480156104ce57600080fd5b506104d7610f7a565b005b3480156104e557600080fd5b506104ee610f8e565b6040516104fb919061211d565b60405180910390f35b34801561051057600080fd5b5061052b600480360381019061052691906120af565b610fb8565b005b34801561053957600080fd5b50610542610fca565b60405161054f9190612057565b60405180910390f35b610572600480360381019061056d91906120af565b61105c565b005b34801561058057600080fd5b5061059b600480360381019061059691906123f8565b611245565b005b3480156105a957600080fd5b506105c460048036038101906105bf9190612164565b611350565b005b3480156105d257600080fd5b506105db611366565b005b6105f760048036038101906105f291906124d9565b61139a565b005b34801561060557600080fd5b50610620600480360381019061061b91906120af565b61140d565b60405161062d9190612057565b60405180910390f35b34801561064257600080fd5b5061064b611489565b60405161065891906121e0565b60405180910390f35b34801561066d57600080fd5b506106886004803603810190610683919061255c565b61148f565b6040516106959190611fac565b60405180910390f35b3480156106aa57600080fd5b506106c560048036038101906106c091906121a4565b611523565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072257506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107525750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610768906125cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610794906125cb565b80156107e15780601f106107b6576101008083540402835291602001916107e1565b820191906000526020600020905b8154815290600101906020018083116107c457829003601f168201915b5050505050905090565b60006107f6826115a6565b61082c576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061087582610e1c565b90508073ffffffffffffffffffffffffffffffffffffffff16610896611605565b73ffffffffffffffffffffffffffffffffffffffff16146108f9576108c2816108bd611605565b61148f565b6108f8576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e6020528060005260406000206000915090505481565b60006109d061160d565b6001546000540303905090565b60006109e882611616565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610a5b846116e2565b91509150610a718187610a6c611605565b611709565b610abd57610a8686610a81611605565b61148f565b610abc576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610b23576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b30868686600161174d565b8015610b3b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c0985610be5888887611753565b7c02000000000000000000000000000000000000000000000000000000001761177b565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610c8f5760006001850190506000600460008381526020019081526020016000205403610c8d576000548114610c8c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610cf786868660016117a6565b505050505050565b610d076117ac565b8060098190555050565b610d196117ac565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610d3f9061262d565b60006040518083038185875af1925050503d8060008114610d7c576040519150601f19603f3d011682016040523d82523d6000602084013e610d81565b606091505b5050905080610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc9061268e565b60405180910390fd5b50565b610de38383836040518060200160405280600081525061139a565b505050565b600b5481565b610df66117ac565b80600d9081610e05919061285a565b5050565b600c60009054906101000a900460ff1681565b6000610e2782611616565b9050919050565b600a5481565b600d8054610e41906125cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6d906125cb565b8015610eba5780601f10610e8f57610100808354040283529160200191610eba565b820191906000526020600020905b815481529060010190602001808311610e9d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f29576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610f826117ac565b610f8c600061182a565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fc06117ac565b80600a8190555050565b606060038054610fd9906125cb565b80601f0160208091040260200160405190810160405280929190818152602001828054611005906125cb565b80156110525780601f1061102757610100808354040283529160200191611052565b820191906000526020600020905b81548152906001019060200180831161103557829003601f168201915b5050505050905090565b600c60009054906101000a900460ff16156110ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a390612978565b60405180910390fd5b600954816110b86109c6565b6110c291906129c7565b1115611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fa90612a47565b60405180910390fd5b600b5481600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461115191906129c7565b1115611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990612ab3565b60405180910390fd5b80600a546111a09190612ad3565b3410156111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990612b61565b60405180910390fd5b80600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461123191906129c7565b9250508190555061124233826118f0565b50565b8060076000611252611605565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112ff611605565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113449190611fac565b60405180910390a35050565b6113586117ac565b61136282826118f0565b5050565b61136e6117ac565b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b6113a58484846109dd565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611407576113d08484848461190e565b611406576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611418826115a6565b611457576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144e90612bf3565b60405180910390fd5b600d61146283611a5e565b604051602001611473929190612d1e565b6040516020818303038152906040529050919050565b60095481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61152b6117ac565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190612dbf565b60405180910390fd5b6115a38161182a565b50565b6000816115b161160d565b111580156115c0575060005482105b80156115fe575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061162561160d565b116116ab576000548110156116aa5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036116a8575b6000810361169e576004600083600190039350838152602001908152602001600020549050611674565b80925050506116dd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861176a868684611b2c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6117b4611b35565b73ffffffffffffffffffffffffffffffffffffffff166117d2610f8e565b73ffffffffffffffffffffffffffffffffffffffff1614611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90612e2b565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61190a828260405180602001604052806000815250611b3d565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611934611605565b8786866040518563ffffffff1660e01b81526004016119569493929190612ea0565b6020604051808303816000875af192505050801561199257506040513d601f19601f8201168201806040525081019061198f9190612f01565b60015b611a0b573d80600081146119c2576040519150601f19603f3d011682016040523d82523d6000602084013e6119c7565b606091505b506000815103611a03576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060006001611a6d84611bda565b01905060008167ffffffffffffffff811115611a8c57611a8b612258565b5b6040519080825280601f01601f191660200182016040528015611abe5781602001600182028036833780820191505090505b509050600082602001820190505b600115611b21578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611b1557611b14612f2e565b5b04945060008503611acc575b819350505050919050565b60009392505050565b600033905090565b611b478383611d2d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611bd557600080549050600083820390505b611b87600086838060010194508661190e565b611bbd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110611b74578160005414611bd257600080fd5b50505b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611c38577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611c2e57611c2d612f2e565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611c75576d04ee2d6d415b85acef81000000008381611c6b57611c6a612f2e565b5b0492506020810190505b662386f26fc100008310611ca457662386f26fc100008381611c9a57611c99612f2e565b5b0492506010810190505b6305f5e1008310611ccd576305f5e1008381611cc357611cc2612f2e565b5b0492506008810190505b6127108310611cf2576127108381611ce857611ce7612f2e565b5b0492506004810190505b60648310611d155760648381611d0b57611d0a612f2e565b5b0492506002810190505b600a8310611d24576001810190505b80915050919050565b60008054905060008203611d6d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d7a600084838561174d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611df183611de26000866000611753565b611deb85611ee8565b1761177b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611e9257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611e57565b5060008203611ecd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611ee360008483856117a6565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611f4181611f0c565b8114611f4c57600080fd5b50565b600081359050611f5e81611f38565b92915050565b600060208284031215611f7a57611f79611f02565b5b6000611f8884828501611f4f565b91505092915050565b60008115159050919050565b611fa681611f91565b82525050565b6000602082019050611fc16000830184611f9d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612001578082015181840152602081019050611fe6565b60008484015250505050565b6000601f19601f8301169050919050565b600061202982611fc7565b6120338185611fd2565b9350612043818560208601611fe3565b61204c8161200d565b840191505092915050565b60006020820190508181036000830152612071818461201e565b905092915050565b6000819050919050565b61208c81612079565b811461209757600080fd5b50565b6000813590506120a981612083565b92915050565b6000602082840312156120c5576120c4611f02565b5b60006120d38482850161209a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612107826120dc565b9050919050565b612117816120fc565b82525050565b6000602082019050612132600083018461210e565b92915050565b612141816120fc565b811461214c57600080fd5b50565b60008135905061215e81612138565b92915050565b6000806040838503121561217b5761217a611f02565b5b60006121898582860161214f565b925050602061219a8582860161209a565b9150509250929050565b6000602082840312156121ba576121b9611f02565b5b60006121c88482850161214f565b91505092915050565b6121da81612079565b82525050565b60006020820190506121f560008301846121d1565b92915050565b60008060006060848603121561221457612213611f02565b5b60006122228682870161214f565b93505060206122338682870161214f565b92505060406122448682870161209a565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6122908261200d565b810181811067ffffffffffffffff821117156122af576122ae612258565b5b80604052505050565b60006122c2611ef8565b90506122ce8282612287565b919050565b600067ffffffffffffffff8211156122ee576122ed612258565b5b6122f78261200d565b9050602081019050919050565b82818337600083830152505050565b6000612326612321846122d3565b6122b8565b90508281526020810184848401111561234257612341612253565b5b61234d848285612304565b509392505050565b600082601f83011261236a5761236961224e565b5b813561237a848260208601612313565b91505092915050565b60006020828403121561239957612398611f02565b5b600082013567ffffffffffffffff8111156123b7576123b6611f07565b5b6123c384828501612355565b91505092915050565b6123d581611f91565b81146123e057600080fd5b50565b6000813590506123f2816123cc565b92915050565b6000806040838503121561240f5761240e611f02565b5b600061241d8582860161214f565b925050602061242e858286016123e3565b9150509250929050565b600067ffffffffffffffff82111561245357612452612258565b5b61245c8261200d565b9050602081019050919050565b600061247c61247784612438565b6122b8565b90508281526020810184848401111561249857612497612253565b5b6124a3848285612304565b509392505050565b600082601f8301126124c0576124bf61224e565b5b81356124d0848260208601612469565b91505092915050565b600080600080608085870312156124f3576124f2611f02565b5b60006125018782880161214f565b94505060206125128782880161214f565b93505060406125238782880161209a565b925050606085013567ffffffffffffffff81111561254457612543611f07565b5b612550878288016124ab565b91505092959194509250565b6000806040838503121561257357612572611f02565b5b60006125818582860161214f565b92505060206125928582860161214f565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806125e357607f821691505b6020821081036125f6576125f561259c565b5b50919050565b600081905092915050565b50565b60006126176000836125fc565b915061262282612607565b600082019050919050565b60006126388261260a565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000612678601083611fd2565b915061268382612642565b602082019050919050565b600060208201905081810360008301526126a78161266b565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026127107fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826126d3565b61271a86836126d3565b95508019841693508086168417925050509392505050565b6000819050919050565b600061275761275261274d84612079565b612732565b612079565b9050919050565b6000819050919050565b6127718361273c565b61278561277d8261275e565b8484546126e0565b825550505050565b600090565b61279a61278d565b6127a5818484612768565b505050565b5b818110156127c9576127be600082612792565b6001810190506127ab565b5050565b601f82111561280e576127df816126ae565b6127e8846126c3565b810160208510156127f7578190505b61280b612803856126c3565b8301826127aa565b50505b505050565b600082821c905092915050565b600061283160001984600802612813565b1980831691505092915050565b600061284a8383612820565b9150826002028217905092915050565b61286382611fc7565b67ffffffffffffffff81111561287c5761287b612258565b5b61288682546125cb565b6128918282856127cd565b600060209050601f8311600181146128c457600084156128b2578287015190505b6128bc858261283e565b865550612924565b601f1984166128d2866126ae565b60005b828110156128fa578489015182556001820191506020850194506020810190506128d5565b868310156129175784890151612913601f891682612820565b8355505b6001600288020188555050505b505050505050565b7f4d696e74206973206e6f74207374617274656400000000000000000000000000600082015250565b6000612962601383611fd2565b915061296d8261292c565b602082019050919050565b6000602082019050818103600083015261299181612955565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006129d282612079565b91506129dd83612079565b92508282019050808211156129f5576129f4612998565b5b92915050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000612a31601283611fd2565b9150612a3c826129fb565b602082019050919050565b60006020820190508181036000830152612a6081612a24565b9050919050565b7f4d6178206d696e74207265616368656400000000000000000000000000000000600082015250565b6000612a9d601083611fd2565b9150612aa882612a67565b602082019050919050565b60006020820190508181036000830152612acc81612a90565b9050919050565b6000612ade82612079565b9150612ae983612079565b9250828202612af781612079565b91508282048414831517612b0e57612b0d612998565b5b5092915050565b7f53656e642074686520657861637420616d6f756e740000000000000000000000600082015250565b6000612b4b601583611fd2565b9150612b5682612b15565b602082019050919050565b60006020820190508181036000830152612b7a81612b3e565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000612bdd602f83611fd2565b9150612be882612b81565b604082019050919050565b60006020820190508181036000830152612c0c81612bd0565b9050919050565b600081905092915050565b60008154612c2b816125cb565b612c358186612c13565b94506001821660008114612c505760018114612c6557612c98565b60ff1983168652811515820286019350612c98565b612c6e856126ae565b60005b83811015612c9057815481890152600182019150602081019050612c71565b838801955050505b50505092915050565b6000612cac82611fc7565b612cb68185612c13565b9350612cc6818560208601611fe3565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000612d08600583612c13565b9150612d1382612cd2565b600582019050919050565b6000612d2a8285612c1e565b9150612d368284612ca1565b9150612d4182612cfb565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612da9602683611fd2565b9150612db482612d4d565b604082019050919050565b60006020820190508181036000830152612dd881612d9c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612e15602083611fd2565b9150612e2082612ddf565b602082019050919050565b60006020820190508181036000830152612e4481612e08565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612e7282612e4b565b612e7c8185612e56565b9350612e8c818560208601611fe3565b612e958161200d565b840191505092915050565b6000608082019050612eb5600083018761210e565b612ec2602083018661210e565b612ecf60408301856121d1565b8181036060830152612ee18184612e67565b905095945050505050565b600081519050612efb81611f38565b92915050565b600060208284031215612f1757612f16611f02565b5b6000612f2584828501612eec565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fdfea2646970667358221220abd33b0a754ace6bdf6607bde0b52914ffc9d9cebededd52c504ffc1f456810464736f6c63430008110033
Deployed Bytecode Sourcemap
98797:2324:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65684:639;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;66586:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;73077:218;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;72510:408;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99119:48;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;62337:323;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;76716:2825;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;100701:99;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;100912:206;;;;;;;;;;;;;:::i;:::-;;79637:193;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;98962:31;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;100522:88;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99000:25;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;67979:152;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;98918:37;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;99032:80;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63521:233;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;43110:103;;;;;;;;;;;;;:::i;:::-;;42462:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;100808:96;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;66762:104;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;99238:534;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;73635:234;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99780:151;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;100618:75;;;;;;;;;;;;;:::i;:::-;;80428:407;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99939:350;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;98881:30;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;74026:164;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;43368:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;65684:639;65769:4;66108:10;66093:25;;:11;:25;;;;:102;;;;66185:10;66170:25;;:11;:25;;;;66093:102;:179;;;;66262:10;66247:25;;:11;:25;;;;66093:179;66073:199;;65684:639;;;:::o;66586:100::-;66640:13;66673:5;66666:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66586:100;:::o;73077:218::-;73153:7;73178:16;73186:7;73178;:16::i;:::-;73173:64;;73203:34;;;;;;;;;;;;;;73173:64;73257:15;:24;73273:7;73257:24;;;;;;;;;;;:30;;;;;;;;;;;;73250:37;;73077:218;;;:::o;72510:408::-;72599:13;72615:16;72623:7;72615;:16::i;:::-;72599:32;;72671:5;72648:28;;:19;:17;:19::i;:::-;:28;;;72644:175;;72696:44;72713:5;72720:19;:17;:19::i;:::-;72696:16;:44::i;:::-;72691:128;;72768:35;;;;;;;;;;;;;;72691:128;72644:175;72864:2;72831:15;:24;72847:7;72831:24;;;;;;;;;;;:30;;;:35;;;;;;;;;;;;;;;;;;72902:7;72898:2;72882:28;;72891:5;72882:28;;;;;;;;;;;;72588:330;72510:408;;:::o;99119:48::-;;;;;;;;;;;;;;;;;:::o;62337:323::-;62398:7;62626:15;:13;:15::i;:::-;62611:12;;62595:13;;:28;:46;62588:53;;62337:323;:::o;76716:2825::-;76858:27;76888;76907:7;76888:18;:27::i;:::-;76858:57;;76973:4;76932:45;;76948:19;76932:45;;;76928:86;;76986:28;;;;;;;;;;;;;;76928:86;77028:27;77057:23;77084:35;77111:7;77084:26;:35::i;:::-;77027:92;;;;77219:68;77244:15;77261:4;77267:19;:17;:19::i;:::-;77219:24;:68::i;:::-;77214:180;;77307:43;77324:4;77330:19;:17;:19::i;:::-;77307:16;:43::i;:::-;77302:92;;77359:35;;;;;;;;;;;;;;77302:92;77214:180;77425:1;77411:16;;:2;:16;;;77407:52;;77436:23;;;;;;;;;;;;;;77407:52;77472:43;77494:4;77500:2;77504:7;77513:1;77472:21;:43::i;:::-;77608:15;77605:160;;;77748:1;77727:19;77720:30;77605:160;78145:18;:24;78164:4;78145:24;;;;;;;;;;;;;;;;78143:26;;;;;;;;;;;;78214:18;:22;78233:2;78214:22;;;;;;;;;;;;;;;;78212:24;;;;;;;;;;;78536:146;78573:2;78622:45;78637:4;78643:2;78647:19;78622:14;:45::i;:::-;58736:8;78594:73;78536:18;:146::i;:::-;78507:17;:26;78525:7;78507:26;;;;;;;;;;;:175;;;;78853:1;58736:8;78802:19;:47;:52;78798:627;;78875:19;78907:1;78897:7;:11;78875:33;;79064:1;79030:17;:30;79048:11;79030:30;;;;;;;;;;;;:35;79026:384;;79168:13;;79153:11;:28;79149:242;;79348:19;79315:17;:30;79333:11;79315:30;;;;;;;;;;;:52;;;;79149:242;79026:384;78856:569;78798:627;79472:7;79468:2;79453:27;;79462:4;79453:27;;;;;;;;;;;;79491:42;79512:4;79518:2;79522:7;79531:1;79491:20;:42::i;:::-;76847:2694;;;76716:2825;;;:::o;100701:99::-;42348:13;:11;:13::i;:::-;100782:10:::1;100770:9;:22;;;;100701:99:::0;:::o;100912:206::-;42348:13;:11;:13::i;:::-;100963:12:::1;100989:10;100981:24;;101027:21;100981:82;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100962:101;;;101082:7;101074:36;;;;;;;;;;;;:::i;:::-;;;;;;;;;100951:167;100912:206::o:0;79637:193::-;79783:39;79800:4;79806:2;79810:7;79783:39;;;;;;;;;;;;:16;:39::i;:::-;79637:193;;;:::o;98962:31::-;;;;:::o;100522:88::-;42348:13;:11;:13::i;:::-;100599:3:::1;100589:7;:13;;;;;;:::i;:::-;;100522:88:::0;:::o;99000:25::-;;;;;;;;;;;;;:::o;67979:152::-;68051:7;68094:27;68113:7;68094:18;:27::i;:::-;68071:52;;67979:152;;;:::o;98918:37::-;;;;:::o;99032:80::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;63521:233::-;63593:7;63634:1;63617:19;;:5;:19;;;63613:60;;63645:28;;;;;;;;;;;;;;63613:60;57680:13;63691:18;:25;63710:5;63691:25;;;;;;;;;;;;;;;;:55;63684:62;;63521:233;;;:::o;43110:103::-;42348:13;:11;:13::i;:::-;43175:30:::1;43202:1;43175:18;:30::i;:::-;43110:103::o:0;42462:87::-;42508:7;42535:6;;;;;;;;;;;42528:13;;42462:87;:::o;100808:96::-;42348:13;:11;:13::i;:::-;100887:9:::1;100875;:21;;;;100808:96:::0;:::o;66762:104::-;66818:13;66851:7;66844:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66762:104;:::o;99238:534::-;99308:6;;;;;;;;;;;99307:7;99299:39;;;;;;;;;;;;:::i;:::-;;;;;;;;;99402:9;;99388;99372:13;:11;:13::i;:::-;:25;;;;:::i;:::-;99371:40;;99349:108;;;;;;;;;;;;:::i;:::-;;;;;;;;;99533:12;;99519:9;99491:13;:25;99505:10;99491:25;;;;;;;;;;;;;;;;:37;;;;:::i;:::-;99490:55;;99468:121;;;;;;;;;;;;:::i;:::-;;;;;;;;;99634:9;99622;;:21;;;;:::i;:::-;99608:9;:36;;99600:70;;;;;;;;;;;;:::i;:::-;;;;;;;;;99712:9;99683:13;:25;99697:10;99683:25;;;;;;;;;;;;;;;;:38;;;;;;;:::i;:::-;;;;;;;;99732:32;99742:10;99754:9;99732;:32::i;:::-;99238:534;:::o;73635:234::-;73782:8;73730:18;:39;73749:19;:17;:19::i;:::-;73730:39;;;;;;;;;;;;;;;:49;73770:8;73730:49;;;;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;;;;73842:8;73806:55;;73821:19;:17;:19::i;:::-;73806:55;;;73852:8;73806:55;;;;;;:::i;:::-;;;;;;;;73635:234;;:::o;99780:151::-;42348:13;:11;:13::i;:::-;99892:31:::1;99902:8;99912:10;99892:9;:31::i;:::-;99780:151:::0;;:::o;100618:75::-;42348:13;:11;:13::i;:::-;100679:6:::1;;;;;;;;;;;100678:7;100669:6;;:16;;;;;;;;;;;;;;;;;;100618:75::o:0;80428:407::-;80603:31;80616:4;80622:2;80626:7;80603:12;:31::i;:::-;80667:1;80649:2;:14;;;:19;80645:183;;80688:56;80719:4;80725:2;80729:7;80738:5;80688:30;:56::i;:::-;80683:145;;80772:40;;;;;;;;;;;;;;80683:145;80645:183;80428:407;;;;:::o;99939:350::-;100057:13;100110:16;100118:7;100110;:16::i;:::-;100088:113;;;;;;;;;;;;:::i;:::-;;;;;;;;;100243:7;100252:18;:7;:16;:18::i;:::-;100226:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;100212:69;;99939:350;;;:::o;98881:30::-;;;;:::o;74026:164::-;74123:4;74147:18;:25;74166:5;74147:25;;;;;;;;;;;;;;;:35;74173:8;74147:35;;;;;;;;;;;;;;;;;;;;;;;;;74140:42;;74026:164;;;;:::o;43368:201::-;42348:13;:11;:13::i;:::-;43477:1:::1;43457:22;;:8;:22;;::::0;43449:73:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;43533:28;43552:8;43533:18;:28::i;:::-;43368:201:::0;:::o;74448:282::-;74513:4;74569:7;74550:15;:13;:15::i;:::-;:26;;:66;;;;;74603:13;;74593:7;:23;74550:66;:153;;;;;74702:1;58456:8;74654:17;:26;74672:7;74654:26;;;;;;;;;;;;:44;:49;74550:153;74530:173;;74448:282;;;:::o;96756:105::-;96816:7;96843:10;96836:17;;96756:105;:::o;100413:101::-;100478:7;100505:1;100498:8;;100413:101;:::o;69134:1275::-;69201:7;69221:12;69236:7;69221:22;;69304:4;69285:15;:13;:15::i;:::-;:23;69281:1061;;69338:13;;69331:4;:20;69327:1015;;;69376:14;69393:17;:23;69411:4;69393:23;;;;;;;;;;;;69376:40;;69510:1;58456:8;69482:6;:24;:29;69478:845;;70147:113;70164:1;70154:6;:11;70147:113;;70207:17;:25;70225:6;;;;;;;70207:25;;;;;;;;;;;;70198:34;;70147:113;;;70293:6;70286:13;;;;;;69478:845;69353:989;69327:1015;69281:1061;70370:31;;;;;;;;;;;;;;69134:1275;;;;:::o;75611:485::-;75713:27;75742:23;75783:38;75824:15;:24;75840:7;75824:24;;;;;;;;;;;75783:65;;76001:18;75978:41;;76058:19;76052:26;76033:45;;75963:126;75611:485;;;:::o;74839:659::-;74988:11;75153:16;75146:5;75142:28;75133:37;;75313:16;75302:9;75298:32;75285:45;;75463:15;75452:9;75449:30;75441:5;75430:9;75427:20;75424:56;75414:66;;74839:659;;;;;:::o;81497:159::-;;;;;:::o;96065:311::-;96200:7;96220:16;58860:3;96246:19;:41;;96220:68;;58860:3;96314:31;96325:4;96331:2;96335:9;96314:10;:31::i;:::-;96306:40;;:62;;96299:69;;;96065:311;;;;;:::o;70957:450::-;71037:14;71205:16;71198:5;71194:28;71185:37;;71382:5;71368:11;71343:23;71339:41;71336:52;71329:5;71326:63;71316:73;;70957:450;;;;:::o;82321:158::-;;;;;:::o;42627:132::-;42702:12;:10;:12::i;:::-;42691:23;;:7;:5;:7::i;:::-;:23;;;42683:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;42627:132::o;43729:191::-;43803:16;43822:6;;;;;;;;;;;43803:25;;43848:8;43839:6;;:17;;;;;;;;;;;;;;;;;;43903:8;43872:40;;43893:8;43872:40;;;;;;;;;;;;43792:128;43729:191;:::o;90588:112::-;90665:27;90675:2;90679:8;90665:27;;;;;;;;;;;;:9;:27::i;:::-;90588:112;;:::o;82919:716::-;83082:4;83128:2;83103:45;;;83149:19;:17;:19::i;:::-;83170:4;83176:7;83185:5;83103:88;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;83099:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83403:1;83386:6;:13;:18;83382:235;;83432:40;;;;;;;;;;;;;;83382:235;83575:6;83569:13;83560:6;83556:2;83552:15;83545:38;83099:529;83272:54;;;83262:64;;;:6;:64;;;;83255:71;;;82919:716;;;;;;:::o;29181:::-;29237:13;29288:14;29325:1;29305:17;29316:5;29305:10;:17::i;:::-;:21;29288:38;;29341:20;29375:6;29364:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29341:41;;29397:11;29526:6;29522:2;29518:15;29510:6;29506:28;29499:35;;29563:288;29570:4;29563:288;;;29595:5;;;;;;;;29737:8;29732:2;29725:5;29721:14;29716:30;29711:3;29703:44;29793:2;29784:11;;;;;;:::i;:::-;;;;;29827:1;29818:5;:10;29563:288;29814:21;29563:288;29872:6;29865:13;;;;;29181:716;;;:::o;95766:147::-;95903:6;95766:147;;;;;:::o;31700:98::-;31753:7;31780:10;31773:17;;31700:98;:::o;89815:689::-;89946:19;89952:2;89956:8;89946:5;:19::i;:::-;90025:1;90007:2;:14;;;:19;90003:483;;90047:11;90061:13;;90047:27;;90093:13;90115:8;90109:3;:14;90093:30;;90142:233;90173:62;90212:1;90216:2;90220:7;;;;;;90229:5;90173:30;:62::i;:::-;90168:167;;90271:40;;;;;;;;;;;;;;90168:167;90370:3;90362:5;:11;90142:233;;90457:3;90440:13;;:20;90436:34;;90462:8;;;90436:34;90028:458;;90003:483;89815:689;;;:::o;10217:922::-;10270:7;10290:14;10307:1;10290:18;;10357:6;10348:5;:15;10344:102;;10393:6;10384:15;;;;;;:::i;:::-;;;;;10428:2;10418:12;;;;10344:102;10473:6;10464:5;:15;10460:102;;10509:6;10500:15;;;;;;:::i;:::-;;;;;10544:2;10534:12;;;;10460:102;10589:6;10580:5;:15;10576:102;;10625:6;10616:15;;;;;;:::i;:::-;;;;;10660:2;10650:12;;;;10576:102;10705:5;10696;:14;10692:99;;10740:5;10731:14;;;;;;:::i;:::-;;;;;10774:1;10764:11;;;;10692:99;10818:5;10809;:14;10805:99;;10853:5;10844:14;;;;;;:::i;:::-;;;;;10887:1;10877:11;;;;10805:99;10931:5;10922;:14;10918:99;;10966:5;10957:14;;;;;;:::i;:::-;;;;;11000:1;10990:11;;;;10918:99;11044:5;11035;:14;11031:66;;11080:1;11070:11;;;;11031:66;11125:6;11118:13;;;10217:922;;;:::o;84097:2966::-;84170:20;84193:13;;84170:36;;84233:1;84221:8;:13;84217:44;;84243:18;;;;;;;;;;;;;;84217:44;84274:61;84304:1;84308:2;84312:12;84326:8;84274:21;:61::i;:::-;84818:1;57818:2;84788:1;:26;;84787:32;84775:8;:45;84749:18;:22;84768:2;84749:22;;;;;;;;;;;;;;;;:71;;;;;;;;;;;85097:139;85134:2;85188:33;85211:1;85215:2;85219:1;85188:14;:33::i;:::-;85155:30;85176:8;85155:20;:30::i;:::-;:66;85097:18;:139::i;:::-;85063:17;:31;85081:12;85063:31;;;;;;;;;;;:173;;;;85253:16;85284:11;85313:8;85298:12;:23;85284:37;;85834:16;85830:2;85826:25;85814:37;;86206:12;86166:8;86125:1;86063:25;86004:1;85943;85916:335;86577:1;86563:12;86559:20;86517:346;86618:3;86609:7;86606:16;86517:346;;86836:7;86826:8;86823:1;86796:25;86793:1;86790;86785:59;86671:1;86662:7;86658:15;86647:26;;86517:346;;;86521:77;86908:1;86896:8;:13;86892:45;;86918:19;;;;;;;;;;;;;;86892:45;86970:3;86954:13;:19;;;;84523:2462;;86995:60;87024:1;87028:2;87032:12;87046:8;86995:20;:60::i;:::-;84159:2904;84097:2966;;:::o;71509:324::-;71579:14;71812:1;71802:8;71799:15;71773:24;71769:46;71759:56;;71509:324;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:149;370:7;410:66;403:5;399:78;388:89;;334:149;;;:::o;489:120::-;561:23;578:5;561:23;:::i;:::-;554:5;551:34;541:62;;599:1;596;589:12;541:62;489:120;:::o;615:137::-;660:5;698:6;685:20;676:29;;714:32;740:5;714:32;:::i;:::-;615:137;;;;:::o;758:327::-;816:6;865:2;853:9;844:7;840:23;836:32;833:119;;;871:79;;:::i;:::-;833:119;991:1;1016:52;1060:7;1051:6;1040:9;1036:22;1016:52;:::i;:::-;1006:62;;962:116;758:327;;;;:::o;1091:90::-;1125:7;1168:5;1161:13;1154:21;1143:32;;1091:90;;;:::o;1187:109::-;1268:21;1283:5;1268:21;:::i;:::-;1263:3;1256:34;1187:109;;:::o;1302:210::-;1389:4;1427:2;1416:9;1412:18;1404:26;;1440:65;1502:1;1491:9;1487:17;1478:6;1440:65;:::i;:::-;1302:210;;;;:::o;1518:99::-;1570:6;1604:5;1598:12;1588:22;;1518:99;;;:::o;1623:169::-;1707:11;1741:6;1736:3;1729:19;1781:4;1776:3;1772:14;1757:29;;1623:169;;;;:::o;1798:246::-;1879:1;1889:113;1903:6;1900:1;1897:13;1889:113;;;1988:1;1983:3;1979:11;1973:18;1969:1;1964:3;1960:11;1953:39;1925:2;1922:1;1918:10;1913:15;;1889:113;;;2036:1;2027:6;2022:3;2018:16;2011:27;1860:184;1798:246;;;:::o;2050:102::-;2091:6;2142:2;2138:7;2133:2;2126:5;2122:14;2118:28;2108:38;;2050:102;;;:::o;2158:377::-;2246:3;2274:39;2307:5;2274:39;:::i;:::-;2329:71;2393:6;2388:3;2329:71;:::i;:::-;2322:78;;2409:65;2467:6;2462:3;2455:4;2448:5;2444:16;2409:65;:::i;:::-;2499:29;2521:6;2499:29;:::i;:::-;2494:3;2490:39;2483:46;;2250:285;2158:377;;;;:::o;2541:313::-;2654:4;2692:2;2681:9;2677:18;2669:26;;2741:9;2735:4;2731:20;2727:1;2716:9;2712:17;2705:47;2769:78;2842:4;2833:6;2769:78;:::i;:::-;2761:86;;2541:313;;;;:::o;2860:77::-;2897:7;2926:5;2915:16;;2860:77;;;:::o;2943:122::-;3016:24;3034:5;3016:24;:::i;:::-;3009:5;3006:35;2996:63;;3055:1;3052;3045:12;2996:63;2943:122;:::o;3071:139::-;3117:5;3155:6;3142:20;3133:29;;3171:33;3198:5;3171:33;:::i;:::-;3071:139;;;;:::o;3216:329::-;3275:6;3324:2;3312:9;3303:7;3299:23;3295:32;3292:119;;;3330:79;;:::i;:::-;3292:119;3450:1;3475:53;3520:7;3511:6;3500:9;3496:22;3475:53;:::i;:::-;3465:63;;3421:117;3216:329;;;;:::o;3551:126::-;3588:7;3628:42;3621:5;3617:54;3606:65;;3551:126;;;:::o;3683:96::-;3720:7;3749:24;3767:5;3749:24;:::i;:::-;3738:35;;3683:96;;;:::o;3785:118::-;3872:24;3890:5;3872:24;:::i;:::-;3867:3;3860:37;3785:118;;:::o;3909:222::-;4002:4;4040:2;4029:9;4025:18;4017:26;;4053:71;4121:1;4110:9;4106:17;4097:6;4053:71;:::i;:::-;3909:222;;;;:::o;4137:122::-;4210:24;4228:5;4210:24;:::i;:::-;4203:5;4200:35;4190:63;;4249:1;4246;4239:12;4190:63;4137:122;:::o;4265:139::-;4311:5;4349:6;4336:20;4327:29;;4365:33;4392:5;4365:33;:::i;:::-;4265:139;;;;:::o;4410:474::-;4478:6;4486;4535:2;4523:9;4514:7;4510:23;4506:32;4503:119;;;4541:79;;:::i;:::-;4503:119;4661:1;4686:53;4731:7;4722:6;4711:9;4707:22;4686:53;:::i;:::-;4676:63;;4632:117;4788:2;4814:53;4859:7;4850:6;4839:9;4835:22;4814:53;:::i;:::-;4804:63;;4759:118;4410:474;;;;;:::o;4890:329::-;4949:6;4998:2;4986:9;4977:7;4973:23;4969:32;4966:119;;;5004:79;;:::i;:::-;4966:119;5124:1;5149:53;5194:7;5185:6;5174:9;5170:22;5149:53;:::i;:::-;5139:63;;5095:117;4890:329;;;;:::o;5225:118::-;5312:24;5330:5;5312:24;:::i;:::-;5307:3;5300:37;5225:118;;:::o;5349:222::-;5442:4;5480:2;5469:9;5465:18;5457:26;;5493:71;5561:1;5550:9;5546:17;5537:6;5493:71;:::i;:::-;5349:222;;;;:::o;5577:619::-;5654:6;5662;5670;5719:2;5707:9;5698:7;5694:23;5690:32;5687:119;;;5725:79;;:::i;:::-;5687:119;5845:1;5870:53;5915:7;5906:6;5895:9;5891:22;5870:53;:::i;:::-;5860:63;;5816:117;5972:2;5998:53;6043:7;6034:6;6023:9;6019:22;5998:53;:::i;:::-;5988:63;;5943:118;6100:2;6126:53;6171:7;6162:6;6151:9;6147:22;6126:53;:::i;:::-;6116:63;;6071:118;5577:619;;;;;:::o;6202:117::-;6311:1;6308;6301:12;6325:117;6434:1;6431;6424:12;6448:180;6496:77;6493:1;6486:88;6593:4;6590:1;6583:15;6617:4;6614:1;6607:15;6634:281;6717:27;6739:4;6717:27;:::i;:::-;6709:6;6705:40;6847:6;6835:10;6832:22;6811:18;6799:10;6796:34;6793:62;6790:88;;;6858:18;;:::i;:::-;6790:88;6898:10;6894:2;6887:22;6677:238;6634:281;;:::o;6921:129::-;6955:6;6982:20;;:::i;:::-;6972:30;;7011:33;7039:4;7031:6;7011:33;:::i;:::-;6921:129;;;:::o;7056:308::-;7118:4;7208:18;7200:6;7197:30;7194:56;;;7230:18;;:::i;:::-;7194:56;7268:29;7290:6;7268:29;:::i;:::-;7260:37;;7352:4;7346;7342:15;7334:23;;7056:308;;;:::o;7370:146::-;7467:6;7462:3;7457;7444:30;7508:1;7499:6;7494:3;7490:16;7483:27;7370:146;;;:::o;7522:425::-;7600:5;7625:66;7641:49;7683:6;7641:49;:::i;:::-;7625:66;:::i;:::-;7616:75;;7714:6;7707:5;7700:21;7752:4;7745:5;7741:16;7790:3;7781:6;7776:3;7772:16;7769:25;7766:112;;;7797:79;;:::i;:::-;7766:112;7887:54;7934:6;7929:3;7924;7887:54;:::i;:::-;7606:341;7522:425;;;;;:::o;7967:340::-;8023:5;8072:3;8065:4;8057:6;8053:17;8049:27;8039:122;;8080:79;;:::i;:::-;8039:122;8197:6;8184:20;8222:79;8297:3;8289:6;8282:4;8274:6;8270:17;8222:79;:::i;:::-;8213:88;;8029:278;7967:340;;;;:::o;8313:509::-;8382:6;8431:2;8419:9;8410:7;8406:23;8402:32;8399:119;;;8437:79;;:::i;:::-;8399:119;8585:1;8574:9;8570:17;8557:31;8615:18;8607:6;8604:30;8601:117;;;8637:79;;:::i;:::-;8601:117;8742:63;8797:7;8788:6;8777:9;8773:22;8742:63;:::i;:::-;8732:73;;8528:287;8313:509;;;;:::o;8828:116::-;8898:21;8913:5;8898:21;:::i;:::-;8891:5;8888:32;8878:60;;8934:1;8931;8924:12;8878:60;8828:116;:::o;8950:133::-;8993:5;9031:6;9018:20;9009:29;;9047:30;9071:5;9047:30;:::i;:::-;8950:133;;;;:::o;9089:468::-;9154:6;9162;9211:2;9199:9;9190:7;9186:23;9182:32;9179:119;;;9217:79;;:::i;:::-;9179:119;9337:1;9362:53;9407:7;9398:6;9387:9;9383:22;9362:53;:::i;:::-;9352:63;;9308:117;9464:2;9490:50;9532:7;9523:6;9512:9;9508:22;9490:50;:::i;:::-;9480:60;;9435:115;9089:468;;;;;:::o;9563:307::-;9624:4;9714:18;9706:6;9703:30;9700:56;;;9736:18;;:::i;:::-;9700:56;9774:29;9796:6;9774:29;:::i;:::-;9766:37;;9858:4;9852;9848:15;9840:23;;9563:307;;;:::o;9876:423::-;9953:5;9978:65;9994:48;10035:6;9994:48;:::i;:::-;9978:65;:::i;:::-;9969:74;;10066:6;10059:5;10052:21;10104:4;10097:5;10093:16;10142:3;10133:6;10128:3;10124:16;10121:25;10118:112;;;10149:79;;:::i;:::-;10118:112;10239:54;10286:6;10281:3;10276;10239:54;:::i;:::-;9959:340;9876:423;;;;;:::o;10318:338::-;10373:5;10422:3;10415:4;10407:6;10403:17;10399:27;10389:122;;10430:79;;:::i;:::-;10389:122;10547:6;10534:20;10572:78;10646:3;10638:6;10631:4;10623:6;10619:17;10572:78;:::i;:::-;10563:87;;10379:277;10318:338;;;;:::o;10662:943::-;10757:6;10765;10773;10781;10830:3;10818:9;10809:7;10805:23;10801:33;10798:120;;;10837:79;;:::i;:::-;10798:120;10957:1;10982:53;11027:7;11018:6;11007:9;11003:22;10982:53;:::i;:::-;10972:63;;10928:117;11084:2;11110:53;11155:7;11146:6;11135:9;11131:22;11110:53;:::i;:::-;11100:63;;11055:118;11212:2;11238:53;11283:7;11274:6;11263:9;11259:22;11238:53;:::i;:::-;11228:63;;11183:118;11368:2;11357:9;11353:18;11340:32;11399:18;11391:6;11388:30;11385:117;;;11421:79;;:::i;:::-;11385:117;11526:62;11580:7;11571:6;11560:9;11556:22;11526:62;:::i;:::-;11516:72;;11311:287;10662:943;;;;;;;:::o;11611:474::-;11679:6;11687;11736:2;11724:9;11715:7;11711:23;11707:32;11704:119;;;11742:79;;:::i;:::-;11704:119;11862:1;11887:53;11932:7;11923:6;11912:9;11908:22;11887:53;:::i;:::-;11877:63;;11833:117;11989:2;12015:53;12060:7;12051:6;12040:9;12036:22;12015:53;:::i;:::-;12005:63;;11960:118;11611:474;;;;;:::o;12091:180::-;12139:77;12136:1;12129:88;12236:4;12233:1;12226:15;12260:4;12257:1;12250:15;12277:320;12321:6;12358:1;12352:4;12348:12;12338:22;;12405:1;12399:4;12395:12;12426:18;12416:81;;12482:4;12474:6;12470:17;12460:27;;12416:81;12544:2;12536:6;12533:14;12513:18;12510:38;12507:84;;12563:18;;:::i;:::-;12507:84;12328:269;12277:320;;;:::o;12603:147::-;12704:11;12741:3;12726:18;;12603:147;;;;:::o;12756:114::-;;:::o;12876:398::-;13035:3;13056:83;13137:1;13132:3;13056:83;:::i;:::-;13049:90;;13148:93;13237:3;13148:93;:::i;:::-;13266:1;13261:3;13257:11;13250:18;;12876:398;;;:::o;13280:379::-;13464:3;13486:147;13629:3;13486:147;:::i;:::-;13479:154;;13650:3;13643:10;;13280:379;;;:::o;13665:166::-;13805:18;13801:1;13793:6;13789:14;13782:42;13665:166;:::o;13837:366::-;13979:3;14000:67;14064:2;14059:3;14000:67;:::i;:::-;13993:74;;14076:93;14165:3;14076:93;:::i;:::-;14194:2;14189:3;14185:12;14178:19;;13837:366;;;:::o;14209:419::-;14375:4;14413:2;14402:9;14398:18;14390:26;;14462:9;14456:4;14452:20;14448:1;14437:9;14433:17;14426:47;14490:131;14616:4;14490:131;:::i;:::-;14482:139;;14209:419;;;:::o;14634:141::-;14683:4;14706:3;14698:11;;14729:3;14726:1;14719:14;14763:4;14760:1;14750:18;14742:26;;14634:141;;;:::o;14781:93::-;14818:6;14865:2;14860;14853:5;14849:14;14845:23;14835:33;;14781:93;;;:::o;14880:107::-;14924:8;14974:5;14968:4;14964:16;14943:37;;14880:107;;;;:::o;14993:393::-;15062:6;15112:1;15100:10;15096:18;15135:97;15165:66;15154:9;15135:97;:::i;:::-;15253:39;15283:8;15272:9;15253:39;:::i;:::-;15241:51;;15325:4;15321:9;15314:5;15310:21;15301:30;;15374:4;15364:8;15360:19;15353:5;15350:30;15340:40;;15069:317;;14993:393;;;;;:::o;15392:60::-;15420:3;15441:5;15434:12;;15392:60;;;:::o;15458:142::-;15508:9;15541:53;15559:34;15568:24;15586:5;15568:24;:::i;:::-;15559:34;:::i;:::-;15541:53;:::i;:::-;15528:66;;15458:142;;;:::o;15606:75::-;15649:3;15670:5;15663:12;;15606:75;;;:::o;15687:269::-;15797:39;15828:7;15797:39;:::i;:::-;15858:91;15907:41;15931:16;15907:41;:::i;:::-;15899:6;15892:4;15886:11;15858:91;:::i;:::-;15852:4;15845:105;15763:193;15687:269;;;:::o;15962:73::-;16007:3;15962:73;:::o;16041:189::-;16118:32;;:::i;:::-;16159:65;16217:6;16209;16203:4;16159:65;:::i;:::-;16094:136;16041:189;;:::o;16236:186::-;16296:120;16313:3;16306:5;16303:14;16296:120;;;16367:39;16404:1;16397:5;16367:39;:::i;:::-;16340:1;16333:5;16329:13;16320:22;;16296:120;;;16236:186;;:::o;16428:543::-;16529:2;16524:3;16521:11;16518:446;;;16563:38;16595:5;16563:38;:::i;:::-;16647:29;16665:10;16647:29;:::i;:::-;16637:8;16633:44;16830:2;16818:10;16815:18;16812:49;;;16851:8;16836:23;;16812:49;16874:80;16930:22;16948:3;16930:22;:::i;:::-;16920:8;16916:37;16903:11;16874:80;:::i;:::-;16533:431;;16518:446;16428:543;;;:::o;16977:117::-;17031:8;17081:5;17075:4;17071:16;17050:37;;16977:117;;;;:::o;17100:169::-;17144:6;17177:51;17225:1;17221:6;17213:5;17210:1;17206:13;17177:51;:::i;:::-;17173:56;17258:4;17252;17248:15;17238:25;;17151:118;17100:169;;;;:::o;17274:295::-;17350:4;17496:29;17521:3;17515:4;17496:29;:::i;:::-;17488:37;;17558:3;17555:1;17551:11;17545:4;17542:21;17534:29;;17274:295;;;;:::o;17574:1395::-;17691:37;17724:3;17691:37;:::i;:::-;17793:18;17785:6;17782:30;17779:56;;;17815:18;;:::i;:::-;17779:56;17859:38;17891:4;17885:11;17859:38;:::i;:::-;17944:67;18004:6;17996;17990:4;17944:67;:::i;:::-;18038:1;18062:4;18049:17;;18094:2;18086:6;18083:14;18111:1;18106:618;;;;18768:1;18785:6;18782:77;;;18834:9;18829:3;18825:19;18819:26;18810:35;;18782:77;18885:67;18945:6;18938:5;18885:67;:::i;:::-;18879:4;18872:81;18741:222;18076:887;;18106:618;18158:4;18154:9;18146:6;18142:22;18192:37;18224:4;18192:37;:::i;:::-;18251:1;18265:208;18279:7;18276:1;18273:14;18265:208;;;18358:9;18353:3;18349:19;18343:26;18335:6;18328:42;18409:1;18401:6;18397:14;18387:24;;18456:2;18445:9;18441:18;18428:31;;18302:4;18299:1;18295:12;18290:17;;18265:208;;;18501:6;18492:7;18489:19;18486:179;;;18559:9;18554:3;18550:19;18544:26;18602:48;18644:4;18636:6;18632:17;18621:9;18602:48;:::i;:::-;18594:6;18587:64;18509:156;18486:179;18711:1;18707;18699:6;18695:14;18691:22;18685:4;18678:36;18113:611;;;18076:887;;17666:1303;;;17574:1395;;:::o;18975:169::-;19115:21;19111:1;19103:6;19099:14;19092:45;18975:169;:::o;19150:366::-;19292:3;19313:67;19377:2;19372:3;19313:67;:::i;:::-;19306:74;;19389:93;19478:3;19389:93;:::i;:::-;19507:2;19502:3;19498:12;19491:19;;19150:366;;;:::o;19522:419::-;19688:4;19726:2;19715:9;19711:18;19703:26;;19775:9;19769:4;19765:20;19761:1;19750:9;19746:17;19739:47;19803:131;19929:4;19803:131;:::i;:::-;19795:139;;19522:419;;;:::o;19947:180::-;19995:77;19992:1;19985:88;20092:4;20089:1;20082:15;20116:4;20113:1;20106:15;20133:191;20173:3;20192:20;20210:1;20192:20;:::i;:::-;20187:25;;20226:20;20244:1;20226:20;:::i;:::-;20221:25;;20269:1;20266;20262:9;20255:16;;20290:3;20287:1;20284:10;20281:36;;;20297:18;;:::i;:::-;20281:36;20133:191;;;;:::o;20330:168::-;20470:20;20466:1;20458:6;20454:14;20447:44;20330:168;:::o;20504:366::-;20646:3;20667:67;20731:2;20726:3;20667:67;:::i;:::-;20660:74;;20743:93;20832:3;20743:93;:::i;:::-;20861:2;20856:3;20852:12;20845:19;;20504:366;;;:::o;20876:419::-;21042:4;21080:2;21069:9;21065:18;21057:26;;21129:9;21123:4;21119:20;21115:1;21104:9;21100:17;21093:47;21157:131;21283:4;21157:131;:::i;:::-;21149:139;;20876:419;;;:::o;21301:166::-;21441:18;21437:1;21429:6;21425:14;21418:42;21301:166;:::o;21473:366::-;21615:3;21636:67;21700:2;21695:3;21636:67;:::i;:::-;21629:74;;21712:93;21801:3;21712:93;:::i;:::-;21830:2;21825:3;21821:12;21814:19;;21473:366;;;:::o;21845:419::-;22011:4;22049:2;22038:9;22034:18;22026:26;;22098:9;22092:4;22088:20;22084:1;22073:9;22069:17;22062:47;22126:131;22252:4;22126:131;:::i;:::-;22118:139;;21845:419;;;:::o;22270:410::-;22310:7;22333:20;22351:1;22333:20;:::i;:::-;22328:25;;22367:20;22385:1;22367:20;:::i;:::-;22362:25;;22422:1;22419;22415:9;22444:30;22462:11;22444:30;:::i;:::-;22433:41;;22623:1;22614:7;22610:15;22607:1;22604:22;22584:1;22577:9;22557:83;22534:139;;22653:18;;:::i;:::-;22534:139;22318:362;22270:410;;;;:::o;22686:171::-;22826:23;22822:1;22814:6;22810:14;22803:47;22686:171;:::o;22863:366::-;23005:3;23026:67;23090:2;23085:3;23026:67;:::i;:::-;23019:74;;23102:93;23191:3;23102:93;:::i;:::-;23220:2;23215:3;23211:12;23204:19;;22863:366;;;:::o;23235:419::-;23401:4;23439:2;23428:9;23424:18;23416:26;;23488:9;23482:4;23478:20;23474:1;23463:9;23459:17;23452:47;23516:131;23642:4;23516:131;:::i;:::-;23508:139;;23235:419;;;:::o;23660:234::-;23800:34;23796:1;23788:6;23784:14;23777:58;23869:17;23864:2;23856:6;23852:15;23845:42;23660:234;:::o;23900:366::-;24042:3;24063:67;24127:2;24122:3;24063:67;:::i;:::-;24056:74;;24139:93;24228:3;24139:93;:::i;:::-;24257:2;24252:3;24248:12;24241:19;;23900:366;;;:::o;24272:419::-;24438:4;24476:2;24465:9;24461:18;24453:26;;24525:9;24519:4;24515:20;24511:1;24500:9;24496:17;24489:47;24553:131;24679:4;24553:131;:::i;:::-;24545:139;;24272:419;;;:::o;24697:148::-;24799:11;24836:3;24821:18;;24697:148;;;;:::o;24875:874::-;24978:3;25015:5;25009:12;25044:36;25070:9;25044:36;:::i;:::-;25096:89;25178:6;25173:3;25096:89;:::i;:::-;25089:96;;25216:1;25205:9;25201:17;25232:1;25227:166;;;;25407:1;25402:341;;;;25194:549;;25227:166;25311:4;25307:9;25296;25292:25;25287:3;25280:38;25373:6;25366:14;25359:22;25351:6;25347:35;25342:3;25338:45;25331:52;;25227:166;;25402:341;25469:38;25501:5;25469:38;:::i;:::-;25529:1;25543:154;25557:6;25554:1;25551:13;25543:154;;;25631:7;25625:14;25621:1;25616:3;25612:11;25605:35;25681:1;25672:7;25668:15;25657:26;;25579:4;25576:1;25572:12;25567:17;;25543:154;;;25726:6;25721:3;25717:16;25710:23;;25409:334;;25194:549;;24982:767;;24875:874;;;;:::o;25755:390::-;25861:3;25889:39;25922:5;25889:39;:::i;:::-;25944:89;26026:6;26021:3;25944:89;:::i;:::-;25937:96;;26042:65;26100:6;26095:3;26088:4;26081:5;26077:16;26042:65;:::i;:::-;26132:6;26127:3;26123:16;26116:23;;25865:280;25755:390;;;;:::o;26151:155::-;26291:7;26287:1;26279:6;26275:14;26268:31;26151:155;:::o;26312:400::-;26472:3;26493:84;26575:1;26570:3;26493:84;:::i;:::-;26486:91;;26586:93;26675:3;26586:93;:::i;:::-;26704:1;26699:3;26695:11;26688:18;;26312:400;;;:::o;26718:695::-;26996:3;27018:92;27106:3;27097:6;27018:92;:::i;:::-;27011:99;;27127:95;27218:3;27209:6;27127:95;:::i;:::-;27120:102;;27239:148;27383:3;27239:148;:::i;:::-;27232:155;;27404:3;27397:10;;26718:695;;;;;:::o;27419:225::-;27559:34;27555:1;27547:6;27543:14;27536:58;27628:8;27623:2;27615:6;27611:15;27604:33;27419:225;:::o;27650:366::-;27792:3;27813:67;27877:2;27872:3;27813:67;:::i;:::-;27806:74;;27889:93;27978:3;27889:93;:::i;:::-;28007:2;28002:3;27998:12;27991:19;;27650:366;;;:::o;28022:419::-;28188:4;28226:2;28215:9;28211:18;28203:26;;28275:9;28269:4;28265:20;28261:1;28250:9;28246:17;28239:47;28303:131;28429:4;28303:131;:::i;:::-;28295:139;;28022:419;;;:::o;28447:182::-;28587:34;28583:1;28575:6;28571:14;28564:58;28447:182;:::o;28635:366::-;28777:3;28798:67;28862:2;28857:3;28798:67;:::i;:::-;28791:74;;28874:93;28963:3;28874:93;:::i;:::-;28992:2;28987:3;28983:12;28976:19;;28635:366;;;:::o;29007:419::-;29173:4;29211:2;29200:9;29196:18;29188:26;;29260:9;29254:4;29250:20;29246:1;29235:9;29231:17;29224:47;29288:131;29414:4;29288:131;:::i;:::-;29280:139;;29007:419;;;:::o;29432:98::-;29483:6;29517:5;29511:12;29501:22;;29432:98;;;:::o;29536:168::-;29619:11;29653:6;29648:3;29641:19;29693:4;29688:3;29684:14;29669:29;;29536:168;;;;:::o;29710:373::-;29796:3;29824:38;29856:5;29824:38;:::i;:::-;29878:70;29941:6;29936:3;29878:70;:::i;:::-;29871:77;;29957:65;30015:6;30010:3;30003:4;29996:5;29992:16;29957:65;:::i;:::-;30047:29;30069:6;30047:29;:::i;:::-;30042:3;30038:39;30031:46;;29800:283;29710:373;;;;:::o;30089:640::-;30284:4;30322:3;30311:9;30307:19;30299:27;;30336:71;30404:1;30393:9;30389:17;30380:6;30336:71;:::i;:::-;30417:72;30485:2;30474:9;30470:18;30461:6;30417:72;:::i;:::-;30499;30567:2;30556:9;30552:18;30543:6;30499:72;:::i;:::-;30618:9;30612:4;30608:20;30603:2;30592:9;30588:18;30581:48;30646:76;30717:4;30708:6;30646:76;:::i;:::-;30638:84;;30089:640;;;;;;;:::o;30735:141::-;30791:5;30822:6;30816:13;30807:22;;30838:32;30864:5;30838:32;:::i;:::-;30735:141;;;;:::o;30882:349::-;30951:6;31000:2;30988:9;30979:7;30975:23;30971:32;30968:119;;;31006:79;;:::i;:::-;30968:119;31126:1;31151:63;31206:7;31197:6;31186:9;31182:22;31151:63;:::i;:::-;31141:73;;31097:127;30882:349;;;;:::o;31237:180::-;31285:77;31282:1;31275:88;31382:4;31379:1;31372:15;31406:4;31403:1;31396:15
Swarm Source
ipfs://abd33b0a754ace6bdf6607bde0b52914ffc9d9cebededd52c504ffc1f4568104
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 32 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.