Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 22232690 | 12 days ago | IN | 0 ETH | 0.00006959 | ||||
Safe Transfer Fr... | 22232465 | 12 days ago | IN | 0 ETH | 0.00004248 | ||||
Safe Transfer Fr... | 22232429 | 12 days ago | IN | 0 ETH | 0.00004117 | ||||
Pause | 19460792 | 399 days ago | IN | 0 ETH | 0.00112963 | ||||
Set Approval For... | 19114633 | 447 days ago | IN | 0 ETH | 0.00029832 | ||||
Transfer From | 19062718 | 455 days ago | IN | 0 ETH | 0.00089949 | ||||
Transfer From | 18856449 | 484 days ago | IN | 0 ETH | 0.00165467 | ||||
Set Approval For... | 18149600 | 583 days ago | IN | 0 ETH | 0.00078391 | ||||
Set Approval For... | 18147293 | 583 days ago | IN | 0 ETH | 0.00041741 | ||||
Safe Transfer Fr... | 18105665 | 589 days ago | IN | 0 ETH | 0.00066587 | ||||
Safe Transfer Fr... | 17999454 | 604 days ago | IN | 0 ETH | 0.0009396 | ||||
Safe Transfer Fr... | 17820639 | 629 days ago | IN | 0 ETH | 0.0018265 | ||||
Approve | 17820488 | 629 days ago | IN | 0 ETH | 0.00084216 | ||||
Approve | 17820473 | 629 days ago | IN | 0 ETH | 0.00153041 | ||||
Safe Transfer Fr... | 17820431 | 629 days ago | IN | 0 ETH | 0.00184878 | ||||
Safe Transfer Fr... | 17786017 | 634 days ago | IN | 0 ETH | 0.00535347 | ||||
Safe Transfer Fr... | 17763963 | 637 days ago | IN | 0 ETH | 0.00399695 | ||||
Safe Transfer Fr... | 17637512 | 654 days ago | IN | 0 ETH | 0.00204053 | ||||
Safe Transfer Fr... | 17630190 | 655 days ago | IN | 0 ETH | 0.00644985 | ||||
Drop | 17629576 | 655 days ago | IN | 0 ETH | 0.00474378 | ||||
Set Base URI | 17629429 | 656 days ago | IN | 0 ETH | 0.00212451 | ||||
Set Base URI | 17629410 | 656 days ago | IN | 0 ETH | 0.00217205 | ||||
Set Base URI | 17593229 | 661 days ago | IN | 0 ETH | 0.00158024 | ||||
Set Base URI | 17593197 | 661 days ago | IN | 0 ETH | 0.00480773 | ||||
Set Sale Address | 17593149 | 661 days ago | IN | 0 ETH | 0.00107147 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Bottle
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; contract Bottle is ERC721A, Ownable, EIP712, Pausable { //SUPPLY uint256 public immutable MAX_SUPPLY; uint256 public immutable MAX_MINT_PER_WALLET; //METADATA string public baseURI; string private collectionURI; //MALARTIC SALE CONTRACT ADDRESS address public saleAddress; //REDEEM MAPPING mapping(uint8 => uint256) public redeemedTimestamp; //MINT PER ADDRESS COUNTER MAPPING mapping(address => uint256) public mintedPerWallet; //MINT EVENT event Mint(address to, uint256 amount, uint256 firstTokenId, uint256 orderID); //DROP EVENT event Drop(address to, uint256 amount, uint256 firstTokenId); //METADATA UPDATE EVENT event MetadataUpdate(uint256 _tokenId); //MODIFIERS modifier checkMintPerAddress(address account_, uint256 amount_) { require( mintedPerWallet[account_] + amount_ <= MAX_MINT_PER_WALLET, "Bottle: mint limit per wallet was exceeded" ); _; } modifier checkSupply(uint256 amount_) { require( totalSupply() + amount_ <= MAX_SUPPLY, "Bottle: Mint supply limit was exceeded" ); _; } constructor(string memory _name, string memory _symbol, uint256 _maxSupply, uint256 _maxMintPerWallet) ERC721A(_name, _symbol) EIP712(_name, "1") { MAX_SUPPLY = _maxSupply; MAX_MINT_PER_WALLET = _maxMintPerWallet; } function batchMint( address to_, uint256 amount_, uint256 orderId_ ) external checkMintPerAddress(to_, amount_) checkSupply(amount_) { require(msg.sender == saleAddress, "Not allowed"); uint256 _firstTokenId = totalSupply() + 1; mintedPerWallet[to_] = mintedPerWallet[to_] + amount_; _safeMint(to_, amount_); emit Mint(to_, amount_, _firstTokenId, orderId_); } function drop( address to_, uint256 amount_ ) public onlyOwner checkSupply(amount_) { uint256 _firstTokenId = totalSupply() + 1; _safeMint(to_, amount_); emit Drop(to_, amount_, _firstTokenId); } //REDEEM FUNCTIONS // EIP-712 typed structured data signature bytes32 private constant SHIPPING_DATA_TYPEHASH = keccak256( "ShippingData(bytes32 hashdata,uint64 timestamp)" ); /** * @dev Utility function for EIP712 * @param hashdata The hash of the redeem data * @param timestamp The redeem timestamp * @param signer The wallet who signed the hashdata * @param signature The result of when the "signer" signs the "hashdata" */ function verifyShippingData( bytes32 hashdata, uint64 timestamp, address signer, bytes calldata signature ) public view returns (bool) { bytes32 digest = _hashTypedDataV4( keccak256( abi.encode( SHIPPING_DATA_TYPEHASH, hashdata, timestamp ) ) ); (address a, ECDSA.RecoverError e) = ECDSA.tryRecover(digest, signature); return (a == signer) && (e == ECDSA.RecoverError.NoError); } /** * @dev Utility function for EIP712 * @param tokenId The token Id to be redeemed * @param hashdata The hash of the redeem data * @param timestamp The redeem timestamp * @param signature The result of when the "signer" signs the "hashdata" */ function redeem( uint8 tokenId, bytes32 hashdata, uint64 timestamp, bytes calldata signature ) public { require(ownerOf(tokenId) == msg.sender, "Bottle: Not allowed"); require( redeemedTimestamp[tokenId] == 0, "Bottle: NFT already redeemed" ); require( verifyShippingData(hashdata, timestamp, msg.sender, signature), "Invalid signature" ); redeemedTimestamp[tokenId] = block.timestamp; emit MetadataUpdate(tokenId); } //PAUSE/UNPAUSE FUNCTIONS function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function contractURI() public view returns (string memory) { return collectionURI; } //SETTERS function setBaseURI(string calldata uri) external onlyOwner { baseURI = uri; } function setContractURI(string calldata uri) external onlyOwner { collectionURI = uri; } function setSaleAddress(address _saleAddress) public onlyOwner { saleAddress = _saleAddress; } function _baseURI() internal view override returns (string memory) { return baseURI; } //OVERRIDES function _startTokenId() internal view virtual override(ERC721A) returns (uint256) { return 1; } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override(ERC721A) { super._beforeTokenTransfers(from, to, startTokenId, quantity); require(!paused(), "Pausable: token transfer while paused"); } //supports ERC4906 function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A) returns (bool) { return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol) pragma solidity ^0.8.0; interface IERC5267 { /** * @dev MAY be emitted to signal that the domain could have changed. */ event EIP712DomainChanged(); /** * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712 * signature. */ function eip712Domain() external view returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; // EIP-712 is Final as of 2022-08-11. This file is deprecated. import "./EIP712.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) { // 32 is the length in bytes of hash, // enforced by the type signature above /// @solidity memory-safe-assembly assembly { mstore(0x00, "\x19Ethereum Signed Message:\n32") mstore(0x1c, hash) message := keccak256(0x00, 0x3c) } } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(ptr, "\x19\x01") mstore(add(ptr, 0x02), domainSeparator) mstore(add(ptr, 0x22), structHash) data := keccak256(ptr, 0x42) } } /** * @dev Returns an Ethereum Signed Data with intended validator, created from a * `validator` and `data` according to the version 0 of EIP-191. * * See {recover}. */ function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x00", validator, data)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.8; import "./ECDSA.sol"; import "../ShortStrings.sol"; import "../../interfaces/IERC5267.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the * separator from the immutable values, which is cheaper than accessing a cached version in cold storage. * * _Available since v3.4._ * * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment */ abstract contract EIP712 is IERC5267 { using ShortStrings for *; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _cachedDomainSeparator; uint256 private immutable _cachedChainId; address private immutable _cachedThis; bytes32 private immutable _hashedName; bytes32 private immutable _hashedVersion; ShortString private immutable _name; ShortString private immutable _version; string private _nameFallback; string private _versionFallback; /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { _name = name.toShortStringWithFallback(_nameFallback); _version = version.toShortStringWithFallback(_versionFallback); _hashedName = keccak256(bytes(name)); _hashedVersion = keccak256(bytes(version)); _cachedChainId = block.chainid; _cachedDomainSeparator = _buildDomainSeparator(); _cachedThis = address(this); } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _cachedThis && block.chainid == _cachedChainId) { return _cachedDomainSeparator; } else { return _buildDomainSeparator(); } } function _buildDomainSeparator() private view returns (bytes32) { return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev See {EIP-5267}. * * _Available since v4.9._ */ function eip712Domain() public view virtual override returns ( bytes1 fields, string memory name, string memory version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] memory extensions ) { return ( hex"0f", // 01111 _name.toStringWithFallback(_nameFallback), _version.toStringWithFallback(_versionFallback), block.chainid, address(this), bytes32(0), new uint256[](0) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 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 256, 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 << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol) pragma solidity ^0.8.8; import "./StorageSlot.sol"; // | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | // | length | 0x BB | type ShortString is bytes32; /** * @dev This library provides functions to convert short memory strings * into a `ShortString` type that can be used as an immutable variable. * * Strings of arbitrary length can be optimized using this library if * they are short enough (up to 31 bytes) by packing them with their * length (1 byte) in a single EVM word (32 bytes). Additionally, a * fallback mechanism can be used for every other case. * * Usage example: * * ```solidity * contract Named { * using ShortStrings for *; * * ShortString private immutable _name; * string private _nameFallback; * * constructor(string memory contractName) { * _name = contractName.toShortStringWithFallback(_nameFallback); * } * * function name() external view returns (string memory) { * return _name.toStringWithFallback(_nameFallback); * } * } * ``` */ library ShortStrings { // Used as an identifier for strings longer than 31 bytes. bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF; error StringTooLong(string str); error InvalidShortString(); /** * @dev Encode a string of at most 31 chars into a `ShortString`. * * This will trigger a `StringTooLong` error is the input string is too long. */ function toShortString(string memory str) internal pure returns (ShortString) { bytes memory bstr = bytes(str); if (bstr.length > 31) { revert StringTooLong(str); } return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length)); } /** * @dev Decode a `ShortString` back to a "normal" string. */ function toString(ShortString sstr) internal pure returns (string memory) { uint256 len = byteLength(sstr); // using `new string(len)` would work locally but is not memory safe. string memory str = new string(32); /// @solidity memory-safe-assembly assembly { mstore(str, len) mstore(add(str, 0x20), sstr) } return str; } /** * @dev Return the length of a `ShortString`. */ function byteLength(ShortString sstr) internal pure returns (uint256) { uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF; if (result > 31) { revert InvalidShortString(); } return result; } /** * @dev Encode a string into a `ShortString`, or write it to storage if it is too long. */ function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) { if (bytes(value).length < 32) { return toShortString(value); } else { StorageSlot.getStringSlot(store).value = value; return ShortString.wrap(_FALLBACK_SENTINEL); } } /** * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}. */ function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return toString(value); } else { return store; } } /** * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}. * * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of * actual characters as the UTF-8 encoding of a single character can span over multiple bytes. */ function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) { if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) { return byteLength(value); } else { return bytes(store).length; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerWallet","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidShortString","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":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","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":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"firstTokenId","type":"uint256"}],"name":"Drop","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"firstTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"orderID","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"uint256","name":"orderId_","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"drop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"mintedPerWallet","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenId","type":"uint8"},{"internalType":"bytes32","name":"hashdata","type":"bytes32"},{"internalType":"uint64","name":"timestamp","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"redeemedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[],"name":"saleAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleAddress","type":"address"}],"name":"setSaleAddress","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hashdata","type":"bytes32"},{"internalType":"uint64","name":"timestamp","type":"uint64"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verifyShippingData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101a06040523480156200001257600080fd5b5060405162004fbf38038062004fbf83398181016040528101906200003891906200059e565b836040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250858581600290816200008291906200088f565b5080600390816200009491906200088f565b50620000a5620001be60201b60201c565b6000819055505050620000cd620000c1620001c760201b60201c565b620001cf60201b60201c565b620000e86009836200029560201b62001c8c1790919060201c565b61012081815250506200010b600a826200029560201b62001c8c1790919060201c565b6101408181525050818051906020012060e08181525050808051906020012061010081815250504660a081815250506200014a620002f260201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505050506000600b60006101000a81548160ff0219169083151502179055508161016081815250508061018081815250505050505062000b5c565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000602083511015620002bb57620002b3836200034f60201b60201c565b9050620002ec565b82620002d283620003bc60201b62001cd01760201c565b6000019081620002e391906200088f565b5060ff60001b90505b92915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60e05161010051463060405160200162000334959493929190620009e7565b60405160208183030381529060405280519060200120905090565b600080829050601f815111156200039f57826040517f305a27a900000000000000000000000000000000000000000000000000000000815260040162000396919062000a96565b60405180910390fd5b805181620003ad9062000aec565b60001c1760001b915050919050565b6000819050919050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042f82620003e4565b810181811067ffffffffffffffff82111715620004515762000450620003f5565b5b80604052505050565b600062000466620003c6565b905062000474828262000424565b919050565b600067ffffffffffffffff821115620004975762000496620003f5565b5b620004a282620003e4565b9050602081019050919050565b60005b83811015620004cf578082015181840152602081019050620004b2565b83811115620004df576000848401525b50505050565b6000620004fc620004f68462000479565b6200045a565b9050828152602081018484840111156200051b576200051a620003df565b5b62000528848285620004af565b509392505050565b600082601f830112620005485762000547620003da565b5b81516200055a848260208601620004e5565b91505092915050565b6000819050919050565b620005788162000563565b81146200058457600080fd5b50565b60008151905062000598816200056d565b92915050565b60008060008060808587031215620005bb57620005ba620003d0565b5b600085015167ffffffffffffffff811115620005dc57620005db620003d5565b5b620005ea8782880162000530565b945050602085015167ffffffffffffffff8111156200060e576200060d620003d5565b5b6200061c8782880162000530565b93505060406200062f8782880162000587565b9250506060620006428782880162000587565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620006a157607f821691505b602082108103620006b757620006b662000659565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007217fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006e2565b6200072d8683620006e2565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620007706200076a620007648462000563565b62000745565b62000563565b9050919050565b6000819050919050565b6200078c836200074f565b620007a46200079b8262000777565b848454620006ef565b825550505050565b600090565b620007bb620007ac565b620007c881848462000781565b505050565b5b81811015620007f057620007e4600082620007b1565b600181019050620007ce565b5050565b601f8211156200083f576200080981620006bd565b6200081484620006d2565b8101602085101562000824578190505b6200083c6200083385620006d2565b830182620007cd565b50505b505050565b600082821c905092915050565b6000620008646000198460080262000844565b1980831691505092915050565b60006200087f838362000851565b9150826002028217905092915050565b6200089a826200064e565b67ffffffffffffffff811115620008b657620008b5620003f5565b5b620008c2825462000688565b620008cf828285620007f4565b600060209050601f831160018114620009075760008415620008f2578287015190505b620008fe858262000871565b8655506200096e565b601f1984166200091786620006bd565b60005b8281101562000941578489015182556001820191506020850194506020810190506200091a565b868310156200096157848901516200095d601f89168262000851565b8355505b6001600288020188555050505b505050505050565b6000819050919050565b6200098b8162000976565b82525050565b6200099c8162000563565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009cf82620009a2565b9050919050565b620009e181620009c2565b82525050565b600060a082019050620009fe600083018862000980565b62000a0d602083018762000980565b62000a1c604083018662000980565b62000a2b606083018562000991565b62000a3a6080830184620009d6565b9695505050505050565b600082825260208201905092915050565b600062000a62826200064e565b62000a6e818562000a44565b935062000a80818560208601620004af565b62000a8b81620003e4565b840191505092915050565b6000602082019050818103600083015262000ab2818462000a55565b905092915050565b600081519050919050565b6000819050602082019050919050565b600062000ae3825162000976565b80915050919050565b600062000af98262000aba565b8262000b058462000ac5565b905062000b128162000ad5565b9250602082101562000b555762000b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802620006e2565b831692505b5050919050565b60805160a05160c05160e05161010051610120516101405161016051610180516143dd62000be260003960008181610dfd01526116a7015260008181610eab015281816110a601526113ea01526000611324015260006112f001526000612b8901526000612b6801526000612762015260006127b8015260006127e101526143dd6000f3fe6080604052600436106102045760003560e01c8063715018a611610118578063b277caaa116100a0578063e8a3d4851161006f578063e8a3d48514610725578063e985e9c514610750578063f2fde38b1461078d578063f8fb491f146107b6578063fffe088d146107df57610204565b8063b277caaa14610666578063b88d4fde146106a3578063be9c6ee1146106bf578063c87b56dd146106e857610204565b80638da5cb5b116100e75780638da5cb5b14610593578063938e3d7b146105be57806395d89b41146105e7578063a22cb46514610612578063b19960e61461063b57610204565b8063715018a61461050b5780638456cb591461052257806384b0196e146105395780638d0f8cef1461056a57610204565b80633a602b4d1161019b57806355f804b31161016a57806355f804b3146104125780635c975abb1461043b5780636352211e146104665780636c0360eb146104a357806370a08231146104ce57610204565b80633a602b4d146103655780633dfcc40a146103a25780633f4ba83a146103df57806342842e0e146103f657610204565b806318160ddd116101d757806318160ddd146102ca57806323b872dd146102f55780632a959b891461031157806332cb6b0c1461033a57610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612c55565b61080a565b60405161023d9190612c9d565b60405180910390f35b34801561025257600080fd5b5061025b61086b565b6040516102689190612d51565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190612da9565b6108fd565b6040516102a59190612e17565b60405180910390f35b6102c860048036038101906102c39190612e5e565b61097c565b005b3480156102d657600080fd5b506102df610ac0565b6040516102ec9190612ead565b60405180910390f35b61030f600480360381019061030a9190612ec8565b610ad7565b005b34801561031d57600080fd5b5061033860048036038101906103339190612f1b565b610df9565b005b34801561034657600080fd5b5061034f6110a4565b60405161035c9190612ead565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190612f6e565b6110c8565b6040516103999190612ead565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190612fd4565b6110e0565b6040516103d69190612ead565b60405180910390f35b3480156103eb57600080fd5b506103f46110f8565b005b610410600480360381019061040b9190612ec8565b61110a565b005b34801561041e57600080fd5b5061043960048036038101906104349190613066565b61112a565b005b34801561044757600080fd5b50610450611148565b60405161045d9190612c9d565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190612da9565b61115f565b60405161049a9190612e17565b60405180910390f35b3480156104af57600080fd5b506104b8611171565b6040516104c59190612d51565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190612f6e565b6111ff565b6040516105029190612ead565b60405180910390f35b34801561051757600080fd5b506105206112b7565b005b34801561052e57600080fd5b506105376112cb565b005b34801561054557600080fd5b5061054e6112dd565b60405161056197969594939291906131c5565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c9190612e5e565b6113df565b005b34801561059f57600080fd5b506105a86114c0565b6040516105b59190612e17565b60405180910390f35b3480156105ca57600080fd5b506105e560048036038101906105e09190613066565b6114ea565b005b3480156105f357600080fd5b506105fc611508565b6040516106099190612d51565b60405180910390f35b34801561061e57600080fd5b5061063960048036038101906106349190613275565b61159a565b005b34801561064757600080fd5b506106506116a5565b60405161065d9190612ead565b60405180910390f35b34801561067257600080fd5b5061068d60048036038101906106889190613377565b6116c9565b60405161069a9190612c9d565b60405180910390f35b6106bd60048036038101906106b8919061352f565b6117e3565b005b3480156106cb57600080fd5b506106e660048036038101906106e191906135b2565b611856565b005b3480156106f457600080fd5b5061070f600480360381019061070a9190612da9565b6119d3565b60405161071c9190612d51565b60405180910390f35b34801561073157600080fd5b5061073a611a71565b6040516107479190612d51565b60405180910390f35b34801561075c57600080fd5b506107776004803603810190610772919061363a565b611b03565b6040516107849190612c9d565b60405180910390f35b34801561079957600080fd5b506107b460048036038101906107af9190612f6e565b611b97565b005b3480156107c257600080fd5b506107dd60048036038101906107d89190612f6e565b611c1a565b005b3480156107eb57600080fd5b506107f4611c66565b6040516108019190612e17565b60405180910390f35b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610864575061086382611cda565b5b9050919050565b60606002805461087a906136a9565b80601f01602080910402602001604051908101604052809291908181526020018280546108a6906136a9565b80156108f35780601f106108c8576101008083540402835291602001916108f3565b820191906000526020600020905b8154815290600101906020018083116108d657829003601f168201915b5050505050905090565b600061090882611d6c565b61093e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109878261115f565b90508073ffffffffffffffffffffffffffffffffffffffff166109a8611dcb565b73ffffffffffffffffffffffffffffffffffffffff1614610a0b576109d4816109cf611dcb565b611b03565b610a0a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610aca611dd3565b6001546000540303905090565b6000610ae282611ddc565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b49576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b5584611ea8565b91509150610b6b8187610b66611dcb565b611ecf565b610bb757610b8086610b7b611dcb565b611b03565b610bb6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c1d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c2a8686866001611f13565b8015610c3557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d0385610cdf888887611f6d565b7c020000000000000000000000000000000000000000000000000000000017611f95565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d895760006001850190506000600460008381526020019081526020016000205403610d87576000548114610d86578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610df18686866001611fc0565b505050505050565b82827f000000000000000000000000000000000000000000000000000000000000000081601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e679190613709565b1115610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906137d1565b60405180910390fd5b837f000000000000000000000000000000000000000000000000000000000000000081610ed3610ac0565b610edd9190613709565b1115610f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1590613863565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa5906138cf565b60405180910390fd5b60006001610fba610ac0565b610fc49190613709565b905085601060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546110119190613709565b601060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061105e8787611fc6565b7fb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb8787838860405161109394939291906138ef565b60405180910390a150505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60106020528060005260406000206000915090505481565b600f6020528060005260406000206000915090505481565b611100611fe4565b611108612062565b565b611125838383604051806020016040528060008152506117e3565b505050565b611132611fe4565b8181600c9182611143929190613aeb565b505050565b6000600b60009054906101000a900460ff16905090565b600061116a82611ddc565b9050919050565b600c805461117e906136a9565b80601f01602080910402602001604051908101604052809291908181526020018280546111aa906136a9565b80156111f75780601f106111cc576101008083540402835291602001916111f7565b820191906000526020600020905b8154815290600101906020018083116111da57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611266576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6112bf611fe4565b6112c960006120c5565b565b6112d3611fe4565b6112db61218b565b565b60006060806000806000606061131d60097f00000000000000000000000000000000000000000000000000000000000000006121ee90919063ffffffff16565b611351600a7f00000000000000000000000000000000000000000000000000000000000000006121ee90919063ffffffff16565b46306000801b600067ffffffffffffffff81111561137257611371613404565b5b6040519080825280602002602001820160405280156113a05781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6113e7611fe4565b807f000000000000000000000000000000000000000000000000000000000000000081611412610ac0565b61141c9190613709565b111561145d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145490613863565b60405180910390fd5b60006001611469610ac0565b6114739190613709565b905061147f8484611fc6565b7fd034d7fdd827eb4f41b668e02da1342cb8eced53d850fef72e1b2cd2c8387bac8484836040516114b293929190613bbb565b60405180910390a150505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114f2611fe4565b8181600d9182611503929190613aeb565b505050565b606060038054611517906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054611543906136a9565b80156115905780601f1061156557610100808354040283529160200191611590565b820191906000526020600020905b81548152906001019060200180831161157357829003601f168201915b5050505050905090565b80600760006115a7611dcb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611654611dcb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116999190612c9d565b60405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061171f7fd2a46cd75c0783392971911764597e468056f7d4339be9ff351583fae4eb52c1888860405160200161170493929190613c01565b6040516020818303038152906040528051906020012061229e565b90506000806117728387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506122b8565b915091508673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480156117d55750600060048111156117c0576117bf613c38565b5b8160048111156117d3576117d2613c38565b5b145b935050505095945050505050565b6117ee848484610ad7565b60008373ffffffffffffffffffffffffffffffffffffffff163b146118505761181984848484612309565b61184f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff166118798660ff1661115f565b73ffffffffffffffffffffffffffffffffffffffff16146118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c690613cb3565b60405180910390fd5b6000600f60008760ff1660ff168152602001908152602001600020541461192b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192290613d1f565b60405180910390fd5b61193884843385856116c9565b611977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196e90613d8b565b60405180910390fd5b42600f60008760ff1660ff168152602001908152602001600020819055507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7856040516119c49190613ddc565b60405180910390a15050505050565b60606119de82611d6c565b611a14576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a1e612459565b90506000815103611a3e5760405180602001604052806000815250611a69565b80611a48846124eb565b604051602001611a59929190613e33565b6040516020818303038152906040525b915050919050565b6060600d8054611a80906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054611aac906136a9565b8015611af95780601f10611ace57610100808354040283529160200191611af9565b820191906000526020600020905b815481529060010190602001808311611adc57829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b9f611fe4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590613ec9565b60405180910390fd5b611c17816120c5565b50565b611c22611fe4565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000602083511015611ca857611ca18361253b565b9050611cca565b82611cb283611cd0565b6000019081611cc19190613ee9565b5060ff60001b90505b92915050565b6000819050919050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d3557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d655750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081611d77611dd3565b11158015611d86575060005482105b8015611dc4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611deb611dd3565b11611e7157600054811015611e705760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611e6e575b60008103611e64576004600083600190039350838152602001908152602001600020549050611e3a565b8092505050611ea3565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b611f1f848484846125a3565b611f27611148565b15611f67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5e9061402d565b60405180910390fd5b50505050565b60008060e883901c905060e8611f848686846125a9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611fe08282604051806020016040528060008152506125b2565b5050565b611fec61264f565b73ffffffffffffffffffffffffffffffffffffffff1661200a6114c0565b73ffffffffffffffffffffffffffffffffffffffff1614612060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205790614099565b60405180910390fd5b565b61206a612657565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6120ae61264f565b6040516120bb9190612e17565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121936126a0565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121d761264f565b6040516121e49190612e17565b60405180910390a1565b606060ff60001b831461220b57612204836126ea565b9050612298565b818054612217906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054612243906136a9565b80156122905780601f1061226557610100808354040283529160200191612290565b820191906000526020600020905b81548152906001019060200180831161227357829003601f168201915b505050505090505b92915050565b60006122b16122ab61275e565b83612815565b9050919050565b60008060418351036122f95760008060006020860151925060408601519150606086015160001a90506122ed87828585612856565b94509450505050612302565b60006002915091505b9250929050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261232f611dcb565b8786866040518563ffffffff1660e01b8152600401612351949392919061410e565b6020604051808303816000875af192505050801561238d57506040513d601f19601f8201168201806040525081019061238a919061416f565b60015b612406573d80600081146123bd576040519150601f19603f3d011682016040523d82523d6000602084013e6123c2565b606091505b5060008151036123fe576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c8054612468906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054612494906136a9565b80156124e15780601f106124b6576101008083540402835291602001916124e1565b820191906000526020600020905b8154815290600101906020018083116124c457829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561252657600184039350600a81066030018453600a8104905080612504575b50828103602084039350808452505050919050565b600080829050601f8151111561258857826040517f305a27a900000000000000000000000000000000000000000000000000000000815260040161257f9190612d51565b60405180910390fd5b805181612594906141c1565b60001c1760001b915050919050565b50505050565b60009392505050565b6125bc8383612938565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461264a57600080549050600083820390505b6125fc6000868380600101945086612309565b612632576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106125e957816000541461264757600080fd5b50505b505050565b600033905090565b61265f611148565b61269e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269590614274565b60405180910390fd5b565b6126a8611148565b156126e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126df906142e0565b60405180910390fd5b565b606060006126f783612af3565b90506000602067ffffffffffffffff81111561271657612715613404565b5b6040519080825280601f01601f1916602001820160405280156127485781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156127da57507f000000000000000000000000000000000000000000000000000000000000000046145b15612807577f00000000000000000000000000000000000000000000000000000000000000009050612812565b61280f612b43565b90505b90565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561289157600060039150915061292f565b6000600187878787604051600081526020016040526040516128b6949392919061430f565b6020604051602081039080840390855afa1580156128d8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129265760006001925092505061292f565b80600092509250505b94509492505050565b60008054905060008203612978576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129856000848385611f13565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506129fc836129ed6000866000611f6d565b6129f685612bd9565b17611f95565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612a9d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612a62565b5060008203612ad8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612aee6000848385611fc0565b505050565b60008060ff8360001c169050601f811115612b3a576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000004630604051602001612bbe959493929190614354565b60405160208183030381529060405280519060200120905090565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c3281612bfd565b8114612c3d57600080fd5b50565b600081359050612c4f81612c29565b92915050565b600060208284031215612c6b57612c6a612bf3565b5b6000612c7984828501612c40565b91505092915050565b60008115159050919050565b612c9781612c82565b82525050565b6000602082019050612cb26000830184612c8e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cf2578082015181840152602081019050612cd7565b83811115612d01576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d2382612cb8565b612d2d8185612cc3565b9350612d3d818560208601612cd4565b612d4681612d07565b840191505092915050565b60006020820190508181036000830152612d6b8184612d18565b905092915050565b6000819050919050565b612d8681612d73565b8114612d9157600080fd5b50565b600081359050612da381612d7d565b92915050565b600060208284031215612dbf57612dbe612bf3565b5b6000612dcd84828501612d94565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e0182612dd6565b9050919050565b612e1181612df6565b82525050565b6000602082019050612e2c6000830184612e08565b92915050565b612e3b81612df6565b8114612e4657600080fd5b50565b600081359050612e5881612e32565b92915050565b60008060408385031215612e7557612e74612bf3565b5b6000612e8385828601612e49565b9250506020612e9485828601612d94565b9150509250929050565b612ea781612d73565b82525050565b6000602082019050612ec26000830184612e9e565b92915050565b600080600060608486031215612ee157612ee0612bf3565b5b6000612eef86828701612e49565b9350506020612f0086828701612e49565b9250506040612f1186828701612d94565b9150509250925092565b600080600060608486031215612f3457612f33612bf3565b5b6000612f4286828701612e49565b9350506020612f5386828701612d94565b9250506040612f6486828701612d94565b9150509250925092565b600060208284031215612f8457612f83612bf3565b5b6000612f9284828501612e49565b91505092915050565b600060ff82169050919050565b612fb181612f9b565b8114612fbc57600080fd5b50565b600081359050612fce81612fa8565b92915050565b600060208284031215612fea57612fe9612bf3565b5b6000612ff884828501612fbf565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261302657613025613001565b5b8235905067ffffffffffffffff81111561304357613042613006565b5b60208301915083600182028301111561305f5761305e61300b565b5b9250929050565b6000806020838503121561307d5761307c612bf3565b5b600083013567ffffffffffffffff81111561309b5761309a612bf8565b5b6130a785828601613010565b92509250509250929050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6130e8816130b3565b82525050565b6000819050919050565b613101816130ee565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61313c81612d73565b82525050565b600061314e8383613133565b60208301905092915050565b6000602082019050919050565b600061317282613107565b61317c8185613112565b935061318783613123565b8060005b838110156131b857815161319f8882613142565b97506131aa8361315a565b92505060018101905061318b565b5085935050505092915050565b600060e0820190506131da600083018a6130df565b81810360208301526131ec8189612d18565b905081810360408301526132008188612d18565b905061320f6060830187612e9e565b61321c6080830186612e08565b61322960a08301856130f8565b81810360c083015261323b8184613167565b905098975050505050505050565b61325281612c82565b811461325d57600080fd5b50565b60008135905061326f81613249565b92915050565b6000806040838503121561328c5761328b612bf3565b5b600061329a85828601612e49565b92505060206132ab85828601613260565b9150509250929050565b6132be816130ee565b81146132c957600080fd5b50565b6000813590506132db816132b5565b92915050565b600067ffffffffffffffff82169050919050565b6132fe816132e1565b811461330957600080fd5b50565b60008135905061331b816132f5565b92915050565b60008083601f84011261333757613336613001565b5b8235905067ffffffffffffffff81111561335457613353613006565b5b6020830191508360018202830111156133705761336f61300b565b5b9250929050565b60008060008060006080868803121561339357613392612bf3565b5b60006133a1888289016132cc565b95505060206133b28882890161330c565b94505060406133c388828901612e49565b935050606086013567ffffffffffffffff8111156133e4576133e3612bf8565b5b6133f088828901613321565b92509250509295509295909350565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61343c82612d07565b810181811067ffffffffffffffff8211171561345b5761345a613404565b5b80604052505050565b600061346e612be9565b905061347a8282613433565b919050565b600067ffffffffffffffff82111561349a57613499613404565b5b6134a382612d07565b9050602081019050919050565b82818337600083830152505050565b60006134d26134cd8461347f565b613464565b9050828152602081018484840111156134ee576134ed6133ff565b5b6134f98482856134b0565b509392505050565b600082601f83011261351657613515613001565b5b81356135268482602086016134bf565b91505092915050565b6000806000806080858703121561354957613548612bf3565b5b600061355787828801612e49565b945050602061356887828801612e49565b935050604061357987828801612d94565b925050606085013567ffffffffffffffff81111561359a57613599612bf8565b5b6135a687828801613501565b91505092959194509250565b6000806000806000608086880312156135ce576135cd612bf3565b5b60006135dc88828901612fbf565b95505060206135ed888289016132cc565b94505060406135fe8882890161330c565b935050606086013567ffffffffffffffff81111561361f5761361e612bf8565b5b61362b88828901613321565b92509250509295509295909350565b6000806040838503121561365157613650612bf3565b5b600061365f85828601612e49565b925050602061367085828601612e49565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806136c157607f821691505b6020821081036136d4576136d361367a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061371482612d73565b915061371f83612d73565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613754576137536136da565b5b828201905092915050565b7f426f74746c653a206d696e74206c696d6974207065722077616c6c657420776160008201527f7320657863656564656400000000000000000000000000000000000000000000602082015250565b60006137bb602a83612cc3565b91506137c68261375f565b604082019050919050565b600060208201905081810360008301526137ea816137ae565b9050919050565b7f426f74746c653a204d696e7420737570706c79206c696d69742077617320657860008201527f6365656465640000000000000000000000000000000000000000000000000000602082015250565b600061384d602683612cc3565b9150613858826137f1565b604082019050919050565b6000602082019050818103600083015261387c81613840565b9050919050565b7f4e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b60006138b9600b83612cc3565b91506138c482613883565b602082019050919050565b600060208201905081810360008301526138e8816138ac565b9050919050565b60006080820190506139046000830187612e08565b6139116020830186612e9e565b61391e6040830185612e9e565b61392b6060830184612e9e565b95945050505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026139a17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613964565b6139ab8683613964565b95508019841693508086168417925050509392505050565b6000819050919050565b60006139e86139e36139de84612d73565b6139c3565b612d73565b9050919050565b6000819050919050565b613a02836139cd565b613a16613a0e826139ef565b848454613971565b825550505050565b600090565b613a2b613a1e565b613a368184846139f9565b505050565b5b81811015613a5a57613a4f600082613a23565b600181019050613a3c565b5050565b601f821115613a9f57613a708161393f565b613a7984613954565b81016020851015613a88578190505b613a9c613a9485613954565b830182613a3b565b50505b505050565b600082821c905092915050565b6000613ac260001984600802613aa4565b1980831691505092915050565b6000613adb8383613ab1565b9150826002028217905092915050565b613af58383613934565b67ffffffffffffffff811115613b0e57613b0d613404565b5b613b1882546136a9565b613b23828285613a5e565b6000601f831160018114613b525760008415613b40578287013590505b613b4a8582613acf565b865550613bb2565b601f198416613b608661393f565b60005b82811015613b8857848901358255600182019150602085019450602081019050613b63565b86831015613ba55784890135613ba1601f891682613ab1565b8355505b6001600288020188555050505b50505050505050565b6000606082019050613bd06000830186612e08565b613bdd6020830185612e9e565b613bea6040830184612e9e565b949350505050565b613bfb816132e1565b82525050565b6000606082019050613c1660008301866130f8565b613c2360208301856130f8565b613c306040830184613bf2565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f426f74746c653a204e6f7420616c6c6f77656400000000000000000000000000600082015250565b6000613c9d601383612cc3565b9150613ca882613c67565b602082019050919050565b60006020820190508181036000830152613ccc81613c90565b9050919050565b7f426f74746c653a204e465420616c72656164792072656465656d656400000000600082015250565b6000613d09601c83612cc3565b9150613d1482613cd3565b602082019050919050565b60006020820190508181036000830152613d3881613cfc565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613d75601183612cc3565b9150613d8082613d3f565b602082019050919050565b60006020820190508181036000830152613da481613d68565b9050919050565b6000613dc6613dc1613dbc84612f9b565b6139c3565b612d73565b9050919050565b613dd681613dab565b82525050565b6000602082019050613df16000830184613dcd565b92915050565b600081905092915050565b6000613e0d82612cb8565b613e178185613df7565b9350613e27818560208601612cd4565b80840191505092915050565b6000613e3f8285613e02565b9150613e4b8284613e02565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613eb3602683612cc3565b9150613ebe82613e57565b604082019050919050565b60006020820190508181036000830152613ee281613ea6565b9050919050565b613ef282612cb8565b67ffffffffffffffff811115613f0b57613f0a613404565b5b613f1582546136a9565b613f20828285613a5e565b600060209050601f831160018114613f535760008415613f41578287015190505b613f4b8582613acf565b865550613fb3565b601f198416613f618661393f565b60005b82811015613f8957848901518255600182019150602085019450602081019050613f64565b86831015613fa65784890151613fa2601f891682613ab1565b8355505b6001600288020188555050505b505050505050565b7f5061757361626c653a20746f6b656e207472616e73666572207768696c65207060008201527f6175736564000000000000000000000000000000000000000000000000000000602082015250565b6000614017602583612cc3565b915061402282613fbb565b604082019050919050565b600060208201905081810360008301526140468161400a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614083602083612cc3565b915061408e8261404d565b602082019050919050565b600060208201905081810360008301526140b281614076565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140e0826140b9565b6140ea81856140c4565b93506140fa818560208601612cd4565b61410381612d07565b840191505092915050565b60006080820190506141236000830187612e08565b6141306020830186612e08565b61413d6040830185612e9e565b818103606083015261414f81846140d5565b905095945050505050565b60008151905061416981612c29565b92915050565b60006020828403121561418557614184612bf3565b5b60006141938482850161415a565b91505092915050565b6000819050602082019050919050565b60006141b882516130ee565b80915050919050565b60006141cc826140b9565b826141d68461419c565b90506141e1816141ac565b925060208210156142215761421c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802613964565b831692505b5050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061425e601483612cc3565b915061426982614228565b602082019050919050565b6000602082019050818103600083015261428d81614251565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006142ca601083612cc3565b91506142d582614294565b602082019050919050565b600060208201905081810360008301526142f9816142bd565b9050919050565b61430981612f9b565b82525050565b600060808201905061432460008301876130f8565b6143316020830186614300565b61433e60408301856130f8565b61434b60608301846130f8565b95945050505050565b600060a08201905061436960008301886130f8565b61437660208301876130f8565b61438360408301866130f8565b6143906060830185612e9e565b61439d6080830184612e08565b969550505050505056fea2646970667358221220658eaf24065990c8606e9c26ce55cbc681aa1fcb919812460ae93f4c38fef4a664736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000560000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001043616c7661646f73436f71756572656c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434c564300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c8063715018a611610118578063b277caaa116100a0578063e8a3d4851161006f578063e8a3d48514610725578063e985e9c514610750578063f2fde38b1461078d578063f8fb491f146107b6578063fffe088d146107df57610204565b8063b277caaa14610666578063b88d4fde146106a3578063be9c6ee1146106bf578063c87b56dd146106e857610204565b80638da5cb5b116100e75780638da5cb5b14610593578063938e3d7b146105be57806395d89b41146105e7578063a22cb46514610612578063b19960e61461063b57610204565b8063715018a61461050b5780638456cb591461052257806384b0196e146105395780638d0f8cef1461056a57610204565b80633a602b4d1161019b57806355f804b31161016a57806355f804b3146104125780635c975abb1461043b5780636352211e146104665780636c0360eb146104a357806370a08231146104ce57610204565b80633a602b4d146103655780633dfcc40a146103a25780633f4ba83a146103df57806342842e0e146103f657610204565b806318160ddd116101d757806318160ddd146102ca57806323b872dd146102f55780632a959b891461031157806332cb6b0c1461033a57610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612c55565b61080a565b60405161023d9190612c9d565b60405180910390f35b34801561025257600080fd5b5061025b61086b565b6040516102689190612d51565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190612da9565b6108fd565b6040516102a59190612e17565b60405180910390f35b6102c860048036038101906102c39190612e5e565b61097c565b005b3480156102d657600080fd5b506102df610ac0565b6040516102ec9190612ead565b60405180910390f35b61030f600480360381019061030a9190612ec8565b610ad7565b005b34801561031d57600080fd5b5061033860048036038101906103339190612f1b565b610df9565b005b34801561034657600080fd5b5061034f6110a4565b60405161035c9190612ead565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190612f6e565b6110c8565b6040516103999190612ead565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190612fd4565b6110e0565b6040516103d69190612ead565b60405180910390f35b3480156103eb57600080fd5b506103f46110f8565b005b610410600480360381019061040b9190612ec8565b61110a565b005b34801561041e57600080fd5b5061043960048036038101906104349190613066565b61112a565b005b34801561044757600080fd5b50610450611148565b60405161045d9190612c9d565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190612da9565b61115f565b60405161049a9190612e17565b60405180910390f35b3480156104af57600080fd5b506104b8611171565b6040516104c59190612d51565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190612f6e565b6111ff565b6040516105029190612ead565b60405180910390f35b34801561051757600080fd5b506105206112b7565b005b34801561052e57600080fd5b506105376112cb565b005b34801561054557600080fd5b5061054e6112dd565b60405161056197969594939291906131c5565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c9190612e5e565b6113df565b005b34801561059f57600080fd5b506105a86114c0565b6040516105b59190612e17565b60405180910390f35b3480156105ca57600080fd5b506105e560048036038101906105e09190613066565b6114ea565b005b3480156105f357600080fd5b506105fc611508565b6040516106099190612d51565b60405180910390f35b34801561061e57600080fd5b5061063960048036038101906106349190613275565b61159a565b005b34801561064757600080fd5b506106506116a5565b60405161065d9190612ead565b60405180910390f35b34801561067257600080fd5b5061068d60048036038101906106889190613377565b6116c9565b60405161069a9190612c9d565b60405180910390f35b6106bd60048036038101906106b8919061352f565b6117e3565b005b3480156106cb57600080fd5b506106e660048036038101906106e191906135b2565b611856565b005b3480156106f457600080fd5b5061070f600480360381019061070a9190612da9565b6119d3565b60405161071c9190612d51565b60405180910390f35b34801561073157600080fd5b5061073a611a71565b6040516107479190612d51565b60405180910390f35b34801561075c57600080fd5b506107776004803603810190610772919061363a565b611b03565b6040516107849190612c9d565b60405180910390f35b34801561079957600080fd5b506107b460048036038101906107af9190612f6e565b611b97565b005b3480156107c257600080fd5b506107dd60048036038101906107d89190612f6e565b611c1a565b005b3480156107eb57600080fd5b506107f4611c66565b6040516108019190612e17565b60405180910390f35b6000634906490660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610864575061086382611cda565b5b9050919050565b60606002805461087a906136a9565b80601f01602080910402602001604051908101604052809291908181526020018280546108a6906136a9565b80156108f35780601f106108c8576101008083540402835291602001916108f3565b820191906000526020600020905b8154815290600101906020018083116108d657829003601f168201915b5050505050905090565b600061090882611d6c565b61093e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109878261115f565b90508073ffffffffffffffffffffffffffffffffffffffff166109a8611dcb565b73ffffffffffffffffffffffffffffffffffffffff1614610a0b576109d4816109cf611dcb565b611b03565b610a0a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610aca611dd3565b6001546000540303905090565b6000610ae282611ddc565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b49576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610b5584611ea8565b91509150610b6b8187610b66611dcb565b611ecf565b610bb757610b8086610b7b611dcb565b611b03565b610bb6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c1d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c2a8686866001611f13565b8015610c3557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d0385610cdf888887611f6d565b7c020000000000000000000000000000000000000000000000000000000017611f95565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d895760006001850190506000600460008381526020019081526020016000205403610d87576000548114610d86578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610df18686866001611fc0565b505050505050565b82827f000000000000000000000000000000000000000000000000000000000000000481601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e679190613709565b1115610ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9f906137d1565b60405180910390fd5b837f000000000000000000000000000000000000000000000000000000000000005681610ed3610ac0565b610edd9190613709565b1115610f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1590613863565b60405180910390fd5b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa5906138cf565b60405180910390fd5b60006001610fba610ac0565b610fc49190613709565b905085601060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546110119190613709565b601060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061105e8787611fc6565b7fb4c03061fb5b7fed76389d5af8f2e0ddb09f8c70d1333abbb62582835e10accb8787838860405161109394939291906138ef565b60405180910390a150505050505050565b7f000000000000000000000000000000000000000000000000000000000000005681565b60106020528060005260406000206000915090505481565b600f6020528060005260406000206000915090505481565b611100611fe4565b611108612062565b565b611125838383604051806020016040528060008152506117e3565b505050565b611132611fe4565b8181600c9182611143929190613aeb565b505050565b6000600b60009054906101000a900460ff16905090565b600061116a82611ddc565b9050919050565b600c805461117e906136a9565b80601f01602080910402602001604051908101604052809291908181526020018280546111aa906136a9565b80156111f75780601f106111cc576101008083540402835291602001916111f7565b820191906000526020600020905b8154815290600101906020018083116111da57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611266576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6112bf611fe4565b6112c960006120c5565b565b6112d3611fe4565b6112db61218b565b565b60006060806000806000606061131d60097f43616c7661646f73436f71756572656c000000000000000000000000000000106121ee90919063ffffffff16565b611351600a7f31000000000000000000000000000000000000000000000000000000000000016121ee90919063ffffffff16565b46306000801b600067ffffffffffffffff81111561137257611371613404565b5b6040519080825280602002602001820160405280156113a05781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6113e7611fe4565b807f000000000000000000000000000000000000000000000000000000000000005681611412610ac0565b61141c9190613709565b111561145d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145490613863565b60405180910390fd5b60006001611469610ac0565b6114739190613709565b905061147f8484611fc6565b7fd034d7fdd827eb4f41b668e02da1342cb8eced53d850fef72e1b2cd2c8387bac8484836040516114b293929190613bbb565b60405180910390a150505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114f2611fe4565b8181600d9182611503929190613aeb565b505050565b606060038054611517906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054611543906136a9565b80156115905780601f1061156557610100808354040283529160200191611590565b820191906000526020600020905b81548152906001019060200180831161157357829003601f168201915b5050505050905090565b80600760006115a7611dcb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611654611dcb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116999190612c9d565b60405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000481565b60008061171f7fd2a46cd75c0783392971911764597e468056f7d4339be9ff351583fae4eb52c1888860405160200161170493929190613c01565b6040516020818303038152906040528051906020012061229e565b90506000806117728387878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506122b8565b915091508673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480156117d55750600060048111156117c0576117bf613c38565b5b8160048111156117d3576117d2613c38565b5b145b935050505095945050505050565b6117ee848484610ad7565b60008373ffffffffffffffffffffffffffffffffffffffff163b146118505761181984848484612309565b61184f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff166118798660ff1661115f565b73ffffffffffffffffffffffffffffffffffffffff16146118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c690613cb3565b60405180910390fd5b6000600f60008760ff1660ff168152602001908152602001600020541461192b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192290613d1f565b60405180910390fd5b61193884843385856116c9565b611977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196e90613d8b565b60405180910390fd5b42600f60008760ff1660ff168152602001908152602001600020819055507ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7856040516119c49190613ddc565b60405180910390a15050505050565b60606119de82611d6c565b611a14576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a1e612459565b90506000815103611a3e5760405180602001604052806000815250611a69565b80611a48846124eb565b604051602001611a59929190613e33565b6040516020818303038152906040525b915050919050565b6060600d8054611a80906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054611aac906136a9565b8015611af95780601f10611ace57610100808354040283529160200191611af9565b820191906000526020600020905b815481529060010190602001808311611adc57829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b9f611fe4565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590613ec9565b60405180910390fd5b611c17816120c5565b50565b611c22611fe4565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000602083511015611ca857611ca18361253b565b9050611cca565b82611cb283611cd0565b6000019081611cc19190613ee9565b5060ff60001b90505b92915050565b6000819050919050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d3557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d655750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081611d77611dd3565b11158015611d86575060005482105b8015611dc4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611deb611dd3565b11611e7157600054811015611e705760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611e6e575b60008103611e64576004600083600190039350838152602001908152602001600020549050611e3a565b8092505050611ea3565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b611f1f848484846125a3565b611f27611148565b15611f67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5e9061402d565b60405180910390fd5b50505050565b60008060e883901c905060e8611f848686846125a9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611fe08282604051806020016040528060008152506125b2565b5050565b611fec61264f565b73ffffffffffffffffffffffffffffffffffffffff1661200a6114c0565b73ffffffffffffffffffffffffffffffffffffffff1614612060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205790614099565b60405180910390fd5b565b61206a612657565b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6120ae61264f565b6040516120bb9190612e17565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121936126a0565b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121d761264f565b6040516121e49190612e17565b60405180910390a1565b606060ff60001b831461220b57612204836126ea565b9050612298565b818054612217906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054612243906136a9565b80156122905780601f1061226557610100808354040283529160200191612290565b820191906000526020600020905b81548152906001019060200180831161227357829003601f168201915b505050505090505b92915050565b60006122b16122ab61275e565b83612815565b9050919050565b60008060418351036122f95760008060006020860151925060408601519150606086015160001a90506122ed87828585612856565b94509450505050612302565b60006002915091505b9250929050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261232f611dcb565b8786866040518563ffffffff1660e01b8152600401612351949392919061410e565b6020604051808303816000875af192505050801561238d57506040513d601f19601f8201168201806040525081019061238a919061416f565b60015b612406573d80600081146123bd576040519150601f19603f3d011682016040523d82523d6000602084013e6123c2565b606091505b5060008151036123fe576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c8054612468906136a9565b80601f0160208091040260200160405190810160405280929190818152602001828054612494906136a9565b80156124e15780601f106124b6576101008083540402835291602001916124e1565b820191906000526020600020905b8154815290600101906020018083116124c457829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561252657600184039350600a81066030018453600a8104905080612504575b50828103602084039350808452505050919050565b600080829050601f8151111561258857826040517f305a27a900000000000000000000000000000000000000000000000000000000815260040161257f9190612d51565b60405180910390fd5b805181612594906141c1565b60001c1760001b915050919050565b50505050565b60009392505050565b6125bc8383612938565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461264a57600080549050600083820390505b6125fc6000868380600101945086612309565b612632576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106125e957816000541461264757600080fd5b50505b505050565b600033905090565b61265f611148565b61269e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269590614274565b60405180910390fd5b565b6126a8611148565b156126e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126df906142e0565b60405180910390fd5b565b606060006126f783612af3565b90506000602067ffffffffffffffff81111561271657612715613404565b5b6040519080825280601f01601f1916602001820160405280156127485781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f000000000000000000000000cfd332eaff443d1b17cda910472a70257f85b04a73ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480156127da57507f000000000000000000000000000000000000000000000000000000000000000146145b15612807577fe004d401ef92cd47b05f39dbf488619b6c5d48c9938120fa92b05fc9b75f575d9050612812565b61280f612b43565b90505b90565b60006040517f190100000000000000000000000000000000000000000000000000000000000081528360028201528260228201526042812091505092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561289157600060039150915061292f565b6000600187878787604051600081526020016040526040516128b6949392919061430f565b6020604051602081039080840390855afa1580156128d8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036129265760006001925092505061292f565b80600092509250505b94509492505050565b60008054905060008203612978576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129856000848385611f13565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506129fc836129ed6000866000611f6d565b6129f685612bd9565b17611f95565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612a9d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612a62565b5060008203612ad8576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612aee6000848385611fc0565b505050565b60008060ff8360001c169050601f811115612b3a576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f57441e884ac3acf784fb429bab97697c88a352c2c654c883a4f4e85d4626005b7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001612bbe959493929190614354565b60405160208183030381529060405280519060200120905090565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612c3281612bfd565b8114612c3d57600080fd5b50565b600081359050612c4f81612c29565b92915050565b600060208284031215612c6b57612c6a612bf3565b5b6000612c7984828501612c40565b91505092915050565b60008115159050919050565b612c9781612c82565b82525050565b6000602082019050612cb26000830184612c8e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612cf2578082015181840152602081019050612cd7565b83811115612d01576000848401525b50505050565b6000601f19601f8301169050919050565b6000612d2382612cb8565b612d2d8185612cc3565b9350612d3d818560208601612cd4565b612d4681612d07565b840191505092915050565b60006020820190508181036000830152612d6b8184612d18565b905092915050565b6000819050919050565b612d8681612d73565b8114612d9157600080fd5b50565b600081359050612da381612d7d565b92915050565b600060208284031215612dbf57612dbe612bf3565b5b6000612dcd84828501612d94565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e0182612dd6565b9050919050565b612e1181612df6565b82525050565b6000602082019050612e2c6000830184612e08565b92915050565b612e3b81612df6565b8114612e4657600080fd5b50565b600081359050612e5881612e32565b92915050565b60008060408385031215612e7557612e74612bf3565b5b6000612e8385828601612e49565b9250506020612e9485828601612d94565b9150509250929050565b612ea781612d73565b82525050565b6000602082019050612ec26000830184612e9e565b92915050565b600080600060608486031215612ee157612ee0612bf3565b5b6000612eef86828701612e49565b9350506020612f0086828701612e49565b9250506040612f1186828701612d94565b9150509250925092565b600080600060608486031215612f3457612f33612bf3565b5b6000612f4286828701612e49565b9350506020612f5386828701612d94565b9250506040612f6486828701612d94565b9150509250925092565b600060208284031215612f8457612f83612bf3565b5b6000612f9284828501612e49565b91505092915050565b600060ff82169050919050565b612fb181612f9b565b8114612fbc57600080fd5b50565b600081359050612fce81612fa8565b92915050565b600060208284031215612fea57612fe9612bf3565b5b6000612ff884828501612fbf565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261302657613025613001565b5b8235905067ffffffffffffffff81111561304357613042613006565b5b60208301915083600182028301111561305f5761305e61300b565b5b9250929050565b6000806020838503121561307d5761307c612bf3565b5b600083013567ffffffffffffffff81111561309b5761309a612bf8565b5b6130a785828601613010565b92509250509250929050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6130e8816130b3565b82525050565b6000819050919050565b613101816130ee565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61313c81612d73565b82525050565b600061314e8383613133565b60208301905092915050565b6000602082019050919050565b600061317282613107565b61317c8185613112565b935061318783613123565b8060005b838110156131b857815161319f8882613142565b97506131aa8361315a565b92505060018101905061318b565b5085935050505092915050565b600060e0820190506131da600083018a6130df565b81810360208301526131ec8189612d18565b905081810360408301526132008188612d18565b905061320f6060830187612e9e565b61321c6080830186612e08565b61322960a08301856130f8565b81810360c083015261323b8184613167565b905098975050505050505050565b61325281612c82565b811461325d57600080fd5b50565b60008135905061326f81613249565b92915050565b6000806040838503121561328c5761328b612bf3565b5b600061329a85828601612e49565b92505060206132ab85828601613260565b9150509250929050565b6132be816130ee565b81146132c957600080fd5b50565b6000813590506132db816132b5565b92915050565b600067ffffffffffffffff82169050919050565b6132fe816132e1565b811461330957600080fd5b50565b60008135905061331b816132f5565b92915050565b60008083601f84011261333757613336613001565b5b8235905067ffffffffffffffff81111561335457613353613006565b5b6020830191508360018202830111156133705761336f61300b565b5b9250929050565b60008060008060006080868803121561339357613392612bf3565b5b60006133a1888289016132cc565b95505060206133b28882890161330c565b94505060406133c388828901612e49565b935050606086013567ffffffffffffffff8111156133e4576133e3612bf8565b5b6133f088828901613321565b92509250509295509295909350565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61343c82612d07565b810181811067ffffffffffffffff8211171561345b5761345a613404565b5b80604052505050565b600061346e612be9565b905061347a8282613433565b919050565b600067ffffffffffffffff82111561349a57613499613404565b5b6134a382612d07565b9050602081019050919050565b82818337600083830152505050565b60006134d26134cd8461347f565b613464565b9050828152602081018484840111156134ee576134ed6133ff565b5b6134f98482856134b0565b509392505050565b600082601f83011261351657613515613001565b5b81356135268482602086016134bf565b91505092915050565b6000806000806080858703121561354957613548612bf3565b5b600061355787828801612e49565b945050602061356887828801612e49565b935050604061357987828801612d94565b925050606085013567ffffffffffffffff81111561359a57613599612bf8565b5b6135a687828801613501565b91505092959194509250565b6000806000806000608086880312156135ce576135cd612bf3565b5b60006135dc88828901612fbf565b95505060206135ed888289016132cc565b94505060406135fe8882890161330c565b935050606086013567ffffffffffffffff81111561361f5761361e612bf8565b5b61362b88828901613321565b92509250509295509295909350565b6000806040838503121561365157613650612bf3565b5b600061365f85828601612e49565b925050602061367085828601612e49565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806136c157607f821691505b6020821081036136d4576136d361367a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061371482612d73565b915061371f83612d73565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613754576137536136da565b5b828201905092915050565b7f426f74746c653a206d696e74206c696d6974207065722077616c6c657420776160008201527f7320657863656564656400000000000000000000000000000000000000000000602082015250565b60006137bb602a83612cc3565b91506137c68261375f565b604082019050919050565b600060208201905081810360008301526137ea816137ae565b9050919050565b7f426f74746c653a204d696e7420737570706c79206c696d69742077617320657860008201527f6365656465640000000000000000000000000000000000000000000000000000602082015250565b600061384d602683612cc3565b9150613858826137f1565b604082019050919050565b6000602082019050818103600083015261387c81613840565b9050919050565b7f4e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b60006138b9600b83612cc3565b91506138c482613883565b602082019050919050565b600060208201905081810360008301526138e8816138ac565b9050919050565b60006080820190506139046000830187612e08565b6139116020830186612e9e565b61391e6040830185612e9e565b61392b6060830184612e9e565b95945050505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026139a17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613964565b6139ab8683613964565b95508019841693508086168417925050509392505050565b6000819050919050565b60006139e86139e36139de84612d73565b6139c3565b612d73565b9050919050565b6000819050919050565b613a02836139cd565b613a16613a0e826139ef565b848454613971565b825550505050565b600090565b613a2b613a1e565b613a368184846139f9565b505050565b5b81811015613a5a57613a4f600082613a23565b600181019050613a3c565b5050565b601f821115613a9f57613a708161393f565b613a7984613954565b81016020851015613a88578190505b613a9c613a9485613954565b830182613a3b565b50505b505050565b600082821c905092915050565b6000613ac260001984600802613aa4565b1980831691505092915050565b6000613adb8383613ab1565b9150826002028217905092915050565b613af58383613934565b67ffffffffffffffff811115613b0e57613b0d613404565b5b613b1882546136a9565b613b23828285613a5e565b6000601f831160018114613b525760008415613b40578287013590505b613b4a8582613acf565b865550613bb2565b601f198416613b608661393f565b60005b82811015613b8857848901358255600182019150602085019450602081019050613b63565b86831015613ba55784890135613ba1601f891682613ab1565b8355505b6001600288020188555050505b50505050505050565b6000606082019050613bd06000830186612e08565b613bdd6020830185612e9e565b613bea6040830184612e9e565b949350505050565b613bfb816132e1565b82525050565b6000606082019050613c1660008301866130f8565b613c2360208301856130f8565b613c306040830184613bf2565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f426f74746c653a204e6f7420616c6c6f77656400000000000000000000000000600082015250565b6000613c9d601383612cc3565b9150613ca882613c67565b602082019050919050565b60006020820190508181036000830152613ccc81613c90565b9050919050565b7f426f74746c653a204e465420616c72656164792072656465656d656400000000600082015250565b6000613d09601c83612cc3565b9150613d1482613cd3565b602082019050919050565b60006020820190508181036000830152613d3881613cfc565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613d75601183612cc3565b9150613d8082613d3f565b602082019050919050565b60006020820190508181036000830152613da481613d68565b9050919050565b6000613dc6613dc1613dbc84612f9b565b6139c3565b612d73565b9050919050565b613dd681613dab565b82525050565b6000602082019050613df16000830184613dcd565b92915050565b600081905092915050565b6000613e0d82612cb8565b613e178185613df7565b9350613e27818560208601612cd4565b80840191505092915050565b6000613e3f8285613e02565b9150613e4b8284613e02565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613eb3602683612cc3565b9150613ebe82613e57565b604082019050919050565b60006020820190508181036000830152613ee281613ea6565b9050919050565b613ef282612cb8565b67ffffffffffffffff811115613f0b57613f0a613404565b5b613f1582546136a9565b613f20828285613a5e565b600060209050601f831160018114613f535760008415613f41578287015190505b613f4b8582613acf565b865550613fb3565b601f198416613f618661393f565b60005b82811015613f8957848901518255600182019150602085019450602081019050613f64565b86831015613fa65784890151613fa2601f891682613ab1565b8355505b6001600288020188555050505b505050505050565b7f5061757361626c653a20746f6b656e207472616e73666572207768696c65207060008201527f6175736564000000000000000000000000000000000000000000000000000000602082015250565b6000614017602583612cc3565b915061402282613fbb565b604082019050919050565b600060208201905081810360008301526140468161400a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614083602083612cc3565b915061408e8261404d565b602082019050919050565b600060208201905081810360008301526140b281614076565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140e0826140b9565b6140ea81856140c4565b93506140fa818560208601612cd4565b61410381612d07565b840191505092915050565b60006080820190506141236000830187612e08565b6141306020830186612e08565b61413d6040830185612e9e565b818103606083015261414f81846140d5565b905095945050505050565b60008151905061416981612c29565b92915050565b60006020828403121561418557614184612bf3565b5b60006141938482850161415a565b91505092915050565b6000819050602082019050919050565b60006141b882516130ee565b80915050919050565b60006141cc826140b9565b826141d68461419c565b90506141e1816141ac565b925060208210156142215761421c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83602003600802613964565b831692505b5050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b600061425e601483612cc3565b915061426982614228565b602082019050919050565b6000602082019050818103600083015261428d81614251565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006142ca601083612cc3565b91506142d582614294565b602082019050919050565b600060208201905081810360008301526142f9816142bd565b9050919050565b61430981612f9b565b82525050565b600060808201905061432460008301876130f8565b6143316020830186614300565b61433e60408301856130f8565b61434b60608301846130f8565b95945050505050565b600060a08201905061436960008301886130f8565b61437660208301876130f8565b61438360408301866130f8565b6143906060830185612e9e565b61439d6080830184612e08565b969550505050505056fea2646970667358221220658eaf24065990c8606e9c26ce55cbc681aa1fcb919812460ae93f4c38fef4a664736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000560000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001043616c7661646f73436f71756572656c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434c564300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): CalvadosCoquerel
Arg [1] : _symbol (string): CLVC
Arg [2] : _maxSupply (uint256): 86
Arg [3] : _maxMintPerWallet (uint256): 4
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000056
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [5] : 43616c7661646f73436f71756572656c00000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 434c564300000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.