Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer From | 16682297 | 521 days ago | IN | 0 ETH | 0.0014018 | ||||
Mint | 16682264 | 521 days ago | IN | 0 ETH | 0.00434276 | ||||
Set Approval For... | 16511181 | 545 days ago | IN | 0 ETH | 0.00065006 | ||||
Mint | 16508017 | 546 days ago | IN | 0 ETH | 0.00587476 | ||||
Mint | 16507819 | 546 days ago | IN | 0 ETH | 0.00267952 | ||||
Mint | 16507815 | 546 days ago | IN | 0 ETH | 0.00337576 | ||||
Mint | 16507751 | 546 days ago | IN | 0 ETH | 0.00364687 | ||||
Mint | 16507687 | 546 days ago | IN | 0 ETH | 0.00498033 | ||||
Mint | 16507585 | 546 days ago | IN | 0 ETH | 0.0024085 | ||||
Mint | 16507583 | 546 days ago | IN | 0 ETH | 0.00273647 | ||||
Mint | 16507581 | 546 days ago | IN | 0 ETH | 0.00314154 | ||||
Mint | 16507542 | 546 days ago | IN | 0 ETH | 0.00324637 | ||||
Mint | 16507512 | 546 days ago | IN | 0 ETH | 0.00144456 | ||||
Mint | 16507511 | 546 days ago | IN | 0 ETH | 0.00324135 | ||||
Set Approval For... | 16507510 | 546 days ago | IN | 0 ETH | 0.0006988 | ||||
Mint | 16507508 | 546 days ago | IN | 0 ETH | 0.00266706 | ||||
Mint | 16507508 | 546 days ago | IN | 0 ETH | 0.00266658 | ||||
Mint | 16507505 | 546 days ago | IN | 0 ETH | 0.00268336 | ||||
Mint | 16507259 | 546 days ago | IN | 0 ETH | 0.00343563 | ||||
Toggle Mint | 16507215 | 546 days ago | IN | 0 ETH | 0.00068833 | ||||
0x60806040 | 16507191 | 546 days ago | IN | 0 ETH | 0.05747025 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
OffChainApes
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./Verifier.sol"; import "./Base64.sol"; pragma solidity ^0.8.17; error OffChainApes__TransferFailed(); contract OffChainApes is ERC721, ERC2981, Verifier { using Strings for uint256; uint256 internal constant MAX_SUPPLY = 10000; constructor(bytes32 _root) ERC721("OffChainApes", "OFFCA") Verifier(_root) { _setDefaultRoyalty(msg.sender, 1000); } mapping(address => uint256) internal amountMinted; mapping(uint256 => string) internal idToIpfs; mapping(uint256 => string) internal idToColor; bool internal isMintOpen = false; uint256 internal currentSupply = 0; function mint( bytes32[] memory proof, string memory imageIpfs, uint256 tokenId, string memory color ) external { require(currentSupply < MAX_SUPPLY, "All tokens have been minted"); // Make sure mint is open require(isMintOpen, "Mint is not open"); // Make sure the tokenId + imageIpfs + color are valid verify(proof, imageIpfs, tokenId, color); // Make sure the minter has not minted 10 tokens already require(amountMinted[msg.sender] < 10, "User has already minted the maximum amount"); // Make sure the minter is not a contract require(msg.sender == tx.origin, "No contracts allowed"); // Increase amount minted by sender amountMinted[msg.sender] += 1; // Update the IPFS string for the minted tokenId idToIpfs[tokenId] = imageIpfs; // Update the Color string for the minted tokenId idToColor[tokenId] = color; // Update current supply currentSupply++; // Mint the token _mint(msg.sender, tokenId); } function tokenURI(uint256 tokenId) public view override returns (string memory) { _requireMinted(tokenId); string[6] memory parts; parts[ 0 ] = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 350 350"><style>.base { fill: black; font-family: monospace; font-size: 10px; }</style><rect width="100%" height="100%" fill="#'; parts[1] = idToColor[tokenId]; parts[2] = '" /><text text-anchor="end" x="347" y="347" class="base">'; parts[3] = "ipfs://"; parts[4] = idToIpfs[tokenId]; parts[5] = "</text></svg>"; string memory output = string( abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5]) ); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "OffChainApe #', tokenId.toString(), '", "description": "This NFT is part of a collection of 10,000 created by Verdomi. The collection serves as an artistic expression on the lack of on-chain storage for most NFT artwork. There is a 10% royalty on the collection.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}' ) ) ) ); output = string(abi.encodePacked("data:application/json;base64,", json)); return output; } function char(bytes1 b) internal pure returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } function toggleMint() external onlyOwner { isMintOpen = !isMintOpen; } function totalSupply() external view returns (uint256) { return currentSupply; } function isMinted(uint256 tokenId) public view returns (bool) { return _exists(tokenId); } function getImageIpfs(uint256 tokenId) external view returns (string memory) { return idToIpfs[tokenId]; } function getBackgroundColor(uint256 tokenId) external view returns (string memory) { return idToColor[tokenId]; } function getAmountMinted(address wallet) external view returns (uint256) { return amountMinted[wallet]; } function maxSupply() external pure returns (uint256) { return MAX_SUPPLY; } function findUnminted() external view returns (uint256) { for (uint256 i = 0; i < MAX_SUPPLY; i++) { if (!isMinted(i)) { return i; } } return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // 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; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @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) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a 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 _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// 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 (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.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.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Verifier is Ownable { bytes32 private root; constructor(bytes32 _root) { // (1) root = _root; } function verify( bytes32[] memory proof, string memory imageIpfs, uint256 tokenId, string memory color ) public view { // (2) bytes32 leaf = keccak256(bytes.concat(keccak256(abi.encode(imageIpfs, tokenId, color)))); // (3) require(MerkleProof.verify(proof, root, leaf), "Invalid proof"); // (4) // ... } function setRoot(bytes32 _root) external onlyOwner { root = _root; } function getRoot() external view returns (bytes32) { return root; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"findUnminted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getAmountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBackgroundColor","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getImageIpfs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"string","name":"imageIpfs","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"color","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","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":[],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"string","name":"imageIpfs","type":"string"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"color","type":"string"}],"name":"verify","outputs":[],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526000600d60006101000a81548160ff0219169083151502179055506000600e553480156200003157600080fd5b5060405162004f8338038062004f838339818101604052810190620000579190620003e8565b806040518060400160405280600c81526020017f4f6666436861696e4170657300000000000000000000000000000000000000008152506040518060400160405280600581526020017f4f464643410000000000000000000000000000000000000000000000000000008152508160009081620000d5919062000694565b508060019081620000e7919062000694565b5050506200010a620000fe6200012d60201b60201c565b6200013560201b60201c565b806009819055505062000126336103e8620001fb60201b60201c565b5062000896565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200020b6200039e60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156200026c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002639062000802565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002d59062000874565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600660008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600080fd5b6000819050919050565b620003c281620003ad565b8114620003ce57600080fd5b50565b600081519050620003e281620003b7565b92915050565b600060208284031215620004015762000400620003a8565b5b60006200041184828501620003d1565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200049c57607f821691505b602082108103620004b257620004b162000454565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200051c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004dd565b620005288683620004dd565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005756200056f620005698462000540565b6200054a565b62000540565b9050919050565b6000819050919050565b620005918362000554565b620005a9620005a0826200057c565b848454620004ea565b825550505050565b600090565b620005c0620005b1565b620005cd81848462000586565b505050565b5b81811015620005f557620005e9600082620005b6565b600181019050620005d3565b5050565b601f82111562000644576200060e81620004b8565b6200061984620004cd565b8101602085101562000629578190505b620006416200063885620004cd565b830182620005d2565b50505b505050565b600082821c905092915050565b6000620006696000198460080262000649565b1980831691505092915050565b600062000684838362000656565b9150826002028217905092915050565b6200069f826200041a565b67ffffffffffffffff811115620006bb57620006ba62000425565b5b620006c7825462000483565b620006d4828285620005f9565b600060209050601f8311600181146200070c5760008415620006f7578287015190505b62000703858262000676565b86555062000773565b601f1984166200071c86620004b8565b60005b8281101562000746578489015182556001820191506020850194506020810190506200071f565b8683101562000766578489015162000762601f89168262000656565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620007ea602a836200077b565b9150620007f7826200078c565b604082019050919050565b600060208201905081810360008301526200081d81620007db565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200085c6019836200077b565b9150620008698262000824565b602082019050919050565b600060208201905081810360008301526200088f816200084d565b9050919050565b6146dd80620008a66000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635ca1e16511610104578063a22cb465116100a2578063d5abeb0111610071578063d5abeb0114610541578063dab5f3401461055f578063e985e9c51461057b578063f2fde38b146105ab576101cf565b8063a22cb465146104cf578063b88d4fde146104eb578063c87b56dd14610507578063d3dd5fe014610537576101cf565b806370a08231116100de57806370a0823114610459578063715018a6146104895780638da5cb5b1461049357806395d89b41146104b1576101cf565b80635ca1e165146103ed5780635e054fad1461040b5780636352211e14610429576101cf565b806323b872dd1161017157806342842e0e1161014b57806342842e0e146103695780634671059f1461038557806347e5260c146103b55780635699bf05146103d1576101cf565b806323b872dd146102ec5780632a55205a1461030857806333c41a9014610339576101cf565b8063081812fc116101ad578063081812fc14610252578063095ea7b31461028257806318160ddd1461029e5780631fc9c224146102bc576101cf565b806301ffc9a7146101d4578063030cdd4f1461020457806306fdde0314610234575b600080fd5b6101ee60048036038101906101e99190612ab0565b6105c7565b6040516101fb9190612af8565b60405180910390f35b61021e60048036038101906102199190612b71565b6105d9565b60405161022b9190612bb7565b60405180910390f35b61023c610622565b6040516102499190612c62565b60405180910390f35b61026c60048036038101906102679190612cb0565b6106b4565b6040516102799190612cec565b60405180910390f35b61029c60048036038101906102979190612d07565b6106fa565b005b6102a6610811565b6040516102b39190612bb7565b60405180910390f35b6102d660048036038101906102d19190612cb0565b61081b565b6040516102e39190612c62565b60405180910390f35b61030660048036038101906103019190612d47565b6108c0565b005b610322600480360381019061031d9190612d9a565b610920565b604051610330929190612dda565b60405180910390f35b610353600480360381019061034e9190612cb0565b610b0a565b6040516103609190612af8565b60405180910390f35b610383600480360381019061037e9190612d47565b610b1c565b005b61039f600480360381019061039a9190612cb0565b610b3c565b6040516103ac9190612c62565b60405180910390f35b6103cf60048036038101906103ca9190613036565b610be1565b005b6103eb60048036038101906103e69190613036565b610e32565b005b6103f5610eda565b6040516104029190613100565b60405180910390f35b610413610ee4565b6040516104209190612bb7565b60405180910390f35b610443600480360381019061043e9190612cb0565b610f28565b6040516104509190612cec565b60405180910390f35b610473600480360381019061046e9190612b71565b610fae565b6040516104809190612bb7565b60405180910390f35b610491611065565b005b61049b611079565b6040516104a89190612cec565b60405180910390f35b6104b96110a3565b6040516104c69190612c62565b60405180910390f35b6104e960048036038101906104e49190613147565b611135565b005b61050560048036038101906105009190613228565b61114b565b005b610521600480360381019061051c9190612cb0565b6111ad565b60405161052e9190612c62565b60405180910390f35b61053f611568565b005b61054961159c565b6040516105569190612bb7565b60405180910390f35b610579600480360381019061057491906132ab565b6115a6565b005b610595600480360381019061059091906132d8565b6115b8565b6040516105a29190612af8565b60405180910390f35b6105c560048036038101906105c09190612b71565b61164c565b005b60006105d2826116cf565b9050919050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606000805461063190613347565b80601f016020809104026020016040519081016040528092919081815260200182805461065d90613347565b80156106aa5780601f1061067f576101008083540402835291602001916106aa565b820191906000526020600020905b81548152906001019060200180831161068d57829003601f168201915b5050505050905090565b60006106bf82611749565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061070582610f28565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076c906133ea565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610794611794565b73ffffffffffffffffffffffffffffffffffffffff1614806107c357506107c2816107bd611794565b6115b8565b5b610802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f99061347c565b60405180910390fd5b61080c838361179c565b505050565b6000600e54905090565b6060600b6000838152602001908152602001600020805461083b90613347565b80601f016020809104026020016040519081016040528092919081815260200182805461086790613347565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b50505050509050919050565b6108d16108cb611794565b82611855565b610910576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109079061350e565b60405180910390fd5b61091b8383836118ea565b505050565b6000806000600760008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610ab55760066040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610abf611be3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610aeb919061355d565b610af591906135ce565b90508160000151819350935050509250929050565b6000610b1582611bed565b9050919050565b610b378383836040518060200160405280600081525061114b565b505050565b6060600c60008381526020019081526020016000208054610b5c90613347565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8890613347565b8015610bd55780601f10610baa57610100808354040283529160200191610bd5565b820191906000526020600020905b815481529060010190602001808311610bb857829003601f168201915b50505050509050919050565b612710600e5410610c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1e9061364b565b60405180910390fd5b600d60009054906101000a900460ff16610c76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6d906136b7565b60405180910390fd5b610c8284848484610e32565b600a8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfa90613749565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d68906137b5565b60405180910390fd5b6001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dc191906137d5565b9250508190555082600b60008481526020019081526020016000209081610de891906139b5565b5080600c60008481526020019081526020016000209081610e0991906139b5565b50600e6000815480929190610e1d90613a87565b9190505550610e2c3383611c2e565b50505050565b6000838383604051602001610e4993929190613acf565b60405160208183030381529060405280519060200120604051602001610e6f9190613b35565b604051602081830303815290604052805190602001209050610e948560095483611e4b565b610ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eca90613b9c565b60405180910390fd5b5050505050565b6000600954905090565b600080600090505b612710811015610f1f57610eff81610b0a565b610f0c5780915050610f25565b8080610f1790613a87565b915050610eec565b50600090505b90565b600080610f3483611e62565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c90613c08565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590613c9a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61106d611e9f565b6110776000611f1d565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546110b290613347565b80601f01602080910402602001604051908101604052809291908181526020018280546110de90613347565b801561112b5780601f106111005761010080835404028352916020019161112b565b820191906000526020600020905b81548152906001019060200180831161110e57829003601f168201915b5050505050905090565b611147611140611794565b8383611fe3565b5050565b61115c611156611794565b83611855565b61119b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111929061350e565b60405180910390fd5b6111a78484848461214f565b50505050565b60606111b882611749565b6111c0612a1d565b60405180610100016040528060d8815260200161455760d89139816000600681106111ee576111ed613cba565b5b6020020181905250600c6000848152602001908152602001600020805461121490613347565b80601f016020809104026020016040519081016040528092919081815260200182805461124090613347565b801561128d5780601f106112625761010080835404028352916020019161128d565b820191906000526020600020905b81548152906001019060200180831161127057829003601f168201915b5050505050816001600681106112a6576112a5613cba565b5b602002018190525060405180606001604052806039815260200161462f60399139816002600681106112db576112da613cba565b5b60200201819052506040518060400160405280600781526020017f697066733a2f2f000000000000000000000000000000000000000000000000008152508160036006811061132d5761132c613cba565b5b6020020181905250600b6000848152602001908152602001600020805461135390613347565b80601f016020809104026020016040519081016040528092919081815260200182805461137f90613347565b80156113cc5780601f106113a1576101008083540402835291602001916113cc565b820191906000526020600020905b8154815290600101906020018083116113af57829003601f168201915b5050505050816004600681106113e5576113e4613cba565b5b60200201819052506040518060400160405280600d81526020017f3c2f746578743e3c2f7376673e000000000000000000000000000000000000008152508160056006811061143757611436613cba565b5b602002018190525060008160006006811061145557611454613cba565b5b60200201518260016006811061146e5761146d613cba565b5b60200201518360026006811061148757611486613cba565b5b6020020151846003600681106114a05761149f613cba565b5b6020020151856004600681106114b9576114b8613cba565b5b6020020151866005600681106114d2576114d1613cba565b5b60200201516040516020016114ec96959493929190613d25565b6040516020818303038152906040529050600061153961150b866121ab565b61151484612279565b604051602001611525929190613f94565b604051602081830303815290604052612279565b90508060405160200161154c9190614025565b6040516020818303038152906040529150819350505050919050565b611570611e9f565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b6000612710905090565b6115ae611e9f565b8060098190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611654611e9f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ba906140b9565b60405180910390fd5b6116cc81611f1d565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611742575061174182612410565b5b9050919050565b61175281611bed565b611791576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178890613c08565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661180f83610f28565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061186183610f28565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806118a357506118a281856115b8565b5b806118e157508373ffffffffffffffffffffffffffffffffffffffff166118c9846106b4565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661190a82610f28565b73ffffffffffffffffffffffffffffffffffffffff1614611960576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119579061414b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c6906141dd565b60405180910390fd5b6119dc83838360016124f2565b8273ffffffffffffffffffffffffffffffffffffffff166119fc82610f28565b73ffffffffffffffffffffffffffffffffffffffff1614611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a499061414b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611bde8383836001612618565b505050565b6000612710905090565b60008073ffffffffffffffffffffffffffffffffffffffff16611c0f83611e62565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9490614249565b60405180910390fd5b611ca681611bed565b15611ce6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdd906142b5565b60405180910390fd5b611cf46000838360016124f2565b611cfd81611bed565b15611d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d34906142b5565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e47600083836001612618565b5050565b600082611e58858461261e565b1490509392505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611ea7611794565b73ffffffffffffffffffffffffffffffffffffffff16611ec5611079565b73ffffffffffffffffffffffffffffffffffffffff1614611f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1290614321565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612051576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120489061438d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121429190612af8565b60405180910390a3505050565b61215a8484846118ea565b61216684848484612674565b6121a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219c9061441f565b60405180910390fd5b50505050565b6060600060016121ba846127fb565b01905060008167ffffffffffffffff8111156121d9576121d8612e08565b5b6040519080825280601f01601f19166020018201604052801561220b5781602001600182028036833780820191505090505b509050600082602001820190505b60011561226e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816122625761226161359f565b5b04945060008503612219575b819350505050919050565b6060600082519050600081036122a1576040518060200160405280600081525091505061240b565b600060036002836122b291906137d5565b6122bc91906135ce565b60046122c8919061355d565b905060006020826122d991906137d5565b67ffffffffffffffff8111156122f2576122f1612e08565b5b6040519080825280601f01601f1916602001820160405280156123245781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001614668604091399050600181016020830160005b868110156123c85760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b9050808452600484019350505061234f565b5060038606600181146123e257600281146123f2576123fd565b613d3d60f01b60028303526123fd565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124db57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124eb57506124ea8261294e565b5b9050919050565b600181111561261257600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146125865780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461257e919061443f565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146126115780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461260991906137d5565b925050819055505b5b50505050565b50505050565b60008082905060005b8451811015612669576126548286838151811061264757612646613cba565b5b60200260200101516129b8565b9150808061266190613a87565b915050612627565b508091505092915050565b60006126958473ffffffffffffffffffffffffffffffffffffffff166129e3565b156127ee578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126be611794565b8786866040518563ffffffff1660e01b81526004016126e094939291906144c8565b6020604051808303816000875af192505050801561271c57506040513d601f19601f820116820180604052508101906127199190614529565b60015b61279e573d806000811461274c576040519150601f19603f3d011682016040523d82523d6000602084013e612751565b606091505b506000815103612796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278d9061441f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127f3565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612859577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161284f5761284e61359f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612896576d04ee2d6d415b85acef8100000000838161288c5761288b61359f565b5b0492506020810190505b662386f26fc1000083106128c557662386f26fc1000083816128bb576128ba61359f565b5b0492506010810190505b6305f5e10083106128ee576305f5e10083816128e4576128e361359f565b5b0492506008810190505b61271083106129135761271083816129095761290861359f565b5b0492506004810190505b60648310612936576064838161292c5761292b61359f565b5b0492506002810190505b600a8310612945576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008183106129d0576129cb8284612a06565b6129db565b6129da8383612a06565b5b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b6040518060c001604052806006905b6060815260200190600190039081612a2c5790505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a8d81612a58565b8114612a9857600080fd5b50565b600081359050612aaa81612a84565b92915050565b600060208284031215612ac657612ac5612a4e565b5b6000612ad484828501612a9b565b91505092915050565b60008115159050919050565b612af281612add565b82525050565b6000602082019050612b0d6000830184612ae9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b3e82612b13565b9050919050565b612b4e81612b33565b8114612b5957600080fd5b50565b600081359050612b6b81612b45565b92915050565b600060208284031215612b8757612b86612a4e565b5b6000612b9584828501612b5c565b91505092915050565b6000819050919050565b612bb181612b9e565b82525050565b6000602082019050612bcc6000830184612ba8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c0c578082015181840152602081019050612bf1565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c3482612bd2565b612c3e8185612bdd565b9350612c4e818560208601612bee565b612c5781612c18565b840191505092915050565b60006020820190508181036000830152612c7c8184612c29565b905092915050565b612c8d81612b9e565b8114612c9857600080fd5b50565b600081359050612caa81612c84565b92915050565b600060208284031215612cc657612cc5612a4e565b5b6000612cd484828501612c9b565b91505092915050565b612ce681612b33565b82525050565b6000602082019050612d016000830184612cdd565b92915050565b60008060408385031215612d1e57612d1d612a4e565b5b6000612d2c85828601612b5c565b9250506020612d3d85828601612c9b565b9150509250929050565b600080600060608486031215612d6057612d5f612a4e565b5b6000612d6e86828701612b5c565b9350506020612d7f86828701612b5c565b9250506040612d9086828701612c9b565b9150509250925092565b60008060408385031215612db157612db0612a4e565b5b6000612dbf85828601612c9b565b9250506020612dd085828601612c9b565b9150509250929050565b6000604082019050612def6000830185612cdd565b612dfc6020830184612ba8565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e4082612c18565b810181811067ffffffffffffffff82111715612e5f57612e5e612e08565b5b80604052505050565b6000612e72612a44565b9050612e7e8282612e37565b919050565b600067ffffffffffffffff821115612e9e57612e9d612e08565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b612ec781612eb4565b8114612ed257600080fd5b50565b600081359050612ee481612ebe565b92915050565b6000612efd612ef884612e83565b612e68565b90508083825260208201905060208402830185811115612f2057612f1f612eaf565b5b835b81811015612f495780612f358882612ed5565b845260208401935050602081019050612f22565b5050509392505050565b600082601f830112612f6857612f67612e03565b5b8135612f78848260208601612eea565b91505092915050565b600080fd5b600067ffffffffffffffff821115612fa157612fa0612e08565b5b612faa82612c18565b9050602081019050919050565b82818337600083830152505050565b6000612fd9612fd484612f86565b612e68565b905082815260208101848484011115612ff557612ff4612f81565b5b613000848285612fb7565b509392505050565b600082601f83011261301d5761301c612e03565b5b813561302d848260208601612fc6565b91505092915050565b600080600080608085870312156130505761304f612a4e565b5b600085013567ffffffffffffffff81111561306e5761306d612a53565b5b61307a87828801612f53565b945050602085013567ffffffffffffffff81111561309b5761309a612a53565b5b6130a787828801613008565b93505060406130b887828801612c9b565b925050606085013567ffffffffffffffff8111156130d9576130d8612a53565b5b6130e587828801613008565b91505092959194509250565b6130fa81612eb4565b82525050565b600060208201905061311560008301846130f1565b92915050565b61312481612add565b811461312f57600080fd5b50565b6000813590506131418161311b565b92915050565b6000806040838503121561315e5761315d612a4e565b5b600061316c85828601612b5c565b925050602061317d85828601613132565b9150509250929050565b600067ffffffffffffffff8211156131a2576131a1612e08565b5b6131ab82612c18565b9050602081019050919050565b60006131cb6131c684613187565b612e68565b9050828152602081018484840111156131e7576131e6612f81565b5b6131f2848285612fb7565b509392505050565b600082601f83011261320f5761320e612e03565b5b813561321f8482602086016131b8565b91505092915050565b6000806000806080858703121561324257613241612a4e565b5b600061325087828801612b5c565b945050602061326187828801612b5c565b935050604061327287828801612c9b565b925050606085013567ffffffffffffffff81111561329357613292612a53565b5b61329f878288016131fa565b91505092959194509250565b6000602082840312156132c1576132c0612a4e565b5b60006132cf84828501612ed5565b91505092915050565b600080604083850312156132ef576132ee612a4e565b5b60006132fd85828601612b5c565b925050602061330e85828601612b5c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061335f57607f821691505b60208210810361337257613371613318565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006133d4602183612bdd565b91506133df82613378565b604082019050919050565b60006020820190508181036000830152613403816133c7565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613466603d83612bdd565b91506134718261340a565b604082019050919050565b6000602082019050818103600083015261349581613459565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006134f8602d83612bdd565b91506135038261349c565b604082019050919050565b60006020820190508181036000830152613527816134eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061356882612b9e565b915061357383612b9e565b925082820261358181612b9e565b915082820484148315176135985761359761352e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006135d982612b9e565b91506135e483612b9e565b9250826135f4576135f361359f565b5b828204905092915050565b7f416c6c20746f6b656e732068617665206265656e206d696e7465640000000000600082015250565b6000613635601b83612bdd565b9150613640826135ff565b602082019050919050565b6000602082019050818103600083015261366481613628565b9050919050565b7f4d696e74206973206e6f74206f70656e00000000000000000000000000000000600082015250565b60006136a1601083612bdd565b91506136ac8261366b565b602082019050919050565b600060208201905081810360008301526136d081613694565b9050919050565b7f557365722068617320616c7265616479206d696e74656420746865206d61786960008201527f6d756d20616d6f756e7400000000000000000000000000000000000000000000602082015250565b6000613733602a83612bdd565b915061373e826136d7565b604082019050919050565b6000602082019050818103600083015261376281613726565b9050919050565b7f4e6f20636f6e74726163747320616c6c6f776564000000000000000000000000600082015250565b600061379f601483612bdd565b91506137aa82613769565b602082019050919050565b600060208201905081810360008301526137ce81613792565b9050919050565b60006137e082612b9e565b91506137eb83612b9e565b92508282019050808211156138035761380261352e565b5b92915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261386b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261382e565b613875868361382e565b95508019841693508086168417925050509392505050565b6000819050919050565b60006138b26138ad6138a884612b9e565b61388d565b612b9e565b9050919050565b6000819050919050565b6138cc83613897565b6138e06138d8826138b9565b84845461383b565b825550505050565b600090565b6138f56138e8565b6139008184846138c3565b505050565b5b81811015613924576139196000826138ed565b600181019050613906565b5050565b601f8211156139695761393a81613809565b6139438461381e565b81016020851015613952578190505b61396661395e8561381e565b830182613905565b50505b505050565b600082821c905092915050565b600061398c6000198460080261396e565b1980831691505092915050565b60006139a5838361397b565b9150826002028217905092915050565b6139be82612bd2565b67ffffffffffffffff8111156139d7576139d6612e08565b5b6139e18254613347565b6139ec828285613928565b600060209050601f831160018114613a1f5760008415613a0d578287015190505b613a178582613999565b865550613a7f565b601f198416613a2d86613809565b60005b82811015613a5557848901518255600182019150602085019450602081019050613a30565b86831015613a725784890151613a6e601f89168261397b565b8355505b6001600288020188555050505b505050505050565b6000613a9282612b9e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ac457613ac361352e565b5b600182019050919050565b60006060820190508181036000830152613ae98186612c29565b9050613af86020830185612ba8565b8181036040830152613b0a8184612c29565b9050949350505050565b6000819050919050565b613b2f613b2a82612eb4565b613b14565b82525050565b6000613b418284613b1e565b60208201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000613b86600d83612bdd565b9150613b9182613b50565b602082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613bf2601883612bdd565b9150613bfd82613bbc565b602082019050919050565b60006020820190508181036000830152613c2181613be5565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613c84602983612bdd565b9150613c8f82613c28565b604082019050919050565b60006020820190508181036000830152613cb381613c77565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000613cff82612bd2565b613d098185613ce9565b9350613d19818560208601612bee565b80840191505092915050565b6000613d318289613cf4565b9150613d3d8288613cf4565b9150613d498287613cf4565b9150613d558286613cf4565b9150613d618285613cf4565b9150613d6d8284613cf4565b9150819050979650505050505050565b7f7b226e616d65223a20224f6666436861696e4170652023000000000000000000600082015250565b6000613db3601783613ce9565b9150613dbe82613d7d565b601782019050919050565b7f222c20226465736372697074696f6e223a202254686973204e4654206973207060008201527f617274206f66206120636f6c6c656374696f6e206f662031302c30303020637260208201527f656174656420627920566572646f6d692e2054686520636f6c6c656374696f6e60408201527f2073657276657320617320616e2061727469737469632065787072657373696f60608201527f6e206f6e20746865206c61636b206f66206f6e2d636861696e2073746f72616760808201527f6520666f72206d6f7374204e465420617274776f726b2e20546865726520697360a08201527f20612031302520726f79616c7479206f6e2074686520636f6c6c656374696f6e60c08201527f2e222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c60e08201527f3b6261736536342c00000000000000000000000000000000000000000000000061010082015250565b6000613f3161010883613ce9565b9150613f3c82613dc9565b61010882019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f7e600283613ce9565b9150613f8982613f48565b600282019050919050565b6000613f9f82613da6565b9150613fab8285613cf4565b9150613fb682613f23565b9150613fc28284613cf4565b9150613fcd82613f71565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061400f601d83613ce9565b915061401a82613fd9565b601d82019050919050565b600061403082614002565b915061403c8284613cf4565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140a3602683612bdd565b91506140ae82614047565b604082019050919050565b600060208201905081810360008301526140d281614096565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614135602583612bdd565b9150614140826140d9565b604082019050919050565b6000602082019050818103600083015261416481614128565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006141c7602483612bdd565b91506141d28261416b565b604082019050919050565b600060208201905081810360008301526141f6816141ba565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614233602083612bdd565b915061423e826141fd565b602082019050919050565b6000602082019050818103600083015261426281614226565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061429f601c83612bdd565b91506142aa82614269565b602082019050919050565b600060208201905081810360008301526142ce81614292565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061430b602083612bdd565b9150614316826142d5565b602082019050919050565b6000602082019050818103600083015261433a816142fe565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614377601983612bdd565b915061438282614341565b602082019050919050565b600060208201905081810360008301526143a68161436a565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614409603283612bdd565b9150614414826143ad565b604082019050919050565b60006020820190508181036000830152614438816143fc565b9050919050565b600061444a82612b9e565b915061445583612b9e565b925082820390508181111561446d5761446c61352e565b5b92915050565b600081519050919050565b600082825260208201905092915050565b600061449a82614473565b6144a4818561447e565b93506144b4818560208601612bee565b6144bd81612c18565b840191505092915050565b60006080820190506144dd6000830187612cdd565b6144ea6020830186612cdd565b6144f76040830185612ba8565b8181036060830152614509818461448f565b905095945050505050565b60008151905061452381612a84565b92915050565b60006020828403121561453f5761453e612a4e565b5b600061454d84828501614514565b9150509291505056fe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a206d6f6e6f73706163653b20666f6e742d73697a653a20313070783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d222322202f3e3c7465787420746578742d616e63686f723d22656e642220783d223334372220793d223334372220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122062068b6ee0cb6a754dba1b6f2ccc594af8cd5dc8e8db282e73a26258873ca1a464736f6c634300081100336e60e93f2ef8bae20b4b5be50ed41a188d7e356e887e9035ebcfcd371a61068f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635ca1e16511610104578063a22cb465116100a2578063d5abeb0111610071578063d5abeb0114610541578063dab5f3401461055f578063e985e9c51461057b578063f2fde38b146105ab576101cf565b8063a22cb465146104cf578063b88d4fde146104eb578063c87b56dd14610507578063d3dd5fe014610537576101cf565b806370a08231116100de57806370a0823114610459578063715018a6146104895780638da5cb5b1461049357806395d89b41146104b1576101cf565b80635ca1e165146103ed5780635e054fad1461040b5780636352211e14610429576101cf565b806323b872dd1161017157806342842e0e1161014b57806342842e0e146103695780634671059f1461038557806347e5260c146103b55780635699bf05146103d1576101cf565b806323b872dd146102ec5780632a55205a1461030857806333c41a9014610339576101cf565b8063081812fc116101ad578063081812fc14610252578063095ea7b31461028257806318160ddd1461029e5780631fc9c224146102bc576101cf565b806301ffc9a7146101d4578063030cdd4f1461020457806306fdde0314610234575b600080fd5b6101ee60048036038101906101e99190612ab0565b6105c7565b6040516101fb9190612af8565b60405180910390f35b61021e60048036038101906102199190612b71565b6105d9565b60405161022b9190612bb7565b60405180910390f35b61023c610622565b6040516102499190612c62565b60405180910390f35b61026c60048036038101906102679190612cb0565b6106b4565b6040516102799190612cec565b60405180910390f35b61029c60048036038101906102979190612d07565b6106fa565b005b6102a6610811565b6040516102b39190612bb7565b60405180910390f35b6102d660048036038101906102d19190612cb0565b61081b565b6040516102e39190612c62565b60405180910390f35b61030660048036038101906103019190612d47565b6108c0565b005b610322600480360381019061031d9190612d9a565b610920565b604051610330929190612dda565b60405180910390f35b610353600480360381019061034e9190612cb0565b610b0a565b6040516103609190612af8565b60405180910390f35b610383600480360381019061037e9190612d47565b610b1c565b005b61039f600480360381019061039a9190612cb0565b610b3c565b6040516103ac9190612c62565b60405180910390f35b6103cf60048036038101906103ca9190613036565b610be1565b005b6103eb60048036038101906103e69190613036565b610e32565b005b6103f5610eda565b6040516104029190613100565b60405180910390f35b610413610ee4565b6040516104209190612bb7565b60405180910390f35b610443600480360381019061043e9190612cb0565b610f28565b6040516104509190612cec565b60405180910390f35b610473600480360381019061046e9190612b71565b610fae565b6040516104809190612bb7565b60405180910390f35b610491611065565b005b61049b611079565b6040516104a89190612cec565b60405180910390f35b6104b96110a3565b6040516104c69190612c62565b60405180910390f35b6104e960048036038101906104e49190613147565b611135565b005b61050560048036038101906105009190613228565b61114b565b005b610521600480360381019061051c9190612cb0565b6111ad565b60405161052e9190612c62565b60405180910390f35b61053f611568565b005b61054961159c565b6040516105569190612bb7565b60405180910390f35b610579600480360381019061057491906132ab565b6115a6565b005b610595600480360381019061059091906132d8565b6115b8565b6040516105a29190612af8565b60405180910390f35b6105c560048036038101906105c09190612b71565b61164c565b005b60006105d2826116cf565b9050919050565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606000805461063190613347565b80601f016020809104026020016040519081016040528092919081815260200182805461065d90613347565b80156106aa5780601f1061067f576101008083540402835291602001916106aa565b820191906000526020600020905b81548152906001019060200180831161068d57829003601f168201915b5050505050905090565b60006106bf82611749565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061070582610f28565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076c906133ea565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610794611794565b73ffffffffffffffffffffffffffffffffffffffff1614806107c357506107c2816107bd611794565b6115b8565b5b610802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f99061347c565b60405180910390fd5b61080c838361179c565b505050565b6000600e54905090565b6060600b6000838152602001908152602001600020805461083b90613347565b80601f016020809104026020016040519081016040528092919081815260200182805461086790613347565b80156108b45780601f10610889576101008083540402835291602001916108b4565b820191906000526020600020905b81548152906001019060200180831161089757829003601f168201915b50505050509050919050565b6108d16108cb611794565b82611855565b610910576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109079061350e565b60405180910390fd5b61091b8383836118ea565b505050565b6000806000600760008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610ab55760066040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610abf611be3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610aeb919061355d565b610af591906135ce565b90508160000151819350935050509250929050565b6000610b1582611bed565b9050919050565b610b378383836040518060200160405280600081525061114b565b505050565b6060600c60008381526020019081526020016000208054610b5c90613347565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8890613347565b8015610bd55780601f10610baa57610100808354040283529160200191610bd5565b820191906000526020600020905b815481529060010190602001808311610bb857829003601f168201915b50505050509050919050565b612710600e5410610c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1e9061364b565b60405180910390fd5b600d60009054906101000a900460ff16610c76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6d906136b7565b60405180910390fd5b610c8284848484610e32565b600a8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfa90613749565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d68906137b5565b60405180910390fd5b6001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dc191906137d5565b9250508190555082600b60008481526020019081526020016000209081610de891906139b5565b5080600c60008481526020019081526020016000209081610e0991906139b5565b50600e6000815480929190610e1d90613a87565b9190505550610e2c3383611c2e565b50505050565b6000838383604051602001610e4993929190613acf565b60405160208183030381529060405280519060200120604051602001610e6f9190613b35565b604051602081830303815290604052805190602001209050610e948560095483611e4b565b610ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eca90613b9c565b60405180910390fd5b5050505050565b6000600954905090565b600080600090505b612710811015610f1f57610eff81610b0a565b610f0c5780915050610f25565b8080610f1790613a87565b915050610eec565b50600090505b90565b600080610f3483611e62565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c90613c08565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590613c9a565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61106d611e9f565b6110776000611f1d565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546110b290613347565b80601f01602080910402602001604051908101604052809291908181526020018280546110de90613347565b801561112b5780601f106111005761010080835404028352916020019161112b565b820191906000526020600020905b81548152906001019060200180831161110e57829003601f168201915b5050505050905090565b611147611140611794565b8383611fe3565b5050565b61115c611156611794565b83611855565b61119b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111929061350e565b60405180910390fd5b6111a78484848461214f565b50505050565b60606111b882611749565b6111c0612a1d565b60405180610100016040528060d8815260200161455760d89139816000600681106111ee576111ed613cba565b5b6020020181905250600c6000848152602001908152602001600020805461121490613347565b80601f016020809104026020016040519081016040528092919081815260200182805461124090613347565b801561128d5780601f106112625761010080835404028352916020019161128d565b820191906000526020600020905b81548152906001019060200180831161127057829003601f168201915b5050505050816001600681106112a6576112a5613cba565b5b602002018190525060405180606001604052806039815260200161462f60399139816002600681106112db576112da613cba565b5b60200201819052506040518060400160405280600781526020017f697066733a2f2f000000000000000000000000000000000000000000000000008152508160036006811061132d5761132c613cba565b5b6020020181905250600b6000848152602001908152602001600020805461135390613347565b80601f016020809104026020016040519081016040528092919081815260200182805461137f90613347565b80156113cc5780601f106113a1576101008083540402835291602001916113cc565b820191906000526020600020905b8154815290600101906020018083116113af57829003601f168201915b5050505050816004600681106113e5576113e4613cba565b5b60200201819052506040518060400160405280600d81526020017f3c2f746578743e3c2f7376673e000000000000000000000000000000000000008152508160056006811061143757611436613cba565b5b602002018190525060008160006006811061145557611454613cba565b5b60200201518260016006811061146e5761146d613cba565b5b60200201518360026006811061148757611486613cba565b5b6020020151846003600681106114a05761149f613cba565b5b6020020151856004600681106114b9576114b8613cba565b5b6020020151866005600681106114d2576114d1613cba565b5b60200201516040516020016114ec96959493929190613d25565b6040516020818303038152906040529050600061153961150b866121ab565b61151484612279565b604051602001611525929190613f94565b604051602081830303815290604052612279565b90508060405160200161154c9190614025565b6040516020818303038152906040529150819350505050919050565b611570611e9f565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b6000612710905090565b6115ae611e9f565b8060098190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611654611e9f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036116c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ba906140b9565b60405180910390fd5b6116cc81611f1d565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611742575061174182612410565b5b9050919050565b61175281611bed565b611791576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178890613c08565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661180f83610f28565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061186183610f28565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806118a357506118a281856115b8565b5b806118e157508373ffffffffffffffffffffffffffffffffffffffff166118c9846106b4565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661190a82610f28565b73ffffffffffffffffffffffffffffffffffffffff1614611960576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119579061414b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c6906141dd565b60405180910390fd5b6119dc83838360016124f2565b8273ffffffffffffffffffffffffffffffffffffffff166119fc82610f28565b73ffffffffffffffffffffffffffffffffffffffff1614611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a499061414b565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611bde8383836001612618565b505050565b6000612710905090565b60008073ffffffffffffffffffffffffffffffffffffffff16611c0f83611e62565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9490614249565b60405180910390fd5b611ca681611bed565b15611ce6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdd906142b5565b60405180910390fd5b611cf46000838360016124f2565b611cfd81611bed565b15611d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d34906142b5565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e47600083836001612618565b5050565b600082611e58858461261e565b1490509392505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611ea7611794565b73ffffffffffffffffffffffffffffffffffffffff16611ec5611079565b73ffffffffffffffffffffffffffffffffffffffff1614611f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1290614321565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612051576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120489061438d565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121429190612af8565b60405180910390a3505050565b61215a8484846118ea565b61216684848484612674565b6121a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219c9061441f565b60405180910390fd5b50505050565b6060600060016121ba846127fb565b01905060008167ffffffffffffffff8111156121d9576121d8612e08565b5b6040519080825280601f01601f19166020018201604052801561220b5781602001600182028036833780820191505090505b509050600082602001820190505b60011561226e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816122625761226161359f565b5b04945060008503612219575b819350505050919050565b6060600082519050600081036122a1576040518060200160405280600081525091505061240b565b600060036002836122b291906137d5565b6122bc91906135ce565b60046122c8919061355d565b905060006020826122d991906137d5565b67ffffffffffffffff8111156122f2576122f1612e08565b5b6040519080825280601f01601f1916602001820160405280156123245781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001614668604091399050600181016020830160005b868110156123c85760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b9050808452600484019350505061234f565b5060038606600181146123e257600281146123f2576123fd565b613d3d60f01b60028303526123fd565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124db57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124eb57506124ea8261294e565b5b9050919050565b600181111561261257600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146125865780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461257e919061443f565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146126115780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461260991906137d5565b925050819055505b5b50505050565b50505050565b60008082905060005b8451811015612669576126548286838151811061264757612646613cba565b5b60200260200101516129b8565b9150808061266190613a87565b915050612627565b508091505092915050565b60006126958473ffffffffffffffffffffffffffffffffffffffff166129e3565b156127ee578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126be611794565b8786866040518563ffffffff1660e01b81526004016126e094939291906144c8565b6020604051808303816000875af192505050801561271c57506040513d601f19601f820116820180604052508101906127199190614529565b60015b61279e573d806000811461274c576040519150601f19603f3d011682016040523d82523d6000602084013e612751565b606091505b506000815103612796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278d9061441f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127f3565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612859577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161284f5761284e61359f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612896576d04ee2d6d415b85acef8100000000838161288c5761288b61359f565b5b0492506020810190505b662386f26fc1000083106128c557662386f26fc1000083816128bb576128ba61359f565b5b0492506010810190505b6305f5e10083106128ee576305f5e10083816128e4576128e361359f565b5b0492506008810190505b61271083106129135761271083816129095761290861359f565b5b0492506004810190505b60648310612936576064838161292c5761292b61359f565b5b0492506002810190505b600a8310612945576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008183106129d0576129cb8284612a06565b6129db565b6129da8383612a06565b5b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b6040518060c001604052806006905b6060815260200190600190039081612a2c5790505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612a8d81612a58565b8114612a9857600080fd5b50565b600081359050612aaa81612a84565b92915050565b600060208284031215612ac657612ac5612a4e565b5b6000612ad484828501612a9b565b91505092915050565b60008115159050919050565b612af281612add565b82525050565b6000602082019050612b0d6000830184612ae9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b3e82612b13565b9050919050565b612b4e81612b33565b8114612b5957600080fd5b50565b600081359050612b6b81612b45565b92915050565b600060208284031215612b8757612b86612a4e565b5b6000612b9584828501612b5c565b91505092915050565b6000819050919050565b612bb181612b9e565b82525050565b6000602082019050612bcc6000830184612ba8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c0c578082015181840152602081019050612bf1565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c3482612bd2565b612c3e8185612bdd565b9350612c4e818560208601612bee565b612c5781612c18565b840191505092915050565b60006020820190508181036000830152612c7c8184612c29565b905092915050565b612c8d81612b9e565b8114612c9857600080fd5b50565b600081359050612caa81612c84565b92915050565b600060208284031215612cc657612cc5612a4e565b5b6000612cd484828501612c9b565b91505092915050565b612ce681612b33565b82525050565b6000602082019050612d016000830184612cdd565b92915050565b60008060408385031215612d1e57612d1d612a4e565b5b6000612d2c85828601612b5c565b9250506020612d3d85828601612c9b565b9150509250929050565b600080600060608486031215612d6057612d5f612a4e565b5b6000612d6e86828701612b5c565b9350506020612d7f86828701612b5c565b9250506040612d9086828701612c9b565b9150509250925092565b60008060408385031215612db157612db0612a4e565b5b6000612dbf85828601612c9b565b9250506020612dd085828601612c9b565b9150509250929050565b6000604082019050612def6000830185612cdd565b612dfc6020830184612ba8565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e4082612c18565b810181811067ffffffffffffffff82111715612e5f57612e5e612e08565b5b80604052505050565b6000612e72612a44565b9050612e7e8282612e37565b919050565b600067ffffffffffffffff821115612e9e57612e9d612e08565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b612ec781612eb4565b8114612ed257600080fd5b50565b600081359050612ee481612ebe565b92915050565b6000612efd612ef884612e83565b612e68565b90508083825260208201905060208402830185811115612f2057612f1f612eaf565b5b835b81811015612f495780612f358882612ed5565b845260208401935050602081019050612f22565b5050509392505050565b600082601f830112612f6857612f67612e03565b5b8135612f78848260208601612eea565b91505092915050565b600080fd5b600067ffffffffffffffff821115612fa157612fa0612e08565b5b612faa82612c18565b9050602081019050919050565b82818337600083830152505050565b6000612fd9612fd484612f86565b612e68565b905082815260208101848484011115612ff557612ff4612f81565b5b613000848285612fb7565b509392505050565b600082601f83011261301d5761301c612e03565b5b813561302d848260208601612fc6565b91505092915050565b600080600080608085870312156130505761304f612a4e565b5b600085013567ffffffffffffffff81111561306e5761306d612a53565b5b61307a87828801612f53565b945050602085013567ffffffffffffffff81111561309b5761309a612a53565b5b6130a787828801613008565b93505060406130b887828801612c9b565b925050606085013567ffffffffffffffff8111156130d9576130d8612a53565b5b6130e587828801613008565b91505092959194509250565b6130fa81612eb4565b82525050565b600060208201905061311560008301846130f1565b92915050565b61312481612add565b811461312f57600080fd5b50565b6000813590506131418161311b565b92915050565b6000806040838503121561315e5761315d612a4e565b5b600061316c85828601612b5c565b925050602061317d85828601613132565b9150509250929050565b600067ffffffffffffffff8211156131a2576131a1612e08565b5b6131ab82612c18565b9050602081019050919050565b60006131cb6131c684613187565b612e68565b9050828152602081018484840111156131e7576131e6612f81565b5b6131f2848285612fb7565b509392505050565b600082601f83011261320f5761320e612e03565b5b813561321f8482602086016131b8565b91505092915050565b6000806000806080858703121561324257613241612a4e565b5b600061325087828801612b5c565b945050602061326187828801612b5c565b935050604061327287828801612c9b565b925050606085013567ffffffffffffffff81111561329357613292612a53565b5b61329f878288016131fa565b91505092959194509250565b6000602082840312156132c1576132c0612a4e565b5b60006132cf84828501612ed5565b91505092915050565b600080604083850312156132ef576132ee612a4e565b5b60006132fd85828601612b5c565b925050602061330e85828601612b5c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061335f57607f821691505b60208210810361337257613371613318565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006133d4602183612bdd565b91506133df82613378565b604082019050919050565b60006020820190508181036000830152613403816133c7565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613466603d83612bdd565b91506134718261340a565b604082019050919050565b6000602082019050818103600083015261349581613459565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006134f8602d83612bdd565b91506135038261349c565b604082019050919050565b60006020820190508181036000830152613527816134eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061356882612b9e565b915061357383612b9e565b925082820261358181612b9e565b915082820484148315176135985761359761352e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006135d982612b9e565b91506135e483612b9e565b9250826135f4576135f361359f565b5b828204905092915050565b7f416c6c20746f6b656e732068617665206265656e206d696e7465640000000000600082015250565b6000613635601b83612bdd565b9150613640826135ff565b602082019050919050565b6000602082019050818103600083015261366481613628565b9050919050565b7f4d696e74206973206e6f74206f70656e00000000000000000000000000000000600082015250565b60006136a1601083612bdd565b91506136ac8261366b565b602082019050919050565b600060208201905081810360008301526136d081613694565b9050919050565b7f557365722068617320616c7265616479206d696e74656420746865206d61786960008201527f6d756d20616d6f756e7400000000000000000000000000000000000000000000602082015250565b6000613733602a83612bdd565b915061373e826136d7565b604082019050919050565b6000602082019050818103600083015261376281613726565b9050919050565b7f4e6f20636f6e74726163747320616c6c6f776564000000000000000000000000600082015250565b600061379f601483612bdd565b91506137aa82613769565b602082019050919050565b600060208201905081810360008301526137ce81613792565b9050919050565b60006137e082612b9e565b91506137eb83612b9e565b92508282019050808211156138035761380261352e565b5b92915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261386b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261382e565b613875868361382e565b95508019841693508086168417925050509392505050565b6000819050919050565b60006138b26138ad6138a884612b9e565b61388d565b612b9e565b9050919050565b6000819050919050565b6138cc83613897565b6138e06138d8826138b9565b84845461383b565b825550505050565b600090565b6138f56138e8565b6139008184846138c3565b505050565b5b81811015613924576139196000826138ed565b600181019050613906565b5050565b601f8211156139695761393a81613809565b6139438461381e565b81016020851015613952578190505b61396661395e8561381e565b830182613905565b50505b505050565b600082821c905092915050565b600061398c6000198460080261396e565b1980831691505092915050565b60006139a5838361397b565b9150826002028217905092915050565b6139be82612bd2565b67ffffffffffffffff8111156139d7576139d6612e08565b5b6139e18254613347565b6139ec828285613928565b600060209050601f831160018114613a1f5760008415613a0d578287015190505b613a178582613999565b865550613a7f565b601f198416613a2d86613809565b60005b82811015613a5557848901518255600182019150602085019450602081019050613a30565b86831015613a725784890151613a6e601f89168261397b565b8355505b6001600288020188555050505b505050505050565b6000613a9282612b9e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613ac457613ac361352e565b5b600182019050919050565b60006060820190508181036000830152613ae98186612c29565b9050613af86020830185612ba8565b8181036040830152613b0a8184612c29565b9050949350505050565b6000819050919050565b613b2f613b2a82612eb4565b613b14565b82525050565b6000613b418284613b1e565b60208201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b6000613b86600d83612bdd565b9150613b9182613b50565b602082019050919050565b60006020820190508181036000830152613bb581613b79565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613bf2601883612bdd565b9150613bfd82613bbc565b602082019050919050565b60006020820190508181036000830152613c2181613be5565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613c84602983612bdd565b9150613c8f82613c28565b604082019050919050565b60006020820190508181036000830152613cb381613c77565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b6000613cff82612bd2565b613d098185613ce9565b9350613d19818560208601612bee565b80840191505092915050565b6000613d318289613cf4565b9150613d3d8288613cf4565b9150613d498287613cf4565b9150613d558286613cf4565b9150613d618285613cf4565b9150613d6d8284613cf4565b9150819050979650505050505050565b7f7b226e616d65223a20224f6666436861696e4170652023000000000000000000600082015250565b6000613db3601783613ce9565b9150613dbe82613d7d565b601782019050919050565b7f222c20226465736372697074696f6e223a202254686973204e4654206973207060008201527f617274206f66206120636f6c6c656374696f6e206f662031302c30303020637260208201527f656174656420627920566572646f6d692e2054686520636f6c6c656374696f6e60408201527f2073657276657320617320616e2061727469737469632065787072657373696f60608201527f6e206f6e20746865206c61636b206f66206f6e2d636861696e2073746f72616760808201527f6520666f72206d6f7374204e465420617274776f726b2e20546865726520697360a08201527f20612031302520726f79616c7479206f6e2074686520636f6c6c656374696f6e60c08201527f2e222c2022696d616765223a2022646174613a696d6167652f7376672b786d6c60e08201527f3b6261736536342c00000000000000000000000000000000000000000000000061010082015250565b6000613f3161010883613ce9565b9150613f3c82613dc9565b61010882019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000613f7e600283613ce9565b9150613f8982613f48565b600282019050919050565b6000613f9f82613da6565b9150613fab8285613cf4565b9150613fb682613f23565b9150613fc28284613cf4565b9150613fcd82613f71565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061400f601d83613ce9565b915061401a82613fd9565b601d82019050919050565b600061403082614002565b915061403c8284613cf4565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140a3602683612bdd565b91506140ae82614047565b604082019050919050565b600060208201905081810360008301526140d281614096565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614135602583612bdd565b9150614140826140d9565b604082019050919050565b6000602082019050818103600083015261416481614128565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006141c7602483612bdd565b91506141d28261416b565b604082019050919050565b600060208201905081810360008301526141f6816141ba565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614233602083612bdd565b915061423e826141fd565b602082019050919050565b6000602082019050818103600083015261426281614226565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061429f601c83612bdd565b91506142aa82614269565b602082019050919050565b600060208201905081810360008301526142ce81614292565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061430b602083612bdd565b9150614316826142d5565b602082019050919050565b6000602082019050818103600083015261433a816142fe565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614377601983612bdd565b915061438282614341565b602082019050919050565b600060208201905081810360008301526143a68161436a565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614409603283612bdd565b9150614414826143ad565b604082019050919050565b60006020820190508181036000830152614438816143fc565b9050919050565b600061444a82612b9e565b915061445583612b9e565b925082820390508181111561446d5761446c61352e565b5b92915050565b600081519050919050565b600082825260208201905092915050565b600061449a82614473565b6144a4818561447e565b93506144b4818560208601612bee565b6144bd81612c18565b840191505092915050565b60006080820190506144dd6000830187612cdd565b6144ea6020830186612cdd565b6144f76040830185612ba8565b8181036060830152614509818461448f565b905095945050505050565b60008151905061452381612a84565b92915050565b60006020828403121561453f5761453e612a4e565b5b600061454d84828501614514565b9150509291505056fe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f73766722207072657365727665417370656374526174696f3d22784d696e594d696e206d656574222076696577426f783d223020302033353020333530223e3c7374796c653e2e62617365207b2066696c6c3a20626c61636b3b20666f6e742d66616d696c793a206d6f6e6f73706163653b20666f6e742d73697a653a20313070783b207d3c2f7374796c653e3c726563742077696474683d223130302522206865696768743d2231303025222066696c6c3d222322202f3e3c7465787420746578742d616e63686f723d22656e642220783d223334372220793d223334372220636c6173733d2262617365223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122062068b6ee0cb6a754dba1b6f2ccc594af8cd5dc8e8db282e73a26258873ca1a464736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
6e60e93f2ef8bae20b4b5be50ed41a188d7e356e887e9035ebcfcd371a61068f
-----Decoded View---------------
Arg [0] : _root (bytes32): 0x6e60e93f2ef8bae20b4b5be50ed41a188d7e356e887e9035ebcfcd371a61068f
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 6e60e93f2ef8bae20b4b5be50ed41a188d7e356e887e9035ebcfcd371a61068f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.