Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,000 AA
Holders
782
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 AALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AtamoAscension
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC721A} from "erc721a/contracts/ERC721A.sol"; import {OperatorFilterer} from "closedsea/src/OperatorFilterer.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; contract AtamoAscension is ERC721A, OperatorFilterer, VRFConsumerBaseV2, Ownable { VRFCoordinatorV2Interface COORDINATOR; enum MintState { Closed, Whitelist, Public } struct Prize { uint256 id; address winnerAddress; } uint256 public MAX_SUPPLY = 5555; uint256 public WL_TOKEN_PRICE = 0.02 ether; uint256 public PUBLIC_TOKEN_PRICE = 0.02 ether; uint256 public PUBLIC_MINT_LIMIT = 3; uint256 public WHITELIST_MINT_LIMIT = 3; uint256 public PRIZES_AMOUNT = 5; MintState public mintState; bytes32 public merkleRoot; string public baseURI; event requestConfirmationEvent(address sender, uint256 id); bytes32 keyHash; address vrfCoordinator; uint256 public s_requestId; uint64 public s_subscriptionId = 558; uint16 requestConfirmations = 3; uint32 callbackGasLimit = 2000000; uint32 numWords = 5; uint256[] public prizeIds; Prize[] public prizes; bool public operatorFilteringEnabled; constructor( string memory baseURI_, address recipient, uint256 allocation, address _vrfCoordinator, bytes32 _keyHash ) VRFConsumerBaseV2(_vrfCoordinator) ERC721A("AtamoAscension", "AA") { _registerForOperatorFiltering(); operatorFilteringEnabled = true; if (allocation < MAX_SUPPLY && allocation != 0) _safeMint(recipient, allocation); COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator); keyHash = _keyHash; baseURI = baseURI_; } // Overrides function _startTokenId() internal view virtual override returns (uint256) { return 1; } function repeatRegistration() public { _registerForOperatorFiltering(); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } // Modifiers modifier onlyExternallyOwnedAccount() { require(tx.origin == msg.sender, "Not externally owned account"); _; } modifier onlyValidProof(bytes32[] calldata proof) { bool valid = MerkleProof.verify(proof, merkleRoot, keccak256(abi.encodePacked(msg.sender))); require(valid, "Invalid proof"); _; } modifier onlyIfWinnersSelected() { require(prizes.length > 0, "Winners must be selected"); _; } // Token URI function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; } // Mint function setMerkleRoot(bytes32 _root) external onlyOwner { merkleRoot = _root; } function setMintState(uint256 newState) external onlyOwner { if (newState == 0) mintState = MintState.Closed; else if (newState == 1) mintState = MintState.Whitelist; else if (newState == 2) mintState = MintState.Public; else revert("Mint state does not exist"); } function tokensRemainingForAddress(address who) public view returns (uint256) { if (mintState == MintState.Whitelist) return WHITELIST_MINT_LIMIT - _numberMinted(who); else if (mintState == MintState.Public) return PUBLIC_MINT_LIMIT + _getAux(who) - _numberMinted(who); else revert("Mint state mismatch"); } function mintPublic(uint256 quantity) external payable onlyExternallyOwnedAccount { require(this.totalSupply() + quantity <= MAX_SUPPLY, "Mint exceeds max supply"); require(mintState == MintState.Public, "Mint state mismatch"); require(msg.value >= PUBLIC_TOKEN_PRICE * quantity, "Insufficient value"); require(tokensRemainingForAddress(msg.sender) >= quantity, "Mint limit for user reached"); _mint(msg.sender, quantity); } function mintWhitelist(bytes32[] calldata proof, uint256 quantity) external payable onlyExternallyOwnedAccount onlyValidProof(proof) { require(this.totalSupply() + quantity <= MAX_SUPPLY, "Mint exceeds max supply"); require(mintState == MintState.Whitelist, "Mint state mismatch"); require(msg.value >= WL_TOKEN_PRICE * quantity, "Insufficient value"); require(tokensRemainingForAddress(msg.sender) >= quantity, "Mint limit for user reached"); _mint(msg.sender, quantity); _setAux(msg.sender, _getAux(msg.sender) + uint64(quantity)); } function batchMint( address[] calldata recipients, uint256[] calldata quantities ) external onlyOwner { require(recipients.length == quantities.length, "Arguments length mismatch"); uint256 supply = this.totalSupply(); for (uint256 i; i < recipients.length; i++) { supply += quantities[i]; require(supply <= MAX_SUPPLY, "Batch mint exceeds max supply"); _mint(recipients[i], quantities[i]); } } // Edit Mint function setSupply(uint256 _newSupply) external onlyOwner { MAX_SUPPLY = _newSupply; } function setWLPrice(uint256 _newPrice) external onlyOwner { WL_TOKEN_PRICE = _newPrice; } function setPublicPrice(uint256 _newPrice) external onlyOwner { PUBLIC_TOKEN_PRICE = _newPrice; } function setPublicLimit(uint256 _newLimit) external onlyOwner { PUBLIC_MINT_LIMIT = _newLimit; } function setWLLimit(uint256 _newLimit) external onlyOwner { WHITELIST_MINT_LIMIT = _newLimit; } // VRF function addPrizes(uint256[] calldata ids) external onlyOwner { require(ids.length == PRIZES_AMOUNT, "Not enough prizes"); for (uint256 i = 0; i < ids.length; i++) { prizeIds.push(ids[i]); } } function selectRandomWinnersForPrizes() external onlyOwner { require(prizeIds.length == PRIZES_AMOUNT, "Not enough prizes"); requestRandom(); } function requestRandom() internal { s_requestId = COORDINATOR.requestRandomWords( keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, numWords ); emit requestConfirmationEvent(msg.sender, s_requestId); } function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override { for (uint256 i = 0; i < randomWords.length; i++) { uint256 prizeWinnerTokenId = (randomWords[i] % totalSupply()) + 1; address prizeWinnerAddress = ownerOf(prizeWinnerTokenId); prizes.push(Prize(prizeIds[i], prizeWinnerAddress)); } } function sendPrizesToWinner(address collectionAddress) external onlyIfWinnersSelected onlyOwner { require(prizes.length == PRIZES_AMOUNT, "Not enough winners"); for (uint256 i = 0; i < prizes.length; i++) { Prize memory prize = prizes[i]; IERC721 collection = IERC721(collectionAddress); uint256 id = prize.id; address winner = prize.winnerAddress; collection.safeTransferFrom(address(this), winner, id); } } // Withdraw function withdrawToRecipients() external onlyOwner { uint256 balancePercentage = address(this).balance / 100; address owner = 0xe41Fd011a57fC11d077C1f3b07ADE078CA1e3a13; address(owner ).call{value: balancePercentage * 100}(""); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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 pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) // prettier-ignore for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. pop(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x00)) // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; /* * @notice Check to see if there exists a request commitment consumers * for all consumers and keyhashes for a given sub. * @param subId - ID of the subscription * @return true if there exists at least one unfulfilled request for the subscription, false * otherwise. */ function pendingRequestExists(uint64 subId) external view returns (bool); }
// 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 // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "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
[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"requestConfirmationEvent","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIZES_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"addPrizes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"enum AtamoAscension.MintState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prizeIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prizes","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"winnerAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"repeatRegistration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"s_requestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_subscriptionId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"selectRandomWinnersForPrizes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collectionAddress","type":"address"}],"name":"sendPrizesToWinner","outputs":[],"stateMutability":"nonpayable","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":"bytes32","name":"_root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newState","type":"uint256"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setPublicLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setWLLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setWLPrice","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":[{"internalType":"address","name":"who","type":"address"}],"name":"tokensRemainingForAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawToRecipients","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526115b3600a5566470de4df820000600b5566470de4df820000600c556003600d556003600e556005600f5561022e601660006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506003601660086101000a81548161ffff021916908361ffff160217905550621e84806016600a6101000a81548163ffffffff021916908363ffffffff16021790555060056016600e6101000a81548163ffffffff021916908363ffffffff160217905550348015620000cb57600080fd5b5060405162005d7038038062005d708339818101604052810190620000f1919062000a89565b816040518060400160405280600e81526020017f4174616d6f417363656e73696f6e0000000000000000000000000000000000008152506040518060400160405280600281526020017f4141000000000000000000000000000000000000000000000000000000000000815250816002908051906020019062000176929190620008df565b5080600390805190602001906200018f929190620008df565b50620001a0620002c360201b60201c565b60008190555050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505062000200620001f4620002cc60201b60201c565b620002d460201b60201c565b620002106200039a60201b60201c565b6001601960006101000a81548160ff021916908315150217905550600a54831080156200023e575060008314155b156200025757620002568484620003c360201b60201c565b5b81600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806013819055508460129080519060200190620002b7929190620008df565b50505050505062000e43565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003c1733cc6cdda760b79bafa08df41ecfa224f810dceb66001620003e960201b60201c565b565b620003e58282604051806020016040528060008152506200044b60201b60201c565b5050565b637d3e3dbe8260601b60601c9250816200041857826200041057634420e486905062000418565b63a0af290390505b8060e01b600052306004528260245260008060446000806daaeb6d7670e522a718067333cd4e5af1506000602452505050565b6200045d8383620004fc60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620004f757600080549050600083820390505b620004a66000868380600101945086620006e560201b60201c565b620004dd576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106200048b578160005414620004f457600080fd5b50505b505050565b60008054905060008214156200053e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200055360008483856200085760201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620005e283620005c460008660006200085d60201b60201c565b620005d5856200088d60201b60201c565b176200089d60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200068557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000648565b506000821415620006c2576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620006e06000848385620008c860201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000713620008ce60201b60201c565b8786866040518563ffffffff1660e01b815260040162000737949392919062000b87565b602060405180830381600087803b1580156200075257600080fd5b505af19250505080156200078657506040513d601f19601f8201168201806040525081019062000783919062000a5d565b60015b62000804573d8060008114620007b9576040519150601f19603f3d011682016040523d82523d6000602084013e620007be565b606091505b50600081511415620007fc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e86200087c868684620008d660201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b828054620008ed9062000d00565b90600052602060002090601f0160209004810192826200091157600085556200095d565b82601f106200092c57805160ff19168380011785556200095d565b828001600101855582156200095d579182015b828111156200095c5782518255916020019190600101906200093f565b5b5090506200096c919062000970565b5090565b5b808211156200098b57600081600090555060010162000971565b5090565b6000620009a6620009a08462000c04565b62000bdb565b905082815260208101848484011115620009bf57600080fd5b620009cc84828562000cca565b509392505050565b600081519050620009e58162000ddb565b92915050565b600081519050620009fc8162000df5565b92915050565b60008151905062000a138162000e0f565b92915050565b600082601f83011262000a2b57600080fd5b815162000a3d8482602086016200098f565b91505092915050565b60008151905062000a578162000e29565b92915050565b60006020828403121562000a7057600080fd5b600062000a808482850162000a02565b91505092915050565b600080600080600060a0868803121562000aa257600080fd5b600086015167ffffffffffffffff81111562000abd57600080fd5b62000acb8882890162000a19565b955050602062000ade88828901620009d4565b945050604062000af18882890162000a46565b935050606062000b0488828901620009d4565b925050608062000b1788828901620009eb565b9150509295509295909350565b62000b2f8162000c56565b82525050565b600062000b428262000c3a565b62000b4e818562000c45565b935062000b6081856020860162000cca565b62000b6b8162000dca565b840191505092915050565b62000b818162000cc0565b82525050565b600060808201905062000b9e600083018762000b24565b62000bad602083018662000b24565b62000bbc604083018562000b76565b818103606083015262000bd0818462000b35565b905095945050505050565b600062000be762000bfa565b905062000bf5828262000d36565b919050565b6000604051905090565b600067ffffffffffffffff82111562000c225762000c2162000d9b565b5b62000c2d8262000dca565b9050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600062000c638262000ca0565b9050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000cea57808201518184015260208101905062000ccd565b8381111562000cfa576000848401525b50505050565b6000600282049050600182168062000d1957607f821691505b6020821081141562000d305762000d2f62000d6c565b5b50919050565b62000d418262000dca565b810181811067ffffffffffffffff8211171562000d635762000d6262000d9b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b62000de68162000c56565b811462000df257600080fd5b50565b62000e008162000c6a565b811462000e0c57600080fd5b50565b62000e1a8162000c74565b811462000e2657600080fd5b50565b62000e348162000cc0565b811462000e4057600080fd5b50565b60805160601c614f0762000e6960003960008181610f100152610f640152614f076000f3fe6080604052600436106102c95760003560e01c8063763f8d1211610175578063c051e38a116100dc578063efa9fc6511610095578063f4ee6f9c1161006f578063f4ee6f9c14610a65578063f6a5b8e614610a90578063fb796e6c14610ab9578063fe26f03c14610ae4576102c9565b8063efa9fc65146109f7578063efd0cbf914610a20578063f2fde38b14610a3c576102c9565b8063c051e38a146108c0578063c6275255146108eb578063c87b56dd14610914578063e89e106a14610951578063e985e9c51461097c578063eccb3a4f146109b9576102c9565b8063a22cb4651161012e578063a22cb465146107e2578063a6d612f91461080b578063b50fc1ef14610827578063b7c0b8e814610850578063b88d4fde14610879578063bceae77b14610895576102c9565b8063763f8d12146106e2578063790b2f001461070d5780637cb64759146107385780638ac00021146107615780638da5cb5b1461078c57806395d89b41146107b7576102c9565b806332cb6b0c116102345780635e1c0746116101ed578063695156e2116101c7578063695156e21461063a5780636c0360eb1461066357806370a082311461068e578063715018a6146106cb576102c9565b80635e1c0746146105bd5780636352211e146105d45780636857310714610611576102c9565b806332cb6b0c146104d0578063330e6815146104fb57806333e0902f146105385780633b4c4b251461054f57806342842e0e1461057857806355f804b314610594576102c9565b806318160ddd1161028657806318160ddd146103cf5780631fe543e3146103fa578063236376171461042357806323b872dd1461044c578063252c81d1146104685780632eb4a7ab146104a5576102c9565b806301ffc9a7146102ce57806306fdde031461030b578063081812fc14610336578063095ea7b3146103735780630bb862d11461038f57806316db9055146103b8575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190613dcd565b610b0f565b6040516103029190614389565b60405180910390f35b34801561031757600080fd5b50610320610ba1565b60405161032d919061442d565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613e60565b610c33565b60405161036a9190614299565b60405180910390f35b61038d60048036038101906103889190613c2d565b610cb2565b005b34801561039b57600080fd5b506103b660048036038101906103b19190613e60565b610ce7565b005b3480156103c457600080fd5b506103cd610e4c565b005b3480156103db57600080fd5b506103e4610ef7565b6040516103f1919061460f565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190613eb2565b610f0e565b005b34801561042f57600080fd5b5061044a60048036038101906104459190613e60565b610fce565b005b61046660048036038101906104619190613b27565b610fe0565b005b34801561047457600080fd5b5061048f600480360381019061048a9190613e60565b61104b565b60405161049c919061460f565b60405180910390f35b3480156104b157600080fd5b506104ba61106f565b6040516104c791906143a4565b60405180910390f35b3480156104dc57600080fd5b506104e5611075565b6040516104f2919061460f565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d9190613ac2565b61107b565b60405161052f919061460f565b60405180910390f35b34801561054457600080fd5b5061054d611223565b005b34801561055b57600080fd5b5061057660048036038101906105719190613e60565b61127e565b005b610592600480360381019061058d9190613b27565b611290565b005b3480156105a057600080fd5b506105bb60048036038101906105b69190613e1f565b6112fb565b005b3480156105c957600080fd5b506105d261131d565b005b3480156105e057600080fd5b506105fb60048036038101906105f69190613e60565b611327565b6040516106089190614299565b60405180910390f35b34801561061d57600080fd5b5061063860048036038101906106339190613c69565b611339565b005b34801561064657600080fd5b50610661600480360381019061065c9190613d36565b61155c565b005b34801561066f57600080fd5b50610678611639565b604051610685919061442d565b60405180910390f35b34801561069a57600080fd5b506106b560048036038101906106b09190613ac2565b6116c7565b6040516106c2919061460f565b60405180910390f35b3480156106d757600080fd5b506106e0611780565b005b3480156106ee57600080fd5b506106f7611794565b604051610704919061460f565b60405180910390f35b34801561071957600080fd5b5061072261179a565b60405161072f919061460f565b60405180910390f35b34801561074457600080fd5b5061075f600480360381019061075a9190613da4565b6117a0565b005b34801561076d57600080fd5b506107766117b2565b6040516107839190614653565b60405180910390f35b34801561079857600080fd5b506107a16117cc565b6040516107ae9190614299565b60405180910390f35b3480156107c357600080fd5b506107cc6117f6565b6040516107d9919061442d565b60405180910390f35b3480156107ee57600080fd5b5061080960048036038101906108049190613bf1565b611888565b005b61082560048036038101906108209190613cde565b6118bd565b005b34801561083357600080fd5b5061084e60048036038101906108499190613ac2565b611c3e565b005b34801561085c57600080fd5b5061087760048036038101906108729190613d7b565b611e3f565b005b610893600480360381019061088e9190613b76565b611e64565b005b3480156108a157600080fd5b506108aa611ed1565b6040516108b7919061460f565b60405180910390f35b3480156108cc57600080fd5b506108d5611ed7565b6040516108e29190614412565b60405180910390f35b3480156108f757600080fd5b50610912600480360381019061090d9190613e60565b611eea565b005b34801561092057600080fd5b5061093b60048036038101906109369190613e60565b611efc565b604051610948919061442d565b60405180910390f35b34801561095d57600080fd5b50610966611f9b565b604051610973919061460f565b60405180910390f35b34801561098857600080fd5b506109a3600480360381019061099e9190613aeb565b611fa1565b6040516109b09190614389565b60405180910390f35b3480156109c557600080fd5b506109e060048036038101906109db9190613e60565b612035565b6040516109ee92919061462a565b60405180910390f35b348015610a0357600080fd5b50610a1e6004803603810190610a199190613e60565b612089565b005b610a3a6004803603810190610a359190613e60565b61209b565b005b348015610a4857600080fd5b50610a636004803603810190610a5e9190613ac2565b61233f565b005b348015610a7157600080fd5b50610a7a6123c3565b604051610a87919061460f565b60405180910390f35b348015610a9c57600080fd5b50610ab76004803603810190610ab29190613e60565b6123c9565b005b348015610ac557600080fd5b50610ace6123db565b604051610adb9190614389565b60405180910390f35b348015610af057600080fd5b50610af96123ee565b604051610b06919061460f565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b6a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b9a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bb0906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdc906149d9565b8015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b5050505050905090565b6000610c3e826123f4565b610c74576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610cbc81612453565b610cd857610cc861245a565b15610cd757610cd681612471565b5b5b610ce283836124b5565b505050565b610cef6125f9565b6000811415610d4e576000601060006101000a81548160ff02191690836002811115610d44577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550610e49565b6001811415610dad576001601060006101000a81548160ff02191690836002811115610da3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550610e48565b6002811415610e0c576002601060006101000a81548160ff02191690836002811115610e02577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550610e47565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3e9061456f565b60405180910390fd5b5b5b50565b610e546125f9565b6000606447610e639190614803565b9050600073e41fd011a57fc11d077c1f3b07ade078ca1e3a1390508073ffffffffffffffffffffffffffffffffffffffff16606483610ea29190614834565b604051610eae90614284565b60006040518083038185875af1925050503d8060008114610eeb576040519150601f19603f3d011682016040523d82523d6000602084013e610ef0565b606091505b5050505050565b6000610f01612677565b6001546000540303905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fc057337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610fb79291906142b4565b60405180910390fd5b610fca8282612680565b5050565b610fd66125f9565b80600d8190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461103a5761101d33612453565b6110395761102961245a565b156110385761103733612471565b5b5b5b611045848484612803565b50505050565b6017818154811061105b57600080fd5b906000526020600020016000915090505481565b60115481565b600a5481565b6000600160028111156110b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660028111156110ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156111225761110e82612b28565b600e5461111b919061488e565b905061121e565b60028081111561115b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660028111156111a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156111e3576111b282612b28565b6111bb83612b7f565b67ffffffffffffffff16600d546111d2919061476f565b6111dc919061488e565b905061121e565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112159061450f565b60405180910390fd5b919050565b61122b6125f9565b600f5460178054905014611274576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126b906144ef565b60405180910390fd5b61127c612bcc565b565b6112866125f9565b80600a8190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112ea576112cd33612453565b6112e9576112d961245a565b156112e8576112e733612471565b5b5b5b6112f5848484612d10565b50505050565b6113036125f9565b8060129080519060200190611319929190613748565b5050565b611325612d30565b565b600061133282612d51565b9050919050565b6113416125f9565b818190508484905014611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906145cf565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114099190613e89565b905060005b8585905081101561155457838382818110611452577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013582611464919061476f565b9150600a548211156114ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a2906145af565b60405180910390fd5b6115418686838181106114e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906114fc9190613ac2565b858584818110611535577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612e1f565b808061154c90614a3c565b91505061140e565b505050505050565b6115646125f9565b600f5482829050146115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a2906144ef565b60405180910390fd5b60005b828290508110156116345760178383838181106115f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201359080600181540180825580915050600190039060005260206000200160009091909190915055808061162c90614a3c565b9150506115ae565b505050565b60128054611646906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611672906149d9565b80156116bf5780601f10611694576101008083540402835291602001916116bf565b820191906000526020600020905b8154815290600101906020018083116116a257829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561172f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6117886125f9565b6117926000612fdc565b565b600c5481565b600e5481565b6117a86125f9565b8060118190555050565b601660009054906101000a900467ffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611805906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611831906149d9565b801561187e5780601f106118535761010080835404028352916020019161187e565b820191906000526020600020905b81548152906001019060200180831161186157829003601f168201915b5050505050905090565b8161189281612453565b6118ae5761189e61245a565b156118ad576118ac81612471565b5b5b6118b883836130a2565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461192b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119229061448f565b60405180910390fd5b828260006119a3838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601154336040516020016119889190614245565b604051602081830303815290604052805190602001206131ad565b9050806119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc906145ef565b60405180910390fd5b600a54843073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a2f57600080fd5b505afa158015611a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a679190613e89565b611a71919061476f565b1115611ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa99061444f565b60405180910390fd5b60016002811115611aec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166002811115611b34577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611b74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6b9061450f565b60405180910390fd5b83600b54611b829190614834565b341015611bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbb9061458f565b60405180910390fd5b83611bce3361107b565b1015611c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c06906144cf565b60405180910390fd5b611c193385612e1f565b611c363385611c2733612b7f565b611c3191906147c5565b6131c4565b505050505050565b600060188054905011611c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7d9061454f565b60405180910390fd5b611c8e6125f9565b600f5460188054905014611cd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cce906144af565b60405180910390fd5b60005b601880549050811015611e3b57600060188281548110611d23577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060020201604051806040016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905060008390506000826000015190506000836020015190508273ffffffffffffffffffffffffffffffffffffffff166342842e0e3083856040518463ffffffff1660e01b8152600401611df2939291906142dd565b600060405180830381600087803b158015611e0c57600080fd5b505af1158015611e20573d6000803e3d6000fd5b50505050505050508080611e3390614a3c565b915050611cda565b5050565b611e476125f9565b80601960006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ebe57611ea133612453565b611ebd57611ead61245a565b15611ebc57611ebb33612471565b5b5b5b611eca8585858561327a565b5050505050565b600d5481565b601060009054906101000a900460ff1681565b611ef26125f9565b80600c8190555050565b6060611f07826123f4565b611f3d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f476132ed565b9050600081511415611f685760405180602001604052806000815250611f93565b80611f728461337f565b604051602001611f83929190614260565b6040516020818303038152906040525b915050919050565b60155481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6018818154811061204557600080fd5b90600052602060002090600202016000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b6120916125f9565b80600e8190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612109576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121009061448f565b60405180910390fd5b600a54813073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561215357600080fd5b505afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b9190613e89565b612195919061476f565b11156121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cd9061444f565b60405180910390fd5b60028081111561220f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166002811115612257577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e9061450f565b60405180910390fd5b80600c546122a59190614834565b3410156122e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122de9061458f565b60405180910390fd5b806122f13361107b565b1015612332576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612329906144cf565b60405180910390fd5b61233c3382612e1f565b50565b6123476125f9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ae9061446f565b60405180910390fd5b6123c081612fdc565b50565b600b5481565b6123d16125f9565b80600b8190555050565b601960009054906101000a900460ff1681565b600f5481565b6000816123ff612677565b1115801561240e575060005482105b801561244c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000919050565b6000601960009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6124ad573d6000803e3d6000fd5b6000603a5250565b60006124c082611327565b90508073ffffffffffffffffffffffffffffffffffffffff166124e16133d8565b73ffffffffffffffffffffffffffffffffffffffff16146125445761250d816125086133d8565b611fa1565b612543576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126016133e0565b73ffffffffffffffffffffffffffffffffffffffff1661261f6117cc565b73ffffffffffffffffffffffffffffffffffffffff1614612675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266c9061452f565b60405180910390fd5b565b60006001905090565b60005b81518110156127fe5760006001612698610ef7565b8484815181106126d1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516126e39190614aa9565b6126ed919061476f565b905060006126fa82611327565b90506018604051806040016040528060178681548110612743577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015481526020018373ffffffffffffffffffffffffffffffffffffffff1681525090806001815401808255809150506001900390600052602060002090600202016000909190919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505080806127f690614a3c565b915050612683565b505050565b600061280e82612d51565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612875576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612881846133e8565b9150915061289781876128926133d8565b61340f565b6128e3576128ac866128a76133d8565b611fa1565b6128e2576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561294a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129578686866001613453565b801561296257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612a3085612a0c888887613459565b7c020000000000000000000000000000000000000000000000000000000017613481565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415612ab8576000600185019050600060046000838152602001908152602001600020541415612ab6576000548114612ab5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b2086868660016134ac565b505050505050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601354601660009054906101000a900467ffffffffffffffff16601660089054906101000a900461ffff166016600a9054906101000a900463ffffffff166016600e9054906101000a900463ffffffff166040518663ffffffff1660e01b8152600401612c7b9594939291906143bf565b602060405180830381600087803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ccd9190613e89565b6015819055507f49572bc247b4731ebca15934a415268ac4aa4fa1ebbcb075dc4a564ee49d6b9333601554604051612d06929190614360565b60405180910390a1565b612d2b83838360405180602001604052806000815250611e64565b505050565b612d4f733cc6cdda760b79bafa08df41ecfa224f810dceb660016134b2565b565b60008082905080612d60612677565b11612de857600054811015612de75760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612de5575b6000811415612ddb576004600083600190039350838152602001908152602001600020549050612db0565b8092505050612e1a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000805490506000821415612e60576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e6d6000848385613453565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612ee483612ed56000866000613459565b612ede85613511565b17613481565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612f8557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612f4a565b506000821415612fc1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612fd760008483856134ac565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600760006130af6133d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661315c6133d8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131a19190614389565b60405180910390a35050565b6000826131ba8584613521565b1490509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b613285848484610fe0565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132e7576132b08484848461359d565b6132e6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060601280546132fc906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054613328906149d9565b80156133755780601f1061334a57610100808354040283529160200191613375565b820191906000526020600020905b81548152906001019060200180831161335857829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156133c357600184039350600a81066030018453600a81049050806133be576133c3565b613398565b50828103602084039350808452505050919050565b600033905090565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86134708686846136fd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b637d3e3dbe8260601b60601c9250816134de57826134d657634420e48690506134de565b63a0af290390505b8060e01b600052306004528260245260008060446000806daaeb6d7670e522a718067333cd4e5af1506000602452505050565b60006001821460e11b9050919050565b60008082905060005b84518110156135925761357d82868381518110613570577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151613706565b9150808061358a90614a3c565b91505061352a565b508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135c36133d8565b8786866040518563ffffffff1660e01b81526004016135e59493929190614314565b602060405180830381600087803b1580156135ff57600080fd5b505af192505050801561363057506040513d601f19601f8201168201806040525081019061362d9190613df6565b60015b6136aa573d8060008114613660576040519150601f19603f3d011682016040523d82523d6000602084013e613665565b606091505b506000815114156136a2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b600081831061371e576137198284613731565b613729565b6137288383613731565b5b905092915050565b600082600052816020526040600020905092915050565b828054613754906149d9565b90600052602060002090601f01602090048101928261377657600085556137bd565b82601f1061378f57805160ff19168380011785556137bd565b828001600101855582156137bd579182015b828111156137bc5782518255916020019190600101906137a1565b5b5090506137ca91906137ce565b5090565b5b808211156137e75760008160009055506001016137cf565b5090565b60006137fe6137f984614693565b61466e565b9050808382526020820190508285602086028201111561381d57600080fd5b60005b8581101561384d57816138338882613a98565b845260208401935060208301925050600181019050613820565b5050509392505050565b600061386a613865846146bf565b61466e565b90508281526020810184848401111561388257600080fd5b61388d848285614997565b509392505050565b60006138a86138a3846146f0565b61466e565b9050828152602081018484840111156138c057600080fd5b6138cb848285614997565b509392505050565b6000813590506138e281614e5e565b92915050565b60008083601f8401126138fa57600080fd5b8235905067ffffffffffffffff81111561391357600080fd5b60208301915083602082028301111561392b57600080fd5b9250929050565b60008083601f84011261394457600080fd5b8235905067ffffffffffffffff81111561395d57600080fd5b60208301915083602082028301111561397557600080fd5b9250929050565b60008083601f84011261398e57600080fd5b8235905067ffffffffffffffff8111156139a757600080fd5b6020830191508360208202830111156139bf57600080fd5b9250929050565b600082601f8301126139d757600080fd5b81356139e78482602086016137eb565b91505092915050565b6000813590506139ff81614e75565b92915050565b600081359050613a1481614e8c565b92915050565b600081359050613a2981614ea3565b92915050565b600081519050613a3e81614ea3565b92915050565b600082601f830112613a5557600080fd5b8135613a65848260208601613857565b91505092915050565b600082601f830112613a7f57600080fd5b8135613a8f848260208601613895565b91505092915050565b600081359050613aa781614eba565b92915050565b600081519050613abc81614eba565b92915050565b600060208284031215613ad457600080fd5b6000613ae2848285016138d3565b91505092915050565b60008060408385031215613afe57600080fd5b6000613b0c858286016138d3565b9250506020613b1d858286016138d3565b9150509250929050565b600080600060608486031215613b3c57600080fd5b6000613b4a868287016138d3565b9350506020613b5b868287016138d3565b9250506040613b6c86828701613a98565b9150509250925092565b60008060008060808587031215613b8c57600080fd5b6000613b9a878288016138d3565b9450506020613bab878288016138d3565b9350506040613bbc87828801613a98565b925050606085013567ffffffffffffffff811115613bd957600080fd5b613be587828801613a44565b91505092959194509250565b60008060408385031215613c0457600080fd5b6000613c12858286016138d3565b9250506020613c23858286016139f0565b9150509250929050565b60008060408385031215613c4057600080fd5b6000613c4e858286016138d3565b9250506020613c5f85828601613a98565b9150509250929050565b60008060008060408587031215613c7f57600080fd5b600085013567ffffffffffffffff811115613c9957600080fd5b613ca5878288016138e8565b9450945050602085013567ffffffffffffffff811115613cc457600080fd5b613cd08782880161397c565b925092505092959194509250565b600080600060408486031215613cf357600080fd5b600084013567ffffffffffffffff811115613d0d57600080fd5b613d1986828701613932565b93509350506020613d2c86828701613a98565b9150509250925092565b60008060208385031215613d4957600080fd5b600083013567ffffffffffffffff811115613d6357600080fd5b613d6f8582860161397c565b92509250509250929050565b600060208284031215613d8d57600080fd5b6000613d9b848285016139f0565b91505092915050565b600060208284031215613db657600080fd5b6000613dc484828501613a05565b91505092915050565b600060208284031215613ddf57600080fd5b6000613ded84828501613a1a565b91505092915050565b600060208284031215613e0857600080fd5b6000613e1684828501613a2f565b91505092915050565b600060208284031215613e3157600080fd5b600082013567ffffffffffffffff811115613e4b57600080fd5b613e5784828501613a6e565b91505092915050565b600060208284031215613e7257600080fd5b6000613e8084828501613a98565b91505092915050565b600060208284031215613e9b57600080fd5b6000613ea984828501613aad565b91505092915050565b60008060408385031215613ec557600080fd5b6000613ed385828601613a98565b925050602083013567ffffffffffffffff811115613ef057600080fd5b613efc858286016139c6565b9150509250929050565b613f0f816148c2565b82525050565b613f26613f21826148c2565b614a85565b82525050565b613f35816148d4565b82525050565b613f44816148e0565b82525050565b6000613f5582614721565b613f5f8185614737565b9350613f6f8185602086016149a6565b613f7881614bc5565b840191505092915050565b613f8c81614985565b82525050565b6000613f9d8261472c565b613fa78185614753565b9350613fb78185602086016149a6565b613fc081614bc5565b840191505092915050565b6000613fd68261472c565b613fe08185614764565b9350613ff08185602086016149a6565b80840191505092915050565b6000614009601783614753565b915061401482614be3565b602082019050919050565b600061402c602683614753565b915061403782614c0c565b604082019050919050565b600061404f601c83614753565b915061405a82614c5b565b602082019050919050565b6000614072601283614753565b915061407d82614c84565b602082019050919050565b6000614095601b83614753565b91506140a082614cad565b602082019050919050565b60006140b8601183614753565b91506140c382614cd6565b602082019050919050565b60006140db601383614753565b91506140e682614cff565b602082019050919050565b60006140fe602083614753565b915061410982614d28565b602082019050919050565b6000614121601883614753565b915061412c82614d51565b602082019050919050565b6000614144601983614753565b915061414f82614d7a565b602082019050919050565b6000614167601283614753565b915061417282614da3565b602082019050919050565b600061418a600083614748565b915061419582614dcc565b600082019050919050565b60006141ad601d83614753565b91506141b882614dcf565b602082019050919050565b60006141d0601983614753565b91506141db82614df8565b602082019050919050565b60006141f3600d83614753565b91506141fe82614e21565b602082019050919050565b61421281614929565b82525050565b61422181614957565b82525050565b61423081614961565b82525050565b61423f81614971565b82525050565b60006142518284613f15565b60148201915081905092915050565b600061426c8285613fcb565b91506142788284613fcb565b91508190509392505050565b600061428f8261417d565b9150819050919050565b60006020820190506142ae6000830184613f06565b92915050565b60006040820190506142c96000830185613f06565b6142d66020830184613f06565b9392505050565b60006060820190506142f26000830186613f06565b6142ff6020830185613f06565b61430c6040830184614218565b949350505050565b60006080820190506143296000830187613f06565b6143366020830186613f06565b6143436040830185614218565b81810360608301526143558184613f4a565b905095945050505050565b60006040820190506143756000830185613f06565b6143826020830184614218565b9392505050565b600060208201905061439e6000830184613f2c565b92915050565b60006020820190506143b96000830184613f3b565b92915050565b600060a0820190506143d46000830188613f3b565b6143e16020830187614236565b6143ee6040830186614209565b6143fb6060830185614227565b6144086080830184614227565b9695505050505050565b60006020820190506144276000830184613f83565b92915050565b600060208201905081810360008301526144478184613f92565b905092915050565b6000602082019050818103600083015261446881613ffc565b9050919050565b600060208201905081810360008301526144888161401f565b9050919050565b600060208201905081810360008301526144a881614042565b9050919050565b600060208201905081810360008301526144c881614065565b9050919050565b600060208201905081810360008301526144e881614088565b9050919050565b60006020820190508181036000830152614508816140ab565b9050919050565b60006020820190508181036000830152614528816140ce565b9050919050565b60006020820190508181036000830152614548816140f1565b9050919050565b6000602082019050818103600083015261456881614114565b9050919050565b6000602082019050818103600083015261458881614137565b9050919050565b600060208201905081810360008301526145a88161415a565b9050919050565b600060208201905081810360008301526145c8816141a0565b9050919050565b600060208201905081810360008301526145e8816141c3565b9050919050565b60006020820190508181036000830152614608816141e6565b9050919050565b60006020820190506146246000830184614218565b92915050565b600060408201905061463f6000830185614218565b61464c6020830184613f06565b9392505050565b60006020820190506146686000830184614236565b92915050565b6000614678614689565b90506146848282614a0b565b919050565b6000604051905090565b600067ffffffffffffffff8211156146ae576146ad614b96565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156146da576146d9614b96565b5b6146e382614bc5565b9050602081019050919050565b600067ffffffffffffffff82111561470b5761470a614b96565b5b61471482614bc5565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061477a82614957565b915061478583614957565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147ba576147b9614ada565b5b828201905092915050565b60006147d082614971565b91506147db83614971565b92508267ffffffffffffffff038211156147f8576147f7614ada565b5b828201905092915050565b600061480e82614957565b915061481983614957565b92508261482957614828614b09565b5b828204905092915050565b600061483f82614957565b915061484a83614957565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561488357614882614ada565b5b828202905092915050565b600061489982614957565b91506148a483614957565b9250828210156148b7576148b6614ada565b5b828203905092915050565b60006148cd82614937565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061492482614e4a565b919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600061499082614916565b9050919050565b82818337600083830152505050565b60005b838110156149c45780820151818401526020810190506149a9565b838111156149d3576000848401525b50505050565b600060028204905060018216806149f157607f821691505b60208210811415614a0557614a04614b67565b5b50919050565b614a1482614bc5565b810181811067ffffffffffffffff82111715614a3357614a32614b96565b5b80604052505050565b6000614a4782614957565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a7a57614a79614ada565b5b600182019050919050565b6000614a9082614a97565b9050919050565b6000614aa282614bd6565b9050919050565b6000614ab482614957565b9150614abf83614957565b925082614acf57614ace614b09565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d696e742065786365656473206d617820737570706c79000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f742065787465726e616c6c79206f776e6564206163636f756e7400000000600082015250565b7f4e6f7420656e6f7567682077696e6e6572730000000000000000000000000000600082015250565b7f4d696e74206c696d697420666f72207573657220726561636865640000000000600082015250565b7f4e6f7420656e6f756768207072697a6573000000000000000000000000000000600082015250565b7f4d696e74207374617465206d69736d6174636800000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f57696e6e657273206d7573742062652073656c65637465640000000000000000600082015250565b7f4d696e7420737461746520646f6573206e6f7420657869737400000000000000600082015250565b7f496e73756666696369656e742076616c75650000000000000000000000000000600082015250565b50565b7f4261746368206d696e742065786365656473206d617820737570706c79000000600082015250565b7f417267756d656e7473206c656e677468206d69736d6174636800000000000000600082015250565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60038110614e5b57614e5a614b38565b5b50565b614e67816148c2565b8114614e7257600080fd5b50565b614e7e816148d4565b8114614e8957600080fd5b50565b614e95816148e0565b8114614ea057600080fd5b50565b614eac816148ea565b8114614eb757600080fd5b50565b614ec381614957565b8114614ece57600080fd5b5056fea264697066735822122025d530d0ea7173abc4ec0c1fe82a72a2e83e94b6d6419ae61bc8902971872be564736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004a3c42a6cfcfb9a6d9f890b2c4f8fc0a75892ffd0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f697066732e696f2f697066732f62616679626569646f366373796837336866786a6b6e797472706e6c666d637071367771626537796c72753578676e69796a647a796d6e7762356d2f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c8063763f8d1211610175578063c051e38a116100dc578063efa9fc6511610095578063f4ee6f9c1161006f578063f4ee6f9c14610a65578063f6a5b8e614610a90578063fb796e6c14610ab9578063fe26f03c14610ae4576102c9565b8063efa9fc65146109f7578063efd0cbf914610a20578063f2fde38b14610a3c576102c9565b8063c051e38a146108c0578063c6275255146108eb578063c87b56dd14610914578063e89e106a14610951578063e985e9c51461097c578063eccb3a4f146109b9576102c9565b8063a22cb4651161012e578063a22cb465146107e2578063a6d612f91461080b578063b50fc1ef14610827578063b7c0b8e814610850578063b88d4fde14610879578063bceae77b14610895576102c9565b8063763f8d12146106e2578063790b2f001461070d5780637cb64759146107385780638ac00021146107615780638da5cb5b1461078c57806395d89b41146107b7576102c9565b806332cb6b0c116102345780635e1c0746116101ed578063695156e2116101c7578063695156e21461063a5780636c0360eb1461066357806370a082311461068e578063715018a6146106cb576102c9565b80635e1c0746146105bd5780636352211e146105d45780636857310714610611576102c9565b806332cb6b0c146104d0578063330e6815146104fb57806333e0902f146105385780633b4c4b251461054f57806342842e0e1461057857806355f804b314610594576102c9565b806318160ddd1161028657806318160ddd146103cf5780631fe543e3146103fa578063236376171461042357806323b872dd1461044c578063252c81d1146104685780632eb4a7ab146104a5576102c9565b806301ffc9a7146102ce57806306fdde031461030b578063081812fc14610336578063095ea7b3146103735780630bb862d11461038f57806316db9055146103b8575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190613dcd565b610b0f565b6040516103029190614389565b60405180910390f35b34801561031757600080fd5b50610320610ba1565b60405161032d919061442d565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613e60565b610c33565b60405161036a9190614299565b60405180910390f35b61038d60048036038101906103889190613c2d565b610cb2565b005b34801561039b57600080fd5b506103b660048036038101906103b19190613e60565b610ce7565b005b3480156103c457600080fd5b506103cd610e4c565b005b3480156103db57600080fd5b506103e4610ef7565b6040516103f1919061460f565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190613eb2565b610f0e565b005b34801561042f57600080fd5b5061044a60048036038101906104459190613e60565b610fce565b005b61046660048036038101906104619190613b27565b610fe0565b005b34801561047457600080fd5b5061048f600480360381019061048a9190613e60565b61104b565b60405161049c919061460f565b60405180910390f35b3480156104b157600080fd5b506104ba61106f565b6040516104c791906143a4565b60405180910390f35b3480156104dc57600080fd5b506104e5611075565b6040516104f2919061460f565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d9190613ac2565b61107b565b60405161052f919061460f565b60405180910390f35b34801561054457600080fd5b5061054d611223565b005b34801561055b57600080fd5b5061057660048036038101906105719190613e60565b61127e565b005b610592600480360381019061058d9190613b27565b611290565b005b3480156105a057600080fd5b506105bb60048036038101906105b69190613e1f565b6112fb565b005b3480156105c957600080fd5b506105d261131d565b005b3480156105e057600080fd5b506105fb60048036038101906105f69190613e60565b611327565b6040516106089190614299565b60405180910390f35b34801561061d57600080fd5b5061063860048036038101906106339190613c69565b611339565b005b34801561064657600080fd5b50610661600480360381019061065c9190613d36565b61155c565b005b34801561066f57600080fd5b50610678611639565b604051610685919061442d565b60405180910390f35b34801561069a57600080fd5b506106b560048036038101906106b09190613ac2565b6116c7565b6040516106c2919061460f565b60405180910390f35b3480156106d757600080fd5b506106e0611780565b005b3480156106ee57600080fd5b506106f7611794565b604051610704919061460f565b60405180910390f35b34801561071957600080fd5b5061072261179a565b60405161072f919061460f565b60405180910390f35b34801561074457600080fd5b5061075f600480360381019061075a9190613da4565b6117a0565b005b34801561076d57600080fd5b506107766117b2565b6040516107839190614653565b60405180910390f35b34801561079857600080fd5b506107a16117cc565b6040516107ae9190614299565b60405180910390f35b3480156107c357600080fd5b506107cc6117f6565b6040516107d9919061442d565b60405180910390f35b3480156107ee57600080fd5b5061080960048036038101906108049190613bf1565b611888565b005b61082560048036038101906108209190613cde565b6118bd565b005b34801561083357600080fd5b5061084e60048036038101906108499190613ac2565b611c3e565b005b34801561085c57600080fd5b5061087760048036038101906108729190613d7b565b611e3f565b005b610893600480360381019061088e9190613b76565b611e64565b005b3480156108a157600080fd5b506108aa611ed1565b6040516108b7919061460f565b60405180910390f35b3480156108cc57600080fd5b506108d5611ed7565b6040516108e29190614412565b60405180910390f35b3480156108f757600080fd5b50610912600480360381019061090d9190613e60565b611eea565b005b34801561092057600080fd5b5061093b60048036038101906109369190613e60565b611efc565b604051610948919061442d565b60405180910390f35b34801561095d57600080fd5b50610966611f9b565b604051610973919061460f565b60405180910390f35b34801561098857600080fd5b506109a3600480360381019061099e9190613aeb565b611fa1565b6040516109b09190614389565b60405180910390f35b3480156109c557600080fd5b506109e060048036038101906109db9190613e60565b612035565b6040516109ee92919061462a565b60405180910390f35b348015610a0357600080fd5b50610a1e6004803603810190610a199190613e60565b612089565b005b610a3a6004803603810190610a359190613e60565b61209b565b005b348015610a4857600080fd5b50610a636004803603810190610a5e9190613ac2565b61233f565b005b348015610a7157600080fd5b50610a7a6123c3565b604051610a87919061460f565b60405180910390f35b348015610a9c57600080fd5b50610ab76004803603810190610ab29190613e60565b6123c9565b005b348015610ac557600080fd5b50610ace6123db565b604051610adb9190614389565b60405180910390f35b348015610af057600080fd5b50610af96123ee565b604051610b06919061460f565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b6a57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b9a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610bb0906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdc906149d9565b8015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b5050505050905090565b6000610c3e826123f4565b610c74576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610cbc81612453565b610cd857610cc861245a565b15610cd757610cd681612471565b5b5b610ce283836124b5565b505050565b610cef6125f9565b6000811415610d4e576000601060006101000a81548160ff02191690836002811115610d44577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550610e49565b6001811415610dad576001601060006101000a81548160ff02191690836002811115610da3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550610e48565b6002811415610e0c576002601060006101000a81548160ff02191690836002811115610e02577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550610e47565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3e9061456f565b60405180910390fd5b5b5b50565b610e546125f9565b6000606447610e639190614803565b9050600073e41fd011a57fc11d077c1f3b07ade078ca1e3a1390508073ffffffffffffffffffffffffffffffffffffffff16606483610ea29190614834565b604051610eae90614284565b60006040518083038185875af1925050503d8060008114610eeb576040519150601f19603f3d011682016040523d82523d6000602084013e610ef0565b606091505b5050505050565b6000610f01612677565b6001546000540303905090565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fc057337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610fb79291906142b4565b60405180910390fd5b610fca8282612680565b5050565b610fd66125f9565b80600d8190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461103a5761101d33612453565b6110395761102961245a565b156110385761103733612471565b5b5b5b611045848484612803565b50505050565b6017818154811061105b57600080fd5b906000526020600020016000915090505481565b60115481565b600a5481565b6000600160028111156110b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660028111156110ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156111225761110e82612b28565b600e5461111b919061488e565b905061121e565b60028081111561115b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff1660028111156111a3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156111e3576111b282612b28565b6111bb83612b7f565b67ffffffffffffffff16600d546111d2919061476f565b6111dc919061488e565b905061121e565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112159061450f565b60405180910390fd5b919050565b61122b6125f9565b600f5460178054905014611274576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126b906144ef565b60405180910390fd5b61127c612bcc565b565b6112866125f9565b80600a8190555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112ea576112cd33612453565b6112e9576112d961245a565b156112e8576112e733612471565b5b5b5b6112f5848484612d10565b50505050565b6113036125f9565b8060129080519060200190611319929190613748565b5050565b611325612d30565b565b600061133282612d51565b9050919050565b6113416125f9565b818190508484905014611389576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611380906145cf565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114099190613e89565b905060005b8585905081101561155457838382818110611452577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013582611464919061476f565b9150600a548211156114ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a2906145af565b60405180910390fd5b6115418686838181106114e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906114fc9190613ac2565b858584818110611535577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612e1f565b808061154c90614a3c565b91505061140e565b505050505050565b6115646125f9565b600f5482829050146115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a2906144ef565b60405180910390fd5b60005b828290508110156116345760178383838181106115f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201359080600181540180825580915050600190039060005260206000200160009091909190915055808061162c90614a3c565b9150506115ae565b505050565b60128054611646906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611672906149d9565b80156116bf5780601f10611694576101008083540402835291602001916116bf565b820191906000526020600020905b8154815290600101906020018083116116a257829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561172f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6117886125f9565b6117926000612fdc565b565b600c5481565b600e5481565b6117a86125f9565b8060118190555050565b601660009054906101000a900467ffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611805906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054611831906149d9565b801561187e5780601f106118535761010080835404028352916020019161187e565b820191906000526020600020905b81548152906001019060200180831161186157829003601f168201915b5050505050905090565b8161189281612453565b6118ae5761189e61245a565b156118ad576118ac81612471565b5b5b6118b883836130a2565b505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461192b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119229061448f565b60405180910390fd5b828260006119a3838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601154336040516020016119889190614245565b604051602081830303815290604052805190602001206131ad565b9050806119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc906145ef565b60405180910390fd5b600a54843073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a2f57600080fd5b505afa158015611a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a679190613e89565b611a71919061476f565b1115611ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa99061444f565b60405180910390fd5b60016002811115611aec577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166002811115611b34577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611b74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6b9061450f565b60405180910390fd5b83600b54611b829190614834565b341015611bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbb9061458f565b60405180910390fd5b83611bce3361107b565b1015611c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c06906144cf565b60405180910390fd5b611c193385612e1f565b611c363385611c2733612b7f565b611c3191906147c5565b6131c4565b505050505050565b600060188054905011611c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7d9061454f565b60405180910390fd5b611c8e6125f9565b600f5460188054905014611cd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cce906144af565b60405180910390fd5b60005b601880549050811015611e3b57600060188281548110611d23577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060020201604051806040016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905060008390506000826000015190506000836020015190508273ffffffffffffffffffffffffffffffffffffffff166342842e0e3083856040518463ffffffff1660e01b8152600401611df2939291906142dd565b600060405180830381600087803b158015611e0c57600080fd5b505af1158015611e20573d6000803e3d6000fd5b50505050505050508080611e3390614a3c565b915050611cda565b5050565b611e476125f9565b80601960006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ebe57611ea133612453565b611ebd57611ead61245a565b15611ebc57611ebb33612471565b5b5b5b611eca8585858561327a565b5050505050565b600d5481565b601060009054906101000a900460ff1681565b611ef26125f9565b80600c8190555050565b6060611f07826123f4565b611f3d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611f476132ed565b9050600081511415611f685760405180602001604052806000815250611f93565b80611f728461337f565b604051602001611f83929190614260565b6040516020818303038152906040525b915050919050565b60155481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6018818154811061204557600080fd5b90600052602060002090600202016000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b6120916125f9565b80600e8190555050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612109576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121009061448f565b60405180910390fd5b600a54813073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561215357600080fd5b505afa158015612167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218b9190613e89565b612195919061476f565b11156121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121cd9061444f565b60405180910390fd5b60028081111561220f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601060009054906101000a900460ff166002811115612257577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e9061450f565b60405180910390fd5b80600c546122a59190614834565b3410156122e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122de9061458f565b60405180910390fd5b806122f13361107b565b1015612332576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612329906144cf565b60405180910390fd5b61233c3382612e1f565b50565b6123476125f9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ae9061446f565b60405180910390fd5b6123c081612fdc565b50565b600b5481565b6123d16125f9565b80600b8190555050565b601960009054906101000a900460ff1681565b600f5481565b6000816123ff612677565b1115801561240e575060005482105b801561244c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000919050565b6000601960009054906101000a900460ff16905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6124ad573d6000803e3d6000fd5b6000603a5250565b60006124c082611327565b90508073ffffffffffffffffffffffffffffffffffffffff166124e16133d8565b73ffffffffffffffffffffffffffffffffffffffff16146125445761250d816125086133d8565b611fa1565b612543576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126016133e0565b73ffffffffffffffffffffffffffffffffffffffff1661261f6117cc565b73ffffffffffffffffffffffffffffffffffffffff1614612675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266c9061452f565b60405180910390fd5b565b60006001905090565b60005b81518110156127fe5760006001612698610ef7565b8484815181106126d1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516126e39190614aa9565b6126ed919061476f565b905060006126fa82611327565b90506018604051806040016040528060178681548110612743577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015481526020018373ffffffffffffffffffffffffffffffffffffffff1681525090806001815401808255809150506001900390600052602060002090600202016000909190919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505080806127f690614a3c565b915050612683565b505050565b600061280e82612d51565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612875576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612881846133e8565b9150915061289781876128926133d8565b61340f565b6128e3576128ac866128a76133d8565b611fa1565b6128e2576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561294a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129578686866001613453565b801561296257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612a3085612a0c888887613459565b7c020000000000000000000000000000000000000000000000000000000017613481565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415612ab8576000600185019050600060046000838152602001908152602001600020541415612ab6576000548114612ab5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b2086868660016134ac565b505050505050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601354601660009054906101000a900467ffffffffffffffff16601660089054906101000a900461ffff166016600a9054906101000a900463ffffffff166016600e9054906101000a900463ffffffff166040518663ffffffff1660e01b8152600401612c7b9594939291906143bf565b602060405180830381600087803b158015612c9557600080fd5b505af1158015612ca9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ccd9190613e89565b6015819055507f49572bc247b4731ebca15934a415268ac4aa4fa1ebbcb075dc4a564ee49d6b9333601554604051612d06929190614360565b60405180910390a1565b612d2b83838360405180602001604052806000815250611e64565b505050565b612d4f733cc6cdda760b79bafa08df41ecfa224f810dceb660016134b2565b565b60008082905080612d60612677565b11612de857600054811015612de75760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612de5575b6000811415612ddb576004600083600190039350838152602001908152602001600020549050612db0565b8092505050612e1a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000805490506000821415612e60576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e6d6000848385613453565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612ee483612ed56000866000613459565b612ede85613511565b17613481565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612f8557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612f4a565b506000821415612fc1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612fd760008483856134ac565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600760006130af6133d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661315c6133d8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131a19190614389565b60405180910390a35050565b6000826131ba8584613521565b1490509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b613285848484610fe0565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132e7576132b08484848461359d565b6132e6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060601280546132fc906149d9565b80601f0160208091040260200160405190810160405280929190818152602001828054613328906149d9565b80156133755780601f1061334a57610100808354040283529160200191613375565b820191906000526020600020905b81548152906001019060200180831161335857829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156133c357600184039350600a81066030018453600a81049050806133be576133c3565b613398565b50828103602084039350808452505050919050565b600033905090565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86134708686846136fd565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b637d3e3dbe8260601b60601c9250816134de57826134d657634420e48690506134de565b63a0af290390505b8060e01b600052306004528260245260008060446000806daaeb6d7670e522a718067333cd4e5af1506000602452505050565b60006001821460e11b9050919050565b60008082905060005b84518110156135925761357d82868381518110613570577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151613706565b9150808061358a90614a3c565b91505061352a565b508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135c36133d8565b8786866040518563ffffffff1660e01b81526004016135e59493929190614314565b602060405180830381600087803b1580156135ff57600080fd5b505af192505050801561363057506040513d601f19601f8201168201806040525081019061362d9190613df6565b60015b6136aa573d8060008114613660576040519150601f19603f3d011682016040523d82523d6000602084013e613665565b606091505b506000815114156136a2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60009392505050565b600081831061371e576137198284613731565b613729565b6137288383613731565b5b905092915050565b600082600052816020526040600020905092915050565b828054613754906149d9565b90600052602060002090601f01602090048101928261377657600085556137bd565b82601f1061378f57805160ff19168380011785556137bd565b828001600101855582156137bd579182015b828111156137bc5782518255916020019190600101906137a1565b5b5090506137ca91906137ce565b5090565b5b808211156137e75760008160009055506001016137cf565b5090565b60006137fe6137f984614693565b61466e565b9050808382526020820190508285602086028201111561381d57600080fd5b60005b8581101561384d57816138338882613a98565b845260208401935060208301925050600181019050613820565b5050509392505050565b600061386a613865846146bf565b61466e565b90508281526020810184848401111561388257600080fd5b61388d848285614997565b509392505050565b60006138a86138a3846146f0565b61466e565b9050828152602081018484840111156138c057600080fd5b6138cb848285614997565b509392505050565b6000813590506138e281614e5e565b92915050565b60008083601f8401126138fa57600080fd5b8235905067ffffffffffffffff81111561391357600080fd5b60208301915083602082028301111561392b57600080fd5b9250929050565b60008083601f84011261394457600080fd5b8235905067ffffffffffffffff81111561395d57600080fd5b60208301915083602082028301111561397557600080fd5b9250929050565b60008083601f84011261398e57600080fd5b8235905067ffffffffffffffff8111156139a757600080fd5b6020830191508360208202830111156139bf57600080fd5b9250929050565b600082601f8301126139d757600080fd5b81356139e78482602086016137eb565b91505092915050565b6000813590506139ff81614e75565b92915050565b600081359050613a1481614e8c565b92915050565b600081359050613a2981614ea3565b92915050565b600081519050613a3e81614ea3565b92915050565b600082601f830112613a5557600080fd5b8135613a65848260208601613857565b91505092915050565b600082601f830112613a7f57600080fd5b8135613a8f848260208601613895565b91505092915050565b600081359050613aa781614eba565b92915050565b600081519050613abc81614eba565b92915050565b600060208284031215613ad457600080fd5b6000613ae2848285016138d3565b91505092915050565b60008060408385031215613afe57600080fd5b6000613b0c858286016138d3565b9250506020613b1d858286016138d3565b9150509250929050565b600080600060608486031215613b3c57600080fd5b6000613b4a868287016138d3565b9350506020613b5b868287016138d3565b9250506040613b6c86828701613a98565b9150509250925092565b60008060008060808587031215613b8c57600080fd5b6000613b9a878288016138d3565b9450506020613bab878288016138d3565b9350506040613bbc87828801613a98565b925050606085013567ffffffffffffffff811115613bd957600080fd5b613be587828801613a44565b91505092959194509250565b60008060408385031215613c0457600080fd5b6000613c12858286016138d3565b9250506020613c23858286016139f0565b9150509250929050565b60008060408385031215613c4057600080fd5b6000613c4e858286016138d3565b9250506020613c5f85828601613a98565b9150509250929050565b60008060008060408587031215613c7f57600080fd5b600085013567ffffffffffffffff811115613c9957600080fd5b613ca5878288016138e8565b9450945050602085013567ffffffffffffffff811115613cc457600080fd5b613cd08782880161397c565b925092505092959194509250565b600080600060408486031215613cf357600080fd5b600084013567ffffffffffffffff811115613d0d57600080fd5b613d1986828701613932565b93509350506020613d2c86828701613a98565b9150509250925092565b60008060208385031215613d4957600080fd5b600083013567ffffffffffffffff811115613d6357600080fd5b613d6f8582860161397c565b92509250509250929050565b600060208284031215613d8d57600080fd5b6000613d9b848285016139f0565b91505092915050565b600060208284031215613db657600080fd5b6000613dc484828501613a05565b91505092915050565b600060208284031215613ddf57600080fd5b6000613ded84828501613a1a565b91505092915050565b600060208284031215613e0857600080fd5b6000613e1684828501613a2f565b91505092915050565b600060208284031215613e3157600080fd5b600082013567ffffffffffffffff811115613e4b57600080fd5b613e5784828501613a6e565b91505092915050565b600060208284031215613e7257600080fd5b6000613e8084828501613a98565b91505092915050565b600060208284031215613e9b57600080fd5b6000613ea984828501613aad565b91505092915050565b60008060408385031215613ec557600080fd5b6000613ed385828601613a98565b925050602083013567ffffffffffffffff811115613ef057600080fd5b613efc858286016139c6565b9150509250929050565b613f0f816148c2565b82525050565b613f26613f21826148c2565b614a85565b82525050565b613f35816148d4565b82525050565b613f44816148e0565b82525050565b6000613f5582614721565b613f5f8185614737565b9350613f6f8185602086016149a6565b613f7881614bc5565b840191505092915050565b613f8c81614985565b82525050565b6000613f9d8261472c565b613fa78185614753565b9350613fb78185602086016149a6565b613fc081614bc5565b840191505092915050565b6000613fd68261472c565b613fe08185614764565b9350613ff08185602086016149a6565b80840191505092915050565b6000614009601783614753565b915061401482614be3565b602082019050919050565b600061402c602683614753565b915061403782614c0c565b604082019050919050565b600061404f601c83614753565b915061405a82614c5b565b602082019050919050565b6000614072601283614753565b915061407d82614c84565b602082019050919050565b6000614095601b83614753565b91506140a082614cad565b602082019050919050565b60006140b8601183614753565b91506140c382614cd6565b602082019050919050565b60006140db601383614753565b91506140e682614cff565b602082019050919050565b60006140fe602083614753565b915061410982614d28565b602082019050919050565b6000614121601883614753565b915061412c82614d51565b602082019050919050565b6000614144601983614753565b915061414f82614d7a565b602082019050919050565b6000614167601283614753565b915061417282614da3565b602082019050919050565b600061418a600083614748565b915061419582614dcc565b600082019050919050565b60006141ad601d83614753565b91506141b882614dcf565b602082019050919050565b60006141d0601983614753565b91506141db82614df8565b602082019050919050565b60006141f3600d83614753565b91506141fe82614e21565b602082019050919050565b61421281614929565b82525050565b61422181614957565b82525050565b61423081614961565b82525050565b61423f81614971565b82525050565b60006142518284613f15565b60148201915081905092915050565b600061426c8285613fcb565b91506142788284613fcb565b91508190509392505050565b600061428f8261417d565b9150819050919050565b60006020820190506142ae6000830184613f06565b92915050565b60006040820190506142c96000830185613f06565b6142d66020830184613f06565b9392505050565b60006060820190506142f26000830186613f06565b6142ff6020830185613f06565b61430c6040830184614218565b949350505050565b60006080820190506143296000830187613f06565b6143366020830186613f06565b6143436040830185614218565b81810360608301526143558184613f4a565b905095945050505050565b60006040820190506143756000830185613f06565b6143826020830184614218565b9392505050565b600060208201905061439e6000830184613f2c565b92915050565b60006020820190506143b96000830184613f3b565b92915050565b600060a0820190506143d46000830188613f3b565b6143e16020830187614236565b6143ee6040830186614209565b6143fb6060830185614227565b6144086080830184614227565b9695505050505050565b60006020820190506144276000830184613f83565b92915050565b600060208201905081810360008301526144478184613f92565b905092915050565b6000602082019050818103600083015261446881613ffc565b9050919050565b600060208201905081810360008301526144888161401f565b9050919050565b600060208201905081810360008301526144a881614042565b9050919050565b600060208201905081810360008301526144c881614065565b9050919050565b600060208201905081810360008301526144e881614088565b9050919050565b60006020820190508181036000830152614508816140ab565b9050919050565b60006020820190508181036000830152614528816140ce565b9050919050565b60006020820190508181036000830152614548816140f1565b9050919050565b6000602082019050818103600083015261456881614114565b9050919050565b6000602082019050818103600083015261458881614137565b9050919050565b600060208201905081810360008301526145a88161415a565b9050919050565b600060208201905081810360008301526145c8816141a0565b9050919050565b600060208201905081810360008301526145e8816141c3565b9050919050565b60006020820190508181036000830152614608816141e6565b9050919050565b60006020820190506146246000830184614218565b92915050565b600060408201905061463f6000830185614218565b61464c6020830184613f06565b9392505050565b60006020820190506146686000830184614236565b92915050565b6000614678614689565b90506146848282614a0b565b919050565b6000604051905090565b600067ffffffffffffffff8211156146ae576146ad614b96565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156146da576146d9614b96565b5b6146e382614bc5565b9050602081019050919050565b600067ffffffffffffffff82111561470b5761470a614b96565b5b61471482614bc5565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061477a82614957565b915061478583614957565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147ba576147b9614ada565b5b828201905092915050565b60006147d082614971565b91506147db83614971565b92508267ffffffffffffffff038211156147f8576147f7614ada565b5b828201905092915050565b600061480e82614957565b915061481983614957565b92508261482957614828614b09565b5b828204905092915050565b600061483f82614957565b915061484a83614957565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561488357614882614ada565b5b828202905092915050565b600061489982614957565b91506148a483614957565b9250828210156148b7576148b6614ada565b5b828203905092915050565b60006148cd82614937565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061492482614e4a565b919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600061499082614916565b9050919050565b82818337600083830152505050565b60005b838110156149c45780820151818401526020810190506149a9565b838111156149d3576000848401525b50505050565b600060028204905060018216806149f157607f821691505b60208210811415614a0557614a04614b67565b5b50919050565b614a1482614bc5565b810181811067ffffffffffffffff82111715614a3357614a32614b96565b5b80604052505050565b6000614a4782614957565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a7a57614a79614ada565b5b600182019050919050565b6000614a9082614a97565b9050919050565b6000614aa282614bd6565b9050919050565b6000614ab482614957565b9150614abf83614957565b925082614acf57614ace614b09565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4d696e742065786365656473206d617820737570706c79000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e6f742065787465726e616c6c79206f776e6564206163636f756e7400000000600082015250565b7f4e6f7420656e6f7567682077696e6e6572730000000000000000000000000000600082015250565b7f4d696e74206c696d697420666f72207573657220726561636865640000000000600082015250565b7f4e6f7420656e6f756768207072697a6573000000000000000000000000000000600082015250565b7f4d696e74207374617465206d69736d6174636800000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f57696e6e657273206d7573742062652073656c65637465640000000000000000600082015250565b7f4d696e7420737461746520646f6573206e6f7420657869737400000000000000600082015250565b7f496e73756666696369656e742076616c75650000000000000000000000000000600082015250565b50565b7f4261746368206d696e742065786365656473206d617820737570706c79000000600082015250565b7f417267756d656e7473206c656e677468206d69736d6174636800000000000000600082015250565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60038110614e5b57614e5a614b38565b5b50565b614e67816148c2565b8114614e7257600080fd5b50565b614e7e816148d4565b8114614e8957600080fd5b50565b614e95816148e0565b8114614ea057600080fd5b50565b614eac816148ea565b8114614eb757600080fd5b50565b614ec381614957565b8114614ece57600080fd5b5056fea264697066735822122025d530d0ea7173abc4ec0c1fe82a72a2e83e94b6d6419ae61bc8902971872be564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004a3c42a6cfcfb9a6d9f890b2c4f8fc0a75892ffd0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f697066732e696f2f697066732f62616679626569646f366373796837336866786a6b6e797472706e6c666d637071367771626537796c72753578676e69796a647a796d6e7762356d2f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseURI_ (string): https://ipfs.io/ipfs/bafybeido6csyh73hfxjknytrpnlfmcpq6wqbe7ylru5xgniyjdzymnwb5m/
Arg [1] : recipient (address): 0x4a3C42A6cfCFB9a6d9f890B2c4f8fC0a75892Ffd
Arg [2] : allocation (uint256): 5
Arg [3] : _vrfCoordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [4] : _keyHash (bytes32): 0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000004a3c42a6cfcfb9a6d9f890b2c4f8fc0a75892ffd
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [4] : ff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [6] : 68747470733a2f2f697066732e696f2f697066732f62616679626569646f3663
Arg [7] : 73796837336866786a6b6e797472706e6c666d637071367771626537796c7275
Arg [8] : 3578676e69796a647a796d6e7762356d2f000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.