Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19818465 | 230 days ago | IN | 0 ETH | 0.00034584 | ||||
Mint | 19817327 | 230 days ago | IN | 0 ETH | 0.027692 | ||||
Set Approval For... | 19810645 | 231 days ago | IN | 0 ETH | 0.00037442 | ||||
Mint | 19809491 | 231 days ago | IN | 0 ETH | 0.00946726 | ||||
Set Base Uri And... | 19808280 | 231 days ago | IN | 0 ETH | 0.00018393 | ||||
Set Base Uri And... | 19804106 | 232 days ago | IN | 0 ETH | 0.0005103 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
19799212 | 233 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
UXTRUSTV2
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.19; pragma abicoder v2; import {UXNFTBASE} from "./UXNFTBASE.sol"; // @dev https://uxlink.io contract UXTRUSTV2 is UXNFTBASE { constructor() UXNFTBASE("TRUST", "TRUST") { isUsingWhitelist = false; addToWhitelist(BLACK_HOLE); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.6.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; library TransferHelper { /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF'); } /// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST'); } /// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA'); } /// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, 'STE'); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.19; pragma abicoder v2; import '@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol'; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import {ERC721A} from "erc721a/contracts/ERC721A.sol"; import {Manager} from "../libs/Manager.sol"; // @dev https://uxlink.io abstract contract UXNFTBASE is ERC721A, Manager,Pausable { /// @notice Addresses of black users mapping(address => bool) private _blacklist; mapping(address => bool) public _whitelist; bool public isUsingWhitelist; address public constant BLACK_HOLE = address(0); string private _uriBase = ""; constructor(string memory name, string memory symbol) ERC721A(name, symbol) { setManager(msg.sender,true); } function mint(address to, uint256 quantity) public onlyManager { _safeMint(to, quantity); } function setBaseUriAndExtension(string memory base) public onlyManager { _uriBase = base; // https://base.url?id= } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (!_exists(tokenId)) { revert URIQueryForNonexistentToken(); } return string(abi.encodePacked(_uriBase, _toString(tokenId))); } function burn(uint256 tokenId) public whenNotPaused { _burn(tokenId, true); } function pause() public onlyManager whenNotPaused { _pause(); } function unpause() public onlyManager whenPaused { _unpause(); } function getBlackListStatus(address _maker) external view returns (bool) { return _blacklist[_maker]; } function _beforeTokenTransfers( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override(ERC721A) { super._beforeTokenTransfers(from, to, firstTokenId, batchSize); require(!_blacklist[from], "Sending address is blacklisted."); require(!_blacklist[to], "Receiving address is blacklisted"); if(isUsingWhitelist){ require(_whitelist[from] || _whitelist[to], "Sending Or Receiving address is not on the whitelist"); } } function addToBlacklist(address _user) public onlyManager { require(!_blacklist[_user], "User is already on the blacklist."); _blacklist[_user] = true; } function removeFromBlacklist(address _user) public onlyManager { require(_blacklist[_user], "User is not on the blacklist."); delete _blacklist[_user]; } function addToWhitelist(address _address) public onlyManager { require(!_whitelist[_address], "User is already on the whitelist."); _whitelist[_address] = true; } function removeFromWhitelist(address _address) external onlyManager { require(_whitelist[_address], "User is not on the whitelist."); _whitelist[_address] = false; } function getWhiteListStatus(address _maker) external view returns (bool) { return _whitelist[_maker]; } function setUsingWhitelistStatus(bool _status) external onlyManager { isUsingWhitelist = _status; } receive() external payable {} function withdrawStuckToken(address _token, address _to) external onlyManager { require(_token != address(0), "_token address cannot be 0"); uint256 _contractBalance = IERC20(_token).balanceOf(address(this)); TransferHelper.safeTransfer(_token, _to, _contractBalance); } function withdrawStuckEth(address toAddr) external onlyManager { (bool success, ) = toAddr.call{ value: address(this).balance } (""); require(success); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.19; pragma abicoder v2; import "@openzeppelin/contracts/utils/Context.sol"; abstract contract Manager is Context { mapping(address => bool) private _accounts; modifier onlyManager { require(isManager(), "only manager"); _; } constructor() { _accounts[_msgSender()] = true; } function isManager(address one) public view returns (bool) { return _accounts[one]; } function isManager() public view returns (bool) { return isManager(_msgSender()); } function setManager(address one, bool val) public onlyManager { require(one != address(0), "address is zero"); _accounts[one] = val; } function setManagerBatch(address[] calldata list, bool val) public onlyManager { for (uint256 i = 0; i < list.length; i++) { setManager(list[i], val); } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) _revert(BalanceQueryForZeroAddress.selector); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED)) } } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { _revert(TransferToNonERC721ReceiverImplementer.selector); } assembly { revert(add(32, reason), mload(reason)) } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) _revert(MintZeroQuantity.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } 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 virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _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 + _spotMinted` times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) _revert(OwnershipNotInitializedForExtraData.selector); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BLACK_HOLE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":"_maker","type":"address"}],"name":"getBlackListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_maker","type":"address"}],"name":"getWhiteListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"one","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isUsingWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFromWhitelist","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"base","type":"string"}],"name":"setBaseUriAndExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"one","type":"address"},{"internalType":"bool","name":"val","type":"bool"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"},{"internalType":"bool","name":"val","type":"bool"}],"name":"setManagerBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setUsingWhitelistStatus","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":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAddr","type":"address"}],"name":"withdrawStuckEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawStuckToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260405180602001604052806000815250600e908162000024919062000779565b503480156200003257600080fd5b506040518060400160405280600581526020017f54525553540000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f545255535400000000000000000000000000000000000000000000000000000081525081818160029081620000b2919062000779565b508060039081620000c4919062000779565b50620000d5620001e760201b60201c565b600081905550620000eb620001e760201b60201c565b620000fb620001ec60201b60201c565b10156200011b576200011a63fed8210f60e01b6200021460201b60201c565b5b5050600160096000620001336200021e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600a60006101000a81548160ff021916908315150217905550620001b23360016200022660201b60201c565b50506000600d60006101000a81548160ff021916908315150217905550620001e160006200034560201b60201c565b620009ed565b600090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b8060005260046000fd5b600033905090565b620002366200048260201b60201c565b62000278576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200026f90620008c1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e19062000933565b60405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b620003556200048260201b60201c565b62000397576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038e90620008c1565b60405180910390fd5b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161562000427576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200041e90620009cb565b60405180910390fd5b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000620004a4620004986200021e60201b60201c565b620004a960201b60201c565b905090565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200058157607f821691505b60208210810362000597576200059662000539565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005c2565b6200060d8683620005c2565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200065a620006546200064e8462000625565b6200062f565b62000625565b9050919050565b6000819050919050565b620006768362000639565b6200068e620006858262000661565b848454620005cf565b825550505050565b600090565b620006a562000696565b620006b28184846200066b565b505050565b5b81811015620006da57620006ce6000826200069b565b600181019050620006b8565b5050565b601f8211156200072957620006f3816200059d565b620006fe84620005b2565b810160208510156200070e578190505b620007266200071d85620005b2565b830182620006b7565b50505b505050565b600082821c905092915050565b60006200074e600019846008026200072e565b1980831691505092915050565b60006200076983836200073b565b9150826002028217905092915050565b6200078482620004ff565b67ffffffffffffffff811115620007a0576200079f6200050a565b5b620007ac825462000568565b620007b9828285620006de565b600060209050601f831160018114620007f15760008415620007dc578287015190505b620007e885826200075b565b86555062000858565b601f19841662000801866200059d565b60005b828110156200082b5784890151825560018201915060208501945060208101905062000804565b868310156200084b578489015162000847601f8916826200073b565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f6f6e6c79206d616e616765720000000000000000000000000000000000000000600082015250565b6000620008a9600c8362000860565b9150620008b68262000871565b602082019050919050565b60006020820190508181036000830152620008dc816200089a565b9050919050565b7f61646472657373206973207a65726f0000000000000000000000000000000000600082015250565b60006200091b600f8362000860565b91506200092882620008e3565b602082019050919050565b600060208201905081810360008301526200094e816200090c565b9050919050565b7f5573657220697320616c7265616479206f6e207468652077686974656c69737460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000620009b360218362000860565b9150620009c08262000955565b604082019050919050565b60006020820190508181036000830152620009e681620009a4565b9050919050565b613fcb80620009fd6000396000f3fe6080604052600436106102135760003560e01c806370a0823111610118578063bc205ad3116100a0578063cfdb63ac1161006f578063cfdb63ac14610756578063d0d04ba414610793578063e43252d7146107be578063e985e9c5146107e7578063f3ae2415146108245761021a565b8063bc205ad31461069c578063bc6bf1cf146106c5578063c56a3e88146106ee578063c87b56dd146107195761021a565b806395d89b41116100e757806395d89b41146105da578063a20ded6a14610605578063a22cb4651461062e578063a5e90eee14610657578063b88d4fde146106805761021a565b806370a08231146105345780637ca8448a146105715780638456cb591461059a5780638ab1d681146105b15761021a565b806342966c681161019b57806355eda4e81161016a57806355eda4e81461042757806359bf1abe146104525780635c975abb1461048f5780636352211e146104ba578063669b8f20146104f75761021a565b806342966c681461038357806344337ea1146103ac5780634dd8a29e146103d5578063537df3b6146103fe5761021a565b806318160ddd116101e257806318160ddd146102e057806323b872dd1461030b5780633f4ba83a1461032757806340c10f191461033e57806342842e0e146103675761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c45761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190612bd4565b610861565b6040516102539190612c1c565b60405180910390f35b34801561026857600080fd5b506102716108f3565b60405161027e9190612cc7565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190612d1f565b610985565b6040516102bb9190612d8d565b60405180910390f35b6102de60048036038101906102d99190612dd4565b6109e3565b005b3480156102ec57600080fd5b506102f56109f3565b6040516103029190612e23565b60405180910390f35b61032560048036038101906103209190612e3e565b610a40565b005b34801561033357600080fd5b5061033c610d01565b005b34801561034a57600080fd5b5061036560048036038101906103609190612dd4565b610d5a565b005b610381600480360381019061037c9190612e3e565b610daf565b005b34801561038f57600080fd5b506103aa60048036038101906103a59190612d1f565b610dcf565b005b3480156103b857600080fd5b506103d360048036038101906103ce9190612e91565b610de5565b005b3480156103e157600080fd5b506103fc60048036038101906103f79190612f4f565b610f14565b005b34801561040a57600080fd5b5061042560048036038101906104209190612e91565b610fb3565b005b34801561043357600080fd5b5061043c6110d8565b6040516104499190612d8d565b60405180910390f35b34801561045e57600080fd5b5061047960048036038101906104749190612e91565b6110dd565b6040516104869190612c1c565b60405180910390f35b34801561049b57600080fd5b506104a4611133565b6040516104b19190612c1c565b60405180910390f35b3480156104c657600080fd5b506104e160048036038101906104dc9190612d1f565b61114a565b6040516104ee9190612d8d565b60405180910390f35b34801561050357600080fd5b5061051e60048036038101906105199190612e91565b61115c565b60405161052b9190612c1c565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190612e91565b6111b2565b6040516105689190612e23565b60405180910390f35b34801561057d57600080fd5b5061059860048036038101906105939190612e91565b611249565b005b3480156105a657600080fd5b506105af61130a565b005b3480156105bd57600080fd5b506105d860048036038101906105d39190612e91565b611363565b005b3480156105e657600080fd5b506105ef611491565b6040516105fc9190612cc7565b60405180910390f35b34801561061157600080fd5b5061062c600480360381019061062791906130df565b611523565b005b34801561063a57600080fd5b5061065560048036038101906106509190613128565b61157d565b005b34801561066357600080fd5b5061067e60048036038101906106799190613128565b611688565b005b61069a60048036038101906106959190613209565b611799565b005b3480156106a857600080fd5b506106c360048036038101906106be919061328c565b6117eb565b005b3480156106d157600080fd5b506106ec60048036038101906106e791906132cc565b61192f565b005b3480156106fa57600080fd5b50610703611993565b6040516107109190612c1c565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b9190612d1f565b6119aa565b60405161074d9190612cc7565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190612e91565b611a1d565b60405161078a9190612c1c565b60405180910390f35b34801561079f57600080fd5b506107a8611a3d565b6040516107b59190612c1c565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190612e91565b611a50565b005b3480156107f357600080fd5b5061080e6004803603810190610809919061328c565b611b7f565b60405161081b9190612c1c565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190612e91565b611c13565b6040516108589190612c1c565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108bc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108ec5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461090290613328565b80601f016020809104026020016040519081016040528092919081815260200182805461092e90613328565b801561097b5780601f106109505761010080835404028352916020019161097b565b820191906000526020600020905b81548152906001019060200180831161095e57829003601f168201915b5050505050905090565b600061099082611c69565b6109a5576109a463cf4700e460e01b611d15565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6109ef82826001611d1f565b5050565b60006109fd611e4e565b600154600054030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a30611e53565b14610a3d57600854810190505b90565b6000610a4b82611e7b565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ac057610abf63a114810060e01b611d15565b5b600080610acc84611f94565b91509150610ae28187610add611fbb565b611fc3565b610b0d57610af786610af2611fbb565b611b7f565b610b0c57610b0b6359c896be60e01b611d15565b5b5b610b1a8686866001612007565b8015610b2557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610bf385610bcf888887612229565b7c020000000000000000000000000000000000000000000000000000000017612251565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610c795760006001850190506000600460008381526020019081526020016000205403610c77576000548114610c76578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460008103610ceb57610cea63ea553b3460e01b611d15565b5b610cf8878787600161227c565b50505050505050565b610d09611993565b610d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3f906133a5565b60405180910390fd5b610d50612282565b610d586122cb565b565b610d62611993565b610da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d98906133a5565b60405180910390fd5b610dab828261232e565b5050565b610dca83838360405180602001604052806000815250611799565b505050565b610dd761234c565b610de2816001612396565b50565b610ded611993565b610e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e23906133a5565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090613437565b60405180910390fd5b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b610f1c611993565b610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f52906133a5565b60405180910390fd5b60005b83839050811015610fad57610f9a848483818110610f7f57610f7e613457565b5b9050602002016020810190610f949190612e91565b83611688565b8080610fa5906134b5565b915050610f5e565b50505050565b610fbb611993565b610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff1906133a5565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107d90613549565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff021916905550565b600081565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600a60009054906101000a900460ff16905090565b600061115582611e7b565b9050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111f8576111f7638f4eb60460e01b611d15565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611251611993565b611290576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611287906133a5565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516112b69061359a565b60006040518083038185875af1925050503d80600081146112f3576040519150601f19603f3d011682016040523d82523d6000602084013e6112f8565b606091505b505090508061130657600080fd5b5050565b611312611993565b611351576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611348906133a5565b60405180910390fd5b61135961234c565b6113616125c7565b565b61136b611993565b6113aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a1906133a5565b60405180910390fd5b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142d906135fb565b60405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6060600380546114a090613328565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90613328565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b5050505050905090565b61152b611993565b61156a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611561906133a5565b60405180910390fd5b80600e908161157991906137c7565b5050565b806007600061158a611fbb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611637611fbb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161167c9190612c1c565b60405180910390a35050565b611690611993565b6116cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c6906133a5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611735906138e5565b60405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6117a4848484610a40565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117e5576117cf8484848461262a565b6117e4576117e363d1a57ed660e01b611d15565b5b5b50505050565b6117f3611993565b611832576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611829906133a5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189890613951565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118dc9190612d8d565b602060405180830381865afa1580156118f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191d9190613986565b905061192a838383612759565b505050565b611937611993565b611976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196d906133a5565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b60006119a56119a06128ae565b611c13565b905090565b60606119b582611c69565b6119eb576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e6119f6836128b6565b604051602001611a07929190613a72565b6040516020818303038152906040529050919050565b600c6020528060005260406000206000915054906101000a900460ff1681565b600d60009054906101000a900460ff1681565b611a58611993565b611a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8e906133a5565b60405180910390fd5b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b90613b08565b60405180910390fd5b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600081611c74611e4e565b11611d0f57611c81611e53565b821115611cab57611ca46004600084815260200190815260200160002054612906565b9050611d10565b600054821015611d0e5760005b6000600460008581526020019081526020016000205491508103611ce75782611ce090613b28565b9250611cb8565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b8060005260046000fd5b6000611d2a8361114a565b9050818015611d6c57508073ffffffffffffffffffffffffffffffffffffffff16611d53611fbb565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611d9857611d8281611d7d611fbb565b611b7f565b611d9757611d9663cfb3b94260e01b611d15565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b600090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b600081611e86611e4e565b11611f7e5760046000838152602001908152602001600020549050611ea9611e53565b821115611ece57611eb981612906565b611f8f57611ecd63df2d9b4260e01b611d15565b5b60008103611f55576000548210611ef057611eef63df2d9b4260e01b611d15565b5b5b60046000836001900393508381526020019081526020016000205490506000810315611f505760007c010000000000000000000000000000000000000000000000000000000082160315611f8f57611f4f63df2d9b4260e01b611d15565b5b611ef1565b60007c010000000000000000000000000000000000000000000000000000000082160315611f8f575b611f8e63df2d9b4260e01b611d15565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61201384848484612947565b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156120a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209790613b9d565b60405180910390fd5b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561212d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212490613c09565b60405180910390fd5b600d60009054906101000a900460ff161561222357600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806121e35750600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221990613c9b565b60405180910390fd5b5b50505050565b60008060e883901c905060e861224086868461294d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61228a611133565b6122c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c090613d07565b60405180910390fd5b565b6122d3612282565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6123176128ae565b6040516123249190612d8d565b60405180910390a1565b612348828260405180602001604052806000815250612956565b5050565b612354611133565b15612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90613d73565b60405180910390fd5b565b60006123a183611e7b565b905060008190506000806123b486611f94565b9150915084156123fc576123d081846123cb611fbb565b611fc3565b6123fb576123e5836123e0611fbb565b611b7f565b6123fa576123f96359c896be60e01b611d15565b5b5b5b61240a836000886001612007565b801561241557600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124bd8361247a85600088612229565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612251565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036125435760006001870190506000600460008381526020019081526020016000205403612541576000548114612540578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125ad83600088600161227c565b600160008154809291906001019190505550505050505050565b6125cf61234c565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126136128ae565b6040516126209190612d8d565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612650611fbb565b8786866040518563ffffffff1660e01b81526004016126729493929190613de8565b6020604051808303816000875af19250505080156126ae57506040513d601f19601f820116820180604052508101906126ab9190613e49565b60015b612706573d80600081146126de576040519150601f19603f3d011682016040523d82523d6000602084013e6126e3565b606091505b5060008151036126fe576126fd63d1a57ed660e01b611d15565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b858560405160240161278e929190613e76565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516127f89190613ed0565b6000604051808303816000865af19150503d8060008114612835576040519150601f19603f3d011682016040523d82523d6000602084013e61283a565b606091505b509150915081801561286857506000815114806128675750808060200190518101906128669190613efc565b5b5b6128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289e90613f75565b60405180910390fd5b5050505050565b600033905090565b606060a060405101806040526020810391506000825281835b6001156128f157600184039350600a81066030018453600a81049050806128cf575b50828103602084039350808452505050919050565b60007c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b50505050565b60009392505050565b61296083836129d2565b60008373ffffffffffffffffffffffffffffffffffffffff163b146129cd57600080549050600083820390505b6129a0600086838060010194508661262a565b6129b5576129b463d1a57ed660e01b611d15565b5b81811061298d5781600054146129ca57600080fd5b50505b505050565b600080549050600082036129f1576129f063b562e8dd60e01b611d15565b5b6129fe6000848385612007565b612a1e83612a0f6000866000612229565b612a1885612b58565b17612251565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103612ad657612ad5632e07630060e01b611d15565b5b600083830190506000839050612aea611e53565b600183031115612b0557612b046381647e3a60e01b611d15565b5b5b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103612b065781600081905550505050612b53600084838561227c565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bb181612b7c565b8114612bbc57600080fd5b50565b600081359050612bce81612ba8565b92915050565b600060208284031215612bea57612be9612b72565b5b6000612bf884828501612bbf565b91505092915050565b60008115159050919050565b612c1681612c01565b82525050565b6000602082019050612c316000830184612c0d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c71578082015181840152602081019050612c56565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c9982612c37565b612ca38185612c42565b9350612cb3818560208601612c53565b612cbc81612c7d565b840191505092915050565b60006020820190508181036000830152612ce18184612c8e565b905092915050565b6000819050919050565b612cfc81612ce9565b8114612d0757600080fd5b50565b600081359050612d1981612cf3565b92915050565b600060208284031215612d3557612d34612b72565b5b6000612d4384828501612d0a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d7782612d4c565b9050919050565b612d8781612d6c565b82525050565b6000602082019050612da26000830184612d7e565b92915050565b612db181612d6c565b8114612dbc57600080fd5b50565b600081359050612dce81612da8565b92915050565b60008060408385031215612deb57612dea612b72565b5b6000612df985828601612dbf565b9250506020612e0a85828601612d0a565b9150509250929050565b612e1d81612ce9565b82525050565b6000602082019050612e386000830184612e14565b92915050565b600080600060608486031215612e5757612e56612b72565b5b6000612e6586828701612dbf565b9350506020612e7686828701612dbf565b9250506040612e8786828701612d0a565b9150509250925092565b600060208284031215612ea757612ea6612b72565b5b6000612eb584828501612dbf565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612ee357612ee2612ebe565b5b8235905067ffffffffffffffff811115612f0057612eff612ec3565b5b602083019150836020820283011115612f1c57612f1b612ec8565b5b9250929050565b612f2c81612c01565b8114612f3757600080fd5b50565b600081359050612f4981612f23565b92915050565b600080600060408486031215612f6857612f67612b72565b5b600084013567ffffffffffffffff811115612f8657612f85612b77565b5b612f9286828701612ecd565b93509350506020612fa586828701612f3a565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612fec82612c7d565b810181811067ffffffffffffffff8211171561300b5761300a612fb4565b5b80604052505050565b600061301e612b68565b905061302a8282612fe3565b919050565b600067ffffffffffffffff82111561304a57613049612fb4565b5b61305382612c7d565b9050602081019050919050565b82818337600083830152505050565b600061308261307d8461302f565b613014565b90508281526020810184848401111561309e5761309d612faf565b5b6130a9848285613060565b509392505050565b600082601f8301126130c6576130c5612ebe565b5b81356130d684826020860161306f565b91505092915050565b6000602082840312156130f5576130f4612b72565b5b600082013567ffffffffffffffff81111561311357613112612b77565b5b61311f848285016130b1565b91505092915050565b6000806040838503121561313f5761313e612b72565b5b600061314d85828601612dbf565b925050602061315e85828601612f3a565b9150509250929050565b600067ffffffffffffffff82111561318357613182612fb4565b5b61318c82612c7d565b9050602081019050919050565b60006131ac6131a784613168565b613014565b9050828152602081018484840111156131c8576131c7612faf565b5b6131d3848285613060565b509392505050565b600082601f8301126131f0576131ef612ebe565b5b8135613200848260208601613199565b91505092915050565b6000806000806080858703121561322357613222612b72565b5b600061323187828801612dbf565b945050602061324287828801612dbf565b935050604061325387828801612d0a565b925050606085013567ffffffffffffffff81111561327457613273612b77565b5b613280878288016131db565b91505092959194509250565b600080604083850312156132a3576132a2612b72565b5b60006132b185828601612dbf565b92505060206132c285828601612dbf565b9150509250929050565b6000602082840312156132e2576132e1612b72565b5b60006132f084828501612f3a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061334057607f821691505b602082108103613353576133526132f9565b5b50919050565b7f6f6e6c79206d616e616765720000000000000000000000000000000000000000600082015250565b600061338f600c83612c42565b915061339a82613359565b602082019050919050565b600060208201905081810360008301526133be81613382565b9050919050565b7f5573657220697320616c7265616479206f6e2074686520626c61636b6c69737460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613421602183612c42565b915061342c826133c5565b604082019050919050565b6000602082019050818103600083015261345081613414565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134c082612ce9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134f2576134f1613486565b5b600182019050919050565b7f55736572206973206e6f74206f6e2074686520626c61636b6c6973742e000000600082015250565b6000613533601d83612c42565b915061353e826134fd565b602082019050919050565b6000602082019050818103600083015261356281613526565b9050919050565b600081905092915050565b50565b6000613584600083613569565b915061358f82613574565b600082019050919050565b60006135a582613577565b9150819050919050565b7f55736572206973206e6f74206f6e207468652077686974656c6973742e000000600082015250565b60006135e5601d83612c42565b91506135f0826135af565b602082019050919050565b60006020820190508181036000830152613614816135d8565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261367d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613640565b6136878683613640565b95508019841693508086168417925050509392505050565b6000819050919050565b60006136c46136bf6136ba84612ce9565b61369f565b612ce9565b9050919050565b6000819050919050565b6136de836136a9565b6136f26136ea826136cb565b84845461364d565b825550505050565b600090565b6137076136fa565b6137128184846136d5565b505050565b5b818110156137365761372b6000826136ff565b600181019050613718565b5050565b601f82111561377b5761374c8161361b565b61375584613630565b81016020851015613764578190505b61377861377085613630565b830182613717565b50505b505050565b600082821c905092915050565b600061379e60001984600802613780565b1980831691505092915050565b60006137b7838361378d565b9150826002028217905092915050565b6137d082612c37565b67ffffffffffffffff8111156137e9576137e8612fb4565b5b6137f38254613328565b6137fe82828561373a565b600060209050601f831160018114613831576000841561381f578287015190505b61382985826137ab565b865550613891565b601f19841661383f8661361b565b60005b8281101561386757848901518255600182019150602085019450602081019050613842565b868310156138845784890151613880601f89168261378d565b8355505b6001600288020188555050505b505050505050565b7f61646472657373206973207a65726f0000000000000000000000000000000000600082015250565b60006138cf600f83612c42565b91506138da82613899565b602082019050919050565b600060208201905081810360008301526138fe816138c2565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f742062652030000000000000600082015250565b600061393b601a83612c42565b915061394682613905565b602082019050919050565b6000602082019050818103600083015261396a8161392e565b9050919050565b60008151905061398081612cf3565b92915050565b60006020828403121561399c5761399b612b72565b5b60006139aa84828501613971565b91505092915050565b600081905092915050565b600081546139cb81613328565b6139d581866139b3565b945060018216600081146139f05760018114613a0557613a38565b60ff1983168652811515820286019350613a38565b613a0e8561361b565b60005b83811015613a3057815481890152600182019150602081019050613a11565b838801955050505b50505092915050565b6000613a4c82612c37565b613a5681856139b3565b9350613a66818560208601612c53565b80840191505092915050565b6000613a7e82856139be565b9150613a8a8284613a41565b91508190509392505050565b7f5573657220697320616c7265616479206f6e207468652077686974656c69737460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613af2602183612c42565b9150613afd82613a96565b604082019050919050565b60006020820190508181036000830152613b2181613ae5565b9050919050565b6000613b3382612ce9565b915060008203613b4657613b45613486565b5b600182039050919050565b7f53656e64696e67206164647265737320697320626c61636b6c69737465642e00600082015250565b6000613b87601f83612c42565b9150613b9282613b51565b602082019050919050565b60006020820190508181036000830152613bb681613b7a565b9050919050565b7f526563656976696e67206164647265737320697320626c61636b6c6973746564600082015250565b6000613bf3602083612c42565b9150613bfe82613bbd565b602082019050919050565b60006020820190508181036000830152613c2281613be6565b9050919050565b7f53656e64696e67204f7220526563656976696e6720616464726573732069732060008201527f6e6f74206f6e207468652077686974656c697374000000000000000000000000602082015250565b6000613c85603483612c42565b9150613c9082613c29565b604082019050919050565b60006020820190508181036000830152613cb481613c78565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613cf1601483612c42565b9150613cfc82613cbb565b602082019050919050565b60006020820190508181036000830152613d2081613ce4565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613d5d601083612c42565b9150613d6882613d27565b602082019050919050565b60006020820190508181036000830152613d8c81613d50565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613dba82613d93565b613dc48185613d9e565b9350613dd4818560208601612c53565b613ddd81612c7d565b840191505092915050565b6000608082019050613dfd6000830187612d7e565b613e0a6020830186612d7e565b613e176040830185612e14565b8181036060830152613e298184613daf565b905095945050505050565b600081519050613e4381612ba8565b92915050565b600060208284031215613e5f57613e5e612b72565b5b6000613e6d84828501613e34565b91505092915050565b6000604082019050613e8b6000830185612d7e565b613e986020830184612e14565b9392505050565b6000613eaa82613d93565b613eb48185613569565b9350613ec4818560208601612c53565b80840191505092915050565b6000613edc8284613e9f565b915081905092915050565b600081519050613ef681612f23565b92915050565b600060208284031215613f1257613f11612b72565b5b6000613f2084828501613ee7565b91505092915050565b7f5354000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f5f600283612c42565b9150613f6a82613f29565b602082019050919050565b60006020820190508181036000830152613f8e81613f52565b905091905056fea2646970667358221220861f6cd7ae95ab13bf846384766df758348803acd24b04d88eccb8a797499fd164736f6c63430008130033
Deployed Bytecode
0x6080604052600436106102135760003560e01c806370a0823111610118578063bc205ad3116100a0578063cfdb63ac1161006f578063cfdb63ac14610756578063d0d04ba414610793578063e43252d7146107be578063e985e9c5146107e7578063f3ae2415146108245761021a565b8063bc205ad31461069c578063bc6bf1cf146106c5578063c56a3e88146106ee578063c87b56dd146107195761021a565b806395d89b41116100e757806395d89b41146105da578063a20ded6a14610605578063a22cb4651461062e578063a5e90eee14610657578063b88d4fde146106805761021a565b806370a08231146105345780637ca8448a146105715780638456cb591461059a5780638ab1d681146105b15761021a565b806342966c681161019b57806355eda4e81161016a57806355eda4e81461042757806359bf1abe146104525780635c975abb1461048f5780636352211e146104ba578063669b8f20146104f75761021a565b806342966c681461038357806344337ea1146103ac5780634dd8a29e146103d5578063537df3b6146103fe5761021a565b806318160ddd116101e257806318160ddd146102e057806323b872dd1461030b5780633f4ba83a1461032757806340c10f191461033e57806342842e0e146103675761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c45761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190612bd4565b610861565b6040516102539190612c1c565b60405180910390f35b34801561026857600080fd5b506102716108f3565b60405161027e9190612cc7565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190612d1f565b610985565b6040516102bb9190612d8d565b60405180910390f35b6102de60048036038101906102d99190612dd4565b6109e3565b005b3480156102ec57600080fd5b506102f56109f3565b6040516103029190612e23565b60405180910390f35b61032560048036038101906103209190612e3e565b610a40565b005b34801561033357600080fd5b5061033c610d01565b005b34801561034a57600080fd5b5061036560048036038101906103609190612dd4565b610d5a565b005b610381600480360381019061037c9190612e3e565b610daf565b005b34801561038f57600080fd5b506103aa60048036038101906103a59190612d1f565b610dcf565b005b3480156103b857600080fd5b506103d360048036038101906103ce9190612e91565b610de5565b005b3480156103e157600080fd5b506103fc60048036038101906103f79190612f4f565b610f14565b005b34801561040a57600080fd5b5061042560048036038101906104209190612e91565b610fb3565b005b34801561043357600080fd5b5061043c6110d8565b6040516104499190612d8d565b60405180910390f35b34801561045e57600080fd5b5061047960048036038101906104749190612e91565b6110dd565b6040516104869190612c1c565b60405180910390f35b34801561049b57600080fd5b506104a4611133565b6040516104b19190612c1c565b60405180910390f35b3480156104c657600080fd5b506104e160048036038101906104dc9190612d1f565b61114a565b6040516104ee9190612d8d565b60405180910390f35b34801561050357600080fd5b5061051e60048036038101906105199190612e91565b61115c565b60405161052b9190612c1c565b60405180910390f35b34801561054057600080fd5b5061055b60048036038101906105569190612e91565b6111b2565b6040516105689190612e23565b60405180910390f35b34801561057d57600080fd5b5061059860048036038101906105939190612e91565b611249565b005b3480156105a657600080fd5b506105af61130a565b005b3480156105bd57600080fd5b506105d860048036038101906105d39190612e91565b611363565b005b3480156105e657600080fd5b506105ef611491565b6040516105fc9190612cc7565b60405180910390f35b34801561061157600080fd5b5061062c600480360381019061062791906130df565b611523565b005b34801561063a57600080fd5b5061065560048036038101906106509190613128565b61157d565b005b34801561066357600080fd5b5061067e60048036038101906106799190613128565b611688565b005b61069a60048036038101906106959190613209565b611799565b005b3480156106a857600080fd5b506106c360048036038101906106be919061328c565b6117eb565b005b3480156106d157600080fd5b506106ec60048036038101906106e791906132cc565b61192f565b005b3480156106fa57600080fd5b50610703611993565b6040516107109190612c1c565b60405180910390f35b34801561072557600080fd5b50610740600480360381019061073b9190612d1f565b6119aa565b60405161074d9190612cc7565b60405180910390f35b34801561076257600080fd5b5061077d60048036038101906107789190612e91565b611a1d565b60405161078a9190612c1c565b60405180910390f35b34801561079f57600080fd5b506107a8611a3d565b6040516107b59190612c1c565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190612e91565b611a50565b005b3480156107f357600080fd5b5061080e6004803603810190610809919061328c565b611b7f565b60405161081b9190612c1c565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190612e91565b611c13565b6040516108589190612c1c565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108bc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108ec5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461090290613328565b80601f016020809104026020016040519081016040528092919081815260200182805461092e90613328565b801561097b5780601f106109505761010080835404028352916020019161097b565b820191906000526020600020905b81548152906001019060200180831161095e57829003601f168201915b5050505050905090565b600061099082611c69565b6109a5576109a463cf4700e460e01b611d15565b5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6109ef82826001611d1f565b5050565b60006109fd611e4e565b600154600054030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a30611e53565b14610a3d57600854810190505b90565b6000610a4b82611e7b565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ac057610abf63a114810060e01b611d15565b5b600080610acc84611f94565b91509150610ae28187610add611fbb565b611fc3565b610b0d57610af786610af2611fbb565b611b7f565b610b0c57610b0b6359c896be60e01b611d15565b5b5b610b1a8686866001612007565b8015610b2557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610bf385610bcf888887612229565b7c020000000000000000000000000000000000000000000000000000000017612251565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610c795760006001850190506000600460008381526020019081526020016000205403610c77576000548114610c76578360046000838152602001908152602001600020819055505b5b505b600073ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460008103610ceb57610cea63ea553b3460e01b611d15565b5b610cf8878787600161227c565b50505050505050565b610d09611993565b610d48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3f906133a5565b60405180910390fd5b610d50612282565b610d586122cb565b565b610d62611993565b610da1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d98906133a5565b60405180910390fd5b610dab828261232e565b5050565b610dca83838360405180602001604052806000815250611799565b505050565b610dd761234c565b610de2816001612396565b50565b610ded611993565b610e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e23906133a5565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090613437565b60405180910390fd5b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b610f1c611993565b610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f52906133a5565b60405180910390fd5b60005b83839050811015610fad57610f9a848483818110610f7f57610f7e613457565b5b9050602002016020810190610f949190612e91565b83611688565b8080610fa5906134b5565b915050610f5e565b50505050565b610fbb611993565b610ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff1906133a5565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107d90613549565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff021916905550565b600081565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600a60009054906101000a900460ff16905090565b600061115582611e7b565b9050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111f8576111f7638f4eb60460e01b611d15565b5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611251611993565b611290576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611287906133a5565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff16476040516112b69061359a565b60006040518083038185875af1925050503d80600081146112f3576040519150601f19603f3d011682016040523d82523d6000602084013e6112f8565b606091505b505090508061130657600080fd5b5050565b611312611993565b611351576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611348906133a5565b60405180910390fd5b61135961234c565b6113616125c7565b565b61136b611993565b6113aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a1906133a5565b60405180910390fd5b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611436576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142d906135fb565b60405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6060600380546114a090613328565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90613328565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b5050505050905090565b61152b611993565b61156a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611561906133a5565b60405180910390fd5b80600e908161157991906137c7565b5050565b806007600061158a611fbb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611637611fbb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161167c9190612c1c565b60405180910390a35050565b611690611993565b6116cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c6906133a5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611735906138e5565b60405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6117a4848484610a40565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117e5576117cf8484848461262a565b6117e4576117e363d1a57ed660e01b611d15565b5b5b50505050565b6117f3611993565b611832576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611829906133a5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189890613951565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118dc9190612d8d565b602060405180830381865afa1580156118f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191d9190613986565b905061192a838383612759565b505050565b611937611993565b611976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196d906133a5565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b60006119a56119a06128ae565b611c13565b905090565b60606119b582611c69565b6119eb576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e6119f6836128b6565b604051602001611a07929190613a72565b6040516020818303038152906040529050919050565b600c6020528060005260406000206000915054906101000a900460ff1681565b600d60009054906101000a900460ff1681565b611a58611993565b611a97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8e906133a5565b60405180910390fd5b600c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b90613b08565b60405180910390fd5b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600081611c74611e4e565b11611d0f57611c81611e53565b821115611cab57611ca46004600084815260200190815260200160002054612906565b9050611d10565b600054821015611d0e5760005b6000600460008581526020019081526020016000205491508103611ce75782611ce090613b28565b9250611cb8565b60007c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b8060005260046000fd5b6000611d2a8361114a565b9050818015611d6c57508073ffffffffffffffffffffffffffffffffffffffff16611d53611fbb565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611d9857611d8281611d7d611fbb565b611b7f565b611d9757611d9663cfb3b94260e01b611d15565b5b5b836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b600090565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b600081611e86611e4e565b11611f7e5760046000838152602001908152602001600020549050611ea9611e53565b821115611ece57611eb981612906565b611f8f57611ecd63df2d9b4260e01b611d15565b5b60008103611f55576000548210611ef057611eef63df2d9b4260e01b611d15565b5b5b60046000836001900393508381526020019081526020016000205490506000810315611f505760007c010000000000000000000000000000000000000000000000000000000082160315611f8f57611f4f63df2d9b4260e01b611d15565b5b611ef1565b60007c010000000000000000000000000000000000000000000000000000000082160315611f8f575b611f8e63df2d9b4260e01b611d15565b5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61201384848484612947565b600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156120a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209790613b9d565b60405180910390fd5b600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561212d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212490613c09565b60405180910390fd5b600d60009054906101000a900460ff161561222357600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806121e35750600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221990613c9b565b60405180910390fd5b5b50505050565b60008060e883901c905060e861224086868461294d565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61228a611133565b6122c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c090613d07565b60405180910390fd5b565b6122d3612282565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6123176128ae565b6040516123249190612d8d565b60405180910390a1565b612348828260405180602001604052806000815250612956565b5050565b612354611133565b15612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90613d73565b60405180910390fd5b565b60006123a183611e7b565b905060008190506000806123b486611f94565b9150915084156123fc576123d081846123cb611fbb565b611fc3565b6123fb576123e5836123e0611fbb565b611b7f565b6123fa576123f96359c896be60e01b611d15565b5b5b5b61240a836000886001612007565b801561241557600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124bd8361247a85600088612229565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612251565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036125435760006001870190506000600460008381526020019081526020016000205403612541576000548114612540578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125ad83600088600161227c565b600160008154809291906001019190505550505050505050565b6125cf61234c565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126136128ae565b6040516126209190612d8d565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612650611fbb565b8786866040518563ffffffff1660e01b81526004016126729493929190613de8565b6020604051808303816000875af19250505080156126ae57506040513d601f19601f820116820180604052508101906126ab9190613e49565b60015b612706573d80600081146126de576040519150601f19603f3d011682016040523d82523d6000602084013e6126e3565b606091505b5060008151036126fe576126fd63d1a57ed660e01b611d15565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000808473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b858560405160240161278e929190613e76565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516127f89190613ed0565b6000604051808303816000865af19150503d8060008114612835576040519150601f19603f3d011682016040523d82523d6000602084013e61283a565b606091505b509150915081801561286857506000815114806128675750808060200190518101906128669190613efc565b5b5b6128a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289e90613f75565b60405180910390fd5b5050505050565b600033905090565b606060a060405101806040526020810391506000825281835b6001156128f157600184039350600a81066030018453600a81049050806128cf575b50828103602084039350808452505050919050565b60007c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b50505050565b60009392505050565b61296083836129d2565b60008373ffffffffffffffffffffffffffffffffffffffff163b146129cd57600080549050600083820390505b6129a0600086838060010194508661262a565b6129b5576129b463d1a57ed660e01b611d15565b5b81811061298d5781600054146129ca57600080fd5b50505b505050565b600080549050600082036129f1576129f063b562e8dd60e01b611d15565b5b6129fe6000848385612007565b612a1e83612a0f6000866000612229565b612a1885612b58565b17612251565b6004600083815260200190815260200160002081905550600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff1616905060008103612ad657612ad5632e07630060e01b611d15565b5b600083830190506000839050612aea611e53565b600183031115612b0557612b046381647e3a60e01b611d15565b5b5b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103612b065781600081905550505050612b53600084838561227c565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612bb181612b7c565b8114612bbc57600080fd5b50565b600081359050612bce81612ba8565b92915050565b600060208284031215612bea57612be9612b72565b5b6000612bf884828501612bbf565b91505092915050565b60008115159050919050565b612c1681612c01565b82525050565b6000602082019050612c316000830184612c0d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c71578082015181840152602081019050612c56565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c9982612c37565b612ca38185612c42565b9350612cb3818560208601612c53565b612cbc81612c7d565b840191505092915050565b60006020820190508181036000830152612ce18184612c8e565b905092915050565b6000819050919050565b612cfc81612ce9565b8114612d0757600080fd5b50565b600081359050612d1981612cf3565b92915050565b600060208284031215612d3557612d34612b72565b5b6000612d4384828501612d0a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d7782612d4c565b9050919050565b612d8781612d6c565b82525050565b6000602082019050612da26000830184612d7e565b92915050565b612db181612d6c565b8114612dbc57600080fd5b50565b600081359050612dce81612da8565b92915050565b60008060408385031215612deb57612dea612b72565b5b6000612df985828601612dbf565b9250506020612e0a85828601612d0a565b9150509250929050565b612e1d81612ce9565b82525050565b6000602082019050612e386000830184612e14565b92915050565b600080600060608486031215612e5757612e56612b72565b5b6000612e6586828701612dbf565b9350506020612e7686828701612dbf565b9250506040612e8786828701612d0a565b9150509250925092565b600060208284031215612ea757612ea6612b72565b5b6000612eb584828501612dbf565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612ee357612ee2612ebe565b5b8235905067ffffffffffffffff811115612f0057612eff612ec3565b5b602083019150836020820283011115612f1c57612f1b612ec8565b5b9250929050565b612f2c81612c01565b8114612f3757600080fd5b50565b600081359050612f4981612f23565b92915050565b600080600060408486031215612f6857612f67612b72565b5b600084013567ffffffffffffffff811115612f8657612f85612b77565b5b612f9286828701612ecd565b93509350506020612fa586828701612f3a565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612fec82612c7d565b810181811067ffffffffffffffff8211171561300b5761300a612fb4565b5b80604052505050565b600061301e612b68565b905061302a8282612fe3565b919050565b600067ffffffffffffffff82111561304a57613049612fb4565b5b61305382612c7d565b9050602081019050919050565b82818337600083830152505050565b600061308261307d8461302f565b613014565b90508281526020810184848401111561309e5761309d612faf565b5b6130a9848285613060565b509392505050565b600082601f8301126130c6576130c5612ebe565b5b81356130d684826020860161306f565b91505092915050565b6000602082840312156130f5576130f4612b72565b5b600082013567ffffffffffffffff81111561311357613112612b77565b5b61311f848285016130b1565b91505092915050565b6000806040838503121561313f5761313e612b72565b5b600061314d85828601612dbf565b925050602061315e85828601612f3a565b9150509250929050565b600067ffffffffffffffff82111561318357613182612fb4565b5b61318c82612c7d565b9050602081019050919050565b60006131ac6131a784613168565b613014565b9050828152602081018484840111156131c8576131c7612faf565b5b6131d3848285613060565b509392505050565b600082601f8301126131f0576131ef612ebe565b5b8135613200848260208601613199565b91505092915050565b6000806000806080858703121561322357613222612b72565b5b600061323187828801612dbf565b945050602061324287828801612dbf565b935050604061325387828801612d0a565b925050606085013567ffffffffffffffff81111561327457613273612b77565b5b613280878288016131db565b91505092959194509250565b600080604083850312156132a3576132a2612b72565b5b60006132b185828601612dbf565b92505060206132c285828601612dbf565b9150509250929050565b6000602082840312156132e2576132e1612b72565b5b60006132f084828501612f3a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061334057607f821691505b602082108103613353576133526132f9565b5b50919050565b7f6f6e6c79206d616e616765720000000000000000000000000000000000000000600082015250565b600061338f600c83612c42565b915061339a82613359565b602082019050919050565b600060208201905081810360008301526133be81613382565b9050919050565b7f5573657220697320616c7265616479206f6e2074686520626c61636b6c69737460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613421602183612c42565b915061342c826133c5565b604082019050919050565b6000602082019050818103600083015261345081613414565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134c082612ce9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134f2576134f1613486565b5b600182019050919050565b7f55736572206973206e6f74206f6e2074686520626c61636b6c6973742e000000600082015250565b6000613533601d83612c42565b915061353e826134fd565b602082019050919050565b6000602082019050818103600083015261356281613526565b9050919050565b600081905092915050565b50565b6000613584600083613569565b915061358f82613574565b600082019050919050565b60006135a582613577565b9150819050919050565b7f55736572206973206e6f74206f6e207468652077686974656c6973742e000000600082015250565b60006135e5601d83612c42565b91506135f0826135af565b602082019050919050565b60006020820190508181036000830152613614816135d8565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261367d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613640565b6136878683613640565b95508019841693508086168417925050509392505050565b6000819050919050565b60006136c46136bf6136ba84612ce9565b61369f565b612ce9565b9050919050565b6000819050919050565b6136de836136a9565b6136f26136ea826136cb565b84845461364d565b825550505050565b600090565b6137076136fa565b6137128184846136d5565b505050565b5b818110156137365761372b6000826136ff565b600181019050613718565b5050565b601f82111561377b5761374c8161361b565b61375584613630565b81016020851015613764578190505b61377861377085613630565b830182613717565b50505b505050565b600082821c905092915050565b600061379e60001984600802613780565b1980831691505092915050565b60006137b7838361378d565b9150826002028217905092915050565b6137d082612c37565b67ffffffffffffffff8111156137e9576137e8612fb4565b5b6137f38254613328565b6137fe82828561373a565b600060209050601f831160018114613831576000841561381f578287015190505b61382985826137ab565b865550613891565b601f19841661383f8661361b565b60005b8281101561386757848901518255600182019150602085019450602081019050613842565b868310156138845784890151613880601f89168261378d565b8355505b6001600288020188555050505b505050505050565b7f61646472657373206973207a65726f0000000000000000000000000000000000600082015250565b60006138cf600f83612c42565b91506138da82613899565b602082019050919050565b600060208201905081810360008301526138fe816138c2565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f742062652030000000000000600082015250565b600061393b601a83612c42565b915061394682613905565b602082019050919050565b6000602082019050818103600083015261396a8161392e565b9050919050565b60008151905061398081612cf3565b92915050565b60006020828403121561399c5761399b612b72565b5b60006139aa84828501613971565b91505092915050565b600081905092915050565b600081546139cb81613328565b6139d581866139b3565b945060018216600081146139f05760018114613a0557613a38565b60ff1983168652811515820286019350613a38565b613a0e8561361b565b60005b83811015613a3057815481890152600182019150602081019050613a11565b838801955050505b50505092915050565b6000613a4c82612c37565b613a5681856139b3565b9350613a66818560208601612c53565b80840191505092915050565b6000613a7e82856139be565b9150613a8a8284613a41565b91508190509392505050565b7f5573657220697320616c7265616479206f6e207468652077686974656c69737460008201527f2e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000613af2602183612c42565b9150613afd82613a96565b604082019050919050565b60006020820190508181036000830152613b2181613ae5565b9050919050565b6000613b3382612ce9565b915060008203613b4657613b45613486565b5b600182039050919050565b7f53656e64696e67206164647265737320697320626c61636b6c69737465642e00600082015250565b6000613b87601f83612c42565b9150613b9282613b51565b602082019050919050565b60006020820190508181036000830152613bb681613b7a565b9050919050565b7f526563656976696e67206164647265737320697320626c61636b6c6973746564600082015250565b6000613bf3602083612c42565b9150613bfe82613bbd565b602082019050919050565b60006020820190508181036000830152613c2281613be6565b9050919050565b7f53656e64696e67204f7220526563656976696e6720616464726573732069732060008201527f6e6f74206f6e207468652077686974656c697374000000000000000000000000602082015250565b6000613c85603483612c42565b9150613c9082613c29565b604082019050919050565b60006020820190508181036000830152613cb481613c78565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000613cf1601483612c42565b9150613cfc82613cbb565b602082019050919050565b60006020820190508181036000830152613d2081613ce4565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000613d5d601083612c42565b9150613d6882613d27565b602082019050919050565b60006020820190508181036000830152613d8c81613d50565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613dba82613d93565b613dc48185613d9e565b9350613dd4818560208601612c53565b613ddd81612c7d565b840191505092915050565b6000608082019050613dfd6000830187612d7e565b613e0a6020830186612d7e565b613e176040830185612e14565b8181036060830152613e298184613daf565b905095945050505050565b600081519050613e4381612ba8565b92915050565b600060208284031215613e5f57613e5e612b72565b5b6000613e6d84828501613e34565b91505092915050565b6000604082019050613e8b6000830185612d7e565b613e986020830184612e14565b9392505050565b6000613eaa82613d93565b613eb48185613569565b9350613ec4818560208601612c53565b80840191505092915050565b6000613edc8284613e9f565b915081905092915050565b600081519050613ef681612f23565b92915050565b600060208284031215613f1257613f11612b72565b5b6000613f2084828501613ee7565b91505092915050565b7f5354000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f5f600283612c42565b9150613f6a82613f29565b602082019050919050565b60006020820190508181036000830152613f8e81613f52565b905091905056fea2646970667358221220861f6cd7ae95ab13bf846384766df758348803acd24b04d88eccb8a797499fd164736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ARB | 100.00% | $3,374.8 | 0.0002 | $0.6749 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.