ERC-721
Overview
Max Total Supply
1,196 STH
Holders
106
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 STHLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Something
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract Something is ERC721A, Ownable, ReentrancyGuard { struct PeriodInfo { uint256 limitPerWallet; uint256 supply; uint256 curSupply; uint256 price; bool sign; } struct Period { PeriodInfo info; mapping(address => uint256) mintList; } uint256 public MAX_SUPPLY = 10000; Period[] private periods; string public baseURI; // 0 -- None period // 1 -- Whitelist mint period // 2 ~ 10 -- Public sale mint period uint256 public periodState = 0; constructor(string memory uri) ERC721A("Something", "STH") { baseURI = uri; // whitelist period _addPeriod(2, 1000, 1e16, true); // public sale period for (int i = 0; i < 9; i++) { _addPeriod(1000, 1000, 2e16, false); } } function _addPeriod(uint256 limitPerWallet, uint256 supply, uint256 price, bool sign) internal { uint256 idx = periods.length; periods.push(); periods[idx].info.limitPerWallet = limitPerWallet; periods[idx].info.supply = supply; periods[idx].info.curSupply = 0; periods[idx].info.price = price; periods[idx].info.sign = sign; } function _getPeriod(uint256 state) internal view returns (Period storage) { require(state > 0, "period state error"); return periods[state - 1]; } function _baseURI() internal view override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function periodInfo(uint256 state) external view returns (PeriodInfo memory) { return _getPeriod(state).info; } function periodMints(uint256 state, address owner) external view returns (uint256) { Period storage period = _getPeriod(state); return period.mintList[owner]; } function remainMints(address owner) external view returns (uint256) { Period storage period = _getPeriod(periodState); uint256 walletRemain = period.info.limitPerWallet - period.mintList[owner]; uint256 periodRemain = period.info.supply - period.info.curSupply; uint256 totalRemain = MAX_SUPPLY - totalSupply(); uint256 remain = walletRemain < periodRemain ? walletRemain : periodRemain; return remain < totalRemain ? remain : totalRemain; } function mint(uint256 quantity, bytes calldata sign) external payable nonReentrant { require(msg.sender == tx.origin, "not allowed"); Period storage period = _getPeriod(periodState); require((totalSupply() + quantity <= MAX_SUPPLY), "total supply limit"); require((period.info.curSupply + quantity <= period.info.supply), "period supply limit"); require((period.mintList[msg.sender] + quantity <= period.info.limitPerWallet) && (quantity > 0), "quantity limit"); period.mintList[msg.sender] += quantity; period.info.curSupply += quantity; uint256 price = period.info.price * quantity; if (period.info.sign) { bytes32 hashBytes = keccak256(abi.encodePacked(name(), periodState, msg.sender)); bytes32 message = ECDSA.toEthSignedMessageHash(hashBytes); address signer = ECDSA.recover(message, sign); require(signer == owner(), "illegal signature"); } require(msg.value >= price, "need more ETH"); _safeMint(msg.sender, quantity); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "transfer failed"); } function devMint(address to, uint256 quantity) public onlyOwner nonReentrant { require(totalSupply() + quantity <= MAX_SUPPLY, "supply limit"); _safeMint(to, quantity); } function setURI(string memory newBaseURI) external onlyOwner { baseURI = newBaseURI; } function setPeriodState(uint256 newPeriodState) external onlyOwner { periodState = newPeriodState; } function setPeriodLimitPerWallet(uint256 state, uint256 newLimitPerWallet) external onlyOwner { _getPeriod(state).info.limitPerWallet = newLimitPerWallet; } function setPeriodSupply(uint256 state, uint256 newSupply) external onlyOwner { _getPeriod(state).info.supply = newSupply; } function setPeriodPrice(uint256 state, uint256 newPrice) external onlyOwner { _getPeriod(state).info.price = newPrice; } function setPeriodSign(uint256 state, bool newSign) external onlyOwner { _getPeriod(state).info.sign = newSign; } function setPeriod(uint256 state, uint256 newLimitPerWallet, uint256 newSupply, uint256 newPrice, bool newSign) external onlyOwner { Period storage period = _getPeriod(state); period.info.limitPerWallet = newLimitPerWallet; period.info.supply = newSupply; period.info.price = newPrice; period.info.sign = newSign; } function addPeriod(uint256 limitPerWallet, uint256 supply, uint256 price, bool sign) external onlyOwner { _addPeriod(limitPerWallet, supply, price, sign); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; 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(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev 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 _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, 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(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-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 < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * 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 = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev 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 = _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`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev 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 = _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. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_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;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev 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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"limitPerWallet","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"sign","type":"bool"}],"name":"addPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[{"internalType":"uint256","name":"state","type":"uint256"}],"name":"periodInfo","outputs":[{"components":[{"internalType":"uint256","name":"limitPerWallet","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"curSupply","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"sign","type":"bool"}],"internalType":"struct Something.PeriodInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"periodMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"remainMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"},{"internalType":"uint256","name":"newLimitPerWallet","type":"uint256"},{"internalType":"uint256","name":"newSupply","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"},{"internalType":"bool","name":"newSign","type":"bool"}],"name":"setPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"},{"internalType":"uint256","name":"newLimitPerWallet","type":"uint256"}],"name":"setPeriodLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPeriodPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"},{"internalType":"bool","name":"newSign","type":"bool"}],"name":"setPeriodSign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPeriodState","type":"uint256"}],"name":"setPeriodState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"state","type":"uint256"},{"internalType":"uint256","name":"newSupply","type":"uint256"}],"name":"setPeriodSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600a556000600d553480156200001c57600080fd5b5060405162004b7d38038062004b7d833981810160405281019062000042919062000581565b6040518060400160405280600981526020017f536f6d657468696e6700000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f53544800000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000c69291906200045f565b508060039080519060200190620000df9291906200045f565b50620000f0620001a160201b60201c565b6000819055505050620001186200010c620001aa60201b60201c565b620001b260201b60201c565b600160098190555080600c9080519060200190620001389291906200045f565b506200015860026103e8662386f26fc1000060016200027860201b60201c565b60005b60098112156200019957620001836103e88066470de4df82000060006200027860201b60201c565b80806200019090620006d1565b9150506200015b565b5050620007bd565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600b805490509050600b6001816001815401808255809150500390600052602060002090505084600b8281548110620002dc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016000018190555083600b828154811062000330577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201600001600101819055506000600b828154811062000385577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016002018190555082600b8281548110620003d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016003018190555081600b82815481106200042d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160000160040160006101000a81548160ff0219169083151502179055505050505050565b8280546200046d9062000665565b90600052602060002090601f016020900481019282620004915760008555620004dd565b82601f10620004ac57805160ff1916838001178555620004dd565b82800160010185558215620004dd579182015b82811115620004dc578251825591602001919060010190620004bf565b5b509050620004ec9190620004f0565b5090565b5b808211156200050b576000816000905550600101620004f1565b5090565b6000620005266200052084620005ef565b620005c6565b9050828152602081018484840111156200053f57600080fd5b6200054c8482856200062f565b509392505050565b600082601f8301126200056657600080fd5b8151620005788482602086016200050f565b91505092915050565b6000602082840312156200059457600080fd5b600082015167ffffffffffffffff811115620005af57600080fd5b620005bd8482850162000554565b91505092915050565b6000620005d2620005e5565b9050620005e082826200069b565b919050565b6000604051905090565b600067ffffffffffffffff8211156200060d576200060c6200077d565b5b6200061882620007ac565b9050602081019050919050565b6000819050919050565b60005b838110156200064f57808201518184015260208101905062000632565b838111156200065f576000848401525b50505050565b600060028204905060018216806200067e57607f821691505b602082108114156200069557620006946200074e565b5b50919050565b620006a682620007ac565b810181811067ffffffffffffffff82111715620006c857620006c76200077d565b5b80604052505050565b6000620006de8262000625565b91507f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156200071457620007136200071f565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6143b080620007cd6000396000f3fe6080604052600436106101f95760003560e01c80636c0360eb1161010d578063ac446002116100a0578063e985e9c51161006f578063e985e9c51461071e578063ea8d6e611461075b578063f2fde38b14610786578063f645c5ee146107af578063f8c02e21146107d8576101f9565b8063ac44600214610685578063b88d4fde1461069c578063c87b56dd146106c5578063db7fd40814610702576101f9565b806390bbaf4c116100dc57806390bbaf4c146105b757806395d89b41146105f4578063a22cb4651461061f578063a4d8008614610648576101f9565b80636c0360eb1461050d57806370a0823114610538578063715018a6146105755780638da5cb5b1461058c576101f9565b806323b872dd1161019057806342842e0e1161015f57806342842e0e1461042c5780634e323a0214610455578063627804af1461047e57806362edb27b146104a75780636352211e146104d0576101f9565b806323b872dd146103725780632949008f1461039b57806332cb6b0c146103d85780633703049f14610403576101f9565b8063095ea7b3116101cc578063095ea7b3146102cc57806317d7b45d146102f557806318160ddd1461031e5780631ea25da214610349576101f9565b806301ffc9a7146101fe57806302fe53051461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b506102256004803603810190610220919061319c565b610801565b604051610232919061396c565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d91906131ee565b610893565b005b34801561027057600080fd5b506102796108b5565b60405161028691906139cc565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b1919061322f565b610947565b6040516102c39190613905565b60405180910390f35b3480156102d857600080fd5b506102f360048036038101906102ee9190613160565b6109c3565b005b34801561030157600080fd5b5061031c60048036038101906103179190613328565b610b04565b005b34801561032a57600080fd5b50610333610b24565b6040516103409190613c09565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b9190613328565b610b3b565b005b34801561037e57600080fd5b506103996004803603810190610394919061305a565b610b5b565b005b3480156103a757600080fd5b506103c260048036038101906103bd9190613258565b610e80565b6040516103cf9190613c09565b60405180910390f35b3480156103e457600080fd5b506103ed610ed9565b6040516103fa9190613c09565b60405180910390f35b34801561040f57600080fd5b5061042a600480360381019061042591906133c7565b610edf565b005b34801561043857600080fd5b50610453600480360381019061044e919061305a565b610f3f565b005b34801561046157600080fd5b5061047c60048036038101906104779190613294565b610f5f565b005b34801561048a57600080fd5b506104a560048036038101906104a09190613160565b610f92565b005b3480156104b357600080fd5b506104ce60048036038101906104c99190613328565b611055565b005b3480156104dc57600080fd5b506104f760048036038101906104f2919061322f565b611075565b6040516105049190613905565b60405180910390f35b34801561051957600080fd5b50610522611087565b60405161052f91906139cc565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a9190612ff5565b611115565b60405161056c9190613c09565b60405180910390f35b34801561058157600080fd5b5061058a6111ce565b005b34801561059857600080fd5b506105a16111e2565b6040516105ae9190613905565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d99190612ff5565b61120c565b6040516105eb9190613c09565b60405180910390f35b34801561060057600080fd5b506106096112d9565b60405161061691906139cc565b60405180910390f35b34801561062b57600080fd5b5061064660048036038101906106419190613124565b61136b565b005b34801561065457600080fd5b5061066f600480360381019061066a919061322f565b6114e3565b60405161067c9190613bee565b60405180910390f35b34801561069157600080fd5b5061069a61154c565b005b3480156106a857600080fd5b506106c360048036038101906106be91906130a9565b611659565b005b3480156106d157600080fd5b506106ec60048036038101906106e7919061322f565b6116cc565b6040516106f991906139cc565b60405180910390f35b61071c600480360381019061071791906132d0565b61176b565b005b34801561072a57600080fd5b506107456004803603810190610740919061301e565b611bf9565b604051610752919061396c565b60405180910390f35b34801561076757600080fd5b50610770611c8d565b60405161077d9190613c09565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190612ff5565b611c93565b005b3480156107bb57600080fd5b506107d660048036038101906107d19190613364565b611d17565b005b3480156107e457600080fd5b506107ff60048036038101906107fa919061322f565b611d31565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61089b611d43565b80600c90805190602001906108b1929190612d9e565b5050565b6060600280546108c490613eaa565b80601f01602080910402602001604051908101604052809291908181526020018280546108f090613eaa565b801561093d5780601f106109125761010080835404028352916020019161093d565b820191906000526020600020905b81548152906001019060200180831161092057829003601f168201915b5050505050905090565b600061095282611dc1565b610988576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ce82611075565b90508073ffffffffffffffffffffffffffffffffffffffff166109ef611e20565b73ffffffffffffffffffffffffffffffffffffffff1614610a5257610a1b81610a16611e20565b611bf9565b610a51576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610b0c611d43565b80610b1683611e28565b600001600301819055505050565b6000610b2e611ec7565b6001546000540303905090565b610b43611d43565b80610b4d83611e28565b600001600101819055505050565b6000610b6682611ed0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bcd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bd984611f9e565b91509150610bef8187610bea611e20565b611fc0565b610c3b57610c0486610bff611e20565b611bf9565b610c3a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ca2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caf8686866001612004565b8015610cba57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d8885610d6488888761200a565b7c020000000000000000000000000000000000000000000000000000000017612032565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610e10576000600185019050600060046000838152602001908152602001600020541415610e0e576000548114610e0d578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e78868686600161205d565b505050505050565b600080610e8c84611e28565b90508060050160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205491505092915050565b600a5481565b610ee7611d43565b6000610ef286611e28565b9050848160000160000181905550838160000160010181905550828160000160030181905550818160000160040160006101000a81548160ff021916908315150217905550505050505050565b610f5a83838360405180602001604052806000815250611659565b505050565b610f67611d43565b80610f7183611e28565b60000160040160006101000a81548160ff0219169083151502179055505050565b610f9a611d43565b60026009541415610fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd790613bae565b60405180910390fd5b6002600981905550600a5481610ff4610b24565b610ffe9190613cf9565b111561103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690613a2e565b60405180910390fd5b6110498282612063565b60016009819055505050565b61105d611d43565b8061106783611e28565b600001600001819055505050565b600061108082611ed0565b9050919050565b600c805461109490613eaa565b80601f01602080910402602001604051908101604052809291908181526020018280546110c090613eaa565b801561110d5780601f106110e25761010080835404028352916020019161110d565b820191906000526020600020905b8154815290600101906020018083116110f057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561117d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111d6611d43565b6111e06000612081565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008061121a600d54611e28565b905060008160050160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482600001600001546112729190613da9565b90506000826000016002015483600001600101546112909190613da9565b9050600061129c610b24565b600a546112a99190613da9565b905060008284106112ba57826112bc565b835b90508181106112cb57816112cd565b805b95505050505050919050565b6060600380546112e890613eaa565b80601f016020809104026020016040519081016040528092919081815260200182805461131490613eaa565b80156113615780601f1061133657610100808354040283529160200191611361565b820191906000526020600020905b81548152906001019060200180831161134457829003601f168201915b5050505050905090565b611373611e20565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113d8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006113e5611e20565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611492611e20565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114d7919061396c565b60405180910390a35050565b6114eb612e24565b6114f482611e28565b6000016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900460ff1615151515815250509050919050565b611554611d43565b6002600954141561159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190613bae565b60405180910390fd5b600260098190555060003373ffffffffffffffffffffffffffffffffffffffff16476040516115c8906138f0565b60006040518083038185875af1925050503d8060008114611605576040519150601f19603f3d011682016040523d82523d6000602084013e61160a565b606091505b505090508061164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590613b8e565b60405180910390fd5b506001600981905550565b611664848484610b5b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116c65761168f84848484612147565b6116c5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606116d782611dc1565b61170d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117176122a7565b90506000815114156117385760405180602001604052806000815250611763565b8061174284612339565b60405160200161175392919061386d565b6040516020818303038152906040525b915050919050565b600260095414156117b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a890613bae565b60405180910390fd5b60026009819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e90613ace565b60405180910390fd5b6000611834600d54611e28565b9050600a5484611842610b24565b61184c9190613cf9565b111561188d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188490613a0e565b60405180910390fd5b80600001600101548482600001600201546118a89190613cf9565b11156118e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e090613b2e565b60405180910390fd5b8060000160000154848260050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461193e9190613cf9565b1115801561194c5750600084115b61198b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198290613aae565b60405180910390fd5b838160050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119dc9190613cf9565b92505081905550838160000160020160008282546119fa9190613cf9565b925050819055506000848260000160030154611a169190613d4f565b90508160000160040160009054906101000a900460ff1615611b42576000611a3c6108b5565b600d5433604051602001611a5293929190613891565b6040516020818303038152906040528051906020012090506000611a7582612393565b90506000611ac78288888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506123c3565b9050611ad16111e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3590613b0e565b60405180910390fd5b5050505b80341015611b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7c90613aee565b60405180910390fd5b611b8f3386612063565b80341115611bea573373ffffffffffffffffffffffffffffffffffffffff166108fc8234611bbd9190613da9565b9081150290604051600060405180830381858888f19350505050158015611be8573d6000803e3d6000fd5b505b50506001600981905550505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d5481565b611c9b611d43565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0290613a6e565b60405180910390fd5b611d1481612081565b50565b611d1f611d43565b611d2b848484846123ea565b50505050565b611d39611d43565b80600d8190555050565b611d4b6125cc565b73ffffffffffffffffffffffffffffffffffffffff16611d696111e2565b73ffffffffffffffffffffffffffffffffffffffff1614611dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db690613b6e565b60405180910390fd5b565b600081611dcc611ec7565b11158015611ddb575060005482105b8015611e19575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000808211611e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6390613bce565b60405180910390fd5b600b600183611e7b9190613da9565b81548110611eb2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602019050919050565b60006001905090565b60008082905080611edf611ec7565b11611f6757600054811015611f665760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611f64575b6000811415611f5a576004600083600190039350838152602001908152602001600020549050611f2f565b8092505050611f99565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86120218686846125d4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61207d8282604051806020016040528060008152506125dd565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261216d611e20565b8786866040518563ffffffff1660e01b815260040161218f9493929190613920565b602060405180830381600087803b1580156121a957600080fd5b505af19250505080156121da57506040513d601f19601f820116820180604052508101906121d791906131c5565b60015b612254573d806000811461220a576040519150601f19603f3d011682016040523d82523d6000602084013e61220f565b606091505b5060008151141561224c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c80546122b690613eaa565b80601f01602080910402602001604051908101604052809291908181526020018280546122e290613eaa565b801561232f5780601f106123045761010080835404028352916020019161232f565b820191906000526020600020905b81548152906001019060200180831161231257829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561237f57600183039250600a81066030018353600a8104905061235f565b508181036020830392508083525050919050565b6000816040516020016123a691906138ca565b604051602081830303815290604052805190602001209050919050565b60008060006123d2858561267a565b915091506123df816126fd565b819250505092915050565b6000600b805490509050600b6001816001815401808255809150500390600052602060002090505084600b828154811061244d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016000018190555083600b82815481106124a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201600001600101819055506000600b82815481106124f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016002018190555082600b8281548110612547577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016003018190555081600b828154811061259a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160000160040160006101000a81548160ff0219169083151502179055505050505050565b600033905090565b60009392505050565b6125e78383612a4e565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461267557600080549050600083820390505b6126276000868380600101945086612147565b61265d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061261457816000541461267257600080fd5b50505b505050565b6000806041835114156126bc5760008060006020860151925060408601519150606086015160001a90506126b087828585612c22565b945094505050506126f6565b6040835114156126ed5760008060208501519150604085015190506126e2868383612d2f565b9350935050506126f6565b60006002915091505b9250929050565b60006004811115612737577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612770577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561277b57612a4b565b600160048111156127b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156127ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561282f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612826906139ee565b60405180910390fd5b60026004811115612869577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156128a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156128e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128da90613a4e565b60405180910390fd5b6003600481111561291d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612956577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298e90613a8e565b60405180910390fd5b6004808111156129d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612a09577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4190613b4e565b60405180910390fd5b5b50565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612abb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612af6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b036000848385612004565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b7a83612b6b600086600061200a565b612b7485612d8e565b17612032565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612b9e57806000819055505050612c1d600084838561205d565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612c5d576000600391509150612d26565b601b8560ff1614158015612c755750601c8560ff1614155b15612c87576000600491509150612d26565b600060018787878760405160008152602001604052604051612cac9493929190613987565b6020604051602081039080840390855afa158015612cce573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612d1d57600060019250925050612d26565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c612d729190613cf9565b9050612d8087828885612c22565b935093505050935093915050565b60006001821460e11b9050919050565b828054612daa90613eaa565b90600052602060002090601f016020900481019282612dcc5760008555612e13565b82601f10612de557805160ff1916838001178555612e13565b82800160010185558215612e13579182015b82811115612e12578251825591602001919060010190612df7565b5b509050612e209190612e55565b5090565b6040518060a00160405280600081526020016000815260200160008152602001600081526020016000151581525090565b5b80821115612e6e576000816000905550600101612e56565b5090565b6000612e85612e8084613c49565b613c24565b905082815260208101848484011115612e9d57600080fd5b612ea8848285613e68565b509392505050565b6000612ec3612ebe84613c7a565b613c24565b905082815260208101848484011115612edb57600080fd5b612ee6848285613e68565b509392505050565b600081359050612efd8161431e565b92915050565b600081359050612f1281614335565b92915050565b600081359050612f278161434c565b92915050565b600081519050612f3c8161434c565b92915050565b60008083601f840112612f5457600080fd5b8235905067ffffffffffffffff811115612f6d57600080fd5b602083019150836001820283011115612f8557600080fd5b9250929050565b600082601f830112612f9d57600080fd5b8135612fad848260208601612e72565b91505092915050565b600082601f830112612fc757600080fd5b8135612fd7848260208601612eb0565b91505092915050565b600081359050612fef81614363565b92915050565b60006020828403121561300757600080fd5b600061301584828501612eee565b91505092915050565b6000806040838503121561303157600080fd5b600061303f85828601612eee565b925050602061305085828601612eee565b9150509250929050565b60008060006060848603121561306f57600080fd5b600061307d86828701612eee565b935050602061308e86828701612eee565b925050604061309f86828701612fe0565b9150509250925092565b600080600080608085870312156130bf57600080fd5b60006130cd87828801612eee565b94505060206130de87828801612eee565b93505060406130ef87828801612fe0565b925050606085013567ffffffffffffffff81111561310c57600080fd5b61311887828801612f8c565b91505092959194509250565b6000806040838503121561313757600080fd5b600061314585828601612eee565b925050602061315685828601612f03565b9150509250929050565b6000806040838503121561317357600080fd5b600061318185828601612eee565b925050602061319285828601612fe0565b9150509250929050565b6000602082840312156131ae57600080fd5b60006131bc84828501612f18565b91505092915050565b6000602082840312156131d757600080fd5b60006131e584828501612f2d565b91505092915050565b60006020828403121561320057600080fd5b600082013567ffffffffffffffff81111561321a57600080fd5b61322684828501612fb6565b91505092915050565b60006020828403121561324157600080fd5b600061324f84828501612fe0565b91505092915050565b6000806040838503121561326b57600080fd5b600061327985828601612fe0565b925050602061328a85828601612eee565b9150509250929050565b600080604083850312156132a757600080fd5b60006132b585828601612fe0565b92505060206132c685828601612f03565b9150509250929050565b6000806000604084860312156132e557600080fd5b60006132f386828701612fe0565b935050602084013567ffffffffffffffff81111561331057600080fd5b61331c86828701612f42565b92509250509250925092565b6000806040838503121561333b57600080fd5b600061334985828601612fe0565b925050602061335a85828601612fe0565b9150509250929050565b6000806000806080858703121561337a57600080fd5b600061338887828801612fe0565b945050602061339987828801612fe0565b93505060406133aa87828801612fe0565b92505060606133bb87828801612f03565b91505092959194509250565b600080600080600060a086880312156133df57600080fd5b60006133ed88828901612fe0565b95505060206133fe88828901612fe0565b945050604061340f88828901612fe0565b935050606061342088828901612fe0565b925050608061343188828901612f03565b9150509295509295909350565b61344781613ddd565b82525050565b61345e61345982613ddd565b613f0d565b82525050565b61346d81613def565b82525050565b61347c81613def565b82525050565b61348b81613dfb565b82525050565b6134a261349d82613dfb565b613f1f565b82525050565b60006134b382613cab565b6134bd8185613cc1565b93506134cd818560208601613e77565b6134d681613fd2565b840191505092915050565b60006134ec82613cb6565b6134f68185613cdd565b9350613506818560208601613e77565b61350f81613fd2565b840191505092915050565b600061352582613cb6565b61352f8185613cee565b935061353f818560208601613e77565b80840191505092915050565b6000613558601883613cdd565b915061356382613ff0565b602082019050919050565b600061357b601283613cdd565b915061358682614019565b602082019050919050565b600061359e600c83613cdd565b91506135a982614042565b602082019050919050565b60006135c1601f83613cdd565b91506135cc8261406b565b602082019050919050565b60006135e4601c83613cee565b91506135ef82614094565b601c82019050919050565b6000613607602683613cdd565b9150613612826140bd565b604082019050919050565b600061362a602283613cdd565b91506136358261410c565b604082019050919050565b600061364d600e83613cdd565b91506136588261415b565b602082019050919050565b6000613670600b83613cdd565b915061367b82614184565b602082019050919050565b6000613693600d83613cdd565b915061369e826141ad565b602082019050919050565b60006136b6601183613cdd565b91506136c1826141d6565b602082019050919050565b60006136d9601383613cdd565b91506136e4826141ff565b602082019050919050565b60006136fc602283613cdd565b915061370782614228565b604082019050919050565b600061371f602083613cdd565b915061372a82614277565b602082019050919050565b6000613742600083613cd2565b915061374d826142a0565b600082019050919050565b6000613765600f83613cdd565b9150613770826142a3565b602082019050919050565b6000613788601f83613cdd565b9150613793826142cc565b602082019050919050565b60006137ab601283613cdd565b91506137b6826142f5565b602082019050919050565b60a0820160008201516137d76000850182613829565b5060208201516137ea6020850182613829565b5060408201516137fd6040850182613829565b5060608201516138106060850182613829565b5060808201516138236080850182613464565b50505050565b61383281613e51565b82525050565b61384181613e51565b82525050565b61385861385382613e51565b613f3b565b82525050565b61386781613e5b565b82525050565b6000613879828561351a565b9150613885828461351a565b91508190509392505050565b600061389d828661351a565b91506138a98285613847565b6020820191506138b9828461344d565b601482019150819050949350505050565b60006138d5826135d7565b91506138e18284613491565b60208201915081905092915050565b60006138fb82613735565b9150819050919050565b600060208201905061391a600083018461343e565b92915050565b6000608082019050613935600083018761343e565b613942602083018661343e565b61394f6040830185613838565b818103606083015261396181846134a8565b905095945050505050565b60006020820190506139816000830184613473565b92915050565b600060808201905061399c6000830187613482565b6139a9602083018661385e565b6139b66040830185613482565b6139c36060830184613482565b95945050505050565b600060208201905081810360008301526139e681846134e1565b905092915050565b60006020820190508181036000830152613a078161354b565b9050919050565b60006020820190508181036000830152613a278161356e565b9050919050565b60006020820190508181036000830152613a4781613591565b9050919050565b60006020820190508181036000830152613a67816135b4565b9050919050565b60006020820190508181036000830152613a87816135fa565b9050919050565b60006020820190508181036000830152613aa78161361d565b9050919050565b60006020820190508181036000830152613ac781613640565b9050919050565b60006020820190508181036000830152613ae781613663565b9050919050565b60006020820190508181036000830152613b0781613686565b9050919050565b60006020820190508181036000830152613b27816136a9565b9050919050565b60006020820190508181036000830152613b47816136cc565b9050919050565b60006020820190508181036000830152613b67816136ef565b9050919050565b60006020820190508181036000830152613b8781613712565b9050919050565b60006020820190508181036000830152613ba781613758565b9050919050565b60006020820190508181036000830152613bc78161377b565b9050919050565b60006020820190508181036000830152613be78161379e565b9050919050565b600060a082019050613c0360008301846137c1565b92915050565b6000602082019050613c1e6000830184613838565b92915050565b6000613c2e613c3f565b9050613c3a8282613edc565b919050565b6000604051905090565b600067ffffffffffffffff821115613c6457613c63613fa3565b5b613c6d82613fd2565b9050602081019050919050565b600067ffffffffffffffff821115613c9557613c94613fa3565b5b613c9e82613fd2565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613d0482613e51565b9150613d0f83613e51565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d4457613d43613f45565b5b828201905092915050565b6000613d5a82613e51565b9150613d6583613e51565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d9e57613d9d613f45565b5b828202905092915050565b6000613db482613e51565b9150613dbf83613e51565b925082821015613dd257613dd1613f45565b5b828203905092915050565b6000613de882613e31565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613e95578082015181840152602081019050613e7a565b83811115613ea4576000848401525b50505050565b60006002820490506001821680613ec257607f821691505b60208210811415613ed657613ed5613f74565b5b50919050565b613ee582613fd2565b810181811067ffffffffffffffff82111715613f0457613f03613fa3565b5b80604052505050565b6000613f1882613f29565b9050919050565b6000819050919050565b6000613f3482613fe3565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f746f74616c20737570706c79206c696d69740000000000000000000000000000600082015250565b7f737570706c79206c696d69740000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f7175616e74697479206c696d6974000000000000000000000000000000000000600082015250565b7f6e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b7f6e656564206d6f72652045544800000000000000000000000000000000000000600082015250565b7f696c6c6567616c207369676e6174757265000000000000000000000000000000600082015250565b7f706572696f6420737570706c79206c696d697400000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f706572696f64207374617465206572726f720000000000000000000000000000600082015250565b61432781613ddd565b811461433257600080fd5b50565b61433e81613def565b811461434957600080fd5b50565b61435581613e05565b811461436057600080fd5b50565b61436c81613e51565b811461437757600080fd5b5056fea26469706673582212207d374cfb257462543451ec28bbe6431cb02398fadeaa45d457d761ee8e58759b64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d524d476b425774444269586454346734384c6d706e4b5658635668375a7a7538573675314571775056545a362f00000000000000000000
Deployed Bytecode
0x6080604052600436106101f95760003560e01c80636c0360eb1161010d578063ac446002116100a0578063e985e9c51161006f578063e985e9c51461071e578063ea8d6e611461075b578063f2fde38b14610786578063f645c5ee146107af578063f8c02e21146107d8576101f9565b8063ac44600214610685578063b88d4fde1461069c578063c87b56dd146106c5578063db7fd40814610702576101f9565b806390bbaf4c116100dc57806390bbaf4c146105b757806395d89b41146105f4578063a22cb4651461061f578063a4d8008614610648576101f9565b80636c0360eb1461050d57806370a0823114610538578063715018a6146105755780638da5cb5b1461058c576101f9565b806323b872dd1161019057806342842e0e1161015f57806342842e0e1461042c5780634e323a0214610455578063627804af1461047e57806362edb27b146104a75780636352211e146104d0576101f9565b806323b872dd146103725780632949008f1461039b57806332cb6b0c146103d85780633703049f14610403576101f9565b8063095ea7b3116101cc578063095ea7b3146102cc57806317d7b45d146102f557806318160ddd1461031e5780631ea25da214610349576101f9565b806301ffc9a7146101fe57806302fe53051461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b506102256004803603810190610220919061319c565b610801565b604051610232919061396c565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d91906131ee565b610893565b005b34801561027057600080fd5b506102796108b5565b60405161028691906139cc565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b1919061322f565b610947565b6040516102c39190613905565b60405180910390f35b3480156102d857600080fd5b506102f360048036038101906102ee9190613160565b6109c3565b005b34801561030157600080fd5b5061031c60048036038101906103179190613328565b610b04565b005b34801561032a57600080fd5b50610333610b24565b6040516103409190613c09565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b9190613328565b610b3b565b005b34801561037e57600080fd5b506103996004803603810190610394919061305a565b610b5b565b005b3480156103a757600080fd5b506103c260048036038101906103bd9190613258565b610e80565b6040516103cf9190613c09565b60405180910390f35b3480156103e457600080fd5b506103ed610ed9565b6040516103fa9190613c09565b60405180910390f35b34801561040f57600080fd5b5061042a600480360381019061042591906133c7565b610edf565b005b34801561043857600080fd5b50610453600480360381019061044e919061305a565b610f3f565b005b34801561046157600080fd5b5061047c60048036038101906104779190613294565b610f5f565b005b34801561048a57600080fd5b506104a560048036038101906104a09190613160565b610f92565b005b3480156104b357600080fd5b506104ce60048036038101906104c99190613328565b611055565b005b3480156104dc57600080fd5b506104f760048036038101906104f2919061322f565b611075565b6040516105049190613905565b60405180910390f35b34801561051957600080fd5b50610522611087565b60405161052f91906139cc565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a9190612ff5565b611115565b60405161056c9190613c09565b60405180910390f35b34801561058157600080fd5b5061058a6111ce565b005b34801561059857600080fd5b506105a16111e2565b6040516105ae9190613905565b60405180910390f35b3480156105c357600080fd5b506105de60048036038101906105d99190612ff5565b61120c565b6040516105eb9190613c09565b60405180910390f35b34801561060057600080fd5b506106096112d9565b60405161061691906139cc565b60405180910390f35b34801561062b57600080fd5b5061064660048036038101906106419190613124565b61136b565b005b34801561065457600080fd5b5061066f600480360381019061066a919061322f565b6114e3565b60405161067c9190613bee565b60405180910390f35b34801561069157600080fd5b5061069a61154c565b005b3480156106a857600080fd5b506106c360048036038101906106be91906130a9565b611659565b005b3480156106d157600080fd5b506106ec60048036038101906106e7919061322f565b6116cc565b6040516106f991906139cc565b60405180910390f35b61071c600480360381019061071791906132d0565b61176b565b005b34801561072a57600080fd5b506107456004803603810190610740919061301e565b611bf9565b604051610752919061396c565b60405180910390f35b34801561076757600080fd5b50610770611c8d565b60405161077d9190613c09565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190612ff5565b611c93565b005b3480156107bb57600080fd5b506107d660048036038101906107d19190613364565b611d17565b005b3480156107e457600080fd5b506107ff60048036038101906107fa919061322f565b611d31565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61089b611d43565b80600c90805190602001906108b1929190612d9e565b5050565b6060600280546108c490613eaa565b80601f01602080910402602001604051908101604052809291908181526020018280546108f090613eaa565b801561093d5780601f106109125761010080835404028352916020019161093d565b820191906000526020600020905b81548152906001019060200180831161092057829003601f168201915b5050505050905090565b600061095282611dc1565b610988576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ce82611075565b90508073ffffffffffffffffffffffffffffffffffffffff166109ef611e20565b73ffffffffffffffffffffffffffffffffffffffff1614610a5257610a1b81610a16611e20565b611bf9565b610a51576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610b0c611d43565b80610b1683611e28565b600001600301819055505050565b6000610b2e611ec7565b6001546000540303905090565b610b43611d43565b80610b4d83611e28565b600001600101819055505050565b6000610b6682611ed0565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bcd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bd984611f9e565b91509150610bef8187610bea611e20565b611fc0565b610c3b57610c0486610bff611e20565b611bf9565b610c3a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ca2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610caf8686866001612004565b8015610cba57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d8885610d6488888761200a565b7c020000000000000000000000000000000000000000000000000000000017612032565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610e10576000600185019050600060046000838152602001908152602001600020541415610e0e576000548114610e0d578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e78868686600161205d565b505050505050565b600080610e8c84611e28565b90508060050160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205491505092915050565b600a5481565b610ee7611d43565b6000610ef286611e28565b9050848160000160000181905550838160000160010181905550828160000160030181905550818160000160040160006101000a81548160ff021916908315150217905550505050505050565b610f5a83838360405180602001604052806000815250611659565b505050565b610f67611d43565b80610f7183611e28565b60000160040160006101000a81548160ff0219169083151502179055505050565b610f9a611d43565b60026009541415610fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd790613bae565b60405180910390fd5b6002600981905550600a5481610ff4610b24565b610ffe9190613cf9565b111561103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690613a2e565b60405180910390fd5b6110498282612063565b60016009819055505050565b61105d611d43565b8061106783611e28565b600001600001819055505050565b600061108082611ed0565b9050919050565b600c805461109490613eaa565b80601f01602080910402602001604051908101604052809291908181526020018280546110c090613eaa565b801561110d5780601f106110e25761010080835404028352916020019161110d565b820191906000526020600020905b8154815290600101906020018083116110f057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561117d576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111d6611d43565b6111e06000612081565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008061121a600d54611e28565b905060008160050160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482600001600001546112729190613da9565b90506000826000016002015483600001600101546112909190613da9565b9050600061129c610b24565b600a546112a99190613da9565b905060008284106112ba57826112bc565b835b90508181106112cb57816112cd565b805b95505050505050919050565b6060600380546112e890613eaa565b80601f016020809104026020016040519081016040528092919081815260200182805461131490613eaa565b80156113615780601f1061133657610100808354040283529160200191611361565b820191906000526020600020905b81548152906001019060200180831161134457829003601f168201915b5050505050905090565b611373611e20565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113d8576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006113e5611e20565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611492611e20565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516114d7919061396c565b60405180910390a35050565b6114eb612e24565b6114f482611e28565b6000016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900460ff1615151515815250509050919050565b611554611d43565b6002600954141561159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190613bae565b60405180910390fd5b600260098190555060003373ffffffffffffffffffffffffffffffffffffffff16476040516115c8906138f0565b60006040518083038185875af1925050503d8060008114611605576040519150601f19603f3d011682016040523d82523d6000602084013e61160a565b606091505b505090508061164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590613b8e565b60405180910390fd5b506001600981905550565b611664848484610b5b565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116c65761168f84848484612147565b6116c5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606116d782611dc1565b61170d576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006117176122a7565b90506000815114156117385760405180602001604052806000815250611763565b8061174284612339565b60405160200161175392919061386d565b6040516020818303038152906040525b915050919050565b600260095414156117b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a890613bae565b60405180910390fd5b60026009819055503273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e90613ace565b60405180910390fd5b6000611834600d54611e28565b9050600a5484611842610b24565b61184c9190613cf9565b111561188d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188490613a0e565b60405180910390fd5b80600001600101548482600001600201546118a89190613cf9565b11156118e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e090613b2e565b60405180910390fd5b8060000160000154848260050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461193e9190613cf9565b1115801561194c5750600084115b61198b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198290613aae565b60405180910390fd5b838160050160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119dc9190613cf9565b92505081905550838160000160020160008282546119fa9190613cf9565b925050819055506000848260000160030154611a169190613d4f565b90508160000160040160009054906101000a900460ff1615611b42576000611a3c6108b5565b600d5433604051602001611a5293929190613891565b6040516020818303038152906040528051906020012090506000611a7582612393565b90506000611ac78288888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506123c3565b9050611ad16111e2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3590613b0e565b60405180910390fd5b5050505b80341015611b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7c90613aee565b60405180910390fd5b611b8f3386612063565b80341115611bea573373ffffffffffffffffffffffffffffffffffffffff166108fc8234611bbd9190613da9565b9081150290604051600060405180830381858888f19350505050158015611be8573d6000803e3d6000fd5b505b50506001600981905550505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d5481565b611c9b611d43565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0290613a6e565b60405180910390fd5b611d1481612081565b50565b611d1f611d43565b611d2b848484846123ea565b50505050565b611d39611d43565b80600d8190555050565b611d4b6125cc565b73ffffffffffffffffffffffffffffffffffffffff16611d696111e2565b73ffffffffffffffffffffffffffffffffffffffff1614611dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db690613b6e565b60405180910390fd5b565b600081611dcc611ec7565b11158015611ddb575060005482105b8015611e19575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b6000808211611e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6390613bce565b60405180910390fd5b600b600183611e7b9190613da9565b81548110611eb2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602019050919050565b60006001905090565b60008082905080611edf611ec7565b11611f6757600054811015611f665760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611f64575b6000811415611f5a576004600083600190039350838152602001908152602001600020549050611f2f565b8092505050611f99565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86120218686846125d4565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61207d8282604051806020016040528060008152506125dd565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261216d611e20565b8786866040518563ffffffff1660e01b815260040161218f9493929190613920565b602060405180830381600087803b1580156121a957600080fd5b505af19250505080156121da57506040513d601f19601f820116820180604052508101906121d791906131c5565b60015b612254573d806000811461220a576040519150601f19603f3d011682016040523d82523d6000602084013e61220f565b606091505b5060008151141561224c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c80546122b690613eaa565b80601f01602080910402602001604051908101604052809291908181526020018280546122e290613eaa565b801561232f5780601f106123045761010080835404028352916020019161232f565b820191906000526020600020905b81548152906001019060200180831161231257829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561237f57600183039250600a81066030018353600a8104905061235f565b508181036020830392508083525050919050565b6000816040516020016123a691906138ca565b604051602081830303815290604052805190602001209050919050565b60008060006123d2858561267a565b915091506123df816126fd565b819250505092915050565b6000600b805490509050600b6001816001815401808255809150500390600052602060002090505084600b828154811061244d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016000018190555083600b82815481106124a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060060201600001600101819055506000600b82815481106124f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016002018190555082600b8281548110612547577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600602016000016003018190555081600b828154811061259a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020906006020160000160040160006101000a81548160ff0219169083151502179055505050505050565b600033905090565b60009392505050565b6125e78383612a4e565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461267557600080549050600083820390505b6126276000868380600101945086612147565b61265d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061261457816000541461267257600080fd5b50505b505050565b6000806041835114156126bc5760008060006020860151925060408601519150606086015160001a90506126b087828585612c22565b945094505050506126f6565b6040835114156126ed5760008060208501519150604085015190506126e2868383612d2f565b9350935050506126f6565b60006002915091505b9250929050565b60006004811115612737577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612770577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561277b57612a4b565b600160048111156127b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156127ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561282f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612826906139ee565b60405180910390fd5b60026004811115612869577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156128a2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156128e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128da90613a4e565b60405180910390fd5b6003600481111561291d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612956577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612997576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298e90613a8e565b60405180910390fd5b6004808111156129d0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612a09577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415612a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4190613b4e565b60405180910390fd5b5b50565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612abb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612af6576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b036000848385612004565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b7a83612b6b600086600061200a565b612b7485612d8e565b17612032565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612b9e57806000819055505050612c1d600084838561205d565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612c5d576000600391509150612d26565b601b8560ff1614158015612c755750601c8560ff1614155b15612c87576000600491509150612d26565b600060018787878760405160008152602001604052604051612cac9493929190613987565b6020604051602081039080840390855afa158015612cce573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612d1d57600060019250925050612d26565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c612d729190613cf9565b9050612d8087828885612c22565b935093505050935093915050565b60006001821460e11b9050919050565b828054612daa90613eaa565b90600052602060002090601f016020900481019282612dcc5760008555612e13565b82601f10612de557805160ff1916838001178555612e13565b82800160010185558215612e13579182015b82811115612e12578251825591602001919060010190612df7565b5b509050612e209190612e55565b5090565b6040518060a00160405280600081526020016000815260200160008152602001600081526020016000151581525090565b5b80821115612e6e576000816000905550600101612e56565b5090565b6000612e85612e8084613c49565b613c24565b905082815260208101848484011115612e9d57600080fd5b612ea8848285613e68565b509392505050565b6000612ec3612ebe84613c7a565b613c24565b905082815260208101848484011115612edb57600080fd5b612ee6848285613e68565b509392505050565b600081359050612efd8161431e565b92915050565b600081359050612f1281614335565b92915050565b600081359050612f278161434c565b92915050565b600081519050612f3c8161434c565b92915050565b60008083601f840112612f5457600080fd5b8235905067ffffffffffffffff811115612f6d57600080fd5b602083019150836001820283011115612f8557600080fd5b9250929050565b600082601f830112612f9d57600080fd5b8135612fad848260208601612e72565b91505092915050565b600082601f830112612fc757600080fd5b8135612fd7848260208601612eb0565b91505092915050565b600081359050612fef81614363565b92915050565b60006020828403121561300757600080fd5b600061301584828501612eee565b91505092915050565b6000806040838503121561303157600080fd5b600061303f85828601612eee565b925050602061305085828601612eee565b9150509250929050565b60008060006060848603121561306f57600080fd5b600061307d86828701612eee565b935050602061308e86828701612eee565b925050604061309f86828701612fe0565b9150509250925092565b600080600080608085870312156130bf57600080fd5b60006130cd87828801612eee565b94505060206130de87828801612eee565b93505060406130ef87828801612fe0565b925050606085013567ffffffffffffffff81111561310c57600080fd5b61311887828801612f8c565b91505092959194509250565b6000806040838503121561313757600080fd5b600061314585828601612eee565b925050602061315685828601612f03565b9150509250929050565b6000806040838503121561317357600080fd5b600061318185828601612eee565b925050602061319285828601612fe0565b9150509250929050565b6000602082840312156131ae57600080fd5b60006131bc84828501612f18565b91505092915050565b6000602082840312156131d757600080fd5b60006131e584828501612f2d565b91505092915050565b60006020828403121561320057600080fd5b600082013567ffffffffffffffff81111561321a57600080fd5b61322684828501612fb6565b91505092915050565b60006020828403121561324157600080fd5b600061324f84828501612fe0565b91505092915050565b6000806040838503121561326b57600080fd5b600061327985828601612fe0565b925050602061328a85828601612eee565b9150509250929050565b600080604083850312156132a757600080fd5b60006132b585828601612fe0565b92505060206132c685828601612f03565b9150509250929050565b6000806000604084860312156132e557600080fd5b60006132f386828701612fe0565b935050602084013567ffffffffffffffff81111561331057600080fd5b61331c86828701612f42565b92509250509250925092565b6000806040838503121561333b57600080fd5b600061334985828601612fe0565b925050602061335a85828601612fe0565b9150509250929050565b6000806000806080858703121561337a57600080fd5b600061338887828801612fe0565b945050602061339987828801612fe0565b93505060406133aa87828801612fe0565b92505060606133bb87828801612f03565b91505092959194509250565b600080600080600060a086880312156133df57600080fd5b60006133ed88828901612fe0565b95505060206133fe88828901612fe0565b945050604061340f88828901612fe0565b935050606061342088828901612fe0565b925050608061343188828901612f03565b9150509295509295909350565b61344781613ddd565b82525050565b61345e61345982613ddd565b613f0d565b82525050565b61346d81613def565b82525050565b61347c81613def565b82525050565b61348b81613dfb565b82525050565b6134a261349d82613dfb565b613f1f565b82525050565b60006134b382613cab565b6134bd8185613cc1565b93506134cd818560208601613e77565b6134d681613fd2565b840191505092915050565b60006134ec82613cb6565b6134f68185613cdd565b9350613506818560208601613e77565b61350f81613fd2565b840191505092915050565b600061352582613cb6565b61352f8185613cee565b935061353f818560208601613e77565b80840191505092915050565b6000613558601883613cdd565b915061356382613ff0565b602082019050919050565b600061357b601283613cdd565b915061358682614019565b602082019050919050565b600061359e600c83613cdd565b91506135a982614042565b602082019050919050565b60006135c1601f83613cdd565b91506135cc8261406b565b602082019050919050565b60006135e4601c83613cee565b91506135ef82614094565b601c82019050919050565b6000613607602683613cdd565b9150613612826140bd565b604082019050919050565b600061362a602283613cdd565b91506136358261410c565b604082019050919050565b600061364d600e83613cdd565b91506136588261415b565b602082019050919050565b6000613670600b83613cdd565b915061367b82614184565b602082019050919050565b6000613693600d83613cdd565b915061369e826141ad565b602082019050919050565b60006136b6601183613cdd565b91506136c1826141d6565b602082019050919050565b60006136d9601383613cdd565b91506136e4826141ff565b602082019050919050565b60006136fc602283613cdd565b915061370782614228565b604082019050919050565b600061371f602083613cdd565b915061372a82614277565b602082019050919050565b6000613742600083613cd2565b915061374d826142a0565b600082019050919050565b6000613765600f83613cdd565b9150613770826142a3565b602082019050919050565b6000613788601f83613cdd565b9150613793826142cc565b602082019050919050565b60006137ab601283613cdd565b91506137b6826142f5565b602082019050919050565b60a0820160008201516137d76000850182613829565b5060208201516137ea6020850182613829565b5060408201516137fd6040850182613829565b5060608201516138106060850182613829565b5060808201516138236080850182613464565b50505050565b61383281613e51565b82525050565b61384181613e51565b82525050565b61385861385382613e51565b613f3b565b82525050565b61386781613e5b565b82525050565b6000613879828561351a565b9150613885828461351a565b91508190509392505050565b600061389d828661351a565b91506138a98285613847565b6020820191506138b9828461344d565b601482019150819050949350505050565b60006138d5826135d7565b91506138e18284613491565b60208201915081905092915050565b60006138fb82613735565b9150819050919050565b600060208201905061391a600083018461343e565b92915050565b6000608082019050613935600083018761343e565b613942602083018661343e565b61394f6040830185613838565b818103606083015261396181846134a8565b905095945050505050565b60006020820190506139816000830184613473565b92915050565b600060808201905061399c6000830187613482565b6139a9602083018661385e565b6139b66040830185613482565b6139c36060830184613482565b95945050505050565b600060208201905081810360008301526139e681846134e1565b905092915050565b60006020820190508181036000830152613a078161354b565b9050919050565b60006020820190508181036000830152613a278161356e565b9050919050565b60006020820190508181036000830152613a4781613591565b9050919050565b60006020820190508181036000830152613a67816135b4565b9050919050565b60006020820190508181036000830152613a87816135fa565b9050919050565b60006020820190508181036000830152613aa78161361d565b9050919050565b60006020820190508181036000830152613ac781613640565b9050919050565b60006020820190508181036000830152613ae781613663565b9050919050565b60006020820190508181036000830152613b0781613686565b9050919050565b60006020820190508181036000830152613b27816136a9565b9050919050565b60006020820190508181036000830152613b47816136cc565b9050919050565b60006020820190508181036000830152613b67816136ef565b9050919050565b60006020820190508181036000830152613b8781613712565b9050919050565b60006020820190508181036000830152613ba781613758565b9050919050565b60006020820190508181036000830152613bc78161377b565b9050919050565b60006020820190508181036000830152613be78161379e565b9050919050565b600060a082019050613c0360008301846137c1565b92915050565b6000602082019050613c1e6000830184613838565b92915050565b6000613c2e613c3f565b9050613c3a8282613edc565b919050565b6000604051905090565b600067ffffffffffffffff821115613c6457613c63613fa3565b5b613c6d82613fd2565b9050602081019050919050565b600067ffffffffffffffff821115613c9557613c94613fa3565b5b613c9e82613fd2565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613d0482613e51565b9150613d0f83613e51565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d4457613d43613f45565b5b828201905092915050565b6000613d5a82613e51565b9150613d6583613e51565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d9e57613d9d613f45565b5b828202905092915050565b6000613db482613e51565b9150613dbf83613e51565b925082821015613dd257613dd1613f45565b5b828203905092915050565b6000613de882613e31565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015613e95578082015181840152602081019050613e7a565b83811115613ea4576000848401525b50505050565b60006002820490506001821680613ec257607f821691505b60208210811415613ed657613ed5613f74565b5b50919050565b613ee582613fd2565b810181811067ffffffffffffffff82111715613f0457613f03613fa3565b5b80604052505050565b6000613f1882613f29565b9050919050565b6000819050919050565b6000613f3482613fe3565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f746f74616c20737570706c79206c696d69740000000000000000000000000000600082015250565b7f737570706c79206c696d69740000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f7175616e74697479206c696d6974000000000000000000000000000000000000600082015250565b7f6e6f7420616c6c6f776564000000000000000000000000000000000000000000600082015250565b7f6e656564206d6f72652045544800000000000000000000000000000000000000600082015250565b7f696c6c6567616c207369676e6174757265000000000000000000000000000000600082015250565b7f706572696f6420737570706c79206c696d697400000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f7472616e73666572206661696c65640000000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f706572696f64207374617465206572726f720000000000000000000000000000600082015250565b61432781613ddd565b811461433257600080fd5b50565b61433e81613def565b811461434957600080fd5b50565b61435581613e05565b811461436057600080fd5b50565b61436c81613e51565b811461437757600080fd5b5056fea26469706673582212207d374cfb257462543451ec28bbe6431cb02398fadeaa45d457d761ee8e58759b64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d524d476b425774444269586454346734384c6d706e4b5658635668375a7a7538573675314571775056545a362f00000000000000000000
-----Decoded View---------------
Arg [0] : uri (string): ipfs://QmRMGkBWtDBiXdT4g48LmpnKVXcVh7Zzu8W6u1EqwPVTZ6/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d524d476b425774444269586454346734384c6d706e4b56
Arg [3] : 58635668375a7a7538573675314571775056545a362f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.