Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DocialV3
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // .JJJJJJJJJ7~. ~J5PGPY7: ~J5PGPY7: ?JJJ? :JJJJJJ? :JJJJ~ // :@@@@@@@@@@@#? ^G@@@@@@@@&Y. ^B@@@@@@@@&? #@@@#. 7@@@@@@@: ~@@@@Y // :&@@@@@@@@@@@@5 ^&@@@@&&@@@@@P ^&@@@@&&@@@@@J B@@@B 5@@@@@@@! ~@@@@Y // :&@@@G^^^7#@@@@~ 5@@@@J:.^G@@@@~ 5@@@@J:.^G@@@&: B@@@B .B@@@@@@@Y ~@@@@Y // :&@@@P !@@@@? B@@@# !@@@@? G@@@#. ~@@@@~ B@@@B ^@@@#B@@@B ~@@@@Y // :&@@@P ~@@@@Y .B@@@B ~@@@@? .B@@@B ~@@@@7 B@@@B 7@@@PJ@@@&: ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. ^BBB#~ B@@@B P@@@?~@@@@7 ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. B@@@B .#@@@~.&@@@5 ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. B@@@B ^@@@&. G@@@B ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. B@@@B ?@@@G Y@@@&^ ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. B@@@B P@@@Y !@@@@7 ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. B@@@B .#@@@! :&@@@5 ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. :5555^ B@@@B ^@@@&. B@@@B. ~@@@@Y // :&@@@P ~@@@@Y .B@@@B. ~@@@@? B@@@B. ~@@@@7 B@@@B ?@@@&555Y#@@@@^ ~@@@@Y // :&@@@P ~@@@@Y .B@@@B ~@@@@? B@@@B ~@@@@! B@@@B P@@@@@@@@@@@@@7 ~@@@@Y // :&@@@P 7@@@@? B@@@#. !@@@@? G@@@#. !@@@@~ B@@@B. .#@@@&####&@@@@5 ~@@@@J // :&@@@B!!!?#@@@@~ Y@@@@Y^:~B@@@@~ Y@@@@5^:~B@@@#. B@@@B. ~@@@&~....:B@@@B. ~@@@@P!!!!!!!: // :&@@@@@@@@@@@@Y :#@@@@@&@@@@@5 :#@@@@@@@@@@@? B@@@B. ?@@@B 5@@@@^ ~@@@@@@@@@@@@7 // :@@@@@@@@@@@B7 :P@@@@@@@@&J ^P@@@@@@@@#7 .#@@@# G@@@5 7@@@@? ~@@@@@@@@@@@@7 // .7???????7!^ ^7Y555J!. ^7Y555J~. 7???7 7???^ :????~ :????????????: pragma solidity ^0.8.4; import "erc721a-upgradeable/contracts/ERC721AUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; contract DocialV3 is ERC721AUpgradeable, PausableUpgradeable, OwnableUpgradeable { uint256 public mintPrice; uint256 public maxSupply; uint256 public maxMinting; uint256 public counterFreeMint; uint256 public startTime; uint256 public maxMintPerWallet; uint256 public maxFreeMintPerWallet; // function initialize() public initializerERC721A initializer { // __ERC721A_init("Docial Trader", "DCTD"); // __Ownable_init(); // } function adminMint(uint256 quantity) external payable onlyOwner { _mint(msg.sender, quantity); } function setMintPrice(uint256 _mintPrice) public onlyOwner { mintPrice = _mintPrice; } function setMaxSupply(uint256 _setMaxSupply) public onlyOwner { maxSupply = _setMaxSupply; } function setStartTime(uint256 _startTime) public onlyOwner { counterFreeMint = 0; startTime = _startTime; } function setMaxMinting(uint256 _setMaxMinting) public onlyOwner { maxMinting = _setMaxMinting; } function setMaxMintPerWallet(uint256 _maxMintPerWallet) public onlyOwner { maxMintPerWallet = _maxMintPerWallet; } function setmaxFreeMintPerWallet(uint256 _maxFreeMintPerWallet) public onlyOwner { maxFreeMintPerWallet = _maxFreeMintPerWallet; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function withdraw() public onlyOwner { payable(owner()).transfer(address(this).balance); } //========================= Versioning start here uint256 tokenCounter; mapping(address => uint256) public minted; function mint(uint256 quantity) external payable { require(totalSupply() <= maxSupply, "Minting Ends"); require( tokenCounter + quantity <= maxSupply, "Tokens are out there now" ); require( quantity <= maxMinting, "Minting need to be less then maxMinting" ); require( _numberMinted(msg.sender) + quantity <= maxMintPerWallet, "Too many mint for an address" ); require( minted[msg.sender] <= maxMintPerWallet, "Only 5 allowed per mint" ); uint256 endTime = startTime + 1 hours; if ( free[msg.sender] + quantity <= maxFreeMintPerWallet && block.timestamp >= startTime && block.timestamp <= endTime ) { require( counterFreeMint + quantity <= 300, "Only 300 tokens per phase available" ); _mint(msg.sender, quantity); minted[msg.sender] += quantity; free[msg.sender] += quantity; counterFreeMint += quantity; tokenCounter++; } else if ( free[msg.sender] <= maxFreeMintPerWallet && quantity <= maxMintPerWallet && block.timestamp >= startTime && block.timestamp <= endTime ) { uint256 currentFreeMint = maxFreeMintPerWallet - free[msg.sender]; require( mintPrice * (quantity - currentFreeMint) <= msg.value, "Ether value sent is not correct" ); require( counterFreeMint + currentFreeMint <= 300, "Only 300 tokens per phase available" ); _mint(msg.sender, quantity); minted[msg.sender] += quantity; free[msg.sender] = currentFreeMint + free[msg.sender]; counterFreeMint += currentFreeMint; tokenCounter += quantity; } else { require( mintPrice * quantity <= msg.value, "Ether value sent is not correct" ); _mint(msg.sender, quantity); minted[msg.sender] += quantity; tokenCounter += quantity; } } //========================= Versioning 3 string tokenUri; string baseUrl; mapping(address => uint256) private free; function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { if (!_exists(_tokenId)) revert URIQueryForNonexistentToken(); string memory prefix = ".json"; string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(_tokenId))) : string( abi.encodePacked(baseUrl, _toString(_tokenId), prefix) ); } function setBaseUrl(string memory _uri) public onlyOwner { baseUrl = _uri; } function viewPhaseTokenCounter() external view returns (uint256) { return counterFreeMint; } function getFreeMint(address _address) external view returns (uint256) { return free[_address]; } function sendAirdDrop(address[] memory _address, uint256[] memory _qtytotal) public onlyOwner { for (uint256 i = 0; i < _address.length; i++) { _mint(_address[i], _qtytotal[i]); } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AUpgradeable.sol'; import {ERC721AStorage} from './ERC721AStorage.sol'; import './ERC721A__Initializable.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721ReceiverUpgradeable { 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 ERC721AUpgradeable is ERC721A__Initializable, IERC721AUpgradeable { using ERC721AStorage for ERC721AStorage.Layout; // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializingERC721A { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializingERC721A { ERC721AStorage.layout()._name = name_; ERC721AStorage.layout()._symbol = symbol_; ERC721AStorage.layout()._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 ERC721AStorage.layout()._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 ERC721AStorage.layout()._currentIndex - ERC721AStorage.layout()._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 ERC721AStorage.layout()._currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return ERC721AStorage.layout()._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 ERC721AStorage.layout()._packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._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 (ERC721AStorage.layout()._packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(ERC721AStorage.layout()._packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = ERC721AStorage.layout()._packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); ERC721AStorage.layout()._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 < ERC721AStorage.layout()._currentIndex) { uint256 packed = ERC721AStorage.layout()._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 = ERC721AStorage.layout()._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; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(ERC721AStorage.layout()._packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (ERC721AStorage.layout()._packedOwnerships[index] == 0) { ERC721AStorage.layout()._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 Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev 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 ERC721AStorage.layout()._name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return ERC721AStorage.layout()._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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } ERC721AStorage.layout()._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 ERC721AStorage.layout()._tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); ERC721AStorage.layout()._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 ERC721AStorage.layout()._operatorApprovals[owner][operator]; } /** * @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 { transferFrom(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 < ERC721AStorage.layout()._currentIndex && // If within bounds, ERC721AStorage.layout()._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. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = ERC721AStorage.layout()._currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (ERC721AStorage.layout()._currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._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`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); ERC721AStorage.layout()._currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._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`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); ERC721AStorage.layout()._currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = ERC721AStorage.layout()._tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --ERC721AStorage.layout()._packedAddressData[from]; // Updates: `balance -= 1`. ++ERC721AStorage.layout()._packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._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)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. ERC721AStorage.layout()._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`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._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 { ERC721AStorage.layout()._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__IERC721ReceiverUpgradeable(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (bytes4 retval) { return retval == ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = ERC721AStorage.layout()._packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); ERC721AStorage.layout()._packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721AUpgradeable { /** * 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(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); 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; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {ERC721AUpgradeable} from './ERC721AUpgradeable.sol'; library ERC721AStorage { struct Layout { // The tokenId of the next token to be minted. uint256 _currentIndex; // The number of tokens burned. uint256 _burnCounter; // Token name string _name; // Token symbol string _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) _operatorApprovals; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.ERC721A'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable diamond facet contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ import {ERC721A__InitializableStorage} from './ERC721A__InitializableStorage.sol'; abstract contract ERC721A__Initializable { using ERC721A__InitializableStorage for ERC721A__InitializableStorage.Layout; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializerERC721A() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require( ERC721A__InitializableStorage.layout()._initializing ? _isConstructor() : !ERC721A__InitializableStorage.layout()._initialized, 'ERC721A__Initializable: contract is already initialized' ); bool isTopLevelCall = !ERC721A__InitializableStorage.layout()._initializing; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = true; ERC721A__InitializableStorage.layout()._initialized = true; } _; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializingERC721A() { require( ERC721A__InitializableStorage.layout()._initializing, 'ERC721A__Initializable: contract is not initializing' ); _; } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base storage for the initialization function for upgradeable diamond facet contracts **/ library ERC721A__InitializableStorage { struct Layout { /* * Indicates that the contract has been initialized. */ bool _initialized; /* * Indicates that the contract is in the process of being initialized. */ bool _initializing; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.initializable.facet'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "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":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counterFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxFreeMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMinting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_address","type":"address[]"},{"internalType":"uint256[]","name":"_qtytotal","type":"uint256[]"}],"name":"sendAirdDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintPerWallet","type":"uint256"}],"name":"setMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_setMaxMinting","type":"uint256"}],"name":"setMaxMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_setMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFreeMintPerWallet","type":"uint256"}],"name":"setmaxFreeMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"viewPhaseTokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614043806100206000396000f3fe6080604052600436106102465760003560e01c806370a0823111610139578063b228d925116100b6578063c87b56dd1161007a578063c87b56dd14610800578063d5abeb011461083d578063e985e9c514610868578063f2fde38b146108a5578063f4a0a528146108ce578063fc98cc8e146108f757610246565b8063b228d9251461073e578063b88d4fde14610769578063c1f2612314610792578063c7c3268b146107ae578063c86f1a02146107d757610246565b80638da5cb5b116100fd5780638da5cb5b1461067a57806395d89b41146106a5578063a0712d68146106d0578063a22cb465146106ec578063afdf61341461071557610246565b806370a08231146105b9578063715018a6146105f657806378e979251461060d5780638456cb5914610638578063845bb3bb1461064f57610246565b80633e0a322d116101c75780635c975abb1161018b5780635c975abb146104d45780636352211e146104ff578063663094851461053c5780636817c76c146105655780636f8b44b01461059057610246565b80633e0a322d146104175780633f4ba83a1461044057806342842e0e14610457578063441a4f4c1461048057806348094b7c146104a957610246565b806318160ddd1161020e57806318160ddd146103445780631e7269c51461036f57806323b872dd146103ac578063361218c3146103d55780633ccfd60b1461040057610246565b806301ffc9a71461024b578063045258621461028857806306fdde03146102b3578063081812fc146102de578063095ea7b31461031b575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190612ebf565b610934565b60405161027f9190612f07565b60405180910390f35b34801561029457600080fd5b5061029d6109c6565b6040516102aa9190612f3b565b60405180910390f35b3480156102bf57600080fd5b506102c86109d0565b6040516102d59190612fef565b60405180910390f35b3480156102ea57600080fd5b506103056004803603810190610300919061303d565b610a6b565b60405161031291906130ab565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d91906130f2565b610af0565b005b34801561035057600080fd5b50610359610c3a565b6040516103669190612f3b565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190613132565b610c63565b6040516103a39190612f3b565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce919061315f565b610c7b565b005b3480156103e157600080fd5b506103ea610fd6565b6040516103f79190612f3b565b60405180910390f35b34801561040c57600080fd5b50610415610fdc565b005b34801561042357600080fd5b5061043e6004803603810190610439919061303d565b6110a8565b005b34801561044c57600080fd5b50610455611136565b005b34801561046357600080fd5b5061047e6004803603810190610479919061315f565b6111bc565b005b34801561048c57600080fd5b506104a760048036038101906104a291906133bd565b6111dc565b005b3480156104b557600080fd5b506104be6112ba565b6040516104cb9190612f3b565b60405180910390f35b3480156104e057600080fd5b506104e96112c0565b6040516104f69190612f07565b60405180910390f35b34801561050b57600080fd5b506105266004803603810190610521919061303d565b6112d7565b60405161053391906130ab565b60405180910390f35b34801561054857600080fd5b50610563600480360381019061055e919061303d565b6112e9565b005b34801561057157600080fd5b5061057a61136f565b6040516105879190612f3b565b60405180910390f35b34801561059c57600080fd5b506105b760048036038101906105b2919061303d565b611375565b005b3480156105c557600080fd5b506105e060048036038101906105db9190613132565b6113fb565b6040516105ed9190612f3b565b60405180910390f35b34801561060257600080fd5b5061060b6114bd565b005b34801561061957600080fd5b50610622611545565b60405161062f9190612f3b565b60405180910390f35b34801561064457600080fd5b5061064d61154b565b005b34801561065b57600080fd5b506106646115d1565b6040516106719190612f3b565b60405180910390f35b34801561068657600080fd5b5061068f6115d7565b60405161069c91906130ab565b60405180910390f35b3480156106b157600080fd5b506106ba611601565b6040516106c79190612fef565b60405180910390f35b6106ea60048036038101906106e5919061303d565b61169c565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613461565b611d81565b005b34801561072157600080fd5b5061073c6004803603810190610737919061303d565b611f02565b005b34801561074a57600080fd5b50610753611f88565b6040516107609190612f3b565b60405180910390f35b34801561077557600080fd5b50610790600480360381019061078b9190613556565b611f8e565b005b6107ac60048036038101906107a7919061303d565b612001565b005b3480156107ba57600080fd5b506107d560048036038101906107d0919061367a565b61208a565b005b3480156107e357600080fd5b506107fe60048036038101906107f9919061303d565b612120565b005b34801561080c57600080fd5b506108276004803603810190610822919061303d565b6121a6565b6040516108349190612fef565b60405180910390f35b34801561084957600080fd5b5061085261229d565b60405161085f9190612f3b565b60405180910390f35b34801561087457600080fd5b5061088f600480360381019061088a91906136c3565b6122a3565b60405161089c9190612f07565b60405180910390f35b3480156108b157600080fd5b506108cc60048036038101906108c79190613132565b612340565b005b3480156108da57600080fd5b506108f560048036038101906108f0919061303d565b612438565b005b34801561090357600080fd5b5061091e60048036038101906109199190613132565b6124be565b60405161092b9190612f3b565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061098f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109bf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000609a54905090565b60606109da612507565b60020180546109e890613732565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1490613732565b8015610a615780601f10610a3657610100808354040283529160200191610a61565b820191906000526020600020905b815481529060010190602001808311610a4457829003601f168201915b5050505050905090565b6000610a7682612534565b610aac576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ab4612507565b600601600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afb826112d7565b90508073ffffffffffffffffffffffffffffffffffffffff16610b1c6125a5565b73ffffffffffffffffffffffffffffffffffffffff1614610b7f57610b4881610b436125a5565b6122a3565b610b7e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b82610b88612507565b600601600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c446125ad565b610c4c612507565b60010154610c58612507565b600001540303905090565b609f6020528060005260406000206000915090505481565b6000610c86826125b2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ced576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610cf98461269b565b91509150610d0f8187610d0a6125a5565b6126c6565b610d5b57610d2486610d1f6125a5565b6122a3565b610d5a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610dc2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dcf868686600161270a565b8015610dda57600082555b610de2612507565b60050160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550610e39612507565b60050160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610eba85610e96888887612710565b7c020000000000000000000000000000000000000000000000000000000017612738565b610ec2612507565b60040160008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f665760006001850190506000610f14612507565b6004016000838152602001908152602001600020541415610f6457610f37612507565b600001548114610f635783610f4a612507565b6004016000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fce8686866001612763565b505050505050565b609a5481565b610fe4612769565b73ffffffffffffffffffffffffffffffffffffffff166110026115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104f906137b0565b60405180910390fd5b6110606115d7565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110a5573d6000803e3d6000fd5b50565b6110b0612769565b73ffffffffffffffffffffffffffffffffffffffff166110ce6115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b906137b0565b60405180910390fd5b6000609a8190555080609b8190555050565b61113e612769565b73ffffffffffffffffffffffffffffffffffffffff1661115c6115d7565b73ffffffffffffffffffffffffffffffffffffffff16146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a9906137b0565b60405180910390fd5b6111ba612771565b565b6111d783838360405180602001604052806000815250611f8e565b505050565b6111e4612769565b73ffffffffffffffffffffffffffffffffffffffff166112026115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124f906137b0565b60405180910390fd5b60005b82518110156112b5576112a283828151811061127a576112796137d0565b5b6020026020010151838381518110611295576112946137d0565b5b6020026020010151612813565b80806112ad9061382e565b91505061125b565b505050565b60995481565b6000603360009054906101000a900460ff16905090565b60006112e2826125b2565b9050919050565b6112f1612769565b73ffffffffffffffffffffffffffffffffffffffff1661130f6115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135c906137b0565b60405180910390fd5b80609d8190555050565b60975481565b61137d612769565b73ffffffffffffffffffffffffffffffffffffffff1661139b6115d7565b73ffffffffffffffffffffffffffffffffffffffff16146113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e8906137b0565b60405180910390fd5b8060988190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611463576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff611474612507565b60050160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6114c5612769565b73ffffffffffffffffffffffffffffffffffffffff166114e36115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611539576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611530906137b0565b60405180910390fd5b6115436000612a0c565b565b609b5481565b611553612769565b73ffffffffffffffffffffffffffffffffffffffff166115716115d7565b73ffffffffffffffffffffffffffffffffffffffff16146115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be906137b0565b60405180910390fd5b6115cf612ad2565b565b609d5481565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606061160b612507565b600301805461161990613732565b80601f016020809104026020016040519081016040528092919081815260200182805461164590613732565b80156116925780601f1061166757610100808354040283529160200191611692565b820191906000526020600020905b81548152906001019060200180831161167557829003601f168201915b5050505050905090565b6098546116a7610c3a565b11156116e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116df906138c3565b60405180910390fd5b60985481609e546116f991906138e3565b111561173a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173190613985565b60405180910390fd5b60995481111561177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690613a17565b60405180910390fd5b609c548161178c33612b75565b61179691906138e3565b11156117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ce90613a83565b60405180910390fd5b609c54609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561185b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185290613aef565b60405180910390fd5b6000610e10609b5461186d91906138e3565b9050609d548260a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118bd91906138e3565b111580156118cd5750609b544210155b80156118d95750804211155b15611a1c5761012c82609a546118ef91906138e3565b1115611930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192790613b81565b60405180910390fd5b61193a3383612813565b81609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461198991906138e3565b925050819055508160a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119df91906138e3565b9250508190555081609a60008282546119f891906138e3565b92505081905550609e6000815480929190611a129061382e565b9190505550611d7d565b609d5460a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411158015611a6f5750609c548211155b8015611a7d5750609b544210155b8015611a895750804211155b15611cb257600060a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054609d54611add9190613ba1565b9050348184611aec9190613ba1565b609754611af99190613bd5565b1115611b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3190613c7b565b60405180910390fd5b61012c81609a54611b4b91906138e3565b1115611b8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8390613b81565b60405180910390fd5b611b963384612813565b82609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611be591906138e3565b9250508190555060a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481611c3791906138e3565b60a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080609a6000828254611c8c91906138e3565b9250508190555082609e6000828254611ca591906138e3565b9250508190555050611d7c565b3482609754611cc19190613bd5565b1115611d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf990613c7b565b60405180910390fd5b611d0c3383612813565b81609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d5b91906138e3565b9250508190555081609e6000828254611d7491906138e3565b925050819055505b5b5050565b611d896125a5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dee576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80611df7612507565b6007016000611e046125a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611eb16125a5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ef69190612f07565b60405180910390a35050565b611f0a612769565b73ffffffffffffffffffffffffffffffffffffffff16611f286115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f75906137b0565b60405180910390fd5b80609c8190555050565b609c5481565b611f99848484610c7b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ffb57611fc484848484612bd5565b611ffa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612009612769565b73ffffffffffffffffffffffffffffffffffffffff166120276115d7565b73ffffffffffffffffffffffffffffffffffffffff161461207d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612074906137b0565b60405180910390fd5b6120873382612813565b50565b612092612769565b73ffffffffffffffffffffffffffffffffffffffff166120b06115d7565b73ffffffffffffffffffffffffffffffffffffffff1614612106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fd906137b0565b60405180910390fd5b8060a1908051906020019061211c929190612db0565b5050565b612128612769565b73ffffffffffffffffffffffffffffffffffffffff166121466115d7565b73ffffffffffffffffffffffffffffffffffffffff161461219c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612193906137b0565b60405180910390fd5b8060998190555050565b60606121b182612534565b6121e7576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152509050600061222b612d26565b90506000815114156122695760a161224285612d3d565b8360405160200161225593929190613d6b565b604051602081830303815290604052612294565b8061227385612d3d565b604051602001612284929190613d9c565b6040516020818303038152906040525b92505050919050565b60985481565b60006122ad612507565b60070160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612348612769565b73ffffffffffffffffffffffffffffffffffffffff166123666115d7565b73ffffffffffffffffffffffffffffffffffffffff16146123bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b3906137b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561242c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242390613e32565b60405180910390fd5b61243581612a0c565b50565b612440612769565b73ffffffffffffffffffffffffffffffffffffffff1661245e6115d7565b73ffffffffffffffffffffffffffffffffffffffff16146124b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ab906137b0565b60405180910390fd5b8060978190555050565b600060a260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000807f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090508091505090565b60008161253f6125ad565b111580156125575750612550612507565b6000015482105b801561259e575060007c0100000000000000000000000000000000000000000000000000000000612586612507565b60040160008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b600080829050806125c16125ad565b11612664576125ce612507565b600001548110156126635760006125e3612507565b600401600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612661575b600081141561265757612634612507565b600401600083600190039350838152602001908152602001600020549050612623565b8092505050612696565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006126a8612507565b60060190508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612727868684612d97565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6127796112c0565b6127b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127af90613e9e565b60405180910390fd5b6000603360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127fc612769565b60405161280991906130ab565b60405180910390a1565b600061281d612507565b600001549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561288a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156128c5576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128d2600084838561270a565b600160406001901b1782026128e5612507565b60050160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612952836129436000866000612710565b61294c85612da0565b17612738565b61295a612507565b6004016000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061297f57806129f1612507565b600001819055505050612a076000848385612763565b505050565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612ada6112c0565b15612b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1190613f0a565b60405180910390fd5b6001603360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b5e612769565b604051612b6b91906130ab565b60405180910390a1565b600067ffffffffffffffff6040612b8a612507565b60050160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bfb6125a5565b8786866040518563ffffffff1660e01b8152600401612c1d9493929190613f7f565b6020604051808303816000875af1925050508015612c5957506040513d601f19601f82011682018060405250810190612c569190613fe0565b60015b612cd3573d8060008114612c89576040519150601f19603f3d011682016040523d82523d6000602084013e612c8e565b606091505b50600081511415612ccb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060405180602001604052806000815250905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612d8357600183039250600a81066030018353600a81049050612d63565b508181036020830392508083525050919050565b60009392505050565b60006001821460e11b9050919050565b828054612dbc90613732565b90600052602060002090601f016020900481019282612dde5760008555612e25565b82601f10612df757805160ff1916838001178555612e25565b82800160010185558215612e25579182015b82811115612e24578251825591602001919060010190612e09565b5b509050612e329190612e36565b5090565b5b80821115612e4f576000816000905550600101612e37565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e9c81612e67565b8114612ea757600080fd5b50565b600081359050612eb981612e93565b92915050565b600060208284031215612ed557612ed4612e5d565b5b6000612ee384828501612eaa565b91505092915050565b60008115159050919050565b612f0181612eec565b82525050565b6000602082019050612f1c6000830184612ef8565b92915050565b6000819050919050565b612f3581612f22565b82525050565b6000602082019050612f506000830184612f2c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f90578082015181840152602081019050612f75565b83811115612f9f576000848401525b50505050565b6000601f19601f8301169050919050565b6000612fc182612f56565b612fcb8185612f61565b9350612fdb818560208601612f72565b612fe481612fa5565b840191505092915050565b600060208201905081810360008301526130098184612fb6565b905092915050565b61301a81612f22565b811461302557600080fd5b50565b60008135905061303781613011565b92915050565b60006020828403121561305357613052612e5d565b5b600061306184828501613028565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130958261306a565b9050919050565b6130a58161308a565b82525050565b60006020820190506130c0600083018461309c565b92915050565b6130cf8161308a565b81146130da57600080fd5b50565b6000813590506130ec816130c6565b92915050565b6000806040838503121561310957613108612e5d565b5b6000613117858286016130dd565b925050602061312885828601613028565b9150509250929050565b60006020828403121561314857613147612e5d565b5b6000613156848285016130dd565b91505092915050565b60008060006060848603121561317857613177612e5d565b5b6000613186868287016130dd565b9350506020613197868287016130dd565b92505060406131a886828701613028565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131ef82612fa5565b810181811067ffffffffffffffff8211171561320e5761320d6131b7565b5b80604052505050565b6000613221612e53565b905061322d82826131e6565b919050565b600067ffffffffffffffff82111561324d5761324c6131b7565b5b602082029050602081019050919050565b600080fd5b600061327661327184613232565b613217565b905080838252602082019050602084028301858111156132995761329861325e565b5b835b818110156132c257806132ae88826130dd565b84526020840193505060208101905061329b565b5050509392505050565b600082601f8301126132e1576132e06131b2565b5b81356132f1848260208601613263565b91505092915050565b600067ffffffffffffffff821115613315576133146131b7565b5b602082029050602081019050919050565b6000613339613334846132fa565b613217565b9050808382526020820190506020840283018581111561335c5761335b61325e565b5b835b8181101561338557806133718882613028565b84526020840193505060208101905061335e565b5050509392505050565b600082601f8301126133a4576133a36131b2565b5b81356133b4848260208601613326565b91505092915050565b600080604083850312156133d4576133d3612e5d565b5b600083013567ffffffffffffffff8111156133f2576133f1612e62565b5b6133fe858286016132cc565b925050602083013567ffffffffffffffff81111561341f5761341e612e62565b5b61342b8582860161338f565b9150509250929050565b61343e81612eec565b811461344957600080fd5b50565b60008135905061345b81613435565b92915050565b6000806040838503121561347857613477612e5d565b5b6000613486858286016130dd565b92505060206134978582860161344c565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156134c1576134c06131b7565b5b6134ca82612fa5565b9050602081019050919050565b82818337600083830152505050565b60006134f96134f4846134a6565b613217565b905082815260208101848484011115613515576135146134a1565b5b6135208482856134d7565b509392505050565b600082601f83011261353d5761353c6131b2565b5b813561354d8482602086016134e6565b91505092915050565b600080600080608085870312156135705761356f612e5d565b5b600061357e878288016130dd565b945050602061358f878288016130dd565b93505060406135a087828801613028565b925050606085013567ffffffffffffffff8111156135c1576135c0612e62565b5b6135cd87828801613528565b91505092959194509250565b600067ffffffffffffffff8211156135f4576135f36131b7565b5b6135fd82612fa5565b9050602081019050919050565b600061361d613618846135d9565b613217565b905082815260208101848484011115613639576136386134a1565b5b6136448482856134d7565b509392505050565b600082601f830112613661576136606131b2565b5b813561367184826020860161360a565b91505092915050565b6000602082840312156136905761368f612e5d565b5b600082013567ffffffffffffffff8111156136ae576136ad612e62565b5b6136ba8482850161364c565b91505092915050565b600080604083850312156136da576136d9612e5d565b5b60006136e8858286016130dd565b92505060206136f9858286016130dd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061374a57607f821691505b6020821081141561375e5761375d613703565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061379a602083612f61565b91506137a582613764565b602082019050919050565b600060208201905081810360008301526137c98161378d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383982612f22565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561386c5761386b6137ff565b5b600182019050919050565b7f4d696e74696e6720456e64730000000000000000000000000000000000000000600082015250565b60006138ad600c83612f61565b91506138b882613877565b602082019050919050565b600060208201905081810360008301526138dc816138a0565b9050919050565b60006138ee82612f22565b91506138f983612f22565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561392e5761392d6137ff565b5b828201905092915050565b7f546f6b656e7320617265206f7574207468657265206e6f770000000000000000600082015250565b600061396f601883612f61565b915061397a82613939565b602082019050919050565b6000602082019050818103600083015261399e81613962565b9050919050565b7f4d696e74696e67206e65656420746f206265206c657373207468656e206d617860008201527f4d696e74696e6700000000000000000000000000000000000000000000000000602082015250565b6000613a01602783612f61565b9150613a0c826139a5565b604082019050919050565b60006020820190508181036000830152613a30816139f4565b9050919050565b7f546f6f206d616e79206d696e7420666f7220616e206164647265737300000000600082015250565b6000613a6d601c83612f61565b9150613a7882613a37565b602082019050919050565b60006020820190508181036000830152613a9c81613a60565b9050919050565b7f4f6e6c79203520616c6c6f77656420706572206d696e74000000000000000000600082015250565b6000613ad9601783612f61565b9150613ae482613aa3565b602082019050919050565b60006020820190508181036000830152613b0881613acc565b9050919050565b7f4f6e6c792033303020746f6b656e732070657220706861736520617661696c6160008201527f626c650000000000000000000000000000000000000000000000000000000000602082015250565b6000613b6b602383612f61565b9150613b7682613b0f565b604082019050919050565b60006020820190508181036000830152613b9a81613b5e565b9050919050565b6000613bac82612f22565b9150613bb783612f22565b925082821015613bca57613bc96137ff565b5b828203905092915050565b6000613be082612f22565b9150613beb83612f22565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c2457613c236137ff565b5b828202905092915050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000613c65601f83612f61565b9150613c7082613c2f565b602082019050919050565b60006020820190508181036000830152613c9481613c58565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613cc881613732565b613cd28186613c9b565b94506001821660008114613ced5760018114613cfe57613d31565b60ff19831686528186019350613d31565b613d0785613ca6565b60005b83811015613d2957815481890152600182019150602081019050613d0a565b838801955050505b50505092915050565b6000613d4582612f56565b613d4f8185613c9b565b9350613d5f818560208601612f72565b80840191505092915050565b6000613d778286613cbb565b9150613d838285613d3a565b9150613d8f8284613d3a565b9150819050949350505050565b6000613da88285613d3a565b9150613db48284613d3a565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e1c602683612f61565b9150613e2782613dc0565b604082019050919050565b60006020820190508181036000830152613e4b81613e0f565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613e88601483612f61565b9150613e9382613e52565b602082019050919050565b60006020820190508181036000830152613eb781613e7b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613ef4601083612f61565b9150613eff82613ebe565b602082019050919050565b60006020820190508181036000830152613f2381613ee7565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613f5182613f2a565b613f5b8185613f35565b9350613f6b818560208601612f72565b613f7481612fa5565b840191505092915050565b6000608082019050613f94600083018761309c565b613fa1602083018661309c565b613fae6040830185612f2c565b8181036060830152613fc08184613f46565b905095945050505050565b600081519050613fda81612e93565b92915050565b600060208284031215613ff657613ff5612e5d565b5b600061400484828501613fcb565b9150509291505056fea264697066735822122068f45b8abd15a533c5499a390cb73e75388635f5624fc2b62b08a4547eb20e0564736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106102465760003560e01c806370a0823111610139578063b228d925116100b6578063c87b56dd1161007a578063c87b56dd14610800578063d5abeb011461083d578063e985e9c514610868578063f2fde38b146108a5578063f4a0a528146108ce578063fc98cc8e146108f757610246565b8063b228d9251461073e578063b88d4fde14610769578063c1f2612314610792578063c7c3268b146107ae578063c86f1a02146107d757610246565b80638da5cb5b116100fd5780638da5cb5b1461067a57806395d89b41146106a5578063a0712d68146106d0578063a22cb465146106ec578063afdf61341461071557610246565b806370a08231146105b9578063715018a6146105f657806378e979251461060d5780638456cb5914610638578063845bb3bb1461064f57610246565b80633e0a322d116101c75780635c975abb1161018b5780635c975abb146104d45780636352211e146104ff578063663094851461053c5780636817c76c146105655780636f8b44b01461059057610246565b80633e0a322d146104175780633f4ba83a1461044057806342842e0e14610457578063441a4f4c1461048057806348094b7c146104a957610246565b806318160ddd1161020e57806318160ddd146103445780631e7269c51461036f57806323b872dd146103ac578063361218c3146103d55780633ccfd60b1461040057610246565b806301ffc9a71461024b578063045258621461028857806306fdde03146102b3578063081812fc146102de578063095ea7b31461031b575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190612ebf565b610934565b60405161027f9190612f07565b60405180910390f35b34801561029457600080fd5b5061029d6109c6565b6040516102aa9190612f3b565b60405180910390f35b3480156102bf57600080fd5b506102c86109d0565b6040516102d59190612fef565b60405180910390f35b3480156102ea57600080fd5b506103056004803603810190610300919061303d565b610a6b565b60405161031291906130ab565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d91906130f2565b610af0565b005b34801561035057600080fd5b50610359610c3a565b6040516103669190612f3b565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190613132565b610c63565b6040516103a39190612f3b565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce919061315f565b610c7b565b005b3480156103e157600080fd5b506103ea610fd6565b6040516103f79190612f3b565b60405180910390f35b34801561040c57600080fd5b50610415610fdc565b005b34801561042357600080fd5b5061043e6004803603810190610439919061303d565b6110a8565b005b34801561044c57600080fd5b50610455611136565b005b34801561046357600080fd5b5061047e6004803603810190610479919061315f565b6111bc565b005b34801561048c57600080fd5b506104a760048036038101906104a291906133bd565b6111dc565b005b3480156104b557600080fd5b506104be6112ba565b6040516104cb9190612f3b565b60405180910390f35b3480156104e057600080fd5b506104e96112c0565b6040516104f69190612f07565b60405180910390f35b34801561050b57600080fd5b506105266004803603810190610521919061303d565b6112d7565b60405161053391906130ab565b60405180910390f35b34801561054857600080fd5b50610563600480360381019061055e919061303d565b6112e9565b005b34801561057157600080fd5b5061057a61136f565b6040516105879190612f3b565b60405180910390f35b34801561059c57600080fd5b506105b760048036038101906105b2919061303d565b611375565b005b3480156105c557600080fd5b506105e060048036038101906105db9190613132565b6113fb565b6040516105ed9190612f3b565b60405180910390f35b34801561060257600080fd5b5061060b6114bd565b005b34801561061957600080fd5b50610622611545565b60405161062f9190612f3b565b60405180910390f35b34801561064457600080fd5b5061064d61154b565b005b34801561065b57600080fd5b506106646115d1565b6040516106719190612f3b565b60405180910390f35b34801561068657600080fd5b5061068f6115d7565b60405161069c91906130ab565b60405180910390f35b3480156106b157600080fd5b506106ba611601565b6040516106c79190612fef565b60405180910390f35b6106ea60048036038101906106e5919061303d565b61169c565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613461565b611d81565b005b34801561072157600080fd5b5061073c6004803603810190610737919061303d565b611f02565b005b34801561074a57600080fd5b50610753611f88565b6040516107609190612f3b565b60405180910390f35b34801561077557600080fd5b50610790600480360381019061078b9190613556565b611f8e565b005b6107ac60048036038101906107a7919061303d565b612001565b005b3480156107ba57600080fd5b506107d560048036038101906107d0919061367a565b61208a565b005b3480156107e357600080fd5b506107fe60048036038101906107f9919061303d565b612120565b005b34801561080c57600080fd5b506108276004803603810190610822919061303d565b6121a6565b6040516108349190612fef565b60405180910390f35b34801561084957600080fd5b5061085261229d565b60405161085f9190612f3b565b60405180910390f35b34801561087457600080fd5b5061088f600480360381019061088a91906136c3565b6122a3565b60405161089c9190612f07565b60405180910390f35b3480156108b157600080fd5b506108cc60048036038101906108c79190613132565b612340565b005b3480156108da57600080fd5b506108f560048036038101906108f0919061303d565b612438565b005b34801561090357600080fd5b5061091e60048036038101906109199190613132565b6124be565b60405161092b9190612f3b565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061098f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109bf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000609a54905090565b60606109da612507565b60020180546109e890613732565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1490613732565b8015610a615780601f10610a3657610100808354040283529160200191610a61565b820191906000526020600020905b815481529060010190602001808311610a4457829003601f168201915b5050505050905090565b6000610a7682612534565b610aac576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ab4612507565b600601600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afb826112d7565b90508073ffffffffffffffffffffffffffffffffffffffff16610b1c6125a5565b73ffffffffffffffffffffffffffffffffffffffff1614610b7f57610b4881610b436125a5565b6122a3565b610b7e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b82610b88612507565b600601600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c446125ad565b610c4c612507565b60010154610c58612507565b600001540303905090565b609f6020528060005260406000206000915090505481565b6000610c86826125b2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ced576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610cf98461269b565b91509150610d0f8187610d0a6125a5565b6126c6565b610d5b57610d2486610d1f6125a5565b6122a3565b610d5a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610dc2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dcf868686600161270a565b8015610dda57600082555b610de2612507565b60050160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550610e39612507565b60050160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610eba85610e96888887612710565b7c020000000000000000000000000000000000000000000000000000000017612738565b610ec2612507565b60040160008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f665760006001850190506000610f14612507565b6004016000838152602001908152602001600020541415610f6457610f37612507565b600001548114610f635783610f4a612507565b6004016000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fce8686866001612763565b505050505050565b609a5481565b610fe4612769565b73ffffffffffffffffffffffffffffffffffffffff166110026115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104f906137b0565b60405180910390fd5b6110606115d7565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110a5573d6000803e3d6000fd5b50565b6110b0612769565b73ffffffffffffffffffffffffffffffffffffffff166110ce6115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b906137b0565b60405180910390fd5b6000609a8190555080609b8190555050565b61113e612769565b73ffffffffffffffffffffffffffffffffffffffff1661115c6115d7565b73ffffffffffffffffffffffffffffffffffffffff16146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a9906137b0565b60405180910390fd5b6111ba612771565b565b6111d783838360405180602001604052806000815250611f8e565b505050565b6111e4612769565b73ffffffffffffffffffffffffffffffffffffffff166112026115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124f906137b0565b60405180910390fd5b60005b82518110156112b5576112a283828151811061127a576112796137d0565b5b6020026020010151838381518110611295576112946137d0565b5b6020026020010151612813565b80806112ad9061382e565b91505061125b565b505050565b60995481565b6000603360009054906101000a900460ff16905090565b60006112e2826125b2565b9050919050565b6112f1612769565b73ffffffffffffffffffffffffffffffffffffffff1661130f6115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135c906137b0565b60405180910390fd5b80609d8190555050565b60975481565b61137d612769565b73ffffffffffffffffffffffffffffffffffffffff1661139b6115d7565b73ffffffffffffffffffffffffffffffffffffffff16146113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e8906137b0565b60405180910390fd5b8060988190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611463576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff611474612507565b60050160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6114c5612769565b73ffffffffffffffffffffffffffffffffffffffff166114e36115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611539576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611530906137b0565b60405180910390fd5b6115436000612a0c565b565b609b5481565b611553612769565b73ffffffffffffffffffffffffffffffffffffffff166115716115d7565b73ffffffffffffffffffffffffffffffffffffffff16146115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be906137b0565b60405180910390fd5b6115cf612ad2565b565b609d5481565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606061160b612507565b600301805461161990613732565b80601f016020809104026020016040519081016040528092919081815260200182805461164590613732565b80156116925780601f1061166757610100808354040283529160200191611692565b820191906000526020600020905b81548152906001019060200180831161167557829003601f168201915b5050505050905090565b6098546116a7610c3a565b11156116e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116df906138c3565b60405180910390fd5b60985481609e546116f991906138e3565b111561173a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173190613985565b60405180910390fd5b60995481111561177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690613a17565b60405180910390fd5b609c548161178c33612b75565b61179691906138e3565b11156117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ce90613a83565b60405180910390fd5b609c54609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561185b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185290613aef565b60405180910390fd5b6000610e10609b5461186d91906138e3565b9050609d548260a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118bd91906138e3565b111580156118cd5750609b544210155b80156118d95750804211155b15611a1c5761012c82609a546118ef91906138e3565b1115611930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192790613b81565b60405180910390fd5b61193a3383612813565b81609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461198991906138e3565b925050819055508160a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119df91906138e3565b9250508190555081609a60008282546119f891906138e3565b92505081905550609e6000815480929190611a129061382e565b9190505550611d7d565b609d5460a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411158015611a6f5750609c548211155b8015611a7d5750609b544210155b8015611a895750804211155b15611cb257600060a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054609d54611add9190613ba1565b9050348184611aec9190613ba1565b609754611af99190613bd5565b1115611b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3190613c7b565b60405180910390fd5b61012c81609a54611b4b91906138e3565b1115611b8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8390613b81565b60405180910390fd5b611b963384612813565b82609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611be591906138e3565b9250508190555060a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481611c3791906138e3565b60a260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080609a6000828254611c8c91906138e3565b9250508190555082609e6000828254611ca591906138e3565b9250508190555050611d7c565b3482609754611cc19190613bd5565b1115611d02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf990613c7b565b60405180910390fd5b611d0c3383612813565b81609f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d5b91906138e3565b9250508190555081609e6000828254611d7491906138e3565b925050819055505b5b5050565b611d896125a5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dee576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80611df7612507565b6007016000611e046125a5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611eb16125a5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ef69190612f07565b60405180910390a35050565b611f0a612769565b73ffffffffffffffffffffffffffffffffffffffff16611f286115d7565b73ffffffffffffffffffffffffffffffffffffffff1614611f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f75906137b0565b60405180910390fd5b80609c8190555050565b609c5481565b611f99848484610c7b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ffb57611fc484848484612bd5565b611ffa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612009612769565b73ffffffffffffffffffffffffffffffffffffffff166120276115d7565b73ffffffffffffffffffffffffffffffffffffffff161461207d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612074906137b0565b60405180910390fd5b6120873382612813565b50565b612092612769565b73ffffffffffffffffffffffffffffffffffffffff166120b06115d7565b73ffffffffffffffffffffffffffffffffffffffff1614612106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fd906137b0565b60405180910390fd5b8060a1908051906020019061211c929190612db0565b5050565b612128612769565b73ffffffffffffffffffffffffffffffffffffffff166121466115d7565b73ffffffffffffffffffffffffffffffffffffffff161461219c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612193906137b0565b60405180910390fd5b8060998190555050565b60606121b182612534565b6121e7576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518060400160405280600581526020017f2e6a736f6e0000000000000000000000000000000000000000000000000000008152509050600061222b612d26565b90506000815114156122695760a161224285612d3d565b8360405160200161225593929190613d6b565b604051602081830303815290604052612294565b8061227385612d3d565b604051602001612284929190613d9c565b6040516020818303038152906040525b92505050919050565b60985481565b60006122ad612507565b60070160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612348612769565b73ffffffffffffffffffffffffffffffffffffffff166123666115d7565b73ffffffffffffffffffffffffffffffffffffffff16146123bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b3906137b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561242c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242390613e32565b60405180910390fd5b61243581612a0c565b50565b612440612769565b73ffffffffffffffffffffffffffffffffffffffff1661245e6115d7565b73ffffffffffffffffffffffffffffffffffffffff16146124b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ab906137b0565b60405180910390fd5b8060978190555050565b600060a260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000807f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090508091505090565b60008161253f6125ad565b111580156125575750612550612507565b6000015482105b801561259e575060007c0100000000000000000000000000000000000000000000000000000000612586612507565b60040160008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b600080829050806125c16125ad565b11612664576125ce612507565b600001548110156126635760006125e3612507565b600401600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612661575b600081141561265757612634612507565b600401600083600190039350838152602001908152602001600020549050612623565b8092505050612696565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006126a8612507565b60060190508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612727868684612d97565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6127796112c0565b6127b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127af90613e9e565b60405180910390fd5b6000603360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127fc612769565b60405161280991906130ab565b60405180910390a1565b600061281d612507565b600001549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561288a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156128c5576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128d2600084838561270a565b600160406001901b1782026128e5612507565b60050160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612952836129436000866000612710565b61294c85612da0565b17612738565b61295a612507565b6004016000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061297f57806129f1612507565b600001819055505050612a076000848385612763565b505050565b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612ada6112c0565b15612b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1190613f0a565b60405180910390fd5b6001603360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b5e612769565b604051612b6b91906130ab565b60405180910390a1565b600067ffffffffffffffff6040612b8a612507565b60050160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bfb6125a5565b8786866040518563ffffffff1660e01b8152600401612c1d9493929190613f7f565b6020604051808303816000875af1925050508015612c5957506040513d601f19601f82011682018060405250810190612c569190613fe0565b60015b612cd3573d8060008114612c89576040519150601f19603f3d011682016040523d82523d6000602084013e612c8e565b606091505b50600081511415612ccb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060405180602001604052806000815250905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612d8357600183039250600a81066030018353600a81049050612d63565b508181036020830392508083525050919050565b60009392505050565b60006001821460e11b9050919050565b828054612dbc90613732565b90600052602060002090601f016020900481019282612dde5760008555612e25565b82601f10612df757805160ff1916838001178555612e25565b82800160010185558215612e25579182015b82811115612e24578251825591602001919060010190612e09565b5b509050612e329190612e36565b5090565b5b80821115612e4f576000816000905550600101612e37565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e9c81612e67565b8114612ea757600080fd5b50565b600081359050612eb981612e93565b92915050565b600060208284031215612ed557612ed4612e5d565b5b6000612ee384828501612eaa565b91505092915050565b60008115159050919050565b612f0181612eec565b82525050565b6000602082019050612f1c6000830184612ef8565b92915050565b6000819050919050565b612f3581612f22565b82525050565b6000602082019050612f506000830184612f2c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f90578082015181840152602081019050612f75565b83811115612f9f576000848401525b50505050565b6000601f19601f8301169050919050565b6000612fc182612f56565b612fcb8185612f61565b9350612fdb818560208601612f72565b612fe481612fa5565b840191505092915050565b600060208201905081810360008301526130098184612fb6565b905092915050565b61301a81612f22565b811461302557600080fd5b50565b60008135905061303781613011565b92915050565b60006020828403121561305357613052612e5d565b5b600061306184828501613028565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006130958261306a565b9050919050565b6130a58161308a565b82525050565b60006020820190506130c0600083018461309c565b92915050565b6130cf8161308a565b81146130da57600080fd5b50565b6000813590506130ec816130c6565b92915050565b6000806040838503121561310957613108612e5d565b5b6000613117858286016130dd565b925050602061312885828601613028565b9150509250929050565b60006020828403121561314857613147612e5d565b5b6000613156848285016130dd565b91505092915050565b60008060006060848603121561317857613177612e5d565b5b6000613186868287016130dd565b9350506020613197868287016130dd565b92505060406131a886828701613028565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6131ef82612fa5565b810181811067ffffffffffffffff8211171561320e5761320d6131b7565b5b80604052505050565b6000613221612e53565b905061322d82826131e6565b919050565b600067ffffffffffffffff82111561324d5761324c6131b7565b5b602082029050602081019050919050565b600080fd5b600061327661327184613232565b613217565b905080838252602082019050602084028301858111156132995761329861325e565b5b835b818110156132c257806132ae88826130dd565b84526020840193505060208101905061329b565b5050509392505050565b600082601f8301126132e1576132e06131b2565b5b81356132f1848260208601613263565b91505092915050565b600067ffffffffffffffff821115613315576133146131b7565b5b602082029050602081019050919050565b6000613339613334846132fa565b613217565b9050808382526020820190506020840283018581111561335c5761335b61325e565b5b835b8181101561338557806133718882613028565b84526020840193505060208101905061335e565b5050509392505050565b600082601f8301126133a4576133a36131b2565b5b81356133b4848260208601613326565b91505092915050565b600080604083850312156133d4576133d3612e5d565b5b600083013567ffffffffffffffff8111156133f2576133f1612e62565b5b6133fe858286016132cc565b925050602083013567ffffffffffffffff81111561341f5761341e612e62565b5b61342b8582860161338f565b9150509250929050565b61343e81612eec565b811461344957600080fd5b50565b60008135905061345b81613435565b92915050565b6000806040838503121561347857613477612e5d565b5b6000613486858286016130dd565b92505060206134978582860161344c565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156134c1576134c06131b7565b5b6134ca82612fa5565b9050602081019050919050565b82818337600083830152505050565b60006134f96134f4846134a6565b613217565b905082815260208101848484011115613515576135146134a1565b5b6135208482856134d7565b509392505050565b600082601f83011261353d5761353c6131b2565b5b813561354d8482602086016134e6565b91505092915050565b600080600080608085870312156135705761356f612e5d565b5b600061357e878288016130dd565b945050602061358f878288016130dd565b93505060406135a087828801613028565b925050606085013567ffffffffffffffff8111156135c1576135c0612e62565b5b6135cd87828801613528565b91505092959194509250565b600067ffffffffffffffff8211156135f4576135f36131b7565b5b6135fd82612fa5565b9050602081019050919050565b600061361d613618846135d9565b613217565b905082815260208101848484011115613639576136386134a1565b5b6136448482856134d7565b509392505050565b600082601f830112613661576136606131b2565b5b813561367184826020860161360a565b91505092915050565b6000602082840312156136905761368f612e5d565b5b600082013567ffffffffffffffff8111156136ae576136ad612e62565b5b6136ba8482850161364c565b91505092915050565b600080604083850312156136da576136d9612e5d565b5b60006136e8858286016130dd565b92505060206136f9858286016130dd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061374a57607f821691505b6020821081141561375e5761375d613703565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061379a602083612f61565b91506137a582613764565b602082019050919050565b600060208201905081810360008301526137c98161378d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383982612f22565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561386c5761386b6137ff565b5b600182019050919050565b7f4d696e74696e6720456e64730000000000000000000000000000000000000000600082015250565b60006138ad600c83612f61565b91506138b882613877565b602082019050919050565b600060208201905081810360008301526138dc816138a0565b9050919050565b60006138ee82612f22565b91506138f983612f22565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561392e5761392d6137ff565b5b828201905092915050565b7f546f6b656e7320617265206f7574207468657265206e6f770000000000000000600082015250565b600061396f601883612f61565b915061397a82613939565b602082019050919050565b6000602082019050818103600083015261399e81613962565b9050919050565b7f4d696e74696e67206e65656420746f206265206c657373207468656e206d617860008201527f4d696e74696e6700000000000000000000000000000000000000000000000000602082015250565b6000613a01602783612f61565b9150613a0c826139a5565b604082019050919050565b60006020820190508181036000830152613a30816139f4565b9050919050565b7f546f6f206d616e79206d696e7420666f7220616e206164647265737300000000600082015250565b6000613a6d601c83612f61565b9150613a7882613a37565b602082019050919050565b60006020820190508181036000830152613a9c81613a60565b9050919050565b7f4f6e6c79203520616c6c6f77656420706572206d696e74000000000000000000600082015250565b6000613ad9601783612f61565b9150613ae482613aa3565b602082019050919050565b60006020820190508181036000830152613b0881613acc565b9050919050565b7f4f6e6c792033303020746f6b656e732070657220706861736520617661696c6160008201527f626c650000000000000000000000000000000000000000000000000000000000602082015250565b6000613b6b602383612f61565b9150613b7682613b0f565b604082019050919050565b60006020820190508181036000830152613b9a81613b5e565b9050919050565b6000613bac82612f22565b9150613bb783612f22565b925082821015613bca57613bc96137ff565b5b828203905092915050565b6000613be082612f22565b9150613beb83612f22565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c2457613c236137ff565b5b828202905092915050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b6000613c65601f83612f61565b9150613c7082613c2f565b602082019050919050565b60006020820190508181036000830152613c9481613c58565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613cc881613732565b613cd28186613c9b565b94506001821660008114613ced5760018114613cfe57613d31565b60ff19831686528186019350613d31565b613d0785613ca6565b60005b83811015613d2957815481890152600182019150602081019050613d0a565b838801955050505b50505092915050565b6000613d4582612f56565b613d4f8185613c9b565b9350613d5f818560208601612f72565b80840191505092915050565b6000613d778286613cbb565b9150613d838285613d3a565b9150613d8f8284613d3a565b9150819050949350505050565b6000613da88285613d3a565b9150613db48284613d3a565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e1c602683612f61565b9150613e2782613dc0565b604082019050919050565b60006020820190508181036000830152613e4b81613e0f565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613e88601483612f61565b9150613e9382613e52565b602082019050919050565b60006020820190508181036000830152613eb781613e7b565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613ef4601083612f61565b9150613eff82613ebe565b602082019050919050565b60006020820190508181036000830152613f2381613ee7565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613f5182613f2a565b613f5b8185613f35565b9350613f6b818560208601612f72565b613f7481612fa5565b840191505092915050565b6000608082019050613f94600083018761309c565b613fa1602083018661309c565b613fae6040830185612f2c565b8181036060830152613fc08184613f46565b905095945050505050565b600081519050613fda81612e93565b92915050565b600060208284031215613ff657613ff5612e5d565b5b600061400484828501613fcb565b9150509291505056fea264697066735822122068f45b8abd15a533c5499a390cb73e75388635f5624fc2b62b08a4547eb20e0564736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.