ERC-721
Overview
Max Total Supply
777 CSAMURAI
Holders
335
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 CSAMURAILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CyberSamurai
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)
/** *Submitted for verification at Etherscan.io on 2022-07-20 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 ) external; /** * @dev Transfers `tokenId` token 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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // 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); } pragma solidity ^0.8.4; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } pragma solidity ^0.8.4; /** * @dev Interface of an ERC721ABurnable compliant contract. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; } pragma solidity ^0.8.4; /** * @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; } } pragma solidity ^0.8.4; /** * @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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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); } } pragma solidity ^0.8.4; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } pragma solidity ^0.8.4; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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` 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @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 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 auxillary 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 auxillary 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 { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly {// Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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; return ownership; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ 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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // 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 `_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)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // 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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool 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)) } } } } /** * @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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } {// Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } pragma solidity ^0.8.4; /** * @title ERC721A Burnable Token * @dev ERC721A Token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } } pragma solidity ^0.8.4; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } pragma solidity ^0.8.4; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } pragma solidity ^0.8.4; contract CyberSamurai is ERC721AQueryable, ERC721ABurnable, Ownable { using EnumerableSet for EnumerableSet.UintSet; uint256 public constant MAX_SUPPLY = 777; uint256 public maxByWallet = 10; mapping(address => uint256) public mintedByWallet; // 0:close | 1:open bool public saleState; bool public collectMarketing = true; //baseURI string public baseURI; //uriSuffix string public uriSuffix; constructor( string memory name, string memory symbol, string memory baseURI_, string memory uriSuffix_ ) ERC721A(name, symbol) { baseURI = baseURI_; uriSuffix = uriSuffix_; } uint256 public MINT_PRICE = .003 ether; /******************** PUBLIC ********************/ function mint(uint256 amount) external payable { require(msg.sender == tx.origin, "not allowed"); require(saleState, "Sale is closed!"); require(_totalMinted() + amount <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); require(amount > 0, "Amount can't be 0"); require(amount + mintedByWallet[msg.sender] <= maxByWallet, "Exceed maxByWallet"); if (collectMarketing) { require(amount * MINT_PRICE <= msg.value, "Invalid payment amount"); } mintedByWallet[msg.sender] += amount; _safeMint(msg.sender, amount); } /******************** OVERRIDES ********************/ function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); if (bytes(baseURI).length == 0) { return _toString(tokenId); } return string(abi.encodePacked(baseURI, _toString(tokenId), uriSuffix)); } /******************** OWNER ********************/ /// @notice Set baseURI. /// @param newBaseURI New baseURI. /// @param newUriSuffix New uriSuffix. function setBaseURI(string memory newBaseURI, string memory newUriSuffix) external onlyOwner { baseURI = newBaseURI; uriSuffix = newUriSuffix; } /// @notice Set saleState. /// @param newSaleState New sale state. function setSaleState(bool newSaleState) external onlyOwner { saleState = newSaleState; } /// @notice Set collectMarketing. /// @param newCollectMarketing New collect marketing flag. function setCollectMarketing(bool newCollectMarketing) external onlyOwner { collectMarketing = newCollectMarketing; } /// @notice Set maxByWallet. /// @param newMaxByWallet New max by wallet function setMaxByWallet(uint256 newMaxByWallet) external onlyOwner { maxByWallet = newMaxByWallet; } /******************** ALPHA MINT ********************/ function alphaMint(address[] calldata addresses, uint256[] calldata count) external onlyOwner { require(!saleState, "sale is open!"); require(addresses.length == count.length, "mismatching lengths!"); for (uint256 i; i < addresses.length; i++) { _safeMint(addresses[i], count[i]); } require(_totalMinted() <= MAX_SUPPLY, "Exceed MAX_SUPPLY"); } function withdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"string","name":"uriSuffix_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"count","type":"uint256[]"}],"name":"alphaMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectMarketing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"maxByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newUriSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newCollectMarketing","type":"bool"}],"name":"setCollectMarketing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxByWallet","type":"uint256"}],"name":"setMaxByWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newSaleState","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a6009556001600b60016101000a81548160ff021916908315150217905550660aa87bee538000600e553480156200003c57600080fd5b50604051620049513803806200495183398181016040528101906200006291906200030f565b838381600290805190602001906200007c929190620001e1565b50806003908051906020019062000095929190620001e1565b50620000a66200010a60201b60201c565b6000819055505050620000ce620000c26200011360201b60201c565b6200011b60201b60201c565b81600c9080519060200190620000e6929190620001e1565b5080600d9080519060200190620000ff929190620001e1565b505050505062000581565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001ef9062000492565b90600052602060002090601f0160209004810192826200021357600085556200025f565b82601f106200022e57805160ff19168380011785556200025f565b828001600101855582156200025f579182015b828111156200025e57825182559160200191906001019062000241565b5b5090506200026e919062000272565b5090565b5b808211156200028d57600081600090555060010162000273565b5090565b6000620002a8620002a28462000426565b620003fd565b905082815260208101848484011115620002c757620002c662000561565b5b620002d48482856200045c565b509392505050565b600082601f830112620002f457620002f36200055c565b5b81516200030684826020860162000291565b91505092915050565b600080600080608085870312156200032c576200032b6200056b565b5b600085015167ffffffffffffffff8111156200034d576200034c62000566565b5b6200035b87828801620002dc565b945050602085015167ffffffffffffffff8111156200037f576200037e62000566565b5b6200038d87828801620002dc565b935050604085015167ffffffffffffffff811115620003b157620003b062000566565b5b620003bf87828801620002dc565b925050606085015167ffffffffffffffff811115620003e357620003e262000566565b5b620003f187828801620002dc565b91505092959194509250565b6000620004096200041c565b9050620004178282620004c8565b919050565b6000604051905090565b600067ffffffffffffffff8211156200044457620004436200052d565b5b6200044f8262000570565b9050602081019050919050565b60005b838110156200047c5780820151818401526020810190506200045f565b838111156200048c576000848401525b50505050565b60006002820490506001821680620004ab57607f821691505b60208210811415620004c257620004c1620004fe565b5b50919050565b620004d38262000570565b810181811067ffffffffffffffff82111715620004f557620004f46200052d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6143c080620005916000396000f3fe60806040526004361061021a5760003560e01c80636790a9de11610123578063a0712d68116100ab578063c4e370951161006f578063c4e37095146107d8578063c87b56dd14610801578063e985e9c51461083e578063f09a03c01461087b578063f2fde38b146108a45761021a565b8063a0712d6814610702578063a22cb4651461071e578063b88d4fde14610747578063c002d23d14610770578063c23dc68f1461079b5761021a565b80638462151c116100f25780638462151c146106075780638da5cb5b146106445780639434b8051461066f57806395d89b411461069a57806399a2557a146106c55761021a565b80636790a9de1461055f5780636c0360eb1461058857806370a08231146105b3578063715018a6146105f05761021a565b806332cb6b0c116101a657806342966c681161017557806342966c68146104665780635503a0e81461048f5780635bbb2177146104ba578063603f4d52146104f75780636352211e146105225761021a565b806332cb6b0c146103d057806334ecc70a146103fb5780633ccfd60b1461042657806342842e0e1461043d5761021a565b80630d758111116101ed5780630d758111146102ed57806317d985141461032a57806318160ddd1461035357806323b872dd1461037e5780632e067421146103a75761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b50610246600480360381019061024191906134f9565b6108cd565b6040516102539190613b2d565b60405180910390f35b34801561026857600080fd5b5061027161095f565b60405161027e9190613b48565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906135cb565b6109f1565b6040516102bb9190613a82565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e6919061336f565b610a6d565b005b3480156102f957600080fd5b50610314600480360381019061030f91906131ec565b610c14565b6040516103219190613cc5565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c91906134cc565b610c2c565b005b34801561035f57600080fd5b50610368610cc5565b6040516103759190613cc5565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190613259565b610cdc565b005b3480156103b357600080fd5b506103ce60048036038101906103c991906135cb565b610cec565b005b3480156103dc57600080fd5b506103e5610d72565b6040516103f29190613cc5565b60405180910390f35b34801561040757600080fd5b50610410610d78565b60405161041d9190613cc5565b60405180910390f35b34801561043257600080fd5b5061043b610d7e565b005b34801561044957600080fd5b50610464600480360381019061045f9190613259565b610e4a565b005b34801561047257600080fd5b5061048d600480360381019061048891906135cb565b610e6a565b005b34801561049b57600080fd5b506104a4610e78565b6040516104b19190613b48565b60405180910390f35b3480156104c657600080fd5b506104e160048036038101906104dc9190613483565b610f06565b6040516104ee9190613ae9565b60405180910390f35b34801561050357600080fd5b5061050c610fc7565b6040516105199190613b2d565b60405180910390f35b34801561052e57600080fd5b50610549600480360381019061054491906135cb565b610fda565b6040516105569190613a82565b60405180910390f35b34801561056b57600080fd5b5061058660048036038101906105819190613553565b610fec565b005b34801561059457600080fd5b5061059d61109a565b6040516105aa9190613b48565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d591906131ec565b611128565b6040516105e79190613cc5565b60405180910390f35b3480156105fc57600080fd5b506106056111e1565b005b34801561061357600080fd5b5061062e600480360381019061062991906131ec565b611269565b60405161063b9190613b0b565b60405180910390f35b34801561065057600080fd5b506106596113b3565b6040516106669190613a82565b60405180910390f35b34801561067b57600080fd5b506106846113dd565b6040516106919190613b2d565b60405180910390f35b3480156106a657600080fd5b506106af6113f0565b6040516106bc9190613b48565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e791906133af565b611482565b6040516106f99190613b0b565b60405180910390f35b61071c600480360381019061071791906135cb565b611696565b005b34801561072a57600080fd5b506107456004803603810190610740919061332f565b611945565b005b34801561075357600080fd5b5061076e600480360381019061076991906132ac565b611abd565b005b34801561077c57600080fd5b50610785611b30565b6040516107929190613cc5565b60405180910390f35b3480156107a757600080fd5b506107c260048036038101906107bd91906135cb565b611b36565b6040516107cf9190613caa565b60405180910390f35b3480156107e457600080fd5b506107ff60048036038101906107fa91906134cc565b611ba0565b005b34801561080d57600080fd5b50610828600480360381019061082391906135cb565b611c39565b6040516108359190613b48565b60405180910390f35b34801561084a57600080fd5b5061086560048036038101906108609190613219565b611cd7565b6040516108729190613b2d565b60405180910390f35b34801561088757600080fd5b506108a2600480360381019061089d9190613402565b611d6b565b005b3480156108b057600080fd5b506108cb60048036038101906108c691906131ec565b611f3d565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061092857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109585750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461096e90613fd7565b80601f016020809104026020016040519081016040528092919081815260200182805461099a90613fd7565b80156109e75780601f106109bc576101008083540402835291602001916109e7565b820191906000526020600020905b8154815290600101906020018083116109ca57829003601f168201915b5050505050905090565b60006109fc82612035565b610a32576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a7882612094565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ae0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aff612162565b73ffffffffffffffffffffffffffffffffffffffff1614610b6257610b2b81610b26612162565b611cd7565b610b61576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528060005260406000206000915090505481565b610c3461216a565b73ffffffffffffffffffffffffffffffffffffffff16610c526113b3565b73ffffffffffffffffffffffffffffffffffffffff1614610ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9f90613c6a565b60405180910390fd5b80600b60016101000a81548160ff02191690831515021790555050565b6000610ccf612172565b6001546000540303905090565b610ce783838361217b565b505050565b610cf461216a565b73ffffffffffffffffffffffffffffffffffffffff16610d126113b3565b73ffffffffffffffffffffffffffffffffffffffff1614610d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5f90613c6a565b60405180910390fd5b8060098190555050565b61030981565b60095481565b610d8661216a565b73ffffffffffffffffffffffffffffffffffffffff16610da46113b3565b73ffffffffffffffffffffffffffffffffffffffff1614610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190613c6a565b60405180910390fd5b610e026113b3565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610e47573d6000803e3d6000fd5b50565b610e6583838360405180602001604052806000815250611abd565b505050565b610e75816001612525565b50565b600d8054610e8590613fd7565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb190613fd7565b8015610efe5780601f10610ed357610100808354040283529160200191610efe565b820191906000526020600020905b815481529060010190602001808311610ee157829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115610f2a57610f29614110565b5b604051908082528060200260200182016040528015610f6357816020015b610f50612e73565b815260200190600190039081610f485790505b50905060005b828114610fbc57610f93858281518110610f8657610f856140e1565b5b6020026020010151611b36565b828281518110610fa657610fa56140e1565b5b6020026020010181905250806001019050610f69565b508092505050919050565b600b60009054906101000a900460ff1681565b6000610fe582612094565b9050919050565b610ff461216a565b73ffffffffffffffffffffffffffffffffffffffff166110126113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105f90613c6a565b60405180910390fd5b81600c908051906020019061107e929190612eb6565b5080600d9080519060200190611095929190612eb6565b505050565b600c80546110a790613fd7565b80601f01602080910402602001604051908101604052809291908181526020018280546110d390613fd7565b80156111205780601f106110f557610100808354040283529160200191611120565b820191906000526020600020905b81548152906001019060200180831161110357829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611190576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111e961216a565b73ffffffffffffffffffffffffffffffffffffffff166112076113b3565b73ffffffffffffffffffffffffffffffffffffffff161461125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125490613c6a565b60405180910390fd5b61126760006127fd565b565b6060600080600061127985611128565b905060008167ffffffffffffffff81111561129757611296614110565b5b6040519080825280602002602001820160405280156112c55781602001602082028036833780820191505090505b5090506112d0612e73565b60006112da612172565b90505b8386146113a5576112ed816128c3565b91508160400151156112fe5761139a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461133e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611399578083878060010198508151811061138c5761138b6140e1565b5b6020026020010181815250505b5b8060010190506112dd565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600b60019054906101000a900460ff1681565b6060600380546113ff90613fd7565b80601f016020809104026020016040519081016040528092919081815260200182805461142b90613fd7565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b5050505050905090565b60608183106114bd576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806114c86128ee565b90506114d2612172565b8510156114e4576114e1612172565b94505b808411156114f0578093505b60006114fb87611128565b90508486101561151e576000868603905081811015611518578091505b50611523565b600090505b60008167ffffffffffffffff81111561153f5761153e614110565b5b60405190808252806020026020018201604052801561156d5781602001602082028036833780820191505090505b5090506000821415611585578094505050505061168f565b600061159088611b36565b9050600081604001516115a557816000015190505b60008990505b8881141580156115bb5750848714155b15611681576115c9816128c3565b92508260400151156115da57611676565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461161a57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116755780848880600101995081518110611668576116676140e1565b5b6020026020010181815250505b5b8060010190506115ab565b508583528296505050505050505b9392505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb90613c2a565b60405180910390fd5b600b60009054906101000a900460ff16611753576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174a90613c0a565b60405180910390fd5b6103098161175f6128f7565b6117699190613e5d565b11156117aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a190613c8a565b60405180910390fd5b600081116117ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e490613c4a565b60405180910390fd5b600954600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548261183b9190613e5d565b111561187c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187390613b8a565b60405180910390fd5b600b60019054906101000a900460ff16156118e25734600e54826118a09190613eb3565b11156118e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d890613bca565b60405180910390fd5b5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119319190613e5d565b92505081905550611942338261290a565b50565b61194d612162565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119b2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006119bf612162565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a6c612162565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ab19190613b2d565b60405180910390a35050565b611ac884848461217b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b2a57611af384848484612928565b611b29576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e5481565b611b3e612e73565b611b46612e73565b611b4e612172565b831080611b625750611b5e6128ee565b8310155b15611b705780915050611b9b565b611b79836128c3565b9050806040015115611b8e5780915050611b9b565b611b9783612a88565b9150505b919050565b611ba861216a565b73ffffffffffffffffffffffffffffffffffffffff16611bc66113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1390613c6a565b60405180910390fd5b80600b60006101000a81548160ff02191690831515021790555050565b6060611c4482612035565b611c7a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c8054611c8990613fd7565b90501415611ca157611c9a82612aa8565b9050611cd2565b600c611cac83612aa8565b600d604051602001611cc093929190613a51565b60405160208183030381529060405290505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d7361216a565b73ffffffffffffffffffffffffffffffffffffffff16611d916113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde90613c6a565b60405180910390fd5b600b60009054906101000a900460ff1615611e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2e90613b6a565b60405180910390fd5b818190508484905014611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690613bea565b60405180910390fd5b60005b84849050811015611eea57611ed7858583818110611ea357611ea26140e1565b5b9050602002016020810190611eb891906131ec565b848484818110611ecb57611eca6140e1565b5b9050602002013561290a565b8080611ee29061403a565b915050611e82565b50610309611ef66128f7565b1115611f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2e90613c8a565b60405180910390fd5b50505050565b611f4561216a565b73ffffffffffffffffffffffffffffffffffffffff16611f636113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb090613c6a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202090613baa565b60405180910390fd5b612032816127fd565b50565b600081612040612172565b1115801561204f575060005482105b801561208d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806120a3612172565b1161212b5760005481101561212a5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612128575b600081141561211e5760046000836001900393508381526020019081526020016000205490506120f3565b809250505061215d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600033905090565b60006001905090565b600061218682612094565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661220e612162565b73ffffffffffffffffffffffffffffffffffffffff16148061223d575061223c85612237612162565b611cd7565b5b80612282575061224b612162565b73ffffffffffffffffffffffffffffffffffffffff1661226a846109f1565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806122bb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612322576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61232f8585856001612b02565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b61242c86612b08565b1717600460008581526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000831614156124b65760006001840190506000600460008381526020019081526020016000205414156124b45760005481146124b3578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461251e8585856001612b12565b5050505050565b600061253083612094565b90506000819050821561260d5760008173ffffffffffffffffffffffffffffffffffffffff1661255e612162565b73ffffffffffffffffffffffffffffffffffffffff16148061258d575061258c82612587612162565b611cd7565b5b806125d2575061259b612162565b73ffffffffffffffffffffffffffffffffffffffff166125ba866109f1565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061260b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b61261b816000866001612b02565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b6126f084612b08565b171717600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008316141561277b576000600185019050600060046000838152602001908152602001600020541415612779576000548114612778578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127e5816000866001612b12565b60016000815480929190600101919050555050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6128cb612e73565b6128e76004600084815260200190815260200160002054612b18565b9050919050565b60008054905090565b6000612901612172565b60005403905090565b612924828260405180602001604052806000815250612bb4565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261294e612162565b8786866040518563ffffffff1660e01b81526004016129709493929190613a9d565b602060405180830381600087803b15801561298a57600080fd5b505af19250505080156129bb57506040513d601f19601f820116820180604052508101906129b89190613526565b60015b612a35573d80600081146129eb576040519150601f19603f3d011682016040523d82523d6000602084013e6129f0565b606091505b50600081511415612a2d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612a90612e73565b612aa1612a9c83612094565b612b18565b9050919050565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612aee57600183039250600a81066030018353600a81049050612ace565b508181036020830392508083525050919050565b50505050565b6000819050919050565b50505050565b612b20612e73565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c21576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415612c5c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c696000858386612b02565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1612cce60018514612e69565b901b60a042901b612cde86612b08565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b14612de2575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d926000878480600101955087612928565b612dc8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210612d23578260005414612ddd57600080fd5b612e4d565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612de3575b816000819055505050612e636000858386612b12565b50505050565b6000819050919050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b828054612ec290613fd7565b90600052602060002090601f016020900481019282612ee45760008555612f2b565b82601f10612efd57805160ff1916838001178555612f2b565b82800160010185558215612f2b579182015b82811115612f2a578251825591602001919060010190612f0f565b5b509050612f389190612f3c565b5090565b5b80821115612f55576000816000905550600101612f3d565b5090565b6000612f6c612f6784613d05565b613ce0565b90508083825260208201905082856020860282011115612f8f57612f8e614149565b5b60005b85811015612fbf5781612fa588826131d7565b845260208401935060208301925050600181019050612f92565b5050509392505050565b6000612fdc612fd784613d31565b613ce0565b905082815260208101848484011115612ff857612ff761414e565b5b613003848285613f95565b509392505050565b600061301e61301984613d62565b613ce0565b90508281526020810184848401111561303a5761303961414e565b5b613045848285613f95565b509392505050565b60008135905061305c8161432e565b92915050565b60008083601f84011261307857613077614144565b5b8235905067ffffffffffffffff8111156130955761309461413f565b5b6020830191508360208202830111156130b1576130b0614149565b5b9250929050565b60008083601f8401126130ce576130cd614144565b5b8235905067ffffffffffffffff8111156130eb576130ea61413f565b5b60208301915083602082028301111561310757613106614149565b5b9250929050565b600082601f83011261312357613122614144565b5b8135613133848260208601612f59565b91505092915050565b60008135905061314b81614345565b92915050565b6000813590506131608161435c565b92915050565b6000815190506131758161435c565b92915050565b600082601f8301126131905761318f614144565b5b81356131a0848260208601612fc9565b91505092915050565b600082601f8301126131be576131bd614144565b5b81356131ce84826020860161300b565b91505092915050565b6000813590506131e681614373565b92915050565b60006020828403121561320257613201614158565b5b60006132108482850161304d565b91505092915050565b600080604083850312156132305761322f614158565b5b600061323e8582860161304d565b925050602061324f8582860161304d565b9150509250929050565b60008060006060848603121561327257613271614158565b5b60006132808682870161304d565b93505060206132918682870161304d565b92505060406132a2868287016131d7565b9150509250925092565b600080600080608085870312156132c6576132c5614158565b5b60006132d48782880161304d565b94505060206132e58782880161304d565b93505060406132f6878288016131d7565b925050606085013567ffffffffffffffff81111561331757613316614153565b5b6133238782880161317b565b91505092959194509250565b6000806040838503121561334657613345614158565b5b60006133548582860161304d565b92505060206133658582860161313c565b9150509250929050565b6000806040838503121561338657613385614158565b5b60006133948582860161304d565b92505060206133a5858286016131d7565b9150509250929050565b6000806000606084860312156133c8576133c7614158565b5b60006133d68682870161304d565b93505060206133e7868287016131d7565b92505060406133f8868287016131d7565b9150509250925092565b6000806000806040858703121561341c5761341b614158565b5b600085013567ffffffffffffffff81111561343a57613439614153565b5b61344687828801613062565b9450945050602085013567ffffffffffffffff81111561346957613468614153565b5b613475878288016130b8565b925092505092959194509250565b60006020828403121561349957613498614158565b5b600082013567ffffffffffffffff8111156134b7576134b6614153565b5b6134c38482850161310e565b91505092915050565b6000602082840312156134e2576134e1614158565b5b60006134f08482850161313c565b91505092915050565b60006020828403121561350f5761350e614158565b5b600061351d84828501613151565b91505092915050565b60006020828403121561353c5761353b614158565b5b600061354a84828501613166565b91505092915050565b6000806040838503121561356a57613569614158565b5b600083013567ffffffffffffffff81111561358857613587614153565b5b613594858286016131a9565b925050602083013567ffffffffffffffff8111156135b5576135b4614153565b5b6135c1858286016131a9565b9150509250929050565b6000602082840312156135e1576135e0614158565b5b60006135ef848285016131d7565b91505092915050565b600061360483836139a0565b60608301905092915050565b600061361c8383613a24565b60208301905092915050565b61363181613f0d565b82525050565b61364081613f0d565b82525050565b600061365182613dc8565b61365b8185613e0e565b935061366683613d93565b8060005b8381101561369757815161367e88826135f8565b975061368983613df4565b92505060018101905061366a565b5085935050505092915050565b60006136af82613dd3565b6136b98185613e1f565b93506136c483613da3565b8060005b838110156136f55781516136dc8882613610565b97506136e783613e01565b9250506001810190506136c8565b5085935050505092915050565b61370b81613f1f565b82525050565b61371a81613f1f565b82525050565b600061372b82613dde565b6137358185613e30565b9350613745818560208601613fa4565b61374e8161415d565b840191505092915050565b600061376482613de9565b61376e8185613e41565b935061377e818560208601613fa4565b6137878161415d565b840191505092915050565b600061379d82613de9565b6137a78185613e52565b93506137b7818560208601613fa4565b80840191505092915050565b600081546137d081613fd7565b6137da8186613e52565b945060018216600081146137f5576001811461380657613839565b60ff19831686528186019350613839565b61380f85613db3565b60005b8381101561383157815481890152600182019150602081019050613812565b838801955050505b50505092915050565b600061384f600d83613e41565b915061385a8261416e565b602082019050919050565b6000613872601283613e41565b915061387d82614197565b602082019050919050565b6000613895602683613e41565b91506138a0826141c0565b604082019050919050565b60006138b8601683613e41565b91506138c38261420f565b602082019050919050565b60006138db601483613e41565b91506138e682614238565b602082019050919050565b60006138fe600f83613e41565b915061390982614261565b602082019050919050565b6000613921600b83613e41565b915061392c8261428a565b602082019050919050565b6000613944601183613e41565b915061394f826142b3565b602082019050919050565b6000613967602083613e41565b9150613972826142dc565b602082019050919050565b600061398a601183613e41565b915061399582614305565b602082019050919050565b6060820160008201516139b66000850182613628565b5060208201516139c96020850182613a42565b5060408201516139dc6040850182613702565b50505050565b6060820160008201516139f86000850182613628565b506020820151613a0b6020850182613a42565b506040820151613a1e6040850182613702565b50505050565b613a2d81613f77565b82525050565b613a3c81613f77565b82525050565b613a4b81613f81565b82525050565b6000613a5d82866137c3565b9150613a698285613792565b9150613a7582846137c3565b9150819050949350505050565b6000602082019050613a976000830184613637565b92915050565b6000608082019050613ab26000830187613637565b613abf6020830186613637565b613acc6040830185613a33565b8181036060830152613ade8184613720565b905095945050505050565b60006020820190508181036000830152613b038184613646565b905092915050565b60006020820190508181036000830152613b2581846136a4565b905092915050565b6000602082019050613b426000830184613711565b92915050565b60006020820190508181036000830152613b628184613759565b905092915050565b60006020820190508181036000830152613b8381613842565b9050919050565b60006020820190508181036000830152613ba381613865565b9050919050565b60006020820190508181036000830152613bc381613888565b9050919050565b60006020820190508181036000830152613be3816138ab565b9050919050565b60006020820190508181036000830152613c03816138ce565b9050919050565b60006020820190508181036000830152613c23816138f1565b9050919050565b60006020820190508181036000830152613c4381613914565b9050919050565b60006020820190508181036000830152613c6381613937565b9050919050565b60006020820190508181036000830152613c838161395a565b9050919050565b60006020820190508181036000830152613ca38161397d565b9050919050565b6000606082019050613cbf60008301846139e2565b92915050565b6000602082019050613cda6000830184613a33565b92915050565b6000613cea613cfb565b9050613cf68282614009565b919050565b6000604051905090565b600067ffffffffffffffff821115613d2057613d1f614110565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613d4c57613d4b614110565b5b613d558261415d565b9050602081019050919050565b600067ffffffffffffffff821115613d7d57613d7c614110565b5b613d868261415d565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e6882613f77565b9150613e7383613f77565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ea857613ea7614083565b5b828201905092915050565b6000613ebe82613f77565b9150613ec983613f77565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f0257613f01614083565b5b828202905092915050565b6000613f1882613f57565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613fc2578082015181840152602081019050613fa7565b83811115613fd1576000848401525b50505050565b60006002820490506001821680613fef57607f821691505b60208210811415614003576140026140b2565b5b50919050565b6140128261415d565b810181811067ffffffffffffffff8211171561403157614030614110565b5b80604052505050565b600061404582613f77565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561407857614077614083565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f73616c65206973206f70656e2100000000000000000000000000000000000000600082015250565b7f457863656564206d6178427957616c6c65740000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e76616c6964207061796d656e7420616d6f756e7400000000000000000000600082015250565b7f6d69736d61746368696e67206c656e6774687321000000000000000000000000600082015250565b7f53616c6520697320636c6f736564210000000000000000000000000000000000600082015250565b7f6e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b7f416d6f756e742063616e27742062652030000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f457863656564204d41585f535550504c59000000000000000000000000000000600082015250565b61433781613f0d565b811461434257600080fd5b50565b61434e81613f1f565b811461435957600080fd5b50565b61436581613f2b565b811461437057600080fd5b50565b61437c81613f77565b811461438757600080fd5b5056fea26469706673582212203b6406aacd181c544cdc562df8dc034a0fc1d2e01d95864bcdae7b8acd6f5c1d64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000c437962657253616d75726169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084353414d55524149000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6d696e742e637962657273616d757261692e6172742f6170692f6d6574612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636790a9de11610123578063a0712d68116100ab578063c4e370951161006f578063c4e37095146107d8578063c87b56dd14610801578063e985e9c51461083e578063f09a03c01461087b578063f2fde38b146108a45761021a565b8063a0712d6814610702578063a22cb4651461071e578063b88d4fde14610747578063c002d23d14610770578063c23dc68f1461079b5761021a565b80638462151c116100f25780638462151c146106075780638da5cb5b146106445780639434b8051461066f57806395d89b411461069a57806399a2557a146106c55761021a565b80636790a9de1461055f5780636c0360eb1461058857806370a08231146105b3578063715018a6146105f05761021a565b806332cb6b0c116101a657806342966c681161017557806342966c68146104665780635503a0e81461048f5780635bbb2177146104ba578063603f4d52146104f75780636352211e146105225761021a565b806332cb6b0c146103d057806334ecc70a146103fb5780633ccfd60b1461042657806342842e0e1461043d5761021a565b80630d758111116101ed5780630d758111146102ed57806317d985141461032a57806318160ddd1461035357806323b872dd1461037e5780632e067421146103a75761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b50610246600480360381019061024191906134f9565b6108cd565b6040516102539190613b2d565b60405180910390f35b34801561026857600080fd5b5061027161095f565b60405161027e9190613b48565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906135cb565b6109f1565b6040516102bb9190613a82565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e6919061336f565b610a6d565b005b3480156102f957600080fd5b50610314600480360381019061030f91906131ec565b610c14565b6040516103219190613cc5565b60405180910390f35b34801561033657600080fd5b50610351600480360381019061034c91906134cc565b610c2c565b005b34801561035f57600080fd5b50610368610cc5565b6040516103759190613cc5565b60405180910390f35b34801561038a57600080fd5b506103a560048036038101906103a09190613259565b610cdc565b005b3480156103b357600080fd5b506103ce60048036038101906103c991906135cb565b610cec565b005b3480156103dc57600080fd5b506103e5610d72565b6040516103f29190613cc5565b60405180910390f35b34801561040757600080fd5b50610410610d78565b60405161041d9190613cc5565b60405180910390f35b34801561043257600080fd5b5061043b610d7e565b005b34801561044957600080fd5b50610464600480360381019061045f9190613259565b610e4a565b005b34801561047257600080fd5b5061048d600480360381019061048891906135cb565b610e6a565b005b34801561049b57600080fd5b506104a4610e78565b6040516104b19190613b48565b60405180910390f35b3480156104c657600080fd5b506104e160048036038101906104dc9190613483565b610f06565b6040516104ee9190613ae9565b60405180910390f35b34801561050357600080fd5b5061050c610fc7565b6040516105199190613b2d565b60405180910390f35b34801561052e57600080fd5b50610549600480360381019061054491906135cb565b610fda565b6040516105569190613a82565b60405180910390f35b34801561056b57600080fd5b5061058660048036038101906105819190613553565b610fec565b005b34801561059457600080fd5b5061059d61109a565b6040516105aa9190613b48565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d591906131ec565b611128565b6040516105e79190613cc5565b60405180910390f35b3480156105fc57600080fd5b506106056111e1565b005b34801561061357600080fd5b5061062e600480360381019061062991906131ec565b611269565b60405161063b9190613b0b565b60405180910390f35b34801561065057600080fd5b506106596113b3565b6040516106669190613a82565b60405180910390f35b34801561067b57600080fd5b506106846113dd565b6040516106919190613b2d565b60405180910390f35b3480156106a657600080fd5b506106af6113f0565b6040516106bc9190613b48565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e791906133af565b611482565b6040516106f99190613b0b565b60405180910390f35b61071c600480360381019061071791906135cb565b611696565b005b34801561072a57600080fd5b506107456004803603810190610740919061332f565b611945565b005b34801561075357600080fd5b5061076e600480360381019061076991906132ac565b611abd565b005b34801561077c57600080fd5b50610785611b30565b6040516107929190613cc5565b60405180910390f35b3480156107a757600080fd5b506107c260048036038101906107bd91906135cb565b611b36565b6040516107cf9190613caa565b60405180910390f35b3480156107e457600080fd5b506107ff60048036038101906107fa91906134cc565b611ba0565b005b34801561080d57600080fd5b50610828600480360381019061082391906135cb565b611c39565b6040516108359190613b48565b60405180910390f35b34801561084a57600080fd5b5061086560048036038101906108609190613219565b611cd7565b6040516108729190613b2d565b60405180910390f35b34801561088757600080fd5b506108a2600480360381019061089d9190613402565b611d6b565b005b3480156108b057600080fd5b506108cb60048036038101906108c691906131ec565b611f3d565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061092857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109585750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461096e90613fd7565b80601f016020809104026020016040519081016040528092919081815260200182805461099a90613fd7565b80156109e75780601f106109bc576101008083540402835291602001916109e7565b820191906000526020600020905b8154815290600101906020018083116109ca57829003601f168201915b5050505050905090565b60006109fc82612035565b610a32576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a7882612094565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ae0576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aff612162565b73ffffffffffffffffffffffffffffffffffffffff1614610b6257610b2b81610b26612162565b611cd7565b610b61576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a6020528060005260406000206000915090505481565b610c3461216a565b73ffffffffffffffffffffffffffffffffffffffff16610c526113b3565b73ffffffffffffffffffffffffffffffffffffffff1614610ca8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9f90613c6a565b60405180910390fd5b80600b60016101000a81548160ff02191690831515021790555050565b6000610ccf612172565b6001546000540303905090565b610ce783838361217b565b505050565b610cf461216a565b73ffffffffffffffffffffffffffffffffffffffff16610d126113b3565b73ffffffffffffffffffffffffffffffffffffffff1614610d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5f90613c6a565b60405180910390fd5b8060098190555050565b61030981565b60095481565b610d8661216a565b73ffffffffffffffffffffffffffffffffffffffff16610da46113b3565b73ffffffffffffffffffffffffffffffffffffffff1614610dfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df190613c6a565b60405180910390fd5b610e026113b3565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610e47573d6000803e3d6000fd5b50565b610e6583838360405180602001604052806000815250611abd565b505050565b610e75816001612525565b50565b600d8054610e8590613fd7565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb190613fd7565b8015610efe5780601f10610ed357610100808354040283529160200191610efe565b820191906000526020600020905b815481529060010190602001808311610ee157829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115610f2a57610f29614110565b5b604051908082528060200260200182016040528015610f6357816020015b610f50612e73565b815260200190600190039081610f485790505b50905060005b828114610fbc57610f93858281518110610f8657610f856140e1565b5b6020026020010151611b36565b828281518110610fa657610fa56140e1565b5b6020026020010181905250806001019050610f69565b508092505050919050565b600b60009054906101000a900460ff1681565b6000610fe582612094565b9050919050565b610ff461216a565b73ffffffffffffffffffffffffffffffffffffffff166110126113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105f90613c6a565b60405180910390fd5b81600c908051906020019061107e929190612eb6565b5080600d9080519060200190611095929190612eb6565b505050565b600c80546110a790613fd7565b80601f01602080910402602001604051908101604052809291908181526020018280546110d390613fd7565b80156111205780601f106110f557610100808354040283529160200191611120565b820191906000526020600020905b81548152906001019060200180831161110357829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611190576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111e961216a565b73ffffffffffffffffffffffffffffffffffffffff166112076113b3565b73ffffffffffffffffffffffffffffffffffffffff161461125d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125490613c6a565b60405180910390fd5b61126760006127fd565b565b6060600080600061127985611128565b905060008167ffffffffffffffff81111561129757611296614110565b5b6040519080825280602002602001820160405280156112c55781602001602082028036833780820191505090505b5090506112d0612e73565b60006112da612172565b90505b8386146113a5576112ed816128c3565b91508160400151156112fe5761139a565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461133e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611399578083878060010198508151811061138c5761138b6140e1565b5b6020026020010181815250505b5b8060010190506112dd565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600b60019054906101000a900460ff1681565b6060600380546113ff90613fd7565b80601f016020809104026020016040519081016040528092919081815260200182805461142b90613fd7565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b5050505050905090565b60608183106114bd576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806114c86128ee565b90506114d2612172565b8510156114e4576114e1612172565b94505b808411156114f0578093505b60006114fb87611128565b90508486101561151e576000868603905081811015611518578091505b50611523565b600090505b60008167ffffffffffffffff81111561153f5761153e614110565b5b60405190808252806020026020018201604052801561156d5781602001602082028036833780820191505090505b5090506000821415611585578094505050505061168f565b600061159088611b36565b9050600081604001516115a557816000015190505b60008990505b8881141580156115bb5750848714155b15611681576115c9816128c3565b92508260400151156115da57611676565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461161a57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116755780848880600101995081518110611668576116676140e1565b5b6020026020010181815250505b5b8060010190506115ab565b508583528296505050505050505b9392505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fb90613c2a565b60405180910390fd5b600b60009054906101000a900460ff16611753576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174a90613c0a565b60405180910390fd5b6103098161175f6128f7565b6117699190613e5d565b11156117aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a190613c8a565b60405180910390fd5b600081116117ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e490613c4a565b60405180910390fd5b600954600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548261183b9190613e5d565b111561187c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187390613b8a565b60405180910390fd5b600b60019054906101000a900460ff16156118e25734600e54826118a09190613eb3565b11156118e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d890613bca565b60405180910390fd5b5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119319190613e5d565b92505081905550611942338261290a565b50565b61194d612162565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119b2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006119bf612162565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a6c612162565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ab19190613b2d565b60405180910390a35050565b611ac884848461217b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611b2a57611af384848484612928565b611b29576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e5481565b611b3e612e73565b611b46612e73565b611b4e612172565b831080611b625750611b5e6128ee565b8310155b15611b705780915050611b9b565b611b79836128c3565b9050806040015115611b8e5780915050611b9b565b611b9783612a88565b9150505b919050565b611ba861216a565b73ffffffffffffffffffffffffffffffffffffffff16611bc66113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1390613c6a565b60405180910390fd5b80600b60006101000a81548160ff02191690831515021790555050565b6060611c4482612035565b611c7a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c8054611c8990613fd7565b90501415611ca157611c9a82612aa8565b9050611cd2565b600c611cac83612aa8565b600d604051602001611cc093929190613a51565b60405160208183030381529060405290505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d7361216a565b73ffffffffffffffffffffffffffffffffffffffff16611d916113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde90613c6a565b60405180910390fd5b600b60009054906101000a900460ff1615611e37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2e90613b6a565b60405180910390fd5b818190508484905014611e7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7690613bea565b60405180910390fd5b60005b84849050811015611eea57611ed7858583818110611ea357611ea26140e1565b5b9050602002016020810190611eb891906131ec565b848484818110611ecb57611eca6140e1565b5b9050602002013561290a565b8080611ee29061403a565b915050611e82565b50610309611ef66128f7565b1115611f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2e90613c8a565b60405180910390fd5b50505050565b611f4561216a565b73ffffffffffffffffffffffffffffffffffffffff16611f636113b3565b73ffffffffffffffffffffffffffffffffffffffff1614611fb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb090613c6a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202090613baa565b60405180910390fd5b612032816127fd565b50565b600081612040612172565b1115801561204f575060005482105b801561208d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600080829050806120a3612172565b1161212b5760005481101561212a5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612128575b600081141561211e5760046000836001900393508381526020019081526020016000205490506120f3565b809250505061215d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600033905090565b60006001905090565b600061218682612094565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146121ed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661220e612162565b73ffffffffffffffffffffffffffffffffffffffff16148061223d575061223c85612237612162565b611cd7565b5b80612282575061224b612162565b73ffffffffffffffffffffffffffffffffffffffff1661226a846109f1565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806122bb576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612322576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61232f8585856001612b02565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b61242c86612b08565b1717600460008581526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000831614156124b65760006001840190506000600460008381526020019081526020016000205414156124b45760005481146124b3578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461251e8585856001612b12565b5050505050565b600061253083612094565b90506000819050821561260d5760008173ffffffffffffffffffffffffffffffffffffffff1661255e612162565b73ffffffffffffffffffffffffffffffffffffffff16148061258d575061258c82612587612162565b611cd7565b5b806125d2575061259b612162565b73ffffffffffffffffffffffffffffffffffffffff166125ba866109f1565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061260b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b61261b816000866001612b02565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b6126f084612b08565b171717600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008316141561277b576000600185019050600060046000838152602001908152602001600020541415612779576000548114612778578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127e5816000866001612b12565b60016000815480929190600101919050555050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6128cb612e73565b6128e76004600084815260200190815260200160002054612b18565b9050919050565b60008054905090565b6000612901612172565b60005403905090565b612924828260405180602001604052806000815250612bb4565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261294e612162565b8786866040518563ffffffff1660e01b81526004016129709493929190613a9d565b602060405180830381600087803b15801561298a57600080fd5b505af19250505080156129bb57506040513d601f19601f820116820180604052508101906129b89190613526565b60015b612a35573d80600081146129eb576040519150601f19603f3d011682016040523d82523d6000602084013e6129f0565b606091505b50600081511415612a2d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612a90612e73565b612aa1612a9c83612094565b612b18565b9050919050565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612aee57600183039250600a81066030018353600a81049050612ace565b508181036020830392508083525050919050565b50505050565b6000819050919050565b50505050565b612b20612e73565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612c21576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415612c5c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c696000858386612b02565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1612cce60018514612e69565b901b60a042901b612cde86612b08565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b14612de2575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d926000878480600101955087612928565b612dc8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210612d23578260005414612ddd57600080fd5b612e4d565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612de3575b816000819055505050612e636000858386612b12565b50505050565b6000819050919050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b828054612ec290613fd7565b90600052602060002090601f016020900481019282612ee45760008555612f2b565b82601f10612efd57805160ff1916838001178555612f2b565b82800160010185558215612f2b579182015b82811115612f2a578251825591602001919060010190612f0f565b5b509050612f389190612f3c565b5090565b5b80821115612f55576000816000905550600101612f3d565b5090565b6000612f6c612f6784613d05565b613ce0565b90508083825260208201905082856020860282011115612f8f57612f8e614149565b5b60005b85811015612fbf5781612fa588826131d7565b845260208401935060208301925050600181019050612f92565b5050509392505050565b6000612fdc612fd784613d31565b613ce0565b905082815260208101848484011115612ff857612ff761414e565b5b613003848285613f95565b509392505050565b600061301e61301984613d62565b613ce0565b90508281526020810184848401111561303a5761303961414e565b5b613045848285613f95565b509392505050565b60008135905061305c8161432e565b92915050565b60008083601f84011261307857613077614144565b5b8235905067ffffffffffffffff8111156130955761309461413f565b5b6020830191508360208202830111156130b1576130b0614149565b5b9250929050565b60008083601f8401126130ce576130cd614144565b5b8235905067ffffffffffffffff8111156130eb576130ea61413f565b5b60208301915083602082028301111561310757613106614149565b5b9250929050565b600082601f83011261312357613122614144565b5b8135613133848260208601612f59565b91505092915050565b60008135905061314b81614345565b92915050565b6000813590506131608161435c565b92915050565b6000815190506131758161435c565b92915050565b600082601f8301126131905761318f614144565b5b81356131a0848260208601612fc9565b91505092915050565b600082601f8301126131be576131bd614144565b5b81356131ce84826020860161300b565b91505092915050565b6000813590506131e681614373565b92915050565b60006020828403121561320257613201614158565b5b60006132108482850161304d565b91505092915050565b600080604083850312156132305761322f614158565b5b600061323e8582860161304d565b925050602061324f8582860161304d565b9150509250929050565b60008060006060848603121561327257613271614158565b5b60006132808682870161304d565b93505060206132918682870161304d565b92505060406132a2868287016131d7565b9150509250925092565b600080600080608085870312156132c6576132c5614158565b5b60006132d48782880161304d565b94505060206132e58782880161304d565b93505060406132f6878288016131d7565b925050606085013567ffffffffffffffff81111561331757613316614153565b5b6133238782880161317b565b91505092959194509250565b6000806040838503121561334657613345614158565b5b60006133548582860161304d565b92505060206133658582860161313c565b9150509250929050565b6000806040838503121561338657613385614158565b5b60006133948582860161304d565b92505060206133a5858286016131d7565b9150509250929050565b6000806000606084860312156133c8576133c7614158565b5b60006133d68682870161304d565b93505060206133e7868287016131d7565b92505060406133f8868287016131d7565b9150509250925092565b6000806000806040858703121561341c5761341b614158565b5b600085013567ffffffffffffffff81111561343a57613439614153565b5b61344687828801613062565b9450945050602085013567ffffffffffffffff81111561346957613468614153565b5b613475878288016130b8565b925092505092959194509250565b60006020828403121561349957613498614158565b5b600082013567ffffffffffffffff8111156134b7576134b6614153565b5b6134c38482850161310e565b91505092915050565b6000602082840312156134e2576134e1614158565b5b60006134f08482850161313c565b91505092915050565b60006020828403121561350f5761350e614158565b5b600061351d84828501613151565b91505092915050565b60006020828403121561353c5761353b614158565b5b600061354a84828501613166565b91505092915050565b6000806040838503121561356a57613569614158565b5b600083013567ffffffffffffffff81111561358857613587614153565b5b613594858286016131a9565b925050602083013567ffffffffffffffff8111156135b5576135b4614153565b5b6135c1858286016131a9565b9150509250929050565b6000602082840312156135e1576135e0614158565b5b60006135ef848285016131d7565b91505092915050565b600061360483836139a0565b60608301905092915050565b600061361c8383613a24565b60208301905092915050565b61363181613f0d565b82525050565b61364081613f0d565b82525050565b600061365182613dc8565b61365b8185613e0e565b935061366683613d93565b8060005b8381101561369757815161367e88826135f8565b975061368983613df4565b92505060018101905061366a565b5085935050505092915050565b60006136af82613dd3565b6136b98185613e1f565b93506136c483613da3565b8060005b838110156136f55781516136dc8882613610565b97506136e783613e01565b9250506001810190506136c8565b5085935050505092915050565b61370b81613f1f565b82525050565b61371a81613f1f565b82525050565b600061372b82613dde565b6137358185613e30565b9350613745818560208601613fa4565b61374e8161415d565b840191505092915050565b600061376482613de9565b61376e8185613e41565b935061377e818560208601613fa4565b6137878161415d565b840191505092915050565b600061379d82613de9565b6137a78185613e52565b93506137b7818560208601613fa4565b80840191505092915050565b600081546137d081613fd7565b6137da8186613e52565b945060018216600081146137f5576001811461380657613839565b60ff19831686528186019350613839565b61380f85613db3565b60005b8381101561383157815481890152600182019150602081019050613812565b838801955050505b50505092915050565b600061384f600d83613e41565b915061385a8261416e565b602082019050919050565b6000613872601283613e41565b915061387d82614197565b602082019050919050565b6000613895602683613e41565b91506138a0826141c0565b604082019050919050565b60006138b8601683613e41565b91506138c38261420f565b602082019050919050565b60006138db601483613e41565b91506138e682614238565b602082019050919050565b60006138fe600f83613e41565b915061390982614261565b602082019050919050565b6000613921600b83613e41565b915061392c8261428a565b602082019050919050565b6000613944601183613e41565b915061394f826142b3565b602082019050919050565b6000613967602083613e41565b9150613972826142dc565b602082019050919050565b600061398a601183613e41565b915061399582614305565b602082019050919050565b6060820160008201516139b66000850182613628565b5060208201516139c96020850182613a42565b5060408201516139dc6040850182613702565b50505050565b6060820160008201516139f86000850182613628565b506020820151613a0b6020850182613a42565b506040820151613a1e6040850182613702565b50505050565b613a2d81613f77565b82525050565b613a3c81613f77565b82525050565b613a4b81613f81565b82525050565b6000613a5d82866137c3565b9150613a698285613792565b9150613a7582846137c3565b9150819050949350505050565b6000602082019050613a976000830184613637565b92915050565b6000608082019050613ab26000830187613637565b613abf6020830186613637565b613acc6040830185613a33565b8181036060830152613ade8184613720565b905095945050505050565b60006020820190508181036000830152613b038184613646565b905092915050565b60006020820190508181036000830152613b2581846136a4565b905092915050565b6000602082019050613b426000830184613711565b92915050565b60006020820190508181036000830152613b628184613759565b905092915050565b60006020820190508181036000830152613b8381613842565b9050919050565b60006020820190508181036000830152613ba381613865565b9050919050565b60006020820190508181036000830152613bc381613888565b9050919050565b60006020820190508181036000830152613be3816138ab565b9050919050565b60006020820190508181036000830152613c03816138ce565b9050919050565b60006020820190508181036000830152613c23816138f1565b9050919050565b60006020820190508181036000830152613c4381613914565b9050919050565b60006020820190508181036000830152613c6381613937565b9050919050565b60006020820190508181036000830152613c838161395a565b9050919050565b60006020820190508181036000830152613ca38161397d565b9050919050565b6000606082019050613cbf60008301846139e2565b92915050565b6000602082019050613cda6000830184613a33565b92915050565b6000613cea613cfb565b9050613cf68282614009565b919050565b6000604051905090565b600067ffffffffffffffff821115613d2057613d1f614110565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613d4c57613d4b614110565b5b613d558261415d565b9050602081019050919050565b600067ffffffffffffffff821115613d7d57613d7c614110565b5b613d868261415d565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e6882613f77565b9150613e7383613f77565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ea857613ea7614083565b5b828201905092915050565b6000613ebe82613f77565b9150613ec983613f77565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f0257613f01614083565b5b828202905092915050565b6000613f1882613f57565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613fc2578082015181840152602081019050613fa7565b83811115613fd1576000848401525b50505050565b60006002820490506001821680613fef57607f821691505b60208210811415614003576140026140b2565b5b50919050565b6140128261415d565b810181811067ffffffffffffffff8211171561403157614030614110565b5b80604052505050565b600061404582613f77565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561407857614077614083565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f73616c65206973206f70656e2100000000000000000000000000000000000000600082015250565b7f457863656564206d6178427957616c6c65740000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e76616c6964207061796d656e7420616d6f756e7400000000000000000000600082015250565b7f6d69736d61746368696e67206c656e6774687321000000000000000000000000600082015250565b7f53616c6520697320636c6f736564210000000000000000000000000000000000600082015250565b7f6e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b7f416d6f756e742063616e27742062652030000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f457863656564204d41585f535550504c59000000000000000000000000000000600082015250565b61433781613f0d565b811461434257600080fd5b50565b61434e81613f1f565b811461435957600080fd5b50565b61436581613f2b565b811461437057600080fd5b50565b61437c81613f77565b811461438757600080fd5b5056fea26469706673582212203b6406aacd181c544cdc562df8dc034a0fc1d2e01d95864bcdae7b8acd6f5c1d64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000c437962657253616d75726169000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084353414d55524149000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6d696e742e637962657273616d757261692e6172742f6170692f6d6574612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): CyberSamurai
Arg [1] : symbol (string): CSAMURAI
Arg [2] : baseURI_ (string): https://mint.cybersamurai.art/api/meta/
Arg [3] : uriSuffix_ (string):
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [5] : 437962657253616d757261690000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 4353414d55524149000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [9] : 68747470733a2f2f6d696e742e637962657273616d757261692e6172742f6170
Arg [10] : 692f6d6574612f00000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
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.