ERC-721
Overview
Max Total Supply
105 TCDAO
Holders
50
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TCDAOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TradersClubDAO
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /** * * TradersClubDAO * */ import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./ERC721AWhitelist.sol"; contract TradersClubDAO is ERC2981, ERC721A, Ownable, ReentrancyGuard, ERC721AWhitelist{ uint256 public immutable maxSupply; uint256 public immutable amountForDevs; address immutable teamAddress; bool teamMintStatus; mapping(bytes => bool) public signatures; address whitelistSigningKey = address(0); constructor(uint256 _maxSupply, uint256 _amountForDev, address _teamAddress, uint96 royaltyFees) ERC721A("TradersClubDAO", "TCDAO"){ require(_maxSupply > 0, "ERC721A: max batch size must be nonzero"); _setDefaultRoyalty(_teamAddress, royaltyFees); maxSupply = _maxSupply; amountForDevs = _amountForDev; teamAddress = _teamAddress; teamMintStatus = false; signatures["0x0000000000000000000000000000000000000000"] = true; } /** * @dev Caller is User. */ modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract."); _; } /** * @dev Mint for public. */ function mint(bytes32 hash, bytes calldata whiteListSignature, bytes calldata signature) callerIsUser public { require(numberMinted(msg.sender) < maxSupply , "Reached maximum NFT mint for public member"); require(recoverWhitelistSigner(hash, whiteListSignature) == owner(), "You are not on the list."); require(!signatures[signature], "You have already minted NFT."); _whitelistMint(); signatures[signature] = true; } function _whitelistMint() private { require(numberMinted(msg.sender) < 1, "1 NFT max per address"); require(_totalMinted() < maxSupply, "NFT Sold out"); _safeMint(msg.sender, 1); } /** * @dev Mint for internal team. */ function teamMint() external payable callerIsUser{ require( msg.sender == teamAddress, "This is only for team member."); _internalMint(); } function _internalMint() private { require(numberMinted(msg.sender) < amountForDevs , "Reached maximum NFT mint for team member"); require(_totalMinted() < maxSupply, "NFT Sold out"); _safeMint(msg.sender, 50); } /** * @dev BaseTokenURI for Traders Club DAO */ string private _baseTokenURI; function _baseURI() internal view virtual override returns(string memory) { return _baseTokenURI; } /** * @dev Reset specific token royalty. */ function setBaseURI(string calldata baseURI) external onlyOwner nonReentrant { _baseTokenURI = baseURI; } /** * @dev Default Royalty */ function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } /** * @dev Reset specific token royalty. */ function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) external onlyOwner { _setTokenRoyalty(tokenId, receiver, feeNumerator); } /** * @dev Reset specific token royalty. */ function resetTokenRoyalty(uint256 tokenId) external onlyOwner { _resetTokenRoyalty(tokenId); } /** * @dev Get mint count of input address. */ function numberMinted(address owner) public view returns(uint256) { return _numberMinted(owner); } /** * @dev Withdraw balnace to Team Address. */ function withdraw() external onlyOwner { payable(teamAddress).transfer(address(this).balance); } /** * Override Royalty Interface * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
import "@openzeppelin/contracts/access/Ownable.sol"; contract ERC721AWhitelist is Ownable{ function recoverWhitelistSigner(bytes32 hash, bytes memory signature) public pure returns(address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(signature); return ecrecover(hash, v, r, s); } function recoverSigner(bytes32 hash, bytes memory signature) public pure returns(address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(signature); return ecrecover(hash, v, r, s); } function splitSignature(bytes memory sig) public pure returns (bytes32 r, bytes32 s, uint8 v) { require(sig.length == 65, "invalid signature length"); assembly { r := mload(add(sig, 32)) s := mload(add(sig, 64)) v := byte(0, mload(add(sig, 96))) } } }
// 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 // 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 // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_amountForDev","type":"uint256"},{"internalType":"address","name":"_teamAddress","type":"address"},{"internalType":"uint96","name":"royaltyFees","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"amountForDevs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"whiteListSignature","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverWhitelistSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"signatures","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","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":[],"name":"teamMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526000600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200005357600080fd5b5060405162004772380380620047728339818101604052810190620000799190620005c7565b6040518060400160405280600e81526020017f54726164657273436c756244414f0000000000000000000000000000000000008152506040518060400160405280600581526020017f544344414f0000000000000000000000000000000000000000000000000000008152508160049080519060200190620000fd929190620004d2565b50806005908051906020019062000116929190620004d2565b50620001276200025260201b60201c565b60028190555050506200014f620001436200025760201b60201c565b6200025f60201b60201c565b6001600b81905550600084116200019d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019490620006ec565b60405180910390fd5b620001af82826200032560201b60201c565b83608081815250508260a081815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250506000600c60006101000a81548160ff0219169083151502179055506001600d6040516200022390620006d5565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505062000992565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000335620004c860201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000396576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038d906200070e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000409576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004009062000730565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b828054620004e090620007c4565b90600052602060002090601f01602090048101928262000504576000855562000550565b82601f106200051f57805160ff191683800117855562000550565b8280016001018555821562000550579182015b828111156200054f57825182559160200191906001019062000532565b5b5090506200055f919062000563565b5090565b5b808211156200057e57600081600090555060010162000564565b5090565b600081519050620005938162000944565b92915050565b600081519050620005aa816200095e565b92915050565b600081519050620005c18162000978565b92915050565b60008060008060808587031215620005e457620005e362000829565b5b6000620005f48782880162000599565b9450506020620006078782880162000599565b93505060406200061a8782880162000582565b92505060606200062d87828801620005b0565b91505092959194509250565b6000620006486027836200075d565b915062000655826200082e565b604082019050919050565b60006200066f602a8362000752565b91506200067c826200087d565b602a82019050919050565b600062000696602a836200075d565b9150620006a382620008cc565b604082019050919050565b6000620006bd6019836200075d565b9150620006ca826200091b565b602082019050919050565b6000620006e28262000660565b9150819050919050565b60006020820190508181036000830152620007078162000639565b9050919050565b60006020820190508181036000830152620007298162000687565b9050919050565b600060208201905081810360008301526200074b81620006ae565b9050919050565b600081905092915050565b600082825260208201905092915050565b60006200077b8262000782565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b60006002820490506001821680620007dd57607f821691505b60208210811415620007f457620007f3620007fa565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b7f307830303030303030303030303030303030303030303030303030303030303060008201527f3030303030303030303000000000000000000000000000000000000000000000602082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6200094f816200076e565b81146200095b57600080fd5b50565b6200096981620007a2565b81146200097557600080fd5b50565b6200098381620007ac565b81146200098f57600080fd5b50565b60805160a05160c05160601c613d8a620009e860003960008181610f3e0152611784015260008181611a3f01526124040152600081816114c1015281816118f10152818161222e015261246e0152613d8a6000f3fe6080604052600436106101e35760003560e01c80638a616bc011610102578063ba7a86b811610095578063dc33e68111610064578063dc33e681146106c2578063e985e9c5146106ff578063f2fde38b1461073c578063fbe1aa5114610765576101e3565b8063ba7a86b814610613578063c87b56dd1461061d578063d31e22de1461065a578063d5abeb0114610697576101e3565b8063a22cb465116100d1578063a22cb46514610566578063a7bb58031461058f578063aaa6c4b0146105ce578063b88d4fde146105f7576101e3565b80638a616bc0146104aa5780638da5cb5b146104d357806395d89b41146104fe57806397aba7f914610529576101e3565b80633ccfd60b1161017a5780636352211e116101495780636352211e146103dc57806370a0823114610419578063715018a614610456578063818b86591461046d576101e3565b80633ccfd60b1461035757806342842e0e1461036e57806355f804b31461038a5780635944c753146103b3576101e3565b8063095ea7b3116101b6578063095ea7b3146102b657806318160ddd146102d257806323b872dd146102fd5780632a55205a14610319576101e3565b806301ffc9a7146101e857806304634d8d1461022557806306fdde031461024e578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612e18565b610790565b60405161021c91906133b5565b60405180910390f35b34801561023157600080fd5b5061024c60048036038101906102479190612ce7565b6107a2565b005b34801561025a57600080fd5b506102636107b8565b604051610270919061344c565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190612f08565b61084a565b6040516102ad9190613325565b60405180910390f35b6102d060048036038101906102cb9190612ca7565b6108c9565b005b3480156102de57600080fd5b506102e7610a0d565b6040516102f4919061364e565b60405180910390f35b61031760048036038101906103129190612b91565b610a24565b005b34801561032557600080fd5b50610340600480360381019061033b9190612f88565b610d49565b60405161034e92919061338c565b60405180910390f35b34801561036357600080fd5b5061036c610f34565b005b61038860048036038101906103839190612b91565b610fa5565b005b34801561039657600080fd5b506103b160048036038101906103ac9190612ebb565b610fc5565b005b3480156103bf57600080fd5b506103da60048036038101906103d59190612f35565b611039565b005b3480156103e857600080fd5b5061040360048036038101906103fe9190612f08565b611051565b6040516104109190613325565b60405180910390f35b34801561042557600080fd5b50610440600480360381019061043b9190612b24565b611063565b60405161044d919061364e565b60405180910390f35b34801561046257600080fd5b5061046b61111c565b005b34801561047957600080fd5b50610494600480360381019061048f9190612dbc565b611130565b6040516104a19190613325565b60405180910390f35b3480156104b657600080fd5b506104d160048036038101906104cc9190612f08565b61119f565b005b3480156104df57600080fd5b506104e86111b3565b6040516104f59190613325565b60405180910390f35b34801561050a57600080fd5b506105136111dd565b604051610520919061344c565b60405180910390f35b34801561053557600080fd5b50610550600480360381019061054b9190612dbc565b61126f565b60405161055d9190613325565b60405180910390f35b34801561057257600080fd5b5061058d60048036038101906105889190612c67565b6112de565b005b34801561059b57600080fd5b506105b660048036038101906105b19190612e72565b6113e9565b6040516105c5939291906133d0565b60405180910390f35b3480156105da57600080fd5b506105f560048036038101906105f09190612d27565b611451565b005b610611600480360381019061060c9190612be4565b6116a1565b005b61061b611714565b005b34801561062957600080fd5b50610644600480360381019061063f9190612f08565b61181a565b604051610651919061344c565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190612e72565b6118b9565b60405161068e91906133b5565b60405180910390f35b3480156106a357600080fd5b506106ac6118ef565b6040516106b9919061364e565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e49190612b24565b611913565b6040516106f6919061364e565b60405180910390f35b34801561070b57600080fd5b5061072660048036038101906107219190612b51565b611925565b60405161073391906133b5565b60405180910390f35b34801561074857600080fd5b50610763600480360381019061075e9190612b24565b6119b9565b005b34801561077157600080fd5b5061077a611a3d565b604051610787919061364e565b60405180910390f35b600061079b82611a61565b9050919050565b6107aa611af3565b6107b48282611b71565b5050565b6060600480546107c79061387d565b80601f01602080910402602001604051908101604052809291908181526020018280546107f39061387d565b80156108405780601f1061081557610100808354040283529160200191610840565b820191906000526020600020905b81548152906001019060200180831161082357829003601f168201915b5050505050905090565b600061085582611d06565b61088b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d482611051565b90508073ffffffffffffffffffffffffffffffffffffffff166108f5611d65565b73ffffffffffffffffffffffffffffffffffffffff1614610958576109218161091c611d65565b611925565b610957576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826008600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610a17611d6d565b6003546002540303905090565b6000610a2f82611d72565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a96576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610aa284611e40565b91509150610ab88187610ab3611d65565b611e67565b610b0457610acd86610ac8611d65565b611925565b610b03576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610b6b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b788686866001611eab565b8015610b8357600082555b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c5185610c2d888887611eb1565b7c020000000000000000000000000000000000000000000000000000000017611ed9565b600660008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610cd9576000600185019050600060066000838152602001908152602001600020541415610cd7576002548114610cd6578360066000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d418686866001611f04565b505050505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610edf5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ee9611f0a565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f15919061373e565b610f1f919061370d565b90508160000151819350935050509250929050565b610f3c611af3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610fa2573d6000803e3d6000fd5b50565b610fc0838383604051806020016040528060008152506116a1565b505050565b610fcd611af3565b6002600b541415611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a9061360e565b60405180910390fd5b6002600b819055508181600f919061102c9291906128d2565b506001600b819055505050565b611041611af3565b61104c838383611f14565b505050565b600061105c82611d72565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110cb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611124611af3565b61112e60006120bc565b565b60008060008061113f856113e9565b925092509250600186828585604051600081526020016040526040516111689493929190613407565b6020604051602081039080840390855afa15801561118a573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6111a7611af3565b6111b081612182565b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600580546111ec9061387d565b80601f01602080910402602001604051908101604052809291908181526020018280546112189061387d565b80156112655780601f1061123a57610100808354040283529160200191611265565b820191906000526020600020905b81548152906001019060200180831161124857829003601f168201915b5050505050905090565b60008060008061127e856113e9565b925092509250600186828585604051600081526020016040526040516112a79493929190613407565b6020604051602081039080840390855afa1580156112c9573d6000803e3d6000fd5b50505060206040510351935050505092915050565b80600960006112eb611d65565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611398611d65565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113dd91906133b5565b60405180910390a35050565b60008060006041845114611432576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611429906135ee565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146114bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b69061348e565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006114e933611913565b10611529576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115209061346e565b60405180910390fd5b6115316111b3565b73ffffffffffffffffffffffffffffffffffffffff166115958686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611130565b73ffffffffffffffffffffffffffffffffffffffff16146115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e2906135ae565b60405180910390fd5b600d82826040516115fd9291906132e8565b908152602001604051809103902060009054906101000a900460ff1615611659576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116509061352e565b60405180910390fd5b6116616121e1565b6001600d83836040516116759291906132e8565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505050565b6116ac848484610a24565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461170e576116d7848484846122a2565b61170d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611782576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117799061348e565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611810576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118079061350e565b60405180910390fd5b611818612402565b565b606061182582611d06565b61185b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006118656124e2565b905060008151141561188657604051806020016040528060008152506118b1565b8061189084612574565b6040516020016118a1929190613301565b6040516020818303038152906040525b915050919050565b600d818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061191e826125cd565b9050919050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119c1611af3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a28906134ce565b60405180910390fd5b611a3a816120bc565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611abc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611aec5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b611afb612624565b73ffffffffffffffffffffffffffffffffffffffff16611b196111b3565b73ffffffffffffffffffffffffffffffffffffffff1614611b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b669061354e565b60405180910390fd5b565b611b79611f0a565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611bd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bce906135ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3e9061362e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081611d11611d6d565b11158015611d20575060025482105b8015611d5e575060007c0100000000000000000000000000000000000000000000000000000000600660008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611d81611d6d565b11611e0957600254811015611e085760006006600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611e06575b6000811415611dfc576006600083600190039350838152602001908152602001600020549050611dd1565b8092505050611e3b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006008600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611ec886868461262c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b611f1c611f0a565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f71906135ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe19061356e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506001600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60016000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b60016121ec33611913565b1061222c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122239061358e565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000612255612635565b10612295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228c906134ee565b60405180910390fd5b6122a0336001612648565b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122c8611d65565b8786866040518563ffffffff1660e01b81526004016122ea9493929190613340565b602060405180830381600087803b15801561230457600080fd5b505af192505050801561233557506040513d601f19601f820116820180604052508101906123329190612e45565b60015b6123af573d8060008114612365576040519150601f19603f3d011682016040523d82523d6000602084013e61236a565b606091505b506000815114156123a7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000061242c33611913565b1061246c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612463906134ae565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000612495612635565b106124d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cc906134ee565b60405180910390fd5b6124e0336032612648565b565b6060600f80546124f19061387d565b80601f016020809104026020016040519081016040528092919081815260200182805461251d9061387d565b801561256a5780601f1061253f5761010080835404028352916020019161256a565b820191906000526020600020905b81548152906001019060200180831161254d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156125b857600184039350600a81066030018453600a81049050806125b3576125b8565b61258d565b50828103602084039350808452505050919050565b600067ffffffffffffffff6040600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600033905090565b60009392505050565b600061263f611d6d565b60025403905090565b612662828260405180602001604052806000815250612666565b5050565b6126708383612704565b60008373ffffffffffffffffffffffffffffffffffffffff163b146126ff5760006002549050600083820390505b6126b160008683806001019450866122a2565b6126e7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061269e5781600254146126fc57600080fd5b50505b505050565b600060025490506000821415612746576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127536000848385611eab565b600160406001901b178202600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127ca836127bb6000866000611eb1565b6127c4856128c2565b17611ed9565b6006600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461286b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612830565b5060008214156128a7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060028190555050506128bd6000848385611f04565b505050565b60006001821460e11b9050919050565b8280546128de9061387d565b90600052602060002090601f0160209004810192826129005760008555612947565b82601f1061291957803560ff1916838001178555612947565b82800160010185558215612947579182015b8281111561294657823582559160200191906001019061292b565b5b5090506129549190612958565b5090565b5b80821115612971576000816000905550600101612959565b5090565b60006129886129838461368e565b613669565b9050828152602081018484840111156129a4576129a36139ab565b5b6129af84828561383b565b509392505050565b6000813590506129c681613cca565b92915050565b6000813590506129db81613ce1565b92915050565b6000813590506129f081613cf8565b92915050565b600081359050612a0581613d0f565b92915050565b600081519050612a1a81613d0f565b92915050565b60008083601f840112612a3657612a356139a1565b5b8235905067ffffffffffffffff811115612a5357612a5261399c565b5b602083019150836001820283011115612a6f57612a6e6139a6565b5b9250929050565b600082601f830112612a8b57612a8a6139a1565b5b8135612a9b848260208601612975565b91505092915050565b60008083601f840112612aba57612ab96139a1565b5b8235905067ffffffffffffffff811115612ad757612ad661399c565b5b602083019150836001820283011115612af357612af26139a6565b5b9250929050565b600081359050612b0981613d26565b92915050565b600081359050612b1e81613d3d565b92915050565b600060208284031215612b3a57612b396139b5565b5b6000612b48848285016129b7565b91505092915050565b60008060408385031215612b6857612b676139b5565b5b6000612b76858286016129b7565b9250506020612b87858286016129b7565b9150509250929050565b600080600060608486031215612baa57612ba96139b5565b5b6000612bb8868287016129b7565b9350506020612bc9868287016129b7565b9250506040612bda86828701612afa565b9150509250925092565b60008060008060808587031215612bfe57612bfd6139b5565b5b6000612c0c878288016129b7565b9450506020612c1d878288016129b7565b9350506040612c2e87828801612afa565b925050606085013567ffffffffffffffff811115612c4f57612c4e6139b0565b5b612c5b87828801612a76565b91505092959194509250565b60008060408385031215612c7e57612c7d6139b5565b5b6000612c8c858286016129b7565b9250506020612c9d858286016129cc565b9150509250929050565b60008060408385031215612cbe57612cbd6139b5565b5b6000612ccc858286016129b7565b9250506020612cdd85828601612afa565b9150509250929050565b60008060408385031215612cfe57612cfd6139b5565b5b6000612d0c858286016129b7565b9250506020612d1d85828601612b0f565b9150509250929050565b600080600080600060608688031215612d4357612d426139b5565b5b6000612d51888289016129e1565b955050602086013567ffffffffffffffff811115612d7257612d716139b0565b5b612d7e88828901612a20565b9450945050604086013567ffffffffffffffff811115612da157612da06139b0565b5b612dad88828901612a20565b92509250509295509295909350565b60008060408385031215612dd357612dd26139b5565b5b6000612de1858286016129e1565b925050602083013567ffffffffffffffff811115612e0257612e016139b0565b5b612e0e85828601612a76565b9150509250929050565b600060208284031215612e2e57612e2d6139b5565b5b6000612e3c848285016129f6565b91505092915050565b600060208284031215612e5b57612e5a6139b5565b5b6000612e6984828501612a0b565b91505092915050565b600060208284031215612e8857612e876139b5565b5b600082013567ffffffffffffffff811115612ea657612ea56139b0565b5b612eb284828501612a76565b91505092915050565b60008060208385031215612ed257612ed16139b5565b5b600083013567ffffffffffffffff811115612ef057612eef6139b0565b5b612efc85828601612aa4565b92509250509250929050565b600060208284031215612f1e57612f1d6139b5565b5b6000612f2c84828501612afa565b91505092915050565b600080600060608486031215612f4e57612f4d6139b5565b5b6000612f5c86828701612afa565b9350506020612f6d868287016129b7565b9250506040612f7e86828701612b0f565b9150509250925092565b60008060408385031215612f9f57612f9e6139b5565b5b6000612fad85828601612afa565b9250506020612fbe85828601612afa565b9150509250929050565b612fd181613798565b82525050565b612fe0816137aa565b82525050565b612fef816137b6565b82525050565b600061300183856136e6565b935061300e83858461383b565b82840190509392505050565b6000613025826136bf565b61302f81856136d5565b935061303f81856020860161384a565b613048816139ba565b840191505092915050565b600061305e826136ca565b61306881856136f1565b935061307881856020860161384a565b613081816139ba565b840191505092915050565b6000613097826136ca565b6130a18185613702565b93506130b181856020860161384a565b80840191505092915050565b60006130ca602a836136f1565b91506130d5826139cb565b604082019050919050565b60006130ed601f836136f1565b91506130f882613a1a565b602082019050919050565b60006131106028836136f1565b915061311b82613a43565b604082019050919050565b60006131336026836136f1565b915061313e82613a92565b604082019050919050565b6000613156600c836136f1565b915061316182613ae1565b602082019050919050565b6000613179601d836136f1565b915061318482613b0a565b602082019050919050565b600061319c601c836136f1565b91506131a782613b33565b602082019050919050565b60006131bf6020836136f1565b91506131ca82613b5c565b602082019050919050565b60006131e2601b836136f1565b91506131ed82613b85565b602082019050919050565b60006132056015836136f1565b915061321082613bae565b602082019050919050565b60006132286018836136f1565b915061323382613bd7565b602082019050919050565b600061324b602a836136f1565b915061325682613c00565b604082019050919050565b600061326e6018836136f1565b915061327982613c4f565b602082019050919050565b6000613291601f836136f1565b915061329c82613c78565b602082019050919050565b60006132b46019836136f1565b91506132bf82613ca1565b602082019050919050565b6132d38161380c565b82525050565b6132e281613816565b82525050565b60006132f5828486612ff5565b91508190509392505050565b600061330d828561308c565b9150613319828461308c565b91508190509392505050565b600060208201905061333a6000830184612fc8565b92915050565b60006080820190506133556000830187612fc8565b6133626020830186612fc8565b61336f60408301856132ca565b8181036060830152613381818461301a565b905095945050505050565b60006040820190506133a16000830185612fc8565b6133ae60208301846132ca565b9392505050565b60006020820190506133ca6000830184612fd7565b92915050565b60006060820190506133e56000830186612fe6565b6133f26020830185612fe6565b6133ff60408301846132d9565b949350505050565b600060808201905061341c6000830187612fe6565b61342960208301866132d9565b6134366040830185612fe6565b6134436060830184612fe6565b95945050505050565b600060208201905081810360008301526134668184613053565b905092915050565b60006020820190508181036000830152613487816130bd565b9050919050565b600060208201905081810360008301526134a7816130e0565b9050919050565b600060208201905081810360008301526134c781613103565b9050919050565b600060208201905081810360008301526134e781613126565b9050919050565b6000602082019050818103600083015261350781613149565b9050919050565b600060208201905081810360008301526135278161316c565b9050919050565b600060208201905081810360008301526135478161318f565b9050919050565b60006020820190508181036000830152613567816131b2565b9050919050565b60006020820190508181036000830152613587816131d5565b9050919050565b600060208201905081810360008301526135a7816131f8565b9050919050565b600060208201905081810360008301526135c78161321b565b9050919050565b600060208201905081810360008301526135e78161323e565b9050919050565b6000602082019050818103600083015261360781613261565b9050919050565b6000602082019050818103600083015261362781613284565b9050919050565b60006020820190508181036000830152613647816132a7565b9050919050565b600060208201905061366360008301846132ca565b92915050565b6000613673613684565b905061367f82826138af565b919050565b6000604051905090565b600067ffffffffffffffff8211156136a9576136a861396d565b5b6136b2826139ba565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006137188261380c565b91506137238361380c565b9250826137335761373261390f565b5b828204905092915050565b60006137498261380c565b91506137548361380c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561378d5761378c6138e0565b5b828202905092915050565b60006137a3826137ec565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561386857808201518184015260208101905061384d565b83811115613877576000848401525b50505050565b6000600282049050600182168061389557607f821691505b602082108114156138a9576138a861393e565b5b50919050565b6138b8826139ba565b810181811067ffffffffffffffff821117156138d7576138d661396d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f52656163686564206d6178696d756d204e4654206d696e7420666f722070756260008201527f6c6963206d656d62657200000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b7f52656163686564206d6178696d756d204e4654206d696e7420666f722074656160008201527f6d206d656d626572000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e465420536f6c64206f75740000000000000000000000000000000000000000600082015250565b7f54686973206973206f6e6c7920666f72207465616d206d656d6265722e000000600082015250565b7f596f75206861766520616c7265616479206d696e746564204e46542e00000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b7f31204e4654206d61782070657220616464726573730000000000000000000000600082015250565b7f596f7520617265206e6f74206f6e20746865206c6973742e0000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f696e76616c6964207369676e6174757265206c656e6774680000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b613cd381613798565b8114613cde57600080fd5b50565b613cea816137aa565b8114613cf557600080fd5b50565b613d01816137b6565b8114613d0c57600080fd5b50565b613d18816137c0565b8114613d2357600080fd5b50565b613d2f8161380c565b8114613d3a57600080fd5b50565b613d4681613823565b8114613d5157600080fd5b5056fea26469706673582212206999786cb48134ed1b3d465f07733ab01e83dfe3004b54f8a245681f04f65a5564736f6c63430008070033000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000e458c0227eb2cddc35e1f5a42702d9b3441c228100000000000000000000000000000000000000000000000000000000000002bc
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80638a616bc011610102578063ba7a86b811610095578063dc33e68111610064578063dc33e681146106c2578063e985e9c5146106ff578063f2fde38b1461073c578063fbe1aa5114610765576101e3565b8063ba7a86b814610613578063c87b56dd1461061d578063d31e22de1461065a578063d5abeb0114610697576101e3565b8063a22cb465116100d1578063a22cb46514610566578063a7bb58031461058f578063aaa6c4b0146105ce578063b88d4fde146105f7576101e3565b80638a616bc0146104aa5780638da5cb5b146104d357806395d89b41146104fe57806397aba7f914610529576101e3565b80633ccfd60b1161017a5780636352211e116101495780636352211e146103dc57806370a0823114610419578063715018a614610456578063818b86591461046d576101e3565b80633ccfd60b1461035757806342842e0e1461036e57806355f804b31461038a5780635944c753146103b3576101e3565b8063095ea7b3116101b6578063095ea7b3146102b657806318160ddd146102d257806323b872dd146102fd5780632a55205a14610319576101e3565b806301ffc9a7146101e857806304634d8d1461022557806306fdde031461024e578063081812fc14610279575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612e18565b610790565b60405161021c91906133b5565b60405180910390f35b34801561023157600080fd5b5061024c60048036038101906102479190612ce7565b6107a2565b005b34801561025a57600080fd5b506102636107b8565b604051610270919061344c565b60405180910390f35b34801561028557600080fd5b506102a0600480360381019061029b9190612f08565b61084a565b6040516102ad9190613325565b60405180910390f35b6102d060048036038101906102cb9190612ca7565b6108c9565b005b3480156102de57600080fd5b506102e7610a0d565b6040516102f4919061364e565b60405180910390f35b61031760048036038101906103129190612b91565b610a24565b005b34801561032557600080fd5b50610340600480360381019061033b9190612f88565b610d49565b60405161034e92919061338c565b60405180910390f35b34801561036357600080fd5b5061036c610f34565b005b61038860048036038101906103839190612b91565b610fa5565b005b34801561039657600080fd5b506103b160048036038101906103ac9190612ebb565b610fc5565b005b3480156103bf57600080fd5b506103da60048036038101906103d59190612f35565b611039565b005b3480156103e857600080fd5b5061040360048036038101906103fe9190612f08565b611051565b6040516104109190613325565b60405180910390f35b34801561042557600080fd5b50610440600480360381019061043b9190612b24565b611063565b60405161044d919061364e565b60405180910390f35b34801561046257600080fd5b5061046b61111c565b005b34801561047957600080fd5b50610494600480360381019061048f9190612dbc565b611130565b6040516104a19190613325565b60405180910390f35b3480156104b657600080fd5b506104d160048036038101906104cc9190612f08565b61119f565b005b3480156104df57600080fd5b506104e86111b3565b6040516104f59190613325565b60405180910390f35b34801561050a57600080fd5b506105136111dd565b604051610520919061344c565b60405180910390f35b34801561053557600080fd5b50610550600480360381019061054b9190612dbc565b61126f565b60405161055d9190613325565b60405180910390f35b34801561057257600080fd5b5061058d60048036038101906105889190612c67565b6112de565b005b34801561059b57600080fd5b506105b660048036038101906105b19190612e72565b6113e9565b6040516105c5939291906133d0565b60405180910390f35b3480156105da57600080fd5b506105f560048036038101906105f09190612d27565b611451565b005b610611600480360381019061060c9190612be4565b6116a1565b005b61061b611714565b005b34801561062957600080fd5b50610644600480360381019061063f9190612f08565b61181a565b604051610651919061344c565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c9190612e72565b6118b9565b60405161068e91906133b5565b60405180910390f35b3480156106a357600080fd5b506106ac6118ef565b6040516106b9919061364e565b60405180910390f35b3480156106ce57600080fd5b506106e960048036038101906106e49190612b24565b611913565b6040516106f6919061364e565b60405180910390f35b34801561070b57600080fd5b5061072660048036038101906107219190612b51565b611925565b60405161073391906133b5565b60405180910390f35b34801561074857600080fd5b50610763600480360381019061075e9190612b24565b6119b9565b005b34801561077157600080fd5b5061077a611a3d565b604051610787919061364e565b60405180910390f35b600061079b82611a61565b9050919050565b6107aa611af3565b6107b48282611b71565b5050565b6060600480546107c79061387d565b80601f01602080910402602001604051908101604052809291908181526020018280546107f39061387d565b80156108405780601f1061081557610100808354040283529160200191610840565b820191906000526020600020905b81548152906001019060200180831161082357829003601f168201915b5050505050905090565b600061085582611d06565b61088b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d482611051565b90508073ffffffffffffffffffffffffffffffffffffffff166108f5611d65565b73ffffffffffffffffffffffffffffffffffffffff1614610958576109218161091c611d65565b611925565b610957576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826008600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610a17611d6d565b6003546002540303905090565b6000610a2f82611d72565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610a96576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610aa284611e40565b91509150610ab88187610ab3611d65565b611e67565b610b0457610acd86610ac8611d65565b611925565b610b03576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610b6b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b788686866001611eab565b8015610b8357600082555b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c5185610c2d888887611eb1565b7c020000000000000000000000000000000000000000000000000000000017611ed9565b600660008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610cd9576000600185019050600060066000838152602001908152602001600020541415610cd7576002548114610cd6578360066000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d418686866001611f04565b505050505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610edf5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610ee9611f0a565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f15919061373e565b610f1f919061370d565b90508160000151819350935050509250929050565b610f3c611af3565b7f000000000000000000000000e458c0227eb2cddc35e1f5a42702d9b3441c228173ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610fa2573d6000803e3d6000fd5b50565b610fc0838383604051806020016040528060008152506116a1565b505050565b610fcd611af3565b6002600b541415611013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100a9061360e565b60405180910390fd5b6002600b819055508181600f919061102c9291906128d2565b506001600b819055505050565b611041611af3565b61104c838383611f14565b505050565b600061105c82611d72565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110cb576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611124611af3565b61112e60006120bc565b565b60008060008061113f856113e9565b925092509250600186828585604051600081526020016040526040516111689493929190613407565b6020604051602081039080840390855afa15801561118a573d6000803e3d6000fd5b50505060206040510351935050505092915050565b6111a7611af3565b6111b081612182565b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600580546111ec9061387d565b80601f01602080910402602001604051908101604052809291908181526020018280546112189061387d565b80156112655780601f1061123a57610100808354040283529160200191611265565b820191906000526020600020905b81548152906001019060200180831161124857829003601f168201915b5050505050905090565b60008060008061127e856113e9565b925092509250600186828585604051600081526020016040526040516112a79493929190613407565b6020604051602081039080840390855afa1580156112c9573d6000803e3d6000fd5b50505060206040510351935050505092915050565b80600960006112eb611d65565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611398611d65565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516113dd91906133b5565b60405180910390a35050565b60008060006041845114611432576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611429906135ee565b60405180910390fd5b6020840151925060408401519150606084015160001a90509193909250565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146114bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b69061348e565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000013886114e933611913565b10611529576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115209061346e565b60405180910390fd5b6115316111b3565b73ffffffffffffffffffffffffffffffffffffffff166115958686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611130565b73ffffffffffffffffffffffffffffffffffffffff16146115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e2906135ae565b60405180910390fd5b600d82826040516115fd9291906132e8565b908152602001604051809103902060009054906101000a900460ff1615611659576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116509061352e565b60405180910390fd5b6116616121e1565b6001600d83836040516116759291906132e8565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050505050565b6116ac848484610a24565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461170e576116d7848484846122a2565b61170d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611782576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117799061348e565b60405180910390fd5b7f000000000000000000000000e458c0227eb2cddc35e1f5a42702d9b3441c228173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611810576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118079061350e565b60405180910390fd5b611818612402565b565b606061182582611d06565b61185b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006118656124e2565b905060008151141561188657604051806020016040528060008152506118b1565b8061189084612574565b6040516020016118a1929190613301565b6040516020818303038152906040525b915050919050565b600d818051602081018201805184825260208301602085012081835280955050505050506000915054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000138881565b600061191e826125cd565b9050919050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119c1611af3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611a31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a28906134ce565b60405180910390fd5b611a3a816120bc565b50565b7f00000000000000000000000000000000000000000000000000000000000003e881565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611abc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611aec5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b611afb612624565b73ffffffffffffffffffffffffffffffffffffffff16611b196111b3565b73ffffffffffffffffffffffffffffffffffffffff1614611b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b669061354e565b60405180910390fd5b565b611b79611f0a565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611bd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bce906135ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3e9061362e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081611d11611d6d565b11158015611d20575060025482105b8015611d5e575060007c0100000000000000000000000000000000000000000000000000000000600660008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611d81611d6d565b11611e0957600254811015611e085760006006600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611e06575b6000811415611dfc576006600083600190039350838152602001908152602001600020549050611dd1565b8092505050611e3b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006008600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611ec886868461262c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b611f1c611f0a565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f71906135ce565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe19061356e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506001600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60016000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b60016121ec33611913565b1061222c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122239061358e565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000001388612255612635565b10612295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228c906134ee565b60405180910390fd5b6122a0336001612648565b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122c8611d65565b8786866040518563ffffffff1660e01b81526004016122ea9493929190613340565b602060405180830381600087803b15801561230457600080fd5b505af192505050801561233557506040513d601f19601f820116820180604052508101906123329190612e45565b60015b6123af573d8060008114612365576040519150601f19603f3d011682016040523d82523d6000602084013e61236a565b606091505b506000815114156123a7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b7f00000000000000000000000000000000000000000000000000000000000003e861242c33611913565b1061246c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612463906134ae565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000001388612495612635565b106124d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cc906134ee565b60405180910390fd5b6124e0336032612648565b565b6060600f80546124f19061387d565b80601f016020809104026020016040519081016040528092919081815260200182805461251d9061387d565b801561256a5780601f1061253f5761010080835404028352916020019161256a565b820191906000526020600020905b81548152906001019060200180831161254d57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b6001156125b857600184039350600a81066030018453600a81049050806125b3576125b8565b61258d565b50828103602084039350808452505050919050565b600067ffffffffffffffff6040600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600033905090565b60009392505050565b600061263f611d6d565b60025403905090565b612662828260405180602001604052806000815250612666565b5050565b6126708383612704565b60008373ffffffffffffffffffffffffffffffffffffffff163b146126ff5760006002549050600083820390505b6126b160008683806001019450866122a2565b6126e7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061269e5781600254146126fc57600080fd5b50505b505050565b600060025490506000821415612746576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127536000848385611eab565b600160406001901b178202600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506127ca836127bb6000866000611eb1565b6127c4856128c2565b17611ed9565b6006600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461286b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612830565b5060008214156128a7576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060028190555050506128bd6000848385611f04565b505050565b60006001821460e11b9050919050565b8280546128de9061387d565b90600052602060002090601f0160209004810192826129005760008555612947565b82601f1061291957803560ff1916838001178555612947565b82800160010185558215612947579182015b8281111561294657823582559160200191906001019061292b565b5b5090506129549190612958565b5090565b5b80821115612971576000816000905550600101612959565b5090565b60006129886129838461368e565b613669565b9050828152602081018484840111156129a4576129a36139ab565b5b6129af84828561383b565b509392505050565b6000813590506129c681613cca565b92915050565b6000813590506129db81613ce1565b92915050565b6000813590506129f081613cf8565b92915050565b600081359050612a0581613d0f565b92915050565b600081519050612a1a81613d0f565b92915050565b60008083601f840112612a3657612a356139a1565b5b8235905067ffffffffffffffff811115612a5357612a5261399c565b5b602083019150836001820283011115612a6f57612a6e6139a6565b5b9250929050565b600082601f830112612a8b57612a8a6139a1565b5b8135612a9b848260208601612975565b91505092915050565b60008083601f840112612aba57612ab96139a1565b5b8235905067ffffffffffffffff811115612ad757612ad661399c565b5b602083019150836001820283011115612af357612af26139a6565b5b9250929050565b600081359050612b0981613d26565b92915050565b600081359050612b1e81613d3d565b92915050565b600060208284031215612b3a57612b396139b5565b5b6000612b48848285016129b7565b91505092915050565b60008060408385031215612b6857612b676139b5565b5b6000612b76858286016129b7565b9250506020612b87858286016129b7565b9150509250929050565b600080600060608486031215612baa57612ba96139b5565b5b6000612bb8868287016129b7565b9350506020612bc9868287016129b7565b9250506040612bda86828701612afa565b9150509250925092565b60008060008060808587031215612bfe57612bfd6139b5565b5b6000612c0c878288016129b7565b9450506020612c1d878288016129b7565b9350506040612c2e87828801612afa565b925050606085013567ffffffffffffffff811115612c4f57612c4e6139b0565b5b612c5b87828801612a76565b91505092959194509250565b60008060408385031215612c7e57612c7d6139b5565b5b6000612c8c858286016129b7565b9250506020612c9d858286016129cc565b9150509250929050565b60008060408385031215612cbe57612cbd6139b5565b5b6000612ccc858286016129b7565b9250506020612cdd85828601612afa565b9150509250929050565b60008060408385031215612cfe57612cfd6139b5565b5b6000612d0c858286016129b7565b9250506020612d1d85828601612b0f565b9150509250929050565b600080600080600060608688031215612d4357612d426139b5565b5b6000612d51888289016129e1565b955050602086013567ffffffffffffffff811115612d7257612d716139b0565b5b612d7e88828901612a20565b9450945050604086013567ffffffffffffffff811115612da157612da06139b0565b5b612dad88828901612a20565b92509250509295509295909350565b60008060408385031215612dd357612dd26139b5565b5b6000612de1858286016129e1565b925050602083013567ffffffffffffffff811115612e0257612e016139b0565b5b612e0e85828601612a76565b9150509250929050565b600060208284031215612e2e57612e2d6139b5565b5b6000612e3c848285016129f6565b91505092915050565b600060208284031215612e5b57612e5a6139b5565b5b6000612e6984828501612a0b565b91505092915050565b600060208284031215612e8857612e876139b5565b5b600082013567ffffffffffffffff811115612ea657612ea56139b0565b5b612eb284828501612a76565b91505092915050565b60008060208385031215612ed257612ed16139b5565b5b600083013567ffffffffffffffff811115612ef057612eef6139b0565b5b612efc85828601612aa4565b92509250509250929050565b600060208284031215612f1e57612f1d6139b5565b5b6000612f2c84828501612afa565b91505092915050565b600080600060608486031215612f4e57612f4d6139b5565b5b6000612f5c86828701612afa565b9350506020612f6d868287016129b7565b9250506040612f7e86828701612b0f565b9150509250925092565b60008060408385031215612f9f57612f9e6139b5565b5b6000612fad85828601612afa565b9250506020612fbe85828601612afa565b9150509250929050565b612fd181613798565b82525050565b612fe0816137aa565b82525050565b612fef816137b6565b82525050565b600061300183856136e6565b935061300e83858461383b565b82840190509392505050565b6000613025826136bf565b61302f81856136d5565b935061303f81856020860161384a565b613048816139ba565b840191505092915050565b600061305e826136ca565b61306881856136f1565b935061307881856020860161384a565b613081816139ba565b840191505092915050565b6000613097826136ca565b6130a18185613702565b93506130b181856020860161384a565b80840191505092915050565b60006130ca602a836136f1565b91506130d5826139cb565b604082019050919050565b60006130ed601f836136f1565b91506130f882613a1a565b602082019050919050565b60006131106028836136f1565b915061311b82613a43565b604082019050919050565b60006131336026836136f1565b915061313e82613a92565b604082019050919050565b6000613156600c836136f1565b915061316182613ae1565b602082019050919050565b6000613179601d836136f1565b915061318482613b0a565b602082019050919050565b600061319c601c836136f1565b91506131a782613b33565b602082019050919050565b60006131bf6020836136f1565b91506131ca82613b5c565b602082019050919050565b60006131e2601b836136f1565b91506131ed82613b85565b602082019050919050565b60006132056015836136f1565b915061321082613bae565b602082019050919050565b60006132286018836136f1565b915061323382613bd7565b602082019050919050565b600061324b602a836136f1565b915061325682613c00565b604082019050919050565b600061326e6018836136f1565b915061327982613c4f565b602082019050919050565b6000613291601f836136f1565b915061329c82613c78565b602082019050919050565b60006132b46019836136f1565b91506132bf82613ca1565b602082019050919050565b6132d38161380c565b82525050565b6132e281613816565b82525050565b60006132f5828486612ff5565b91508190509392505050565b600061330d828561308c565b9150613319828461308c565b91508190509392505050565b600060208201905061333a6000830184612fc8565b92915050565b60006080820190506133556000830187612fc8565b6133626020830186612fc8565b61336f60408301856132ca565b8181036060830152613381818461301a565b905095945050505050565b60006040820190506133a16000830185612fc8565b6133ae60208301846132ca565b9392505050565b60006020820190506133ca6000830184612fd7565b92915050565b60006060820190506133e56000830186612fe6565b6133f26020830185612fe6565b6133ff60408301846132d9565b949350505050565b600060808201905061341c6000830187612fe6565b61342960208301866132d9565b6134366040830185612fe6565b6134436060830184612fe6565b95945050505050565b600060208201905081810360008301526134668184613053565b905092915050565b60006020820190508181036000830152613487816130bd565b9050919050565b600060208201905081810360008301526134a7816130e0565b9050919050565b600060208201905081810360008301526134c781613103565b9050919050565b600060208201905081810360008301526134e781613126565b9050919050565b6000602082019050818103600083015261350781613149565b9050919050565b600060208201905081810360008301526135278161316c565b9050919050565b600060208201905081810360008301526135478161318f565b9050919050565b60006020820190508181036000830152613567816131b2565b9050919050565b60006020820190508181036000830152613587816131d5565b9050919050565b600060208201905081810360008301526135a7816131f8565b9050919050565b600060208201905081810360008301526135c78161321b565b9050919050565b600060208201905081810360008301526135e78161323e565b9050919050565b6000602082019050818103600083015261360781613261565b9050919050565b6000602082019050818103600083015261362781613284565b9050919050565b60006020820190508181036000830152613647816132a7565b9050919050565b600060208201905061366360008301846132ca565b92915050565b6000613673613684565b905061367f82826138af565b919050565b6000604051905090565b600067ffffffffffffffff8211156136a9576136a861396d565b5b6136b2826139ba565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006137188261380c565b91506137238361380c565b9250826137335761373261390f565b5b828204905092915050565b60006137498261380c565b91506137548361380c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561378d5761378c6138e0565b5b828202905092915050565b60006137a3826137ec565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561386857808201518184015260208101905061384d565b83811115613877576000848401525b50505050565b6000600282049050600182168061389557607f821691505b602082108114156138a9576138a861393e565b5b50919050565b6138b8826139ba565b810181811067ffffffffffffffff821117156138d7576138d661396d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f52656163686564206d6178696d756d204e4654206d696e7420666f722070756260008201527f6c6963206d656d62657200000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b7f52656163686564206d6178696d756d204e4654206d696e7420666f722074656160008201527f6d206d656d626572000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e465420536f6c64206f75740000000000000000000000000000000000000000600082015250565b7f54686973206973206f6e6c7920666f72207465616d206d656d6265722e000000600082015250565b7f596f75206861766520616c7265616479206d696e746564204e46542e00000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b7f31204e4654206d61782070657220616464726573730000000000000000000000600082015250565b7f596f7520617265206e6f74206f6e20746865206c6973742e0000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f696e76616c6964207369676e6174757265206c656e6774680000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b613cd381613798565b8114613cde57600080fd5b50565b613cea816137aa565b8114613cf557600080fd5b50565b613d01816137b6565b8114613d0c57600080fd5b50565b613d18816137c0565b8114613d2357600080fd5b50565b613d2f8161380c565b8114613d3a57600080fd5b50565b613d4681613823565b8114613d5157600080fd5b5056fea26469706673582212206999786cb48134ed1b3d465f07733ab01e83dfe3004b54f8a245681f04f65a5564736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000e458c0227eb2cddc35e1f5a42702d9b3441c228100000000000000000000000000000000000000000000000000000000000002bc
-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 5000
Arg [1] : _amountForDev (uint256): 1000
Arg [2] : _teamAddress (address): 0xe458c0227eB2CdDc35e1f5A42702d9B3441c2281
Arg [3] : royaltyFees (uint96): 700
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 000000000000000000000000e458c0227eb2cddc35e1f5a42702d9b3441c2281
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002bc
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.