Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
GetIn
Compiler Version
v0.8.9+commit.e5eed63a
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.9 <0.9.0; import "./ERC721AQueryable.sol"; import "./Ownable.sol"; import "./ReentrancyGuard.sol"; import "./SignedTokenVerifier.sol"; import "./Pausable.sol"; contract GetIn is ERC721AQueryable, Ownable, ReentrancyGuard, SignedTokenVerifier, Pausable { using Strings for uint256; string public uriPrefix = ""; mapping(uint256 => bool) private minted; event Minted(uint256 _ticketId, uint256 _purchaseUsersId, uint256 _tokenId); constructor() ERC721A("Get-In", "GI") {} function initialize(string memory baseURI, address _signer) public { __ERC721A_init("Get-In", "GI"); __Ownable_init(); __ReentrancyGuard_init(); setUriPrefix(baseURI); _setSigner(_signer); } function setSigner(address addr) external onlyOwner { _setSigner(addr); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function mint( uint256 _ticketId, uint256 _purchaseUsersId, bytes calldata _token, string calldata _salt ) public whenNotPaused nonReentrant { //for this scope only { uint256[] memory _ticketIdArray = new uint256[](1); _ticketIdArray[0] = _ticketId; uint256[] memory _purchaseUsersIdArray = new uint256[](1); _purchaseUsersIdArray[0] = _purchaseUsersId; require( verifyTokenForAddress( _salt, _ticketIdArray, _purchaseUsersIdArray, _token, msg.sender ), "Unauthorized" ); } require(!minted[_purchaseUsersId], "Token already minted!"); _safeMint(msg.sender, 1); emit Minted(_ticketId, _purchaseUsersId, _currentIndex - 1); minted[_purchaseUsersId] = true; } function bulkMint( uint256[] memory _ticketIds, uint256[] memory _purchaseUsersIds, bytes calldata _token, string calldata _salt ) public whenNotPaused nonReentrant { require(_ticketIds.length == _purchaseUsersIds.length, "Invalid args"); require( verifyTokenForAddress( _salt, _ticketIds, _purchaseUsersIds, _token, msg.sender ), "Unauthorized" ); for (uint256 index = 0; index < _purchaseUsersIds.length; index++) { require(!minted[_purchaseUsersIds[index]], "Token already minted!"); } uint256 indexBeforeMint = _currentIndex; _safeMint(msg.sender, _purchaseUsersIds.length); for (uint256 index = 0; index < _purchaseUsersIds.length; index++) { uint256 _ticketId = _ticketIds[index]; uint256 _purchaseUsersId = _purchaseUsersIds[index]; emit Minted(_ticketId, _purchaseUsersId, indexBeforeMint + index); minted[_purchaseUsersId] = true; } } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } function __Ownable_init() internal { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import './ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } function __ReentrancyGuard_init() internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "./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; } function __Pausable_init() internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Ownable.sol"; import "./ECDSA.sol"; contract SignedTokenVerifier { using ECDSA for bytes32; address private _signer; event SignerUpdated(address newSigner); constructor() {} function _setSigner(address _newSigner) internal { _signer = _newSigner; emit SignerUpdated(_signer); } function _hash( string calldata _salt, uint256[] memory _ticketId, uint256[] memory _purchaseUsersId, address _address ) internal view returns (bytes32) { return keccak256( abi.encode( _salt, _ticketId, _purchaseUsersId, address(this), _address ) ); } function _recover(bytes32 hash, bytes memory token) internal pure returns (address) { return hash.toEthSignedMessageHash().recover(token); } function getAddress( string calldata _salt, uint256[] memory _ticketId, uint256[] memory _purchaseUsersId, bytes calldata _token, address _address ) internal view returns (address) { return _recover( _hash(_salt, _ticketId, _purchaseUsersId, _address), _token ); } function verifyTokenForAddress( string calldata _salt, uint256[] memory _ticketId, uint256[] memory _purchaseUsersId, bytes calldata _token, address _address ) public view returns (bool) { return getAddress(_salt, _ticketId, _purchaseUsersId, _token, _address) == _signer; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "./IERC721A.sol"; import "./IERC721Receiver.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } function __ERC721A_init(string memory name_, string memory symbol_) internal { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if (!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if ( !_checkContractOnERC721Received( address(0), to, updatedIndex++, _data ) ) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // 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 { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721.sol'; import './IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } function toHexString(bytes memory data) internal pure returns(string memory) { bytes memory str = new bytes(2 + data.length * 2); str[0] = "0"; str[1] = "x"; for (uint i = 0; i < data.length; i++) { str[2+i*2] = _HEX_SYMBOLS[uint(uint8(data[i] >> 4))]; str[3+i*2] = _HEX_SYMBOLS[uint(uint8(data[i] & 0x0f))]; } return string(str); } function toString(address account) internal pure returns(string memory) { return toHexString(abi.encodePacked(account)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "./Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
{ "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":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_ticketId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_purchaseUsersId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newSigner","type":"address"}],"name":"SignerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ticketIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_purchaseUsersIds","type":"uint256[]"},{"internalType":"bytes","name":"_token","type":"bytes"},{"internalType":"string","name":"_salt","type":"string"}],"name":"bulkMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"_signer","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ticketId","type":"uint256"},{"internalType":"uint256","name":"_purchaseUsersId","type":"uint256"},{"internalType":"bytes","name":"_token","type":"bytes"},{"internalType":"string","name":"_salt","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_salt","type":"string"},{"internalType":"uint256[]","name":"_ticketId","type":"uint256[]"},{"internalType":"uint256[]","name":"_purchaseUsersId","type":"uint256[]"},{"internalType":"bytes","name":"_token","type":"bytes"},{"internalType":"address","name":"_address","type":"address"}],"name":"verifyTokenForAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600b90805190602001906200002b92919062000210565b503480156200003957600080fd5b506040518060400160405280600681526020017f4765742d496e00000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f47490000000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000be92919062000210565b508060039080519060200190620000d792919062000210565b50620000e86200013960201b60201c565b600081905550505062000110620001046200014260201b60201c565b6200014a60201b60201c565b60016009819055506000600a60146101000a81548160ff02191690831515021790555062000325565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200021e90620002ef565b90600052602060002090601f0160209004810192826200024257600085556200028e565b82601f106200025d57805160ff19168380011785556200028e565b828001600101855582156200028e579182015b828111156200028d57825182559160200191906001019062000270565b5b5090506200029d9190620002a1565b5090565b5b80821115620002bc576000816000905550600101620002a2565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200030857607f821691505b602082108114156200031f576200031e620002c0565b5b50919050565b61535880620003356000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f578063a22cb465116100a2578063c23dc68f11610071578063c23dc68f14610569578063c87b56dd14610599578063e985e9c5146105c9578063f2fde38b146105f9576101f0565b8063a22cb465146104e5578063b291199b14610501578063b6da30f814610531578063b88d4fde1461054d576101f0565b80638462151c116100de5780638462151c146104495780638da5cb5b1461047957806395d89b411461049757806399a2557a146104b5576101f0565b8063715018a6146103fd5780637ab4339d146104075780637ec4a659146104235780638456cb591461043f576101f0565b806342842e0e116101875780636352211e116101565780636352211e146103655780636c19e783146103955780636d33f95d146103b157806370a08231146103cd576101f0565b806342842e0e146102dd5780635bbb2177146102f95780635c975abb1461032957806362b99ad414610347576101f0565b806318160ddd116101c357806318160ddd1461028f57806323b872dd146102ad5780633ccfd60b146102c95780633f4ba83a146102d3576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190613a2d565b610615565b60405161021c9190613a75565b60405180910390f35b61022d6106f7565b60405161023a9190613b29565b60405180910390f35b61025d60048036038101906102589190613b81565b610789565b60405161026a9190613bef565b60405180910390f35b61028d60048036038101906102889190613c36565b610805565b005b61029761090a565b6040516102a49190613c85565b60405180910390f35b6102c760048036038101906102c29190613ca0565b610921565b005b6102d1610931565b005b6102db610a83565b005b6102f760048036038101906102f29190613ca0565b610b09565b005b610313600480360381019061030e9190613e3b565b610b29565b6040516103209190613fb6565b60405180910390f35b610331610bea565b60405161033e9190613a75565b60405180910390f35b61034f610c01565b60405161035c9190613b29565b60405180910390f35b61037f600480360381019061037a9190613b81565b610c8f565b60405161038c9190613bef565b60405180910390f35b6103af60048036038101906103aa9190613fd8565b610ca5565b005b6103cb60048036038101906103c691906140b6565b610d2d565b005b6103e760048036038101906103e29190613fd8565b610fe4565b6040516103f49190613c85565b60405180910390f35b6104056110b4565b005b610421600480360381019061041c919061424a565b61113c565b005b61043d600480360381019061043891906142a6565b6111d6565b005b61044761126c565b005b610463600480360381019061045e9190613fd8565b6112f2565b60405161047091906143ad565b60405180910390f35b6104816114f4565b60405161048e9190613bef565b60405180910390f35b61049f61151e565b6040516104ac9190613b29565b60405180910390f35b6104cf60048036038101906104ca91906143cf565b6115b0565b6040516104dc91906143ad565b60405180910390f35b6104ff60048036038101906104fa919061444e565b611877565b005b61051b6004803603810190610516919061448e565b6119ef565b6040516105289190613a75565b60405180910390f35b61054b60048036038101906105469190614582565b611a5d565b005b610567600480360381019061056291906146ca565b611d12565b005b610583600480360381019061057e9190613b81565b611d8a565b604051610590919061478f565b60405180910390f35b6105b360048036038101906105ae9190613b81565b611ea7565b6040516105c09190613b29565b60405180910390f35b6105e360048036038101906105de91906147aa565b611f46565b6040516105f09190613a75565b60405180910390f35b610613600480360381019061060e9190613fd8565b611fda565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f057506106ef826120d2565b5b9050919050565b60606002805461070690614819565b80601f016020809104026020016040519081016040528092919081815260200182805461073290614819565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b5050505050905090565b60006107948261213c565b6107ca576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081082610c8f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610878576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661089761218a565b73ffffffffffffffffffffffffffffffffffffffff16146108fa576108c3816108be61218a565b611f46565b6108f9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610905838383612192565b505050565b6000610914612244565b6001546000540303905090565b61092c83838361224d565b505050565b61093961218a565b73ffffffffffffffffffffffffffffffffffffffff166109576114f4565b73ffffffffffffffffffffffffffffffffffffffff16146109ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a490614897565b60405180910390fd5b600260095414156109f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ea90614903565b60405180910390fd5b60026009819055506000610a056114f4565b73ffffffffffffffffffffffffffffffffffffffff1647604051610a2890614954565b60006040518083038185875af1925050503d8060008114610a65576040519150601f19603f3d011682016040523d82523d6000602084013e610a6a565b606091505b5050905080610a7857600080fd5b506001600981905550565b610a8b61218a565b73ffffffffffffffffffffffffffffffffffffffff16610aa96114f4565b73ffffffffffffffffffffffffffffffffffffffff1614610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af690614897565b60405180910390fd5b610b07612703565b565b610b2483838360405180602001604052806000815250611d12565b505050565b606060008251905060008167ffffffffffffffff811115610b4d57610b4c613cf8565b5b604051908082528060200260200182016040528015610b8657816020015b610b736138db565b815260200190600190039081610b6b5790505b50905060005b828114610bdf57610bb6858281518110610ba957610ba8614969565b5b6020026020010151611d8a565b828281518110610bc957610bc8614969565b5b6020026020010181905250806001019050610b8c565b508092505050919050565b6000600a60149054906101000a900460ff16905090565b600b8054610c0e90614819565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90614819565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b505050505081565b6000610c9a826127a5565b600001519050919050565b610cad61218a565b73ffffffffffffffffffffffffffffffffffffffff16610ccb6114f4565b73ffffffffffffffffffffffffffffffffffffffff1614610d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1890614897565b60405180910390fd5b610d2a81612a30565b50565b610d35610bea565b15610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c906149e4565b60405180910390fd5b60026009541415610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db290614903565b60405180910390fd5b60026009819055508451865114610e07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfe90614a50565b60405180910390fd5b610e16828288888888336119ef565b610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c90614abc565b60405180910390fd5b60005b8551811015610eef57600c6000878381518110610e7857610e77614969565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed390614b28565b60405180910390fd5b8080610ee790614b77565b915050610e58565b50600080549050610f01338751612acd565b60005b8651811015610fd2576000888281518110610f2257610f21614969565b5b602002602001015190506000888381518110610f4157610f40614969565b5b602002602001015190507f488bbf7ce8682b98371a0bb07d4e838ce2e533a907ceda8ac6ee658fdbd162e082828587610f7a9190614bc0565b604051610f8993929190614c16565b60405180910390a16001600c600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050508080610fca90614b77565b915050610f04565b50506001600981905550505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561104c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6110bc61218a565b73ffffffffffffffffffffffffffffffffffffffff166110da6114f4565b73ffffffffffffffffffffffffffffffffffffffff1614611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112790614897565b60405180910390fd5b61113a6000612aeb565b565b6111b06040518060400160405280600681526020017f4765742d496e00000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4749000000000000000000000000000000000000000000000000000000000000815250612bb1565b6111b8612bf1565b6111c0612c03565b6111c9826111d6565b6111d281612a30565b5050565b6111de61218a565b73ffffffffffffffffffffffffffffffffffffffff166111fc6114f4565b73ffffffffffffffffffffffffffffffffffffffff1614611252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124990614897565b60405180910390fd5b80600b908051906020019061126892919061391e565b5050565b61127461218a565b73ffffffffffffffffffffffffffffffffffffffff166112926114f4565b73ffffffffffffffffffffffffffffffffffffffff16146112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df90614897565b60405180910390fd5b6112f0612c0d565b565b6060600080600061130285610fe4565b905060008167ffffffffffffffff8111156113205761131f613cf8565b5b60405190808252806020026020018201604052801561134e5781602001602082028036833780820191505090505b5090506113596138db565b6000611363612244565b90505b8386146114e657600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050915081604001511561143f576114db565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461147f57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156114da57808387806001019850815181106114cd576114cc614969565b5b6020026020010181815250505b5b806001019050611366565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461152d90614819565b80601f016020809104026020016040519081016040528092919081815260200182805461155990614819565b80156115a65780601f1061157b576101008083540402835291602001916115a6565b820191906000526020600020905b81548152906001019060200180831161158957829003601f168201915b5050505050905090565b60608183106115eb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060005490506115fb612244565b85101561160d5761160a612244565b94505b80841115611619578093505b600061162487610fe4565b905084861015611647576000868603905081811015611641578091505b5061164c565b600090505b60008167ffffffffffffffff81111561166857611667613cf8565b5b6040519080825280602002602001820160405280156116965781602001602082028036833780820191505090505b50905060008214156116ae5780945050505050611870565b60006116b988611d8a565b9050600081604001516116ce57816000015190505b60008990505b8881141580156116e45750848714155b1561186257600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505092508260400151156117bb57611857565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146117fb57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611856578084888060010199508151811061184957611848614969565b5b6020026020010181815250505b5b8060010190506116d4565b508583528296505050505050505b9392505050565b61187f61218a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118e4576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006118f161218a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661199e61218a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119e39190613a75565b60405180910390a35050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a3989898989898989612cb0565b73ffffffffffffffffffffffffffffffffffffffff16149050979650505050505050565b611a65610bea565b15611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c906149e4565b60405180910390fd5b60026009541415611aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae290614903565b60405180910390fd5b60026009819055506000600167ffffffffffffffff811115611b1057611b0f613cf8565b5b604051908082528060200260200182016040528015611b3e5781602001602082028036833780820191505090505b5090508681600081518110611b5657611b55614969565b5b6020026020010181815250506000600167ffffffffffffffff811115611b7f57611b7e613cf8565b5b604051908082528060200260200182016040528015611bad5781602001602082028036833780820191505090505b5090508681600081518110611bc557611bc4614969565b5b602002602001018181525050611be0848484848a8a336119ef565b611c1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1690614abc565b60405180910390fd5b5050600c600086815260200190815260200160002060009054906101000a900460ff1615611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7990614b28565b60405180910390fd5b611c8d336001612acd565b7f488bbf7ce8682b98371a0bb07d4e838ce2e533a907ceda8ac6ee658fdbd162e086866001600054611cbf9190614c4d565b604051611cce93929190614c16565b60405180910390a16001600c600087815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600981905550505050505050565b611d1d84848461224d565b611d3c8373ffffffffffffffffffffffffffffffffffffffff16612d19565b15611d8457611d4d84848484612d3c565b611d83576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611d926138db565b611d9a6138db565b611da2612244565b831080611db157506000548310155b15611dbf5780915050611ea2565b600460008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611e955780915050611ea2565b611e9e836127a5565b9150505b919050565b6060611eb28261213c565b611ee8576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ef2612e9c565b9050600081511415611f135760405180602001604052806000815250611f3e565b80611f1d84612f2e565b604051602001611f2e929190614cbd565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611fe261218a565b73ffffffffffffffffffffffffffffffffffffffff166120006114f4565b73ffffffffffffffffffffffffffffffffffffffff1614612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d90614897565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd90614d53565b60405180910390fd5b6120cf81612aeb565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612147612244565b11158015612156575060005482105b8015612183575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b6000612258826127a5565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122c3576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166122e461218a565b73ffffffffffffffffffffffffffffffffffffffff16148061231357506123128561230d61218a565b611f46565b5b80612358575061232161218a565b73ffffffffffffffffffffffffffffffffffffffff1661234084610789565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612391576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156123f8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612405858585600161308f565b61241160008487612192565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561269157600054821461269057878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126fc8585856001613095565b5050505050565b61270b610bea565b61274a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274190614dbf565b60405180910390fd5b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61278e61218a565b60405161279b9190613bef565b60405180910390a1565b6127ad6138db565b6000829050806127bb612244565b116129f9576000548110156129f8576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516129f657600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146128da578092505050612a2b565b5b6001156129f557818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146129f0578092505050612a2b565b6128db565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5553331329228fbd4123164423717a4a7539f6dfa1c3279a923b98fd681a6c73600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051612ac29190613bef565b60405180910390a150565b612ae782826040518060200160405280600081525061309b565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8160029080519060200190612bc792919061391e565b508060039080519060200190612bde92919061391e565b50612be7612244565b6000819055505050565b612c01612bfc61218a565b612aeb565b565b6001600981905550565b612c15610bea565b15612c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4c906149e4565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c9961218a565b604051612ca69190613bef565b60405180910390a1565b6000612d0c612cc2898989898761345d565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061349b565b9050979650505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d6261218a565b8786866040518563ffffffff1660e01b8152600401612d849493929190614e34565b602060405180830381600087803b158015612d9e57600080fd5b505af1925050508015612dcf57506040513d601f19601f82011682018060405250810190612dcc9190614e95565b60015b612e49573d8060008114612dff576040519150601f19603f3d011682016040523d82523d6000602084013e612e04565b606091505b50600081511415612e41576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600b8054612eab90614819565b80601f0160208091040260200160405190810160405280929190818152602001828054612ed790614819565b8015612f245780601f10612ef957610100808354040283529160200191612f24565b820191906000526020600020905b815481529060010190602001808311612f0757829003601f168201915b5050505050905090565b60606000821415612f76576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061308a565b600082905060005b60008214612fa8578080612f9190614b77565b915050600a82612fa19190614ef1565b9150612f7e565b60008167ffffffffffffffff811115612fc457612fc3613cf8565b5b6040519080825280601f01601f191660200182016040528015612ff65781602001600182028036833780820191505090505b5090505b600085146130835760018261300f9190614c4d565b9150600a8561301e9190614f22565b603061302a9190614bc0565b60f81b8183815181106130405761303f614969565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561307c9190614ef1565b9450612ffa565b8093505050505b919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613108576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613143576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613150600085838661308f565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600084820190506133118673ffffffffffffffffffffffffffffffffffffffff16612d19565b156133d6575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133866000878480600101955087612d3c565b6133bc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106133175782600054146133d157600080fd5b613441565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106133d7575b8160008190555050506134576000858386613095565b50505050565b600085858585308660405160200161347a96959493929190614f80565b60405160208183030381529060405280519060200120905095945050505050565b60006134b8826134aa856134c0565b6134f090919063ffffffff16565b905092915050565b6000816040516020016134d39190615061565b604051602081830303815290604052805190602001209050919050565b60008060006134ff8585613517565b9150915061350c8161359a565b819250505092915050565b6000806041835114156135595760008060006020860151925060408601519150606086015160001a905061354d8782858561376f565b94509450505050613593565b60408351141561358a57600080602085015191506040850151905061357f86838361387c565b935093505050613593565b60006002915091505b9250929050565b600060048111156135ae576135ad615087565b5b8160048111156135c1576135c0615087565b5b14156135cc5761376c565b600160048111156135e0576135df615087565b5b8160048111156135f3576135f2615087565b5b1415613634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362b90615102565b60405180910390fd5b6002600481111561364857613647615087565b5b81600481111561365b5761365a615087565b5b141561369c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136939061516e565b60405180910390fd5b600360048111156136b0576136af615087565b5b8160048111156136c3576136c2615087565b5b1415613704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136fb90615200565b60405180910390fd5b60048081111561371757613716615087565b5b81600481111561372a57613729615087565b5b141561376b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376290615292565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156137aa576000600391509150613873565b601b8560ff16141580156137c25750601c8560ff1614155b156137d4576000600491509150613873565b6000600187878787604051600081526020016040526040516137f994939291906152dd565b6020604051602081039080840390855afa15801561381b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561386a57600060019250925050613873565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6138bf9190614bc0565b90506138cd8782888561376f565b935093505050935093915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b82805461392a90614819565b90600052602060002090601f01602090048101928261394c5760008555613993565b82601f1061396557805160ff1916838001178555613993565b82800160010185558215613993579182015b82811115613992578251825591602001919060010190613977565b5b5090506139a091906139a4565b5090565b5b808211156139bd5760008160009055506001016139a5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a0a816139d5565b8114613a1557600080fd5b50565b600081359050613a2781613a01565b92915050565b600060208284031215613a4357613a426139cb565b5b6000613a5184828501613a18565b91505092915050565b60008115159050919050565b613a6f81613a5a565b82525050565b6000602082019050613a8a6000830184613a66565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613aca578082015181840152602081019050613aaf565b83811115613ad9576000848401525b50505050565b6000601f19601f8301169050919050565b6000613afb82613a90565b613b058185613a9b565b9350613b15818560208601613aac565b613b1e81613adf565b840191505092915050565b60006020820190508181036000830152613b438184613af0565b905092915050565b6000819050919050565b613b5e81613b4b565b8114613b6957600080fd5b50565b600081359050613b7b81613b55565b92915050565b600060208284031215613b9757613b966139cb565b5b6000613ba584828501613b6c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613bd982613bae565b9050919050565b613be981613bce565b82525050565b6000602082019050613c046000830184613be0565b92915050565b613c1381613bce565b8114613c1e57600080fd5b50565b600081359050613c3081613c0a565b92915050565b60008060408385031215613c4d57613c4c6139cb565b5b6000613c5b85828601613c21565b9250506020613c6c85828601613b6c565b9150509250929050565b613c7f81613b4b565b82525050565b6000602082019050613c9a6000830184613c76565b92915050565b600080600060608486031215613cb957613cb86139cb565b5b6000613cc786828701613c21565b9350506020613cd886828701613c21565b9250506040613ce986828701613b6c565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d3082613adf565b810181811067ffffffffffffffff82111715613d4f57613d4e613cf8565b5b80604052505050565b6000613d626139c1565b9050613d6e8282613d27565b919050565b600067ffffffffffffffff821115613d8e57613d8d613cf8565b5b602082029050602081019050919050565b600080fd5b6000613db7613db284613d73565b613d58565b90508083825260208201905060208402830185811115613dda57613dd9613d9f565b5b835b81811015613e035780613def8882613b6c565b845260208401935050602081019050613ddc565b5050509392505050565b600082601f830112613e2257613e21613cf3565b5b8135613e32848260208601613da4565b91505092915050565b600060208284031215613e5157613e506139cb565b5b600082013567ffffffffffffffff811115613e6f57613e6e6139d0565b5b613e7b84828501613e0d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613eb981613bce565b82525050565b600067ffffffffffffffff82169050919050565b613edc81613ebf565b82525050565b613eeb81613a5a565b82525050565b606082016000820151613f076000850182613eb0565b506020820151613f1a6020850182613ed3565b506040820151613f2d6040850182613ee2565b50505050565b6000613f3f8383613ef1565b60608301905092915050565b6000602082019050919050565b6000613f6382613e84565b613f6d8185613e8f565b9350613f7883613ea0565b8060005b83811015613fa9578151613f908882613f33565b9750613f9b83613f4b565b925050600181019050613f7c565b5085935050505092915050565b60006020820190508181036000830152613fd08184613f58565b905092915050565b600060208284031215613fee57613fed6139cb565b5b6000613ffc84828501613c21565b91505092915050565b600080fd5b60008083601f8401126140205761401f613cf3565b5b8235905067ffffffffffffffff81111561403d5761403c614005565b5b60208301915083600182028301111561405957614058613d9f565b5b9250929050565b60008083601f84011261407657614075613cf3565b5b8235905067ffffffffffffffff81111561409357614092614005565b5b6020830191508360018202830111156140af576140ae613d9f565b5b9250929050565b600080600080600080608087890312156140d3576140d26139cb565b5b600087013567ffffffffffffffff8111156140f1576140f06139d0565b5b6140fd89828a01613e0d565b965050602087013567ffffffffffffffff81111561411e5761411d6139d0565b5b61412a89828a01613e0d565b955050604087013567ffffffffffffffff81111561414b5761414a6139d0565b5b61415789828a0161400a565b9450945050606087013567ffffffffffffffff81111561417a576141796139d0565b5b61418689828a01614060565b92509250509295509295509295565b600080fd5b600067ffffffffffffffff8211156141b5576141b4613cf8565b5b6141be82613adf565b9050602081019050919050565b82818337600083830152505050565b60006141ed6141e88461419a565b613d58565b90508281526020810184848401111561420957614208614195565b5b6142148482856141cb565b509392505050565b600082601f83011261423157614230613cf3565b5b81356142418482602086016141da565b91505092915050565b60008060408385031215614261576142606139cb565b5b600083013567ffffffffffffffff81111561427f5761427e6139d0565b5b61428b8582860161421c565b925050602061429c85828601613c21565b9150509250929050565b6000602082840312156142bc576142bb6139cb565b5b600082013567ffffffffffffffff8111156142da576142d96139d0565b5b6142e68482850161421c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61432481613b4b565b82525050565b6000614336838361431b565b60208301905092915050565b6000602082019050919050565b600061435a826142ef565b61436481856142fa565b935061436f8361430b565b8060005b838110156143a0578151614387888261432a565b975061439283614342565b925050600181019050614373565b5085935050505092915050565b600060208201905081810360008301526143c7818461434f565b905092915050565b6000806000606084860312156143e8576143e76139cb565b5b60006143f686828701613c21565b935050602061440786828701613b6c565b925050604061441886828701613b6c565b9150509250925092565b61442b81613a5a565b811461443657600080fd5b50565b60008135905061444881614422565b92915050565b60008060408385031215614465576144646139cb565b5b600061447385828601613c21565b925050602061448485828601614439565b9150509250929050565b600080600080600080600060a0888a0312156144ad576144ac6139cb565b5b600088013567ffffffffffffffff8111156144cb576144ca6139d0565b5b6144d78a828b01614060565b9750975050602088013567ffffffffffffffff8111156144fa576144f96139d0565b5b6145068a828b01613e0d565b955050604088013567ffffffffffffffff811115614527576145266139d0565b5b6145338a828b01613e0d565b945050606088013567ffffffffffffffff811115614554576145536139d0565b5b6145608a828b0161400a565b935093505060806145738a828b01613c21565b91505092959891949750929550565b6000806000806000806080878903121561459f5761459e6139cb565b5b60006145ad89828a01613b6c565b96505060206145be89828a01613b6c565b955050604087013567ffffffffffffffff8111156145df576145de6139d0565b5b6145eb89828a0161400a565b9450945050606087013567ffffffffffffffff81111561460e5761460d6139d0565b5b61461a89828a01614060565b92509250509295509295509295565b600067ffffffffffffffff82111561464457614643613cf8565b5b61464d82613adf565b9050602081019050919050565b600061466d61466884614629565b613d58565b90508281526020810184848401111561468957614688614195565b5b6146948482856141cb565b509392505050565b600082601f8301126146b1576146b0613cf3565b5b81356146c184826020860161465a565b91505092915050565b600080600080608085870312156146e4576146e36139cb565b5b60006146f287828801613c21565b945050602061470387828801613c21565b935050604061471487828801613b6c565b925050606085013567ffffffffffffffff811115614735576147346139d0565b5b6147418782880161469c565b91505092959194509250565b6060820160008201516147636000850182613eb0565b5060208201516147766020850182613ed3565b5060408201516147896040850182613ee2565b50505050565b60006060820190506147a4600083018461474d565b92915050565b600080604083850312156147c1576147c06139cb565b5b60006147cf85828601613c21565b92505060206147e085828601613c21565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061483157607f821691505b60208210811415614845576148446147ea565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614881602083613a9b565b915061488c8261484b565b602082019050919050565b600060208201905081810360008301526148b081614874565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006148ed601f83613a9b565b91506148f8826148b7565b602082019050919050565b6000602082019050818103600083015261491c816148e0565b9050919050565b600081905092915050565b50565b600061493e600083614923565b91506149498261492e565b600082019050919050565b600061495f82614931565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006149ce601083613a9b565b91506149d982614998565b602082019050919050565b600060208201905081810360008301526149fd816149c1565b9050919050565b7f496e76616c696420617267730000000000000000000000000000000000000000600082015250565b6000614a3a600c83613a9b565b9150614a4582614a04565b602082019050919050565b60006020820190508181036000830152614a6981614a2d565b9050919050565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b6000614aa6600c83613a9b565b9150614ab182614a70565b602082019050919050565b60006020820190508181036000830152614ad581614a99565b9050919050565b7f546f6b656e20616c7265616479206d696e746564210000000000000000000000600082015250565b6000614b12601583613a9b565b9150614b1d82614adc565b602082019050919050565b60006020820190508181036000830152614b4181614b05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b8282613b4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bb557614bb4614b48565b5b600182019050919050565b6000614bcb82613b4b565b9150614bd683613b4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c0b57614c0a614b48565b5b828201905092915050565b6000606082019050614c2b6000830186613c76565b614c386020830185613c76565b614c456040830184613c76565b949350505050565b6000614c5882613b4b565b9150614c6383613b4b565b925082821015614c7657614c75614b48565b5b828203905092915050565b600081905092915050565b6000614c9782613a90565b614ca18185614c81565b9350614cb1818560208601613aac565b80840191505092915050565b6000614cc98285614c8c565b9150614cd58284614c8c565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d3d602683613a9b565b9150614d4882614ce1565b604082019050919050565b60006020820190508181036000830152614d6c81614d30565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614da9601483613a9b565b9150614db482614d73565b602082019050919050565b60006020820190508181036000830152614dd881614d9c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614e0682614ddf565b614e108185614dea565b9350614e20818560208601613aac565b614e2981613adf565b840191505092915050565b6000608082019050614e496000830187613be0565b614e566020830186613be0565b614e636040830185613c76565b8181036060830152614e758184614dfb565b905095945050505050565b600081519050614e8f81613a01565b92915050565b600060208284031215614eab57614eaa6139cb565b5b6000614eb984828501614e80565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614efc82613b4b565b9150614f0783613b4b565b925082614f1757614f16614ec2565b5b828204905092915050565b6000614f2d82613b4b565b9150614f3883613b4b565b925082614f4857614f47614ec2565b5b828206905092915050565b6000614f5f8385613a9b565b9350614f6c8385846141cb565b614f7583613adf565b840190509392505050565b600060a0820190508181036000830152614f9b81888a614f53565b90508181036020830152614faf818761434f565b90508181036040830152614fc3818661434f565b9050614fd26060830185613be0565b614fdf6080830184613be0565b979650505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615020601c83614c81565b915061502b82614fea565b601c82019050919050565b6000819050919050565b6000819050919050565b61505b61505682615036565b615040565b82525050565b600061506c82615013565b9150615078828461504a565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006150ec601883613a9b565b91506150f7826150b6565b602082019050919050565b6000602082019050818103600083015261511b816150df565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615158601f83613a9b565b915061516382615122565b602082019050919050565b600060208201905081810360008301526151878161514b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006151ea602283613a9b565b91506151f58261518e565b604082019050919050565b60006020820190508181036000830152615219816151dd565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061527c602283613a9b565b915061528782615220565b604082019050919050565b600060208201905081810360008301526152ab8161526f565b9050919050565b6152bb81615036565b82525050565b600060ff82169050919050565b6152d7816152c1565b82525050565b60006080820190506152f260008301876152b2565b6152ff60208301866152ce565b61530c60408301856152b2565b61531960608301846152b2565b9594505050505056fea264697066735822122024ebd31341a7b69d0d621fb0df6194dade72a9c93df8dbf107e47f2b3e4dc54264736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063715018a61161010f578063a22cb465116100a2578063c23dc68f11610071578063c23dc68f14610569578063c87b56dd14610599578063e985e9c5146105c9578063f2fde38b146105f9576101f0565b8063a22cb465146104e5578063b291199b14610501578063b6da30f814610531578063b88d4fde1461054d576101f0565b80638462151c116100de5780638462151c146104495780638da5cb5b1461047957806395d89b411461049757806399a2557a146104b5576101f0565b8063715018a6146103fd5780637ab4339d146104075780637ec4a659146104235780638456cb591461043f576101f0565b806342842e0e116101875780636352211e116101565780636352211e146103655780636c19e783146103955780636d33f95d146103b157806370a08231146103cd576101f0565b806342842e0e146102dd5780635bbb2177146102f95780635c975abb1461032957806362b99ad414610347576101f0565b806318160ddd116101c357806318160ddd1461028f57806323b872dd146102ad5780633ccfd60b146102c95780633f4ba83a146102d3576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc14610243578063095ea7b314610273575b600080fd5b61020f600480360381019061020a9190613a2d565b610615565b60405161021c9190613a75565b60405180910390f35b61022d6106f7565b60405161023a9190613b29565b60405180910390f35b61025d60048036038101906102589190613b81565b610789565b60405161026a9190613bef565b60405180910390f35b61028d60048036038101906102889190613c36565b610805565b005b61029761090a565b6040516102a49190613c85565b60405180910390f35b6102c760048036038101906102c29190613ca0565b610921565b005b6102d1610931565b005b6102db610a83565b005b6102f760048036038101906102f29190613ca0565b610b09565b005b610313600480360381019061030e9190613e3b565b610b29565b6040516103209190613fb6565b60405180910390f35b610331610bea565b60405161033e9190613a75565b60405180910390f35b61034f610c01565b60405161035c9190613b29565b60405180910390f35b61037f600480360381019061037a9190613b81565b610c8f565b60405161038c9190613bef565b60405180910390f35b6103af60048036038101906103aa9190613fd8565b610ca5565b005b6103cb60048036038101906103c691906140b6565b610d2d565b005b6103e760048036038101906103e29190613fd8565b610fe4565b6040516103f49190613c85565b60405180910390f35b6104056110b4565b005b610421600480360381019061041c919061424a565b61113c565b005b61043d600480360381019061043891906142a6565b6111d6565b005b61044761126c565b005b610463600480360381019061045e9190613fd8565b6112f2565b60405161047091906143ad565b60405180910390f35b6104816114f4565b60405161048e9190613bef565b60405180910390f35b61049f61151e565b6040516104ac9190613b29565b60405180910390f35b6104cf60048036038101906104ca91906143cf565b6115b0565b6040516104dc91906143ad565b60405180910390f35b6104ff60048036038101906104fa919061444e565b611877565b005b61051b6004803603810190610516919061448e565b6119ef565b6040516105289190613a75565b60405180910390f35b61054b60048036038101906105469190614582565b611a5d565b005b610567600480360381019061056291906146ca565b611d12565b005b610583600480360381019061057e9190613b81565b611d8a565b604051610590919061478f565b60405180910390f35b6105b360048036038101906105ae9190613b81565b611ea7565b6040516105c09190613b29565b60405180910390f35b6105e360048036038101906105de91906147aa565b611f46565b6040516105f09190613a75565b60405180910390f35b610613600480360381019061060e9190613fd8565b611fda565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106e057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106f057506106ef826120d2565b5b9050919050565b60606002805461070690614819565b80601f016020809104026020016040519081016040528092919081815260200182805461073290614819565b801561077f5780601f106107545761010080835404028352916020019161077f565b820191906000526020600020905b81548152906001019060200180831161076257829003601f168201915b5050505050905090565b60006107948261213c565b6107ca576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061081082610c8f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610878576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661089761218a565b73ffffffffffffffffffffffffffffffffffffffff16146108fa576108c3816108be61218a565b611f46565b6108f9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610905838383612192565b505050565b6000610914612244565b6001546000540303905090565b61092c83838361224d565b505050565b61093961218a565b73ffffffffffffffffffffffffffffffffffffffff166109576114f4565b73ffffffffffffffffffffffffffffffffffffffff16146109ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a490614897565b60405180910390fd5b600260095414156109f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ea90614903565b60405180910390fd5b60026009819055506000610a056114f4565b73ffffffffffffffffffffffffffffffffffffffff1647604051610a2890614954565b60006040518083038185875af1925050503d8060008114610a65576040519150601f19603f3d011682016040523d82523d6000602084013e610a6a565b606091505b5050905080610a7857600080fd5b506001600981905550565b610a8b61218a565b73ffffffffffffffffffffffffffffffffffffffff16610aa96114f4565b73ffffffffffffffffffffffffffffffffffffffff1614610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af690614897565b60405180910390fd5b610b07612703565b565b610b2483838360405180602001604052806000815250611d12565b505050565b606060008251905060008167ffffffffffffffff811115610b4d57610b4c613cf8565b5b604051908082528060200260200182016040528015610b8657816020015b610b736138db565b815260200190600190039081610b6b5790505b50905060005b828114610bdf57610bb6858281518110610ba957610ba8614969565b5b6020026020010151611d8a565b828281518110610bc957610bc8614969565b5b6020026020010181905250806001019050610b8c565b508092505050919050565b6000600a60149054906101000a900460ff16905090565b600b8054610c0e90614819565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3a90614819565b8015610c875780601f10610c5c57610100808354040283529160200191610c87565b820191906000526020600020905b815481529060010190602001808311610c6a57829003601f168201915b505050505081565b6000610c9a826127a5565b600001519050919050565b610cad61218a565b73ffffffffffffffffffffffffffffffffffffffff16610ccb6114f4565b73ffffffffffffffffffffffffffffffffffffffff1614610d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1890614897565b60405180910390fd5b610d2a81612a30565b50565b610d35610bea565b15610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c906149e4565b60405180910390fd5b60026009541415610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db290614903565b60405180910390fd5b60026009819055508451865114610e07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfe90614a50565b60405180910390fd5b610e16828288888888336119ef565b610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c90614abc565b60405180910390fd5b60005b8551811015610eef57600c6000878381518110610e7857610e77614969565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615610edc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed390614b28565b60405180910390fd5b8080610ee790614b77565b915050610e58565b50600080549050610f01338751612acd565b60005b8651811015610fd2576000888281518110610f2257610f21614969565b5b602002602001015190506000888381518110610f4157610f40614969565b5b602002602001015190507f488bbf7ce8682b98371a0bb07d4e838ce2e533a907ceda8ac6ee658fdbd162e082828587610f7a9190614bc0565b604051610f8993929190614c16565b60405180910390a16001600c600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050508080610fca90614b77565b915050610f04565b50506001600981905550505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561104c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6110bc61218a565b73ffffffffffffffffffffffffffffffffffffffff166110da6114f4565b73ffffffffffffffffffffffffffffffffffffffff1614611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112790614897565b60405180910390fd5b61113a6000612aeb565b565b6111b06040518060400160405280600681526020017f4765742d496e00000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4749000000000000000000000000000000000000000000000000000000000000815250612bb1565b6111b8612bf1565b6111c0612c03565b6111c9826111d6565b6111d281612a30565b5050565b6111de61218a565b73ffffffffffffffffffffffffffffffffffffffff166111fc6114f4565b73ffffffffffffffffffffffffffffffffffffffff1614611252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124990614897565b60405180910390fd5b80600b908051906020019061126892919061391e565b5050565b61127461218a565b73ffffffffffffffffffffffffffffffffffffffff166112926114f4565b73ffffffffffffffffffffffffffffffffffffffff16146112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df90614897565b60405180910390fd5b6112f0612c0d565b565b6060600080600061130285610fe4565b905060008167ffffffffffffffff8111156113205761131f613cf8565b5b60405190808252806020026020018201604052801561134e5781602001602082028036833780820191505090505b5090506113596138db565b6000611363612244565b90505b8386146114e657600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050915081604001511561143f576114db565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461147f57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156114da57808387806001019850815181106114cd576114cc614969565b5b6020026020010181815250505b5b806001019050611366565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461152d90614819565b80601f016020809104026020016040519081016040528092919081815260200182805461155990614819565b80156115a65780601f1061157b576101008083540402835291602001916115a6565b820191906000526020600020905b81548152906001019060200180831161158957829003601f168201915b5050505050905090565b60608183106115eb576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060005490506115fb612244565b85101561160d5761160a612244565b94505b80841115611619578093505b600061162487610fe4565b905084861015611647576000868603905081811015611641578091505b5061164c565b600090505b60008167ffffffffffffffff81111561166857611667613cf8565b5b6040519080825280602002602001820160405280156116965781602001602082028036833780820191505090505b50905060008214156116ae5780945050505050611870565b60006116b988611d8a565b9050600081604001516116ce57816000015190505b60008990505b8881141580156116e45750848714155b1561186257600460008281526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505092508260400151156117bb57611857565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146117fb57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611856578084888060010199508151811061184957611848614969565b5b6020026020010181815250505b5b8060010190506116d4565b508583528296505050505050505b9392505050565b61187f61218a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118e4576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006118f161218a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661199e61218a565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119e39190613a75565b60405180910390a35050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a3989898989898989612cb0565b73ffffffffffffffffffffffffffffffffffffffff16149050979650505050505050565b611a65610bea565b15611aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9c906149e4565b60405180910390fd5b60026009541415611aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae290614903565b60405180910390fd5b60026009819055506000600167ffffffffffffffff811115611b1057611b0f613cf8565b5b604051908082528060200260200182016040528015611b3e5781602001602082028036833780820191505090505b5090508681600081518110611b5657611b55614969565b5b6020026020010181815250506000600167ffffffffffffffff811115611b7f57611b7e613cf8565b5b604051908082528060200260200182016040528015611bad5781602001602082028036833780820191505090505b5090508681600081518110611bc557611bc4614969565b5b602002602001018181525050611be0848484848a8a336119ef565b611c1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1690614abc565b60405180910390fd5b5050600c600086815260200190815260200160002060009054906101000a900460ff1615611c82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7990614b28565b60405180910390fd5b611c8d336001612acd565b7f488bbf7ce8682b98371a0bb07d4e838ce2e533a907ceda8ac6ee658fdbd162e086866001600054611cbf9190614c4d565b604051611cce93929190614c16565b60405180910390a16001600c600087815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600981905550505050505050565b611d1d84848461224d565b611d3c8373ffffffffffffffffffffffffffffffffffffffff16612d19565b15611d8457611d4d84848484612d3c565b611d83576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b611d926138db565b611d9a6138db565b611da2612244565b831080611db157506000548310155b15611dbf5780915050611ea2565b600460008481526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115611e955780915050611ea2565b611e9e836127a5565b9150505b919050565b6060611eb28261213c565b611ee8576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ef2612e9c565b9050600081511415611f135760405180602001604052806000815250611f3e565b80611f1d84612f2e565b604051602001611f2e929190614cbd565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611fe261218a565b73ffffffffffffffffffffffffffffffffffffffff166120006114f4565b73ffffffffffffffffffffffffffffffffffffffff1614612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d90614897565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd90614d53565b60405180910390fd5b6120cf81612aeb565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612147612244565b11158015612156575060005482105b8015612183575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b6000612258826127a5565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146122c3576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166122e461218a565b73ffffffffffffffffffffffffffffffffffffffff16148061231357506123128561230d61218a565b611f46565b5b80612358575061232161218a565b73ffffffffffffffffffffffffffffffffffffffff1661234084610789565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612391576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156123f8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612405858585600161308f565b61241160008487612192565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561269157600054821461269057878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126fc8585856001613095565b5050505050565b61270b610bea565b61274a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274190614dbf565b60405180910390fd5b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61278e61218a565b60405161279b9190613bef565b60405180910390a1565b6127ad6138db565b6000829050806127bb612244565b116129f9576000548110156129f8576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516129f657600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146128da578092505050612a2b565b5b6001156129f557818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146129f0578092505050612a2b565b6128db565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5553331329228fbd4123164423717a4a7539f6dfa1c3279a923b98fd681a6c73600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051612ac29190613bef565b60405180910390a150565b612ae782826040518060200160405280600081525061309b565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8160029080519060200190612bc792919061391e565b508060039080519060200190612bde92919061391e565b50612be7612244565b6000819055505050565b612c01612bfc61218a565b612aeb565b565b6001600981905550565b612c15610bea565b15612c55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4c906149e4565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c9961218a565b604051612ca69190613bef565b60405180910390a1565b6000612d0c612cc2898989898761345d565b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061349b565b9050979650505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d6261218a565b8786866040518563ffffffff1660e01b8152600401612d849493929190614e34565b602060405180830381600087803b158015612d9e57600080fd5b505af1925050508015612dcf57506040513d601f19601f82011682018060405250810190612dcc9190614e95565b60015b612e49573d8060008114612dff576040519150601f19603f3d011682016040523d82523d6000602084013e612e04565b606091505b50600081511415612e41576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600b8054612eab90614819565b80601f0160208091040260200160405190810160405280929190818152602001828054612ed790614819565b8015612f245780601f10612ef957610100808354040283529160200191612f24565b820191906000526020600020905b815481529060010190602001808311612f0757829003601f168201915b5050505050905090565b60606000821415612f76576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061308a565b600082905060005b60008214612fa8578080612f9190614b77565b915050600a82612fa19190614ef1565b9150612f7e565b60008167ffffffffffffffff811115612fc457612fc3613cf8565b5b6040519080825280601f01601f191660200182016040528015612ff65781602001600182028036833780820191505090505b5090505b600085146130835760018261300f9190614c4d565b9150600a8561301e9190614f22565b603061302a9190614bc0565b60f81b8183815181106130405761303f614969565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561307c9190614ef1565b9450612ffa565b8093505050505b919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613108576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613143576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613150600085838661308f565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600084820190506133118673ffffffffffffffffffffffffffffffffffffffff16612d19565b156133d6575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133866000878480600101955087612d3c565b6133bc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106133175782600054146133d157600080fd5b613441565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106133d7575b8160008190555050506134576000858386613095565b50505050565b600085858585308660405160200161347a96959493929190614f80565b60405160208183030381529060405280519060200120905095945050505050565b60006134b8826134aa856134c0565b6134f090919063ffffffff16565b905092915050565b6000816040516020016134d39190615061565b604051602081830303815290604052805190602001209050919050565b60008060006134ff8585613517565b9150915061350c8161359a565b819250505092915050565b6000806041835114156135595760008060006020860151925060408601519150606086015160001a905061354d8782858561376f565b94509450505050613593565b60408351141561358a57600080602085015191506040850151905061357f86838361387c565b935093505050613593565b60006002915091505b9250929050565b600060048111156135ae576135ad615087565b5b8160048111156135c1576135c0615087565b5b14156135cc5761376c565b600160048111156135e0576135df615087565b5b8160048111156135f3576135f2615087565b5b1415613634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362b90615102565b60405180910390fd5b6002600481111561364857613647615087565b5b81600481111561365b5761365a615087565b5b141561369c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136939061516e565b60405180910390fd5b600360048111156136b0576136af615087565b5b8160048111156136c3576136c2615087565b5b1415613704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136fb90615200565b60405180910390fd5b60048081111561371757613716615087565b5b81600481111561372a57613729615087565b5b141561376b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376290615292565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156137aa576000600391509150613873565b601b8560ff16141580156137c25750601c8560ff1614155b156137d4576000600491509150613873565b6000600187878787604051600081526020016040526040516137f994939291906152dd565b6020604051602081039080840390855afa15801561381b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561386a57600060019250925050613873565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6138bf9190614bc0565b90506138cd8782888561376f565b935093505050935093915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b82805461392a90614819565b90600052602060002090601f01602090048101928261394c5760008555613993565b82601f1061396557805160ff1916838001178555613993565b82800160010185558215613993579182015b82811115613992578251825591602001919060010190613977565b5b5090506139a091906139a4565b5090565b5b808211156139bd5760008160009055506001016139a5565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613a0a816139d5565b8114613a1557600080fd5b50565b600081359050613a2781613a01565b92915050565b600060208284031215613a4357613a426139cb565b5b6000613a5184828501613a18565b91505092915050565b60008115159050919050565b613a6f81613a5a565b82525050565b6000602082019050613a8a6000830184613a66565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613aca578082015181840152602081019050613aaf565b83811115613ad9576000848401525b50505050565b6000601f19601f8301169050919050565b6000613afb82613a90565b613b058185613a9b565b9350613b15818560208601613aac565b613b1e81613adf565b840191505092915050565b60006020820190508181036000830152613b438184613af0565b905092915050565b6000819050919050565b613b5e81613b4b565b8114613b6957600080fd5b50565b600081359050613b7b81613b55565b92915050565b600060208284031215613b9757613b966139cb565b5b6000613ba584828501613b6c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613bd982613bae565b9050919050565b613be981613bce565b82525050565b6000602082019050613c046000830184613be0565b92915050565b613c1381613bce565b8114613c1e57600080fd5b50565b600081359050613c3081613c0a565b92915050565b60008060408385031215613c4d57613c4c6139cb565b5b6000613c5b85828601613c21565b9250506020613c6c85828601613b6c565b9150509250929050565b613c7f81613b4b565b82525050565b6000602082019050613c9a6000830184613c76565b92915050565b600080600060608486031215613cb957613cb86139cb565b5b6000613cc786828701613c21565b9350506020613cd886828701613c21565b9250506040613ce986828701613b6c565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d3082613adf565b810181811067ffffffffffffffff82111715613d4f57613d4e613cf8565b5b80604052505050565b6000613d626139c1565b9050613d6e8282613d27565b919050565b600067ffffffffffffffff821115613d8e57613d8d613cf8565b5b602082029050602081019050919050565b600080fd5b6000613db7613db284613d73565b613d58565b90508083825260208201905060208402830185811115613dda57613dd9613d9f565b5b835b81811015613e035780613def8882613b6c565b845260208401935050602081019050613ddc565b5050509392505050565b600082601f830112613e2257613e21613cf3565b5b8135613e32848260208601613da4565b91505092915050565b600060208284031215613e5157613e506139cb565b5b600082013567ffffffffffffffff811115613e6f57613e6e6139d0565b5b613e7b84828501613e0d565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613eb981613bce565b82525050565b600067ffffffffffffffff82169050919050565b613edc81613ebf565b82525050565b613eeb81613a5a565b82525050565b606082016000820151613f076000850182613eb0565b506020820151613f1a6020850182613ed3565b506040820151613f2d6040850182613ee2565b50505050565b6000613f3f8383613ef1565b60608301905092915050565b6000602082019050919050565b6000613f6382613e84565b613f6d8185613e8f565b9350613f7883613ea0565b8060005b83811015613fa9578151613f908882613f33565b9750613f9b83613f4b565b925050600181019050613f7c565b5085935050505092915050565b60006020820190508181036000830152613fd08184613f58565b905092915050565b600060208284031215613fee57613fed6139cb565b5b6000613ffc84828501613c21565b91505092915050565b600080fd5b60008083601f8401126140205761401f613cf3565b5b8235905067ffffffffffffffff81111561403d5761403c614005565b5b60208301915083600182028301111561405957614058613d9f565b5b9250929050565b60008083601f84011261407657614075613cf3565b5b8235905067ffffffffffffffff81111561409357614092614005565b5b6020830191508360018202830111156140af576140ae613d9f565b5b9250929050565b600080600080600080608087890312156140d3576140d26139cb565b5b600087013567ffffffffffffffff8111156140f1576140f06139d0565b5b6140fd89828a01613e0d565b965050602087013567ffffffffffffffff81111561411e5761411d6139d0565b5b61412a89828a01613e0d565b955050604087013567ffffffffffffffff81111561414b5761414a6139d0565b5b61415789828a0161400a565b9450945050606087013567ffffffffffffffff81111561417a576141796139d0565b5b61418689828a01614060565b92509250509295509295509295565b600080fd5b600067ffffffffffffffff8211156141b5576141b4613cf8565b5b6141be82613adf565b9050602081019050919050565b82818337600083830152505050565b60006141ed6141e88461419a565b613d58565b90508281526020810184848401111561420957614208614195565b5b6142148482856141cb565b509392505050565b600082601f83011261423157614230613cf3565b5b81356142418482602086016141da565b91505092915050565b60008060408385031215614261576142606139cb565b5b600083013567ffffffffffffffff81111561427f5761427e6139d0565b5b61428b8582860161421c565b925050602061429c85828601613c21565b9150509250929050565b6000602082840312156142bc576142bb6139cb565b5b600082013567ffffffffffffffff8111156142da576142d96139d0565b5b6142e68482850161421c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61432481613b4b565b82525050565b6000614336838361431b565b60208301905092915050565b6000602082019050919050565b600061435a826142ef565b61436481856142fa565b935061436f8361430b565b8060005b838110156143a0578151614387888261432a565b975061439283614342565b925050600181019050614373565b5085935050505092915050565b600060208201905081810360008301526143c7818461434f565b905092915050565b6000806000606084860312156143e8576143e76139cb565b5b60006143f686828701613c21565b935050602061440786828701613b6c565b925050604061441886828701613b6c565b9150509250925092565b61442b81613a5a565b811461443657600080fd5b50565b60008135905061444881614422565b92915050565b60008060408385031215614465576144646139cb565b5b600061447385828601613c21565b925050602061448485828601614439565b9150509250929050565b600080600080600080600060a0888a0312156144ad576144ac6139cb565b5b600088013567ffffffffffffffff8111156144cb576144ca6139d0565b5b6144d78a828b01614060565b9750975050602088013567ffffffffffffffff8111156144fa576144f96139d0565b5b6145068a828b01613e0d565b955050604088013567ffffffffffffffff811115614527576145266139d0565b5b6145338a828b01613e0d565b945050606088013567ffffffffffffffff811115614554576145536139d0565b5b6145608a828b0161400a565b935093505060806145738a828b01613c21565b91505092959891949750929550565b6000806000806000806080878903121561459f5761459e6139cb565b5b60006145ad89828a01613b6c565b96505060206145be89828a01613b6c565b955050604087013567ffffffffffffffff8111156145df576145de6139d0565b5b6145eb89828a0161400a565b9450945050606087013567ffffffffffffffff81111561460e5761460d6139d0565b5b61461a89828a01614060565b92509250509295509295509295565b600067ffffffffffffffff82111561464457614643613cf8565b5b61464d82613adf565b9050602081019050919050565b600061466d61466884614629565b613d58565b90508281526020810184848401111561468957614688614195565b5b6146948482856141cb565b509392505050565b600082601f8301126146b1576146b0613cf3565b5b81356146c184826020860161465a565b91505092915050565b600080600080608085870312156146e4576146e36139cb565b5b60006146f287828801613c21565b945050602061470387828801613c21565b935050604061471487828801613b6c565b925050606085013567ffffffffffffffff811115614735576147346139d0565b5b6147418782880161469c565b91505092959194509250565b6060820160008201516147636000850182613eb0565b5060208201516147766020850182613ed3565b5060408201516147896040850182613ee2565b50505050565b60006060820190506147a4600083018461474d565b92915050565b600080604083850312156147c1576147c06139cb565b5b60006147cf85828601613c21565b92505060206147e085828601613c21565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061483157607f821691505b60208210811415614845576148446147ea565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614881602083613a9b565b915061488c8261484b565b602082019050919050565b600060208201905081810360008301526148b081614874565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006148ed601f83613a9b565b91506148f8826148b7565b602082019050919050565b6000602082019050818103600083015261491c816148e0565b9050919050565b600081905092915050565b50565b600061493e600083614923565b91506149498261492e565b600082019050919050565b600061495f82614931565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006149ce601083613a9b565b91506149d982614998565b602082019050919050565b600060208201905081810360008301526149fd816149c1565b9050919050565b7f496e76616c696420617267730000000000000000000000000000000000000000600082015250565b6000614a3a600c83613a9b565b9150614a4582614a04565b602082019050919050565b60006020820190508181036000830152614a6981614a2d565b9050919050565b7f556e617574686f72697a65640000000000000000000000000000000000000000600082015250565b6000614aa6600c83613a9b565b9150614ab182614a70565b602082019050919050565b60006020820190508181036000830152614ad581614a99565b9050919050565b7f546f6b656e20616c7265616479206d696e746564210000000000000000000000600082015250565b6000614b12601583613a9b565b9150614b1d82614adc565b602082019050919050565b60006020820190508181036000830152614b4181614b05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b8282613b4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bb557614bb4614b48565b5b600182019050919050565b6000614bcb82613b4b565b9150614bd683613b4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614c0b57614c0a614b48565b5b828201905092915050565b6000606082019050614c2b6000830186613c76565b614c386020830185613c76565b614c456040830184613c76565b949350505050565b6000614c5882613b4b565b9150614c6383613b4b565b925082821015614c7657614c75614b48565b5b828203905092915050565b600081905092915050565b6000614c9782613a90565b614ca18185614c81565b9350614cb1818560208601613aac565b80840191505092915050565b6000614cc98285614c8c565b9150614cd58284614c8c565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d3d602683613a9b565b9150614d4882614ce1565b604082019050919050565b60006020820190508181036000830152614d6c81614d30565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614da9601483613a9b565b9150614db482614d73565b602082019050919050565b60006020820190508181036000830152614dd881614d9c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614e0682614ddf565b614e108185614dea565b9350614e20818560208601613aac565b614e2981613adf565b840191505092915050565b6000608082019050614e496000830187613be0565b614e566020830186613be0565b614e636040830185613c76565b8181036060830152614e758184614dfb565b905095945050505050565b600081519050614e8f81613a01565b92915050565b600060208284031215614eab57614eaa6139cb565b5b6000614eb984828501614e80565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614efc82613b4b565b9150614f0783613b4b565b925082614f1757614f16614ec2565b5b828204905092915050565b6000614f2d82613b4b565b9150614f3883613b4b565b925082614f4857614f47614ec2565b5b828206905092915050565b6000614f5f8385613a9b565b9350614f6c8385846141cb565b614f7583613adf565b840190509392505050565b600060a0820190508181036000830152614f9b81888a614f53565b90508181036020830152614faf818761434f565b90508181036040830152614fc3818661434f565b9050614fd26060830185613be0565b614fdf6080830184613be0565b979650505050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615020601c83614c81565b915061502b82614fea565b601c82019050919050565b6000819050919050565b6000819050919050565b61505b61505682615036565b615040565b82525050565b600061506c82615013565b9150615078828461504a565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006150ec601883613a9b565b91506150f7826150b6565b602082019050919050565b6000602082019050818103600083015261511b816150df565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615158601f83613a9b565b915061516382615122565b602082019050919050565b600060208201905081810360008301526151878161514b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006151ea602283613a9b565b91506151f58261518e565b604082019050919050565b60006020820190508181036000830152615219816151dd565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061527c602283613a9b565b915061528782615220565b604082019050919050565b600060208201905081810360008301526152ab8161526f565b9050919050565b6152bb81615036565b82525050565b600060ff82169050919050565b6152d7816152c1565b82525050565b60006080820190506152f260008301876152b2565b6152ff60208301866152ce565b61530c60408301856152b2565b61531960608301846152b2565b9594505050505056fea264697066735822122024ebd31341a7b69d0d621fb0df6194dade72a9c93df8dbf107e47f2b3e4dc54264736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.