ERC-721
NFT
Overview
Max Total Supply
3,035 NC
Holders
1,348
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 NCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NightCard
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@ @@@@@@@@@@@@@@@@@@@@@@ @@@ ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "erc721a/contracts/ERC721A.sol"; import "./mint/IRebelsMintAuthorizer.sol"; import "./render/IRebelsRenderer.sol"; abstract contract RevealInterface { function mint(address to, uint256[] calldata tokenIDs) external virtual; } contract NightCard is ERC721A, Ownable { uint256 immutable public maxSupply; address public rendererAddress; address public mintAuthorizerAddress; address public revealContractAddress; string public contractURI; uint256 private _numAvailableTokens; mapping(uint256 => uint256) private _availableTokens; constructor( string memory name_, string memory symbol_, uint256 maxSupply_ ) ERC721A(name_, symbol_) { maxSupply = maxSupply_; _numAvailableTokens = maxSupply_; } function tokenURI(uint256 id) public view override returns (string memory) { require(rendererAddress != address(0), "Renderer address unset"); require(_exists(id), "URI query for nonexistent token"); IRebelsRenderer renderer = IRebelsRenderer(rendererAddress); return renderer.tokenURI(id); } function mint(uint256 number, bytes32[] calldata proof) external payable { require(tx.origin == msg.sender, "Trying to mint from a contract"); require(mintAuthorizerAddress != address(0), "Mint authorizer address unset"); IRebelsMintAuthorizer mintAuthorizer = IRebelsMintAuthorizer(mintAuthorizerAddress); mintAuthorizer.authorizeMint(msg.sender, msg.value, number, proof); _mint(msg.sender, number); require(_totalMinted() <= maxSupply, "Trying to mint more than max supply"); } function reveal(uint256[] calldata tokenIDs) external { require(tx.origin == msg.sender, "Trying to reveal from a contract"); require(revealContractAddress != address(0), "Reveal contract address unset"); uint256[] memory newTokenIDs = new uint256[](tokenIDs.length); for (uint256 i = 0; i < tokenIDs.length; ++i) { require(msg.sender == ownerOf(tokenIDs[i]), "Reveal from incorrect owner"); _burn(tokenIDs[i]); newTokenIDs[i] = _getRandomAvailableTokenId(); _numAvailableTokens -= 1; } RevealInterface revealContract = RevealInterface(revealContractAddress); revealContract.mint(msg.sender, newTokenIDs); } function setRendererAddress(address rendererAddress_) external onlyOwner { rendererAddress = rendererAddress_; } function setMintAuthorizerAddress(address mintAuthorizerAddress_) external onlyOwner { mintAuthorizerAddress = mintAuthorizerAddress_; } function setRevealContractAddress(address revealContractAddress_) external onlyOwner { revealContractAddress = revealContractAddress_; } function setContractURI(string memory contractURI_) external onlyOwner { contractURI = contractURI_; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function _startTokenId() internal pure override returns (uint256) { // 1 -> 13370 looks better. return 1; } function _getRandomAvailableTokenId() private returns (uint256) { uint256 randomNum = uint256(keccak256(abi.encode( tx.origin, tx.gasprice, block.number, block.timestamp, block.difficulty, block.coinbase, blockhash(block.number - 1), address(this), _numAvailableTokens))); uint256 randomIndex = randomNum % _numAvailableTokens; return _getAvailableTokenAtIndex(randomIndex); } // Adapted from CryptoPhunksV2/ERC721R. function _getAvailableTokenAtIndex(uint256 indexToUse) private returns (uint256) { uint256 valAtIndex = _availableTokens[indexToUse]; uint256 result; if (valAtIndex == 0) { // This means the index itself is still an available token. result = indexToUse; } else { // This means the index itself is not an available token, but the val at // that index is. result = valAtIndex; } uint256 lastIndex = _numAvailableTokens - 1; if (indexToUse != lastIndex) { // Replace the value at indexToUse, now that it's been used. Replace it // with the data from the last index in the array, since we are going to // decrease the array size afterwards. uint256 lastValInArray = _availableTokens[lastIndex]; if (lastValInArray == 0) { // This means the index itself is still an available token. _availableTokens[indexToUse] = lastIndex; } else { // This means the index itself is not an available token, but the val // at that index is. _availableTokens[indexToUse] = lastValInArray; // Gas refund courtsey of @dievardump. delete _availableTokens[lastIndex]; } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @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; } /** * 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) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IRebelsMintAuthorizer { function authorizeMint( address sender, uint256 value, uint256 number, bytes32[] memory senderData ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/interfaces/IERC165.sol"; interface IRebelsRenderer is IERC165 { function tokenURI(uint256 id) external view returns (string memory); function beforeTokenTransfer(address from, address to, uint256 id) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"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":"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":[{"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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintAuthorizerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"rendererAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintAuthorizerAddress_","type":"address"}],"name":"setMintAuthorizerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rendererAddress_","type":"address"}],"name":"setRendererAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"revealContractAddress_","type":"address"}],"name":"setRevealContractAddress","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200406c3803806200406c8339818101604052810190620000379190620002cb565b828281600290805190602001906200005192919062000192565b5080600390805190602001906200006a92919062000192565b506200007b620000bb60201b60201c565b6000819055505050620000a362000097620000c460201b60201c565b620000cc60201b60201c565b806080818152505080600d81905550505050620004e7565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001a090620003f2565b90600052602060002090601f016020900481019282620001c4576000855562000210565b82601f10620001df57805160ff191683800117855562000210565b8280016001018555821562000210579182015b828111156200020f578251825591602001919060010190620001f2565b5b5090506200021f919062000223565b5090565b5b808211156200023e57600081600090555060010162000224565b5090565b60006200025962000253846200037c565b62000353565b9050828152602081018484840111156200027257600080fd5b6200027f848285620003bc565b509392505050565b600082601f8301126200029957600080fd5b8151620002ab84826020860162000242565b91505092915050565b600081519050620002c581620004cd565b92915050565b600080600060608486031215620002e157600080fd5b600084015167ffffffffffffffff811115620002fc57600080fd5b6200030a8682870162000287565b935050602084015167ffffffffffffffff8111156200032857600080fd5b620003368682870162000287565b92505060406200034986828701620002b4565b9150509250925092565b60006200035f62000372565b90506200036d828262000428565b919050565b6000604051905090565b600067ffffffffffffffff8211156200039a57620003996200048d565b5b620003a582620004bc565b9050602081019050919050565b6000819050919050565b60005b83811015620003dc578082015181840152602081019050620003bf565b83811115620003ec576000848401525b50505050565b600060028204905060018216806200040b57607f821691505b602082108114156200042257620004216200045e565b5b50919050565b6200043382620004bc565b810181811067ffffffffffffffff821117156200045557620004546200048d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b620004d881620003b2565b8114620004e457600080fd5b50565b608051613b626200050a6000396000818161174e01526119570152613b626000f3fe6080604052600436106101c25760003560e01c8063938e3d7b116100f7578063ba41b0c611610095578063d924535311610064578063d924535314610609578063e8a3d48514610634578063e985e9c51461065f578063f2fde38b1461069c576101c2565b8063ba41b0c61461055a578063c87b56dd14610576578063d5abeb01146105b3578063d67c52eb146105de576101c2565b8063a556f60f116100d1578063a556f60f146104b4578063b4909a46146104dd578063b88d4fde14610508578063b93f208a14610531576101c2565b8063938e3d7b1461043757806395d89b4114610460578063a22cb4651461048b576101c2565b80633ccfd60b116101645780636352211e1161013e5780636352211e1461037b57806370a08231146103b8578063715018a6146103f55780638da5cb5b1461040c576101c2565b80633ccfd60b146103125780633d25bfe01461032957806342842e0e14610352576101c2565b8063081812fc116101a0578063081812fc14610258578063095ea7b31461029557806318160ddd146102be57806323b872dd146102e9576101c2565b806301ffc9a7146101c757806306fdde0314610204578063073f854e1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190612dda565b6106c5565b6040516101fb9190613399565b60405180910390f35b34801561021057600080fd5b50610219610757565b60405161022691906133b4565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190612bee565b6107e9565b005b34801561026457600080fd5b5061027f600480360381019061027a9190612eae565b6108a9565b60405161028c9190613227565b60405180910390f35b3480156102a157600080fd5b506102bc60048036038101906102b79190612d59565b610925565b005b3480156102ca57600080fd5b506102d3610acc565b6040516102e09190613516565b60405180910390f35b3480156102f557600080fd5b50610310600480360381019061030b9190612c53565b610ae3565b005b34801561031e57600080fd5b50610327610af3565b005b34801561033557600080fd5b50610350600480360381019061034b9190612bee565b610bbe565b005b34801561035e57600080fd5b5061037960048036038101906103749190612c53565b610c7e565b005b34801561038757600080fd5b506103a2600480360381019061039d9190612eae565b610c9e565b6040516103af9190613227565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190612bee565b610cb0565b6040516103ec9190613516565b60405180910390f35b34801561040157600080fd5b5061040a610d69565b005b34801561041857600080fd5b50610421610df1565b60405161042e9190613227565b60405180910390f35b34801561044357600080fd5b5061045e60048036038101906104599190612e2c565b610e1b565b005b34801561046c57600080fd5b50610475610eb1565b60405161048291906133b4565b60405180910390f35b34801561049757600080fd5b506104b260048036038101906104ad9190612d1d565b610f43565b005b3480156104c057600080fd5b506104db60048036038101906104d69190612bee565b6110bb565b005b3480156104e957600080fd5b506104f261117b565b6040516104ff9190613227565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190612ca2565b6111a1565b005b34801561053d57600080fd5b5061055860048036038101906105539190612d95565b611214565b005b610574600480360381019061056f9190612ed7565b6115a8565b005b34801561058257600080fd5b5061059d60048036038101906105989190612eae565b6117bc565b6040516105aa91906133b4565b60405180910390f35b3480156105bf57600080fd5b506105c8611955565b6040516105d59190613516565b60405180910390f35b3480156105ea57600080fd5b506105f3611979565b6040516106009190613227565b60405180910390f35b34801561061557600080fd5b5061061e61199f565b60405161062b9190613227565b60405180910390f35b34801561064057600080fd5b506106496119c5565b60405161065691906133b4565b60405180910390f35b34801561066b57600080fd5b5061068660048036038101906106819190612c17565b611a53565b6040516106939190613399565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190612bee565b611ae7565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107505750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461076690613740565b80601f016020809104026020016040519081016040528092919081815260200182805461079290613740565b80156107df5780601f106107b4576101008083540402835291602001916107df565b820191906000526020600020905b8154815290600101906020018083116107c257829003601f168201915b5050505050905090565b6107f1611bdf565b73ffffffffffffffffffffffffffffffffffffffff1661080f610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085c90613496565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006108b482611be7565b6108ea576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061093082611c46565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610998576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109b7611d14565b73ffffffffffffffffffffffffffffffffffffffff1614610a1a576109e3816109de611d14565b611a53565b610a19576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610ad6611d1c565b6001546000540303905090565b610aee838383611d25565b505050565b610afb611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610b19610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6690613496565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610bba573d6000803e3d6000fd5b5050565b610bc6611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610be4610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3190613496565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c99838383604051806020016040528060008152506111a1565b505050565b6000610ca982611c46565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d18576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610d71611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610d8f610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc90613496565b60405180910390fd5b610def60006120cf565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e23611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610e41610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8e90613496565b60405180910390fd5b80600c9080519060200190610ead929190612916565b5050565b606060038054610ec090613740565b80601f0160208091040260200160405190810160405280929190818152602001828054610eec90613740565b8015610f395780601f10610f0e57610100808354040283529160200191610f39565b820191906000526020600020905b815481529060010190602001808311610f1c57829003601f168201915b5050505050905090565b610f4b611d14565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fb0576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000610fbd611d14565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661106a611d14565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110af9190613399565b60405180910390a35050565b6110c3611bdf565b73ffffffffffffffffffffffffffffffffffffffff166110e1610df1565b73ffffffffffffffffffffffffffffffffffffffff1614611137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112e90613496565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111ac848484611d25565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461120e576111d784848484612195565b61120d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611282576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611279906134b6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b906134f6565b60405180910390fd5b60008282905067ffffffffffffffff811115611359577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113875781602001602082028036833780820191505090505b50905060005b8383905081101561150d576113e08484838181106113d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135610c9e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461144d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611444906133d6565b60405180910390fd5b611495848483818110611489577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356122f5565b61149d612303565b8282815181106114d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250506001600d60008282546114f5919061363a565b9250508190555080611506906137a3565b905061138d565b506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663de836ebd33846040518363ffffffff1660e01b815260040161157092919061328e565b600060405180830381600087803b15801561158a57600080fd5b505af115801561159e573d6000803e3d6000fd5b5050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160d906134d6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f906133f6565b60405180910390fd5b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16634f4a5f8533348787876040518663ffffffff1660e01b81526004016117109594939291906132be565b600060405180830381600087803b15801561172a57600080fd5b505af115801561173e573d6000803e3d6000fd5b5050505061174c3385612373565b7f0000000000000000000000000000000000000000000000000000000000000000611775612547565b11156117b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ad90613476565b60405180910390fd5b50505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184790613456565b60405180910390fd5b61185982611be7565b611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f90613416565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663c87b56dd846040518263ffffffff1660e01b81526004016118f89190613516565b60006040518083038186803b15801561191057600080fd5b505afa158015611924573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061194d9190612e6d565b915050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c80546119d290613740565b80601f01602080910402602001604051908101604052809291908181526020018280546119fe90613740565b8015611a4b5780601f10611a2057610100808354040283529160200191611a4b565b820191906000526020600020905b815481529060010190602001808311611a2e57829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611aef611bdf565b73ffffffffffffffffffffffffffffffffffffffff16611b0d610df1565b73ffffffffffffffffffffffffffffffffffffffff1614611b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5a90613496565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bca90613436565b60405180910390fd5b611bdc816120cf565b50565b600033905090565b600081611bf2611d1c565b11158015611c01575060005482105b8015611c3f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080611c55611d1c565b11611cdd57600054811015611cdc5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611cda575b6000811415611cd0576004600083600190039350838152602001908152602001600020549050611ca5565b8092505050611d0f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60006001905090565b6000611d3082611c46565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d97576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611db8611d14565b73ffffffffffffffffffffffffffffffffffffffff161480611de75750611de685611de1611d14565b611a53565b5b80611e2c5750611df5611d14565b73ffffffffffffffffffffffffffffffffffffffff16611e14846108a9565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e65576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ecc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ed9858585600161255a565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b611fd686612560565b1717600460008581526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008316141561206057600060018401905060006004600083815260200190815260200160002054141561205e57600054811461205d578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120c8858585600161256a565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121bb611d14565b8786866040518563ffffffff1660e01b81526004016121dd9493929190613242565b602060405180830381600087803b1580156121f757600080fd5b505af192505050801561222857506040513d601f19601f820116820180604052508101906122259190612e03565b60015b6122a2573d8060008114612258576040519150601f19603f3d011682016040523d82523d6000602084013e61225d565b606091505b5060008151141561229a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612300816000612570565b50565b600080323a43424441600143612319919061363a565b4030600d546040516020016123369998979695949392919061330c565b6040516020818303038152906040528051906020012060001c90506000600d548261236191906137ec565b905061236c81612848565b9250505090565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123e0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561241b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612428600084838561255a565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e161248d6001841461290c565b901b60a042901b61249d85612560565b171760046000838152602001908152602001600020819055506000819050600083820190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106124c357816000819055505050612542600084838561256a565b505050565b6000612551611d1c565b60005403905090565b50505050565b6000819050919050565b50505050565b600061257b83611c46565b9050600081905082156126585760008173ffffffffffffffffffffffffffffffffffffffff166125a9611d14565b73ffffffffffffffffffffffffffffffffffffffff1614806125d857506125d7826125d2611d14565b611a53565b5b8061261d57506125e6611d14565b73ffffffffffffffffffffffffffffffffffffffff16612605866108a9565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612656576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b61266681600086600161255a565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b61273b84612560565b171717600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000831614156127c65760006001850190506000600460008381526020019081526020016000205414156127c45760005481146127c3578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461283081600086600161256a565b60016000815480929190600101919050555050505050565b600080600e600084815260200190815260200160002054905060008082141561287357839050612877565b8190505b60006001600d54612888919061363a565b9050808514612901576000600e600083815260200190815260200160002054905060008114156128cf5781600e6000888152602001908152602001600020819055506128ff565b80600e600088815260200190815260200160002081905550600e6000838152602001908152602001600020600090555b505b819350505050919050565b6000819050919050565b82805461292290613740565b90600052602060002090601f016020900481019282612944576000855561298b565b82601f1061295d57805160ff191683800117855561298b565b8280016001018555821561298b579182015b8281111561298a57825182559160200191906001019061296f565b5b509050612998919061299c565b5090565b5b808211156129b557600081600090555060010161299d565b5090565b60006129cc6129c784613556565b613531565b9050828152602081018484840111156129e457600080fd5b6129ef8482856136fe565b509392505050565b6000612a0a612a0584613587565b613531565b905082815260208101848484011115612a2257600080fd5b612a2d8482856136fe565b509392505050565b6000612a48612a4384613587565b613531565b905082815260208101848484011115612a6057600080fd5b612a6b84828561370d565b509392505050565b600081359050612a8281613ad0565b92915050565b60008083601f840112612a9a57600080fd5b8235905067ffffffffffffffff811115612ab357600080fd5b602083019150836020820283011115612acb57600080fd5b9250929050565b60008083601f840112612ae457600080fd5b8235905067ffffffffffffffff811115612afd57600080fd5b602083019150836020820283011115612b1557600080fd5b9250929050565b600081359050612b2b81613ae7565b92915050565b600081359050612b4081613afe565b92915050565b600081519050612b5581613afe565b92915050565b600082601f830112612b6c57600080fd5b8135612b7c8482602086016129b9565b91505092915050565b600082601f830112612b9657600080fd5b8135612ba68482602086016129f7565b91505092915050565b600082601f830112612bc057600080fd5b8151612bd0848260208601612a35565b91505092915050565b600081359050612be881613b15565b92915050565b600060208284031215612c0057600080fd5b6000612c0e84828501612a73565b91505092915050565b60008060408385031215612c2a57600080fd5b6000612c3885828601612a73565b9250506020612c4985828601612a73565b9150509250929050565b600080600060608486031215612c6857600080fd5b6000612c7686828701612a73565b9350506020612c8786828701612a73565b9250506040612c9886828701612bd9565b9150509250925092565b60008060008060808587031215612cb857600080fd5b6000612cc687828801612a73565b9450506020612cd787828801612a73565b9350506040612ce887828801612bd9565b925050606085013567ffffffffffffffff811115612d0557600080fd5b612d1187828801612b5b565b91505092959194509250565b60008060408385031215612d3057600080fd5b6000612d3e85828601612a73565b9250506020612d4f85828601612b1c565b9150509250929050565b60008060408385031215612d6c57600080fd5b6000612d7a85828601612a73565b9250506020612d8b85828601612bd9565b9150509250929050565b60008060208385031215612da857600080fd5b600083013567ffffffffffffffff811115612dc257600080fd5b612dce85828601612ad2565b92509250509250929050565b600060208284031215612dec57600080fd5b6000612dfa84828501612b31565b91505092915050565b600060208284031215612e1557600080fd5b6000612e2384828501612b46565b91505092915050565b600060208284031215612e3e57600080fd5b600082013567ffffffffffffffff811115612e5857600080fd5b612e6484828501612b85565b91505092915050565b600060208284031215612e7f57600080fd5b600082015167ffffffffffffffff811115612e9957600080fd5b612ea584828501612baf565b91505092915050565b600060208284031215612ec057600080fd5b6000612ece84828501612bd9565b91505092915050565b600080600060408486031215612eec57600080fd5b6000612efa86828701612bd9565b935050602084013567ffffffffffffffff811115612f1757600080fd5b612f2386828701612a88565b92509250509250925092565b6000612f3b8383613209565b60208301905092915050565b612f5081613680565b82525050565b612f5f8161366e565b82525050565b6000612f7183856135f6565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fa057600080fd5b602083029250612fb18385846136fe565b82840190509392505050565b6000612fc8826135c8565b612fd28185613607565b9350612fdd836135b8565b8060005b8381101561300e578151612ff58882612f2f565b9750613000836135e9565b925050600181019050612fe1565b5085935050505092915050565b61302481613692565b82525050565b6130338161369e565b82525050565b6000613044826135d3565b61304e8185613618565b935061305e81856020860161370d565b613067816138d9565b840191505092915050565b600061307d826135de565b6130878185613629565b935061309781856020860161370d565b6130a0816138d9565b840191505092915050565b60006130b8601b83613629565b91506130c3826138ea565b602082019050919050565b60006130db601d83613629565b91506130e682613913565b602082019050919050565b60006130fe601f83613629565b91506131098261393c565b602082019050919050565b6000613121602683613629565b915061312c82613965565b604082019050919050565b6000613144601683613629565b915061314f826139b4565b602082019050919050565b6000613167602383613629565b9150613172826139dd565b604082019050919050565b600061318a602083613629565b915061319582613a2c565b602082019050919050565b60006131ad602083613629565b91506131b882613a55565b602082019050919050565b60006131d0601e83613629565b91506131db82613a7e565b602082019050919050565b60006131f3601d83613629565b91506131fe82613aa7565b602082019050919050565b613212816136f4565b82525050565b613221816136f4565b82525050565b600060208201905061323c6000830184612f56565b92915050565b60006080820190506132576000830187612f56565b6132646020830186612f56565b6132716040830185613218565b81810360608301526132838184613039565b905095945050505050565b60006040820190506132a36000830185612f56565b81810360208301526132b58184612fbd565b90509392505050565b60006080820190506132d36000830188612f56565b6132e06020830187613218565b6132ed6040830186613218565b8181036060830152613300818486612f65565b90509695505050505050565b600061012082019050613322600083018c612f56565b61332f602083018b613218565b61333c604083018a613218565b6133496060830189613218565b6133566080830188613218565b61336360a0830187612f47565b61337060c083018661302a565b61337d60e0830185612f56565b61338b610100830184613218565b9a9950505050505050505050565b60006020820190506133ae600083018461301b565b92915050565b600060208201905081810360008301526133ce8184613072565b905092915050565b600060208201905081810360008301526133ef816130ab565b9050919050565b6000602082019050818103600083015261340f816130ce565b9050919050565b6000602082019050818103600083015261342f816130f1565b9050919050565b6000602082019050818103600083015261344f81613114565b9050919050565b6000602082019050818103600083015261346f81613137565b9050919050565b6000602082019050818103600083015261348f8161315a565b9050919050565b600060208201905081810360008301526134af8161317d565b9050919050565b600060208201905081810360008301526134cf816131a0565b9050919050565b600060208201905081810360008301526134ef816131c3565b9050919050565b6000602082019050818103600083015261350f816131e6565b9050919050565b600060208201905061352b6000830184613218565b92915050565b600061353b61354c565b90506135478282613772565b919050565b6000604051905090565b600067ffffffffffffffff821115613571576135706138aa565b5b61357a826138d9565b9050602081019050919050565b600067ffffffffffffffff8211156135a2576135a16138aa565b5b6135ab826138d9565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000613645826136f4565b9150613650836136f4565b9250828210156136635761366261381d565b5b828203905092915050565b6000613679826136d4565b9050919050565b600061368b826136d4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561372b578082015181840152602081019050613710565b8381111561373a576000848401525b50505050565b6000600282049050600182168061375857607f821691505b6020821081141561376c5761376b61387b565b5b50919050565b61377b826138d9565b810181811067ffffffffffffffff8211171561379a576137996138aa565b5b80604052505050565b60006137ae826136f4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156137e1576137e061381d565b5b600182019050919050565b60006137f7826136f4565b9150613802836136f4565b9250826138125761381161384c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f52657665616c2066726f6d20696e636f7272656374206f776e65720000000000600082015250565b7f4d696e7420617574686f72697a6572206164647265737320756e736574000000600082015250565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f52656e6465726572206164647265737320756e73657400000000000000000000600082015250565b7f547279696e6720746f206d696e74206d6f7265207468616e206d61782073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f547279696e6720746f2072657665616c2066726f6d206120636f6e7472616374600082015250565b7f547279696e6720746f206d696e742066726f6d206120636f6e74726163740000600082015250565b7f52657665616c20636f6e7472616374206164647265737320756e736574000000600082015250565b613ad98161366e565b8114613ae457600080fd5b50565b613af081613692565b8114613afb57600080fd5b50565b613b07816136a8565b8114613b1257600080fd5b50565b613b1e816136f4565b8114613b2957600080fd5b5056fea2646970667358221220019862af79803d93b4847c44895340cf5e13754a155558d8321c991b9a37759c64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000343a000000000000000000000000000000000000000000000000000000000000000a4e6967687420436172640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e43000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101c25760003560e01c8063938e3d7b116100f7578063ba41b0c611610095578063d924535311610064578063d924535314610609578063e8a3d48514610634578063e985e9c51461065f578063f2fde38b1461069c576101c2565b8063ba41b0c61461055a578063c87b56dd14610576578063d5abeb01146105b3578063d67c52eb146105de576101c2565b8063a556f60f116100d1578063a556f60f146104b4578063b4909a46146104dd578063b88d4fde14610508578063b93f208a14610531576101c2565b8063938e3d7b1461043757806395d89b4114610460578063a22cb4651461048b576101c2565b80633ccfd60b116101645780636352211e1161013e5780636352211e1461037b57806370a08231146103b8578063715018a6146103f55780638da5cb5b1461040c576101c2565b80633ccfd60b146103125780633d25bfe01461032957806342842e0e14610352576101c2565b8063081812fc116101a0578063081812fc14610258578063095ea7b31461029557806318160ddd146102be57806323b872dd146102e9576101c2565b806301ffc9a7146101c757806306fdde0314610204578063073f854e1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190612dda565b6106c5565b6040516101fb9190613399565b60405180910390f35b34801561021057600080fd5b50610219610757565b60405161022691906133b4565b60405180910390f35b34801561023b57600080fd5b5061025660048036038101906102519190612bee565b6107e9565b005b34801561026457600080fd5b5061027f600480360381019061027a9190612eae565b6108a9565b60405161028c9190613227565b60405180910390f35b3480156102a157600080fd5b506102bc60048036038101906102b79190612d59565b610925565b005b3480156102ca57600080fd5b506102d3610acc565b6040516102e09190613516565b60405180910390f35b3480156102f557600080fd5b50610310600480360381019061030b9190612c53565b610ae3565b005b34801561031e57600080fd5b50610327610af3565b005b34801561033557600080fd5b50610350600480360381019061034b9190612bee565b610bbe565b005b34801561035e57600080fd5b5061037960048036038101906103749190612c53565b610c7e565b005b34801561038757600080fd5b506103a2600480360381019061039d9190612eae565b610c9e565b6040516103af9190613227565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190612bee565b610cb0565b6040516103ec9190613516565b60405180910390f35b34801561040157600080fd5b5061040a610d69565b005b34801561041857600080fd5b50610421610df1565b60405161042e9190613227565b60405180910390f35b34801561044357600080fd5b5061045e60048036038101906104599190612e2c565b610e1b565b005b34801561046c57600080fd5b50610475610eb1565b60405161048291906133b4565b60405180910390f35b34801561049757600080fd5b506104b260048036038101906104ad9190612d1d565b610f43565b005b3480156104c057600080fd5b506104db60048036038101906104d69190612bee565b6110bb565b005b3480156104e957600080fd5b506104f261117b565b6040516104ff9190613227565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190612ca2565b6111a1565b005b34801561053d57600080fd5b5061055860048036038101906105539190612d95565b611214565b005b610574600480360381019061056f9190612ed7565b6115a8565b005b34801561058257600080fd5b5061059d60048036038101906105989190612eae565b6117bc565b6040516105aa91906133b4565b60405180910390f35b3480156105bf57600080fd5b506105c8611955565b6040516105d59190613516565b60405180910390f35b3480156105ea57600080fd5b506105f3611979565b6040516106009190613227565b60405180910390f35b34801561061557600080fd5b5061061e61199f565b60405161062b9190613227565b60405180910390f35b34801561064057600080fd5b506106496119c5565b60405161065691906133b4565b60405180910390f35b34801561066b57600080fd5b5061068660048036038101906106819190612c17565b611a53565b6040516106939190613399565b60405180910390f35b3480156106a857600080fd5b506106c360048036038101906106be9190612bee565b611ae7565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061072057506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107505750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461076690613740565b80601f016020809104026020016040519081016040528092919081815260200182805461079290613740565b80156107df5780601f106107b4576101008083540402835291602001916107df565b820191906000526020600020905b8154815290600101906020018083116107c257829003601f168201915b5050505050905090565b6107f1611bdf565b73ffffffffffffffffffffffffffffffffffffffff1661080f610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085c90613496565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006108b482611be7565b6108ea576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061093082611c46565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610998576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109b7611d14565b73ffffffffffffffffffffffffffffffffffffffff1614610a1a576109e3816109de611d14565b611a53565b610a19576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610ad6611d1c565b6001546000540303905090565b610aee838383611d25565b505050565b610afb611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610b19610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6690613496565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610bba573d6000803e3d6000fd5b5050565b610bc6611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610be4610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610c3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3190613496565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c99838383604051806020016040528060008152506111a1565b505050565b6000610ca982611c46565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d18576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610d71611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610d8f610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc90613496565b60405180910390fd5b610def60006120cf565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610e23611bdf565b73ffffffffffffffffffffffffffffffffffffffff16610e41610df1565b73ffffffffffffffffffffffffffffffffffffffff1614610e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8e90613496565b60405180910390fd5b80600c9080519060200190610ead929190612916565b5050565b606060038054610ec090613740565b80601f0160208091040260200160405190810160405280929190818152602001828054610eec90613740565b8015610f395780601f10610f0e57610100808354040283529160200191610f39565b820191906000526020600020905b815481529060010190602001808311610f1c57829003601f168201915b5050505050905090565b610f4b611d14565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fb0576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000610fbd611d14565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661106a611d14565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516110af9190613399565b60405180910390a35050565b6110c3611bdf565b73ffffffffffffffffffffffffffffffffffffffff166110e1610df1565b73ffffffffffffffffffffffffffffffffffffffff1614611137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112e90613496565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111ac848484611d25565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461120e576111d784848484612195565b61120d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611282576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611279906134b6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b906134f6565b60405180910390fd5b60008282905067ffffffffffffffff811115611359577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113875781602001602082028036833780820191505090505b50905060005b8383905081101561150d576113e08484838181106113d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135610c9e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461144d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611444906133d6565b60405180910390fd5b611495848483818110611489577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356122f5565b61149d612303565b8282815181106114d6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250506001600d60008282546114f5919061363a565b9250508190555080611506906137a3565b905061138d565b506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663de836ebd33846040518363ffffffff1660e01b815260040161157092919061328e565b600060405180830381600087803b15801561158a57600080fd5b505af115801561159e573d6000803e3d6000fd5b5050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160d906134d6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f906133f6565b60405180910390fd5b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff16634f4a5f8533348787876040518663ffffffff1660e01b81526004016117109594939291906132be565b600060405180830381600087803b15801561172a57600080fd5b505af115801561173e573d6000803e3d6000fd5b5050505061174c3385612373565b7f000000000000000000000000000000000000000000000000000000000000343a611775612547565b11156117b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ad90613476565b60405180910390fd5b50505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611850576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184790613456565b60405180910390fd5b61185982611be7565b611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f90613416565b60405180910390fd5b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663c87b56dd846040518263ffffffff1660e01b81526004016118f89190613516565b60006040518083038186803b15801561191057600080fd5b505afa158015611924573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061194d9190612e6d565b915050919050565b7f000000000000000000000000000000000000000000000000000000000000343a81565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c80546119d290613740565b80601f01602080910402602001604051908101604052809291908181526020018280546119fe90613740565b8015611a4b5780601f10611a2057610100808354040283529160200191611a4b565b820191906000526020600020905b815481529060010190602001808311611a2e57829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611aef611bdf565b73ffffffffffffffffffffffffffffffffffffffff16611b0d610df1565b73ffffffffffffffffffffffffffffffffffffffff1614611b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5a90613496565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bca90613436565b60405180910390fd5b611bdc816120cf565b50565b600033905090565b600081611bf2611d1c565b11158015611c01575060005482105b8015611c3f575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080611c55611d1c565b11611cdd57600054811015611cdc5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611cda575b6000811415611cd0576004600083600190039350838152602001908152602001600020549050611ca5565b8092505050611d0f565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b60006001905090565b6000611d3082611c46565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d97576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611db8611d14565b73ffffffffffffffffffffffffffffffffffffffff161480611de75750611de685611de1611d14565b611a53565b5b80611e2c5750611df5611d14565b73ffffffffffffffffffffffffffffffffffffffff16611e14846108a9565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611e65576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611ecc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ed9858585600161255a565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b611fd686612560565b1717600460008581526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008316141561206057600060018401905060006004600083815260200190815260200160002054141561205e57600054811461205d578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120c8858585600161256a565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026121bb611d14565b8786866040518563ffffffff1660e01b81526004016121dd9493929190613242565b602060405180830381600087803b1580156121f757600080fd5b505af192505050801561222857506040513d601f19601f820116820180604052508101906122259190612e03565b60015b6122a2573d8060008114612258576040519150601f19603f3d011682016040523d82523d6000602084013e61225d565b606091505b5060008151141561229a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612300816000612570565b50565b600080323a43424441600143612319919061363a565b4030600d546040516020016123369998979695949392919061330c565b6040516020818303038152906040528051906020012060001c90506000600d548261236191906137ec565b905061236c81612848565b9250505090565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123e0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561241b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612428600084838561255a565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e161248d6001841461290c565b901b60a042901b61249d85612560565b171760046000838152602001908152602001600020819055506000819050600083820190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106124c357816000819055505050612542600084838561256a565b505050565b6000612551611d1c565b60005403905090565b50505050565b6000819050919050565b50505050565b600061257b83611c46565b9050600081905082156126585760008173ffffffffffffffffffffffffffffffffffffffff166125a9611d14565b73ffffffffffffffffffffffffffffffffffffffff1614806125d857506125d7826125d2611d14565b611a53565b5b8061261d57506125e6611d14565b73ffffffffffffffffffffffffffffffffffffffff16612605866108a9565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612656576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b61266681600086600161255a565b6006600085815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160806001901b03600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055507c02000000000000000000000000000000000000000000000000000000007c010000000000000000000000000000000000000000000000000000000060a042901b61273b84612560565b171717600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000831614156127c65760006001850190506000600460008381526020019081526020016000205414156127c45760005481146127c3578260046000838152602001908152602001600020819055505b5b505b83600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461283081600086600161256a565b60016000815480929190600101919050555050505050565b600080600e600084815260200190815260200160002054905060008082141561287357839050612877565b8190505b60006001600d54612888919061363a565b9050808514612901576000600e600083815260200190815260200160002054905060008114156128cf5781600e6000888152602001908152602001600020819055506128ff565b80600e600088815260200190815260200160002081905550600e6000838152602001908152602001600020600090555b505b819350505050919050565b6000819050919050565b82805461292290613740565b90600052602060002090601f016020900481019282612944576000855561298b565b82601f1061295d57805160ff191683800117855561298b565b8280016001018555821561298b579182015b8281111561298a57825182559160200191906001019061296f565b5b509050612998919061299c565b5090565b5b808211156129b557600081600090555060010161299d565b5090565b60006129cc6129c784613556565b613531565b9050828152602081018484840111156129e457600080fd5b6129ef8482856136fe565b509392505050565b6000612a0a612a0584613587565b613531565b905082815260208101848484011115612a2257600080fd5b612a2d8482856136fe565b509392505050565b6000612a48612a4384613587565b613531565b905082815260208101848484011115612a6057600080fd5b612a6b84828561370d565b509392505050565b600081359050612a8281613ad0565b92915050565b60008083601f840112612a9a57600080fd5b8235905067ffffffffffffffff811115612ab357600080fd5b602083019150836020820283011115612acb57600080fd5b9250929050565b60008083601f840112612ae457600080fd5b8235905067ffffffffffffffff811115612afd57600080fd5b602083019150836020820283011115612b1557600080fd5b9250929050565b600081359050612b2b81613ae7565b92915050565b600081359050612b4081613afe565b92915050565b600081519050612b5581613afe565b92915050565b600082601f830112612b6c57600080fd5b8135612b7c8482602086016129b9565b91505092915050565b600082601f830112612b9657600080fd5b8135612ba68482602086016129f7565b91505092915050565b600082601f830112612bc057600080fd5b8151612bd0848260208601612a35565b91505092915050565b600081359050612be881613b15565b92915050565b600060208284031215612c0057600080fd5b6000612c0e84828501612a73565b91505092915050565b60008060408385031215612c2a57600080fd5b6000612c3885828601612a73565b9250506020612c4985828601612a73565b9150509250929050565b600080600060608486031215612c6857600080fd5b6000612c7686828701612a73565b9350506020612c8786828701612a73565b9250506040612c9886828701612bd9565b9150509250925092565b60008060008060808587031215612cb857600080fd5b6000612cc687828801612a73565b9450506020612cd787828801612a73565b9350506040612ce887828801612bd9565b925050606085013567ffffffffffffffff811115612d0557600080fd5b612d1187828801612b5b565b91505092959194509250565b60008060408385031215612d3057600080fd5b6000612d3e85828601612a73565b9250506020612d4f85828601612b1c565b9150509250929050565b60008060408385031215612d6c57600080fd5b6000612d7a85828601612a73565b9250506020612d8b85828601612bd9565b9150509250929050565b60008060208385031215612da857600080fd5b600083013567ffffffffffffffff811115612dc257600080fd5b612dce85828601612ad2565b92509250509250929050565b600060208284031215612dec57600080fd5b6000612dfa84828501612b31565b91505092915050565b600060208284031215612e1557600080fd5b6000612e2384828501612b46565b91505092915050565b600060208284031215612e3e57600080fd5b600082013567ffffffffffffffff811115612e5857600080fd5b612e6484828501612b85565b91505092915050565b600060208284031215612e7f57600080fd5b600082015167ffffffffffffffff811115612e9957600080fd5b612ea584828501612baf565b91505092915050565b600060208284031215612ec057600080fd5b6000612ece84828501612bd9565b91505092915050565b600080600060408486031215612eec57600080fd5b6000612efa86828701612bd9565b935050602084013567ffffffffffffffff811115612f1757600080fd5b612f2386828701612a88565b92509250509250925092565b6000612f3b8383613209565b60208301905092915050565b612f5081613680565b82525050565b612f5f8161366e565b82525050565b6000612f7183856135f6565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612fa057600080fd5b602083029250612fb18385846136fe565b82840190509392505050565b6000612fc8826135c8565b612fd28185613607565b9350612fdd836135b8565b8060005b8381101561300e578151612ff58882612f2f565b9750613000836135e9565b925050600181019050612fe1565b5085935050505092915050565b61302481613692565b82525050565b6130338161369e565b82525050565b6000613044826135d3565b61304e8185613618565b935061305e81856020860161370d565b613067816138d9565b840191505092915050565b600061307d826135de565b6130878185613629565b935061309781856020860161370d565b6130a0816138d9565b840191505092915050565b60006130b8601b83613629565b91506130c3826138ea565b602082019050919050565b60006130db601d83613629565b91506130e682613913565b602082019050919050565b60006130fe601f83613629565b91506131098261393c565b602082019050919050565b6000613121602683613629565b915061312c82613965565b604082019050919050565b6000613144601683613629565b915061314f826139b4565b602082019050919050565b6000613167602383613629565b9150613172826139dd565b604082019050919050565b600061318a602083613629565b915061319582613a2c565b602082019050919050565b60006131ad602083613629565b91506131b882613a55565b602082019050919050565b60006131d0601e83613629565b91506131db82613a7e565b602082019050919050565b60006131f3601d83613629565b91506131fe82613aa7565b602082019050919050565b613212816136f4565b82525050565b613221816136f4565b82525050565b600060208201905061323c6000830184612f56565b92915050565b60006080820190506132576000830187612f56565b6132646020830186612f56565b6132716040830185613218565b81810360608301526132838184613039565b905095945050505050565b60006040820190506132a36000830185612f56565b81810360208301526132b58184612fbd565b90509392505050565b60006080820190506132d36000830188612f56565b6132e06020830187613218565b6132ed6040830186613218565b8181036060830152613300818486612f65565b90509695505050505050565b600061012082019050613322600083018c612f56565b61332f602083018b613218565b61333c604083018a613218565b6133496060830189613218565b6133566080830188613218565b61336360a0830187612f47565b61337060c083018661302a565b61337d60e0830185612f56565b61338b610100830184613218565b9a9950505050505050505050565b60006020820190506133ae600083018461301b565b92915050565b600060208201905081810360008301526133ce8184613072565b905092915050565b600060208201905081810360008301526133ef816130ab565b9050919050565b6000602082019050818103600083015261340f816130ce565b9050919050565b6000602082019050818103600083015261342f816130f1565b9050919050565b6000602082019050818103600083015261344f81613114565b9050919050565b6000602082019050818103600083015261346f81613137565b9050919050565b6000602082019050818103600083015261348f8161315a565b9050919050565b600060208201905081810360008301526134af8161317d565b9050919050565b600060208201905081810360008301526134cf816131a0565b9050919050565b600060208201905081810360008301526134ef816131c3565b9050919050565b6000602082019050818103600083015261350f816131e6565b9050919050565b600060208201905061352b6000830184613218565b92915050565b600061353b61354c565b90506135478282613772565b919050565b6000604051905090565b600067ffffffffffffffff821115613571576135706138aa565b5b61357a826138d9565b9050602081019050919050565b600067ffffffffffffffff8211156135a2576135a16138aa565b5b6135ab826138d9565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000613645826136f4565b9150613650836136f4565b9250828210156136635761366261381d565b5b828203905092915050565b6000613679826136d4565b9050919050565b600061368b826136d4565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561372b578082015181840152602081019050613710565b8381111561373a576000848401525b50505050565b6000600282049050600182168061375857607f821691505b6020821081141561376c5761376b61387b565b5b50919050565b61377b826138d9565b810181811067ffffffffffffffff8211171561379a576137996138aa565b5b80604052505050565b60006137ae826136f4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156137e1576137e061381d565b5b600182019050919050565b60006137f7826136f4565b9150613802836136f4565b9250826138125761381161384c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f52657665616c2066726f6d20696e636f7272656374206f776e65720000000000600082015250565b7f4d696e7420617574686f72697a6572206164647265737320756e736574000000600082015250565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f52656e6465726572206164647265737320756e73657400000000000000000000600082015250565b7f547279696e6720746f206d696e74206d6f7265207468616e206d61782073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f547279696e6720746f2072657665616c2066726f6d206120636f6e7472616374600082015250565b7f547279696e6720746f206d696e742066726f6d206120636f6e74726163740000600082015250565b7f52657665616c20636f6e7472616374206164647265737320756e736574000000600082015250565b613ad98161366e565b8114613ae457600080fd5b50565b613af081613692565b8114613afb57600080fd5b50565b613b07816136a8565b8114613b1257600080fd5b50565b613b1e816136f4565b8114613b2957600080fd5b5056fea2646970667358221220019862af79803d93b4847c44895340cf5e13754a155558d8321c991b9a37759c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000343a000000000000000000000000000000000000000000000000000000000000000a4e6967687420436172640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024e43000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Night Card
Arg [1] : symbol_ (string): NC
Arg [2] : maxSupply_ (uint256): 13370
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000000000000000000000000000000000000000343a
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 4e69676874204361726400000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 4e43000000000000000000000000000000000000000000000000000000000000
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.