More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,657 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 68581781 | 51 days ago | IN | 0 POL | 0.00222275 | ||||
Set Approval For... | 66314746 | 108 days ago | IN | 0 POL | 0.00140277 | ||||
Set Approval For... | 66144948 | 112 days ago | IN | 0 POL | 0.00238966 | ||||
Set Approval For... | 65314374 | 133 days ago | IN | 0 POL | 0.001533 | ||||
Safe Transfer Fr... | 62851970 | 195 days ago | IN | 0 POL | 0.00255573 | ||||
Set Approval For... | 62465270 | 204 days ago | IN | 0 POL | 0.00140277 | ||||
Set Approval For... | 61235715 | 235 days ago | IN | 0 POL | 0.00143643 | ||||
Set Approval For... | 60827141 | 245 days ago | IN | 0 POL | 0.00144307 | ||||
Set Approval For... | 60385678 | 256 days ago | IN | 0 POL | 0.00140033 | ||||
Set Approval For... | 59934810 | 268 days ago | IN | 0 POL | 0.00140025 | ||||
Set Approval For... | 59845387 | 270 days ago | IN | 0 POL | 0.00074289 | ||||
Set Approval For... | 58395738 | 306 days ago | IN | 0 POL | 0.00220072 | ||||
Set Approval For... | 58237263 | 310 days ago | IN | 0 POL | 0.00140241 | ||||
Safe Transfer Fr... | 57778143 | 322 days ago | IN | 0 POL | 0.00264849 | ||||
Safe Transfer Fr... | 57777935 | 322 days ago | IN | 0 POL | 0.00259314 | ||||
Safe Transfer Fr... | 57777901 | 322 days ago | IN | 0 POL | 0.00296214 | ||||
Safe Transfer Fr... | 57777881 | 322 days ago | IN | 0 POL | 0.00296214 | ||||
Safe Transfer Fr... | 57777845 | 322 days ago | IN | 0 POL | 0.00259314 | ||||
Safe Transfer Fr... | 57777816 | 322 days ago | IN | 0 POL | 0.00259314 | ||||
Safe Transfer Fr... | 57777776 | 322 days ago | IN | 0 POL | 0.00264849 | ||||
Safe Transfer Fr... | 57777765 | 322 days ago | IN | 0 POL | 0.00264813 | ||||
Set Approval For... | 56983384 | 343 days ago | IN | 0 POL | 0.00141506 | ||||
Set Approval For... | 55555692 | 380 days ago | IN | 0 POL | 0.0066053 | ||||
Set Approval For... | 55538668 | 380 days ago | IN | 0 POL | 0.00804048 | ||||
Set Approval For... | 55454700 | 383 days ago | IN | 0 POL | 0.00619805 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
43534379 | 688 days ago | 10 POL | ||||
43534369 | 688 days ago | 20 POL | ||||
43534331 | 688 days ago | 10 POL | ||||
43534319 | 688 days ago | 50 POL | ||||
43534062 | 688 days ago | 10 POL | ||||
43534050 | 688 days ago | 50 POL | ||||
43534033 | 688 days ago | 40 POL | ||||
43534016 | 688 days ago | 50 POL | ||||
43533831 | 688 days ago | 100 POL | ||||
43533820 | 688 days ago | 30 POL | ||||
43533759 | 688 days ago | 50 POL | ||||
43533224 | 688 days ago | 20 POL | ||||
43533216 | 688 days ago | 10 POL | ||||
43533100 | 688 days ago | 10 POL | ||||
43532481 | 688 days ago | 10 POL | ||||
43531823 | 688 days ago | 10 POL | ||||
43531418 | 688 days ago | 10 POL | ||||
43531218 | 688 days ago | 10 POL | ||||
43529585 | 688 days ago | 50 POL | ||||
43528179 | 688 days ago | 10 POL | ||||
43526766 | 688 days ago | 10 POL | ||||
43526451 | 688 days ago | 20 POL | ||||
43526419 | 688 days ago | 30 POL | ||||
43524495 | 688 days ago | 20 POL | ||||
43521406 | 688 days ago | 10 POL |
Loading...
Loading
Contract Name:
NFT
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../lib/CurrencyTransferLib.sol"; contract NFT is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public mintIndex = 0; string public notRevealedUri; uint256 public cost = 10 ether; uint256 public maxSupply = 2000; uint256 public maxMintAmount = 10; uint256 public nftPerAddressLimit = 10; bool public paused = true; bool public revealed = false; bool public onlyOGlisted = false; bool public onlyWhitelisted = false; address[] public whitelistedAddresses; address[] public oglistedAddresses; mapping(address => uint256) public addressMintedBalance; address primarySaleRecipient; constructor( string memory _name, string memory _symbol, string memory _initNotRevealedUri, address _primarySaleRecipient ) ERC721(_name, _symbol) { setNotRevealedURI(_initNotRevealedUri); _setupPrimarySaleRecipient(_primarySaleRecipient); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _collectPriceOnClaim( uint256 _quantityToClaim ) internal virtual { if (cost == 0) { return; } uint256 totalPrice = _quantityToClaim * cost; require(msg.value == totalPrice, "Must send total price."); CurrencyTransferLib.transferCurrency(CurrencyTransferLib.NATIVE_TOKEN, msg.sender, primarySaleRecipient, totalPrice); } function setOnlyOglist (bool value) public onlyOwner { onlyOGlisted = value; } function setOnlyWhitelist (bool value) public onlyOwner { onlyWhitelisted = value; } // public function mint(uint256 _mintAmount) public payable { require(_mintAmount > 0, "need to mint at least 1 NFT"); require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded"); require(mintIndex + _mintAmount <= maxSupply, "max NFT limit exceeded"); if (msg.sender != owner()) { require(!paused, "mint is paused"); require(_mintAmount <= 1780, "Only admin can mint!"); if(onlyOGlisted == true) { require(isOGlisted(msg.sender), "user is not OGlisted"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded"); } if(onlyWhitelisted == true) { require(isWhitelisted(msg.sender), "user is not whitelisted"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded"); } _collectPriceOnClaim(_mintAmount); } for (uint256 i = 1; i <= _mintAmount; i++) { addressMintedBalance[msg.sender]++; mintIndex++; _safeMint(msg.sender, mintIndex); } } function mintTo(address addr) public onlyOwner { addressMintedBalance[addr]++; mintIndex++; _safeMint(addr, mintIndex); } function burn(uint256 tokenId) public { require(msg.sender == ownerOf(tokenId), "user dont own nft"); _burn(tokenId); } function isWhitelisted(address _user) public view returns (bool) { for (uint i = 0; i < whitelistedAddresses.length; i++) { if (whitelistedAddresses[i] == _user) { return true; } } return false; } function isOGlisted(address _user) public view returns (bool) { for (uint i = 0; i < oglistedAddresses.length; i++) { if (oglistedAddresses[i] == _user) { return true; } } return false; } function tokensByOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } //only owner function reveal(string memory _newBaseURI) public onlyOwner { setBaseURI(_newBaseURI); revealed = true; } function setNftPerAddressLimit(uint256 _limit) public onlyOwner { nftPerAddressLimit = _limit; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function pauseMint(bool _state) public onlyOwner { paused = _state; } function setWhitelistUsers(address[] calldata _users) public onlyOwner { delete whitelistedAddresses; whitelistedAddresses = _users; } function setOglistUsers(address[] calldata _users) public onlyOwner { delete oglistedAddresses; oglistedAddresses = _users; } function _setupPrimarySaleRecipient(address _saleRecipient) public onlyOwner { primarySaleRecipient = _saleRecipient; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// 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/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (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 {} /** * @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 {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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 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: Apache-2.0 pragma solidity ^0.8.0; interface IWETH { function deposit() external payable; function withdraw(uint256 amount) external; function transfer(address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import { IWETH } from "../interfaces/IWETH.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; library CurrencyTransferLib { using SafeERC20 for IERC20; /// @dev The address interpreted as native token of the chain. address public constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; /// @dev Transfers a given amount of currency. function transferCurrency( address _currency, address _from, address _to, uint256 _amount ) internal { if (_amount == 0) { return; } if (_currency == NATIVE_TOKEN) { safeTransferNativeToken(_to, _amount); } else { safeTransferERC20(_currency, _from, _to, _amount); } } /// @dev Transfers a given amount of currency. (With native token wrapping) function transferCurrencyWithWrapper( address _currency, address _from, address _to, uint256 _amount, address _nativeTokenWrapper ) internal { if (_amount == 0) { return; } if (_currency == NATIVE_TOKEN) { if (_from == address(this)) { // withdraw from weth then transfer withdrawn native token to recipient IWETH(_nativeTokenWrapper).withdraw(_amount); safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper); } else if (_to == address(this)) { // store native currency in weth require(_amount == msg.value, "msg.value != amount"); IWETH(_nativeTokenWrapper).deposit{ value: _amount }(); } else { safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper); } } else { safeTransferERC20(_currency, _from, _to, _amount); } } /// @dev Transfer `amount` of ERC20 token from `from` to `to`. function safeTransferERC20( address _currency, address _from, address _to, uint256 _amount ) internal { if (_from == _to) { return; } if (_from == address(this)) { IERC20(_currency).safeTransfer(_to, _amount); } else { IERC20(_currency).safeTransferFrom(_from, _to, _amount); } } /// @dev Transfers `amount` of native token to `to`. function safeTransferNativeToken(address to, uint256 value) internal { // solhint-disable avoid-low-level-calls // slither-disable-next-line low-level-calls (bool success, ) = to.call{ value: value }(""); require(success, "native token transfer failed"); } /// @dev Transfers `amount` of native token to `to`. (With native token wrapping) function safeTransferNativeTokenWithWrapper( address to, uint256 value, address _nativeTokenWrapper ) internal { // solhint-disable avoid-low-level-calls // slither-disable-next-line low-level-calls (bool success, ) = to.call{ value: value }(""); if (!success) { IWETH(_nativeTokenWrapper).deposit{ value: value }(); IERC20(_nativeTokenWrapper).safeTransfer(to, value); } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"address","name":"_primarySaleRecipient","type":"address"}],"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":"_saleRecipient","type":"address"}],"name":"_setupPrimarySaleRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isOGlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"oglistedAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyOGlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"setOglistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOnlyOglist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOnlyWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"setWhitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistedAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c90816200004a9190620005fb565b506000600d55678ac7230489e80000600f556107d0601055600a601155600a6012556001601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055506000601360026101000a81548160ff0219169083151502179055506000601360036101000a81548160ff021916908315150217905550348015620000e557600080fd5b506040516200680e3803806200680e83398181016040528101906200010b9190620008ab565b838381600090816200011e9190620005fb565b508060019081620001309190620005fb565b50505062000153620001476200017f60201b60201c565b6200018760201b60201c565b62000164826200024d60201b60201c565b62000175816200027260201b60201c565b50505050620009fd565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200025d620002c660201b60201c565b80600e90816200026e9190620005fb565b5050565b62000282620002c660201b60201c565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620002d66200017f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002fc6200035760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000355576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200034c90620009db565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200040357607f821691505b602082108103620004195762000418620003bb565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000444565b6200048f868362000444565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004dc620004d6620004d084620004a7565b620004b1565b620004a7565b9050919050565b6000819050919050565b620004f883620004bb565b620005106200050782620004e3565b84845462000451565b825550505050565b600090565b6200052762000518565b62000534818484620004ed565b505050565b5b818110156200055c57620005506000826200051d565b6001810190506200053a565b5050565b601f821115620005ab5762000575816200041f565b620005808462000434565b8101602085101562000590578190505b620005a86200059f8562000434565b83018262000539565b50505b505050565b600082821c905092915050565b6000620005d060001984600802620005b0565b1980831691505092915050565b6000620005eb8383620005bd565b9150826002028217905092915050565b620006068262000381565b67ffffffffffffffff8111156200062257620006216200038c565b5b6200062e8254620003ea565b6200063b82828562000560565b600060209050601f8311600181146200067357600084156200065e578287015190505b6200066a8582620005dd565b865550620006da565b601f19841662000683866200041f565b60005b82811015620006ad5784890151825560018201915060208501945060208101905062000686565b86831015620006cd5784890151620006c9601f891682620005bd565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200071c8262000700565b810181811067ffffffffffffffff821117156200073e576200073d6200038c565b5b80604052505050565b600062000753620006e2565b905062000761828262000711565b919050565b600067ffffffffffffffff8211156200078457620007836200038c565b5b6200078f8262000700565b9050602081019050919050565b60005b83811015620007bc5780820151818401526020810190506200079f565b60008484015250505050565b6000620007df620007d98462000766565b62000747565b905082815260208101848484011115620007fe57620007fd620006fb565b5b6200080b8482856200079c565b509392505050565b600082601f8301126200082b576200082a620006f6565b5b81516200083d848260208601620007c8565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008738262000846565b9050919050565b620008858162000866565b81146200089157600080fd5b50565b600081519050620008a5816200087a565b92915050565b60008060008060808587031215620008c857620008c7620006ec565b5b600085015167ffffffffffffffff811115620008e957620008e8620006f1565b5b620008f78782880162000813565b945050602085015167ffffffffffffffff8111156200091b576200091a620006f1565b5b620009298782880162000813565b935050604085015167ffffffffffffffff8111156200094d576200094c620006f1565b5b6200095b8782880162000813565b92505060606200096e8782880162000894565b91505092959194509250565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620009c36020836200097a565b9150620009d0826200098b565b602082019050919050565b60006020820190508181036000830152620009f681620009b4565b9050919050565b615e018062000a0d6000396000f3fe60806040526004361061031a5760003560e01c80635c975abb116101ab578063b88d4fde116100f7578063d5abeb0111610095578063f2c4ce1e1161006f578063f2c4ce1e14610c0f578063f2fde38b14610c38578063f30e6e7714610c61578063f74f9bfd14610c8a5761031a565b8063d5abeb0114610b7e578063da3ef23f14610ba9578063e985e9c514610bd25761031a565b8063bcc028f7116100d1578063bcc028f714610ac4578063c668286214610aed578063c87b56dd14610b18578063d0eb26b014610b555761031a565b8063b88d4fde14610a33578063ba4e5c4914610a5c578063ba7d2c7614610a995761031a565b80637f00c7a611610164578063986096461161013e57806398609646146109985780639c70b512146109c3578063a0712d68146109ee578063a22cb46514610a0a5761031a565b80637f00c7a6146109195780638da5cb5b1461094257806395d89b411461096d5761031a565b80635c975abb146108095780636352211e146108345780636c0360eb1461087157806370a082311461089c578063715018a6146108d9578063755edd17146108f05761031a565b806323b872dd1161026a57806342842e0e116102235780634c261247116101fd5780634c2612471461074f5780634f6ccce71461077857806351830227146107b557806355f804b3146107e05761031a565b806342842e0e146106d457806342966c68146106fd57806344a0d68a146107265761031a565b806323b872dd146105a2578063281c506b146105cb5780632beab4b7146105f45780632f745c591461061d578063352a79ed1461065a5780633af32abf146106975761031a565b80630d1bc0eb116102d757806318160ddd116102b157806318160ddd146104e657806318cae269146105115780631dd02b4b1461054e578063239c70ae146105775761031a565b80630d1bc0eb146104555780630d381a281461047e57806313faede6146104bb5761031a565b806301ffc9a71461031f5780630580076a1461035c57806306fdde0314610399578063081812fc146103c4578063081c8c4414610401578063095ea7b31461042c575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190613efc565b610cb5565b6040516103539190613f44565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613fbd565b610d2f565b6040516103909190613f44565b60405180910390f35b3480156103a557600080fd5b506103ae610ddd565b6040516103bb919061407a565b60405180910390f35b3480156103d057600080fd5b506103eb60048036038101906103e691906140d2565b610e6f565b6040516103f8919061410e565b60405180910390f35b34801561040d57600080fd5b50610416610eb5565b604051610423919061407a565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190614129565b610f43565b005b34801561046157600080fd5b5061047c60048036038101906104779190614195565b61105a565b005b34801561048a57600080fd5b506104a560048036038101906104a09190613fbd565b61107f565b6040516104b29190614280565b60405180910390f35b3480156104c757600080fd5b506104d061112d565b6040516104dd91906142b1565b60405180910390f35b3480156104f257600080fd5b506104fb611133565b60405161050891906142b1565b60405180910390f35b34801561051d57600080fd5b5061053860048036038101906105339190613fbd565b611140565b60405161054591906142b1565b60405180910390f35b34801561055a57600080fd5b5061057560048036038101906105709190614195565b611158565b005b34801561058357600080fd5b5061058c61117d565b60405161059991906142b1565b60405180910390f35b3480156105ae57600080fd5b506105c960048036038101906105c491906142cc565b611183565b005b3480156105d757600080fd5b506105f260048036038101906105ed9190613fbd565b6111e3565b005b34801561060057600080fd5b5061061b60048036038101906106169190614384565b61122f565b005b34801561062957600080fd5b50610644600480360381019061063f9190614129565b61125b565b60405161065191906142b1565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c91906140d2565b611300565b60405161068e919061410e565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b99190613fbd565b61133f565b6040516106cb9190613f44565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f691906142cc565b6113ed565b005b34801561070957600080fd5b50610724600480360381019061071f91906140d2565b61140d565b005b34801561073257600080fd5b5061074d600480360381019061074891906140d2565b61148f565b005b34801561075b57600080fd5b5061077660048036038101906107719190614501565b6114a1565b005b34801561078457600080fd5b5061079f600480360381019061079a91906140d2565b6114d0565b6040516107ac91906142b1565b60405180910390f35b3480156107c157600080fd5b506107ca611541565b6040516107d79190613f44565b60405180910390f35b3480156107ec57600080fd5b5061080760048036038101906108029190614501565b611554565b005b34801561081557600080fd5b5061081e61156f565b60405161082b9190613f44565b60405180910390f35b34801561084057600080fd5b5061085b600480360381019061085691906140d2565b611582565b604051610868919061410e565b60405180910390f35b34801561087d57600080fd5b50610886611608565b604051610893919061407a565b60405180910390f35b3480156108a857600080fd5b506108c360048036038101906108be9190613fbd565b611696565b6040516108d091906142b1565b60405180910390f35b3480156108e557600080fd5b506108ee61174d565b005b3480156108fc57600080fd5b5061091760048036038101906109129190613fbd565b611761565b005b34801561092557600080fd5b50610940600480360381019061093b91906140d2565b6117e5565b005b34801561094e57600080fd5b506109576117f7565b604051610964919061410e565b60405180910390f35b34801561097957600080fd5b50610982611821565b60405161098f919061407a565b60405180910390f35b3480156109a457600080fd5b506109ad6118b3565b6040516109ba9190613f44565b60405180910390f35b3480156109cf57600080fd5b506109d86118c6565b6040516109e59190613f44565b60405180910390f35b610a086004803603810190610a0391906140d2565b6118d9565b005b348015610a1657600080fd5b50610a316004803603810190610a2c919061454a565b611d1c565b005b348015610a3f57600080fd5b50610a5a6004803603810190610a55919061462b565b611d32565b005b348015610a6857600080fd5b50610a836004803603810190610a7e91906140d2565b611d94565b604051610a90919061410e565b60405180910390f35b348015610aa557600080fd5b50610aae611dd3565b604051610abb91906142b1565b60405180910390f35b348015610ad057600080fd5b50610aeb6004803603810190610ae69190614384565b611dd9565b005b348015610af957600080fd5b50610b02611e05565b604051610b0f919061407a565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a91906140d2565b611e93565b604051610b4c919061407a565b60405180910390f35b348015610b6157600080fd5b50610b7c6004803603810190610b7791906140d2565b611feb565b005b348015610b8a57600080fd5b50610b93611ffd565b604051610ba091906142b1565b60405180910390f35b348015610bb557600080fd5b50610bd06004803603810190610bcb9190614501565b612003565b005b348015610bde57600080fd5b50610bf96004803603810190610bf491906146ae565b61201e565b604051610c069190613f44565b60405180910390f35b348015610c1b57600080fd5b50610c366004803603810190610c319190614501565b6120b2565b005b348015610c4457600080fd5b50610c5f6004803603810190610c5a9190613fbd565b6120cd565b005b348015610c6d57600080fd5b50610c886004803603810190610c839190614195565b612150565b005b348015610c9657600080fd5b50610c9f612175565b604051610cac91906142b1565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d285750610d278261217b565b5b9050919050565b600080600090505b601580549050811015610dd2578273ffffffffffffffffffffffffffffffffffffffff1660158281548110610d6f57610d6e6146ee565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610dbf576001915050610dd8565b8080610dca9061474c565b915050610d37565b50600090505b919050565b606060008054610dec906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e18906147c3565b8015610e655780601f10610e3a57610100808354040283529160200191610e65565b820191906000526020600020905b815481529060010190602001808311610e4857829003601f168201915b5050505050905090565b6000610e7a8261225d565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600e8054610ec2906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610eee906147c3565b8015610f3b5780601f10610f1057610100808354040283529160200191610f3b565b820191906000526020600020905b815481529060010190602001808311610f1e57829003601f168201915b505050505081565b6000610f4e82611582565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590614866565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fdd6122a8565b73ffffffffffffffffffffffffffffffffffffffff16148061100c575061100b816110066122a8565b61201e565b5b61104b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611042906148f8565b60405180910390fd5b61105583836122b0565b505050565b611062612369565b80601360026101000a81548160ff02191690831515021790555050565b6060600061108c83611696565b905060008167ffffffffffffffff8111156110aa576110a96143d6565b5b6040519080825280602002602001820160405280156110d85781602001602082028036833780820191505090505b50905060005b82811015611122576110f0858261125b565b828281518110611103576111026146ee565b5b602002602001018181525050808061111a9061474c565b9150506110de565b508092505050919050565b600f5481565b6000600880549050905090565b60166020528060005260406000206000915090505481565b611160612369565b80601360036101000a81548160ff02191690831515021790555050565b60115481565b61119461118e6122a8565b826123e7565b6111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca9061498a565b60405180910390fd5b6111de83838361247c565b505050565b6111eb612369565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611237612369565b601460006112459190613db2565b818160149190611256929190613dd3565b505050565b600061126683611696565b82106112a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129e90614a1c565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6015818154811061131057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600090505b6014805490508110156113e2578273ffffffffffffffffffffffffffffffffffffffff166014828154811061137f5761137e6146ee565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036113cf5760019150506113e8565b80806113da9061474c565b915050611347565b50600090505b919050565b61140883838360405180602001604052806000815250611d32565b505050565b61141681611582565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90614a88565b60405180910390fd5b61148c81612775565b50565b611497612369565b80600f8190555050565b6114a9612369565b6114b281611554565b6001601360016101000a81548160ff02191690831515021790555050565b60006114da611133565b821061151b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151290614b1a565b60405180910390fd5b6008828154811061152f5761152e6146ee565b5b90600052602060002001549050919050565b601360019054906101000a900460ff1681565b61155c612369565b80600b908161156b9190614ce6565b5050565b601360009054906101000a900460ff1681565b60008061158e836128c3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f690614e04565b60405180910390fd5b80915050919050565b600b8054611615906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611641906147c3565b801561168e5780601f106116635761010080835404028352916020019161168e565b820191906000526020600020905b81548152906001019060200180831161167157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fd90614e96565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611755612369565b61175f6000612900565b565b611769612369565b601660008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906117b99061474c565b9190505550600d60008154809291906117d19061474c565b91905055506117e281600d546129c6565b50565b6117ed612369565b8060118190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611830906147c3565b80601f016020809104026020016040519081016040528092919081815260200182805461185c906147c3565b80156118a95780601f1061187e576101008083540402835291602001916118a9565b820191906000526020600020905b81548152906001019060200180831161188c57829003601f168201915b5050505050905090565b601360029054906101000a900460ff1681565b601360039054906101000a900460ff1681565b6000811161191c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191390614f02565b60405180910390fd5b601154811115611961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195890614f94565b60405180910390fd5b60105481600d546119729190614fb4565b11156119b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119aa90615034565b60405180910390fd5b6119bb6117f7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c7e57601360009054906101000a900460ff1615611a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a34906150a0565b60405180910390fd5b6106f4811115611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a799061510c565b60405180910390fd5b60011515601360029054906101000a900460ff16151503611b7b57611aa633610d2f565b611ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adc90615178565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548282611b389190614fb4565b1115611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b70906151e4565b60405180910390fd5b505b60011515601360039054906101000a900460ff16151503611c7457611b9f3361133f565b611bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd590615250565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548282611c319190614fb4565b1115611c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c69906151e4565b60405180910390fd5b505b611c7d816129e4565b5b6000600190505b818111611d1857601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611cdc9061474c565b9190505550600d6000815480929190611cf49061474c565b9190505550611d0533600d546129c6565b8080611d109061474c565b915050611c85565b5050565b611d2e611d276122a8565b8383612a8a565b5050565b611d43611d3d6122a8565b836123e7565b611d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d799061498a565b60405180910390fd5b611d8e84848484612bf6565b50505050565b60148181548110611da457600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60125481565b611de1612369565b60156000611def9190613db2565b818160159190611e00929190613dd3565b505050565b600c8054611e12906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3e906147c3565b8015611e8b5780601f10611e6057610100808354040283529160200191611e8b565b820191906000526020600020905b815481529060010190602001808311611e6e57829003601f168201915b505050505081565b6060611e9e82612c52565b611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed4906152e2565b60405180910390fd5b60001515601360019054906101000a900460ff16151503611f8a57600e8054611f05906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611f31906147c3565b8015611f7e5780601f10611f5357610100808354040283529160200191611f7e565b820191906000526020600020905b815481529060010190602001808311611f6157829003601f168201915b50505050509050611fe6565b6000611f94612c93565b90506000815111611fb45760405180602001604052806000815250611fe2565b80611fbe84612d25565b600c604051602001611fd2939291906153c1565b6040516020818303038152906040525b9150505b919050565b611ff3612369565b8060128190555050565b60105481565b61200b612369565b80600c908161201a9190614ce6565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120ba612369565b80600e90816120c99190614ce6565b5050565b6120d5612369565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213b90615464565b60405180910390fd5b61214d81612900565b50565b612158612369565b80601360006101000a81548160ff02191690831515021790555050565b600d5481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061224657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612256575061225582612df3565b5b9050919050565b61226681612c52565b6122a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90614e04565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661232383611582565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6123716122a8565b73ffffffffffffffffffffffffffffffffffffffff1661238f6117f7565b73ffffffffffffffffffffffffffffffffffffffff16146123e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dc906154d0565b60405180910390fd5b565b6000806123f383611582565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124355750612434818561201e565b5b8061247357508373ffffffffffffffffffffffffffffffffffffffff1661245b84610e6f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661249c82611582565b73ffffffffffffffffffffffffffffffffffffffff16146124f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e990615562565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612561576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612558906155f4565b60405180910390fd5b61256e8383836001612e5d565b8273ffffffffffffffffffffffffffffffffffffffff1661258e82611582565b73ffffffffffffffffffffffffffffffffffffffff16146125e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125db90615562565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127708383836001612fbb565b505050565b600061278082611582565b9050612790816000846001612e5d565b61279982611582565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128bf816000846001612fbb565b5050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129e0828260405180602001604052806000815250612fc1565b5050565b6000600f540315612a87576000600f54826129ff9190615614565b9050803414612a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3a906156a2565b60405180910390fd5b612a8573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168461301c565b505b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aef9061570e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be99190613f44565b60405180910390a3505050565b612c0184848461247c565b612c0d8484848461308f565b612c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c43906157a0565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612c74836128c3565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b8054612ca2906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054612cce906147c3565b8015612d1b5780601f10612cf057610100808354040283529160200191612d1b565b820191906000526020600020905b815481529060010190602001808311612cfe57829003601f168201915b5050505050905090565b606060006001612d3484613216565b01905060008167ffffffffffffffff811115612d5357612d526143d6565b5b6040519080825280601f01601f191660200182016040528015612d855781602001600182028036833780820191505090505b509050600082602001820190505b600115612de8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612ddc57612ddb6157c0565b5b04945060008503612d93575b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612e6984848484613369565b6001811115612ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea490615861565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612ef457612eef8161336f565b612f33565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612f3257612f3185826133b8565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f7557612f7081613525565b612fb4565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612fb357612fb284826135f6565b5b5b5050505050565b50505050565b612fcb8383613675565b612fd8600084848461308f565b613017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300e906157a0565b60405180910390fd5b505050565b60008103156130895773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361307b576130768282613892565b613088565b61308784848484613943565b5b5b50505050565b60006130b08473ffffffffffffffffffffffffffffffffffffffff16613a0f565b15613209578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d96122a8565b8786866040518563ffffffff1660e01b81526004016130fb94939291906158d6565b6020604051808303816000875af192505050801561313757506040513d601f19601f820116820180604052508101906131349190615937565b60015b6131b9573d8060008114613167576040519150601f19603f3d011682016040523d82523d6000602084013e61316c565b606091505b5060008151036131b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131a8906157a0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061320e565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613274577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161326a576132696157c0565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106132b1576d04ee2d6d415b85acef810000000083816132a7576132a66157c0565b5b0492506020810190505b662386f26fc1000083106132e057662386f26fc1000083816132d6576132d56157c0565b5b0492506010810190505b6305f5e1008310613309576305f5e10083816132ff576132fe6157c0565b5b0492506008810190505b612710831061332e576127108381613324576133236157c0565b5b0492506004810190505b606483106133515760648381613347576133466157c0565b5b0492506002810190505b600a8310613360576001810190505b80915050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133c584611696565b6133cf9190615964565b90506000600760008481526020019081526020016000205490508181146134b4576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135399190615964565b9050600060096000848152602001908152602001600020549050600060088381548110613569576135686146ee565b5b90600052602060002001549050806008838154811061358b5761358a6146ee565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806135da576135d9615998565b5b6001900381819060005260206000200160009055905550505050565b600061360183611696565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136db90615a13565b60405180910390fd5b6136ed81612c52565b1561372d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372490615a7f565b60405180910390fd5b61373b600083836001612e5d565b61374481612c52565b15613784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377b90615a7f565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461388e600083836001612fbb565b5050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516138b890615ad0565b60006040518083038185875af1925050503d80600081146138f5576040519150601f19603f3d011682016040523d82523d6000602084013e6138fa565b606091505b505090508061393e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393590615b31565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160315613a09573073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139da576139d582828673ffffffffffffffffffffffffffffffffffffffff16613a329092919063ffffffff16565b613a08565b613a078383838773ffffffffffffffffffffffffffffffffffffffff16613ab8909392919063ffffffff16565b5b5b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b613ab38363a9059cbb60e01b8484604051602401613a51929190615b51565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613b41565b505050565b613b3b846323b872dd60e01b858585604051602401613ad993929190615b7a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613b41565b50505050565b6000613ba3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613c089092919063ffffffff16565b9050600081511115613c035780806020019051810190613bc39190615bc6565b613c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf990615c65565b60405180910390fd5b5b505050565b6060613c178484600085613c20565b90509392505050565b606082471015613c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5c90615cf7565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613c8e9190615d48565b60006040518083038185875af1925050503d8060008114613ccb576040519150601f19603f3d011682016040523d82523d6000602084013e613cd0565b606091505b5091509150613ce187838387613ced565b92505050949350505050565b60608315613d4f576000835103613d4757613d0785613a0f565b613d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3d90615dab565b60405180910390fd5b5b829050613d5a565b613d598383613d62565b5b949350505050565b600082511115613d755781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613da9919061407a565b60405180910390fd5b5080546000825590600052602060002090810190613dd09190613e73565b50565b828054828255906000526020600020908101928215613e62579160200282015b82811115613e6157823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613df3565b5b509050613e6f9190613e73565b5090565b5b80821115613e8c576000816000905550600101613e74565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ed981613ea4565b8114613ee457600080fd5b50565b600081359050613ef681613ed0565b92915050565b600060208284031215613f1257613f11613e9a565b5b6000613f2084828501613ee7565b91505092915050565b60008115159050919050565b613f3e81613f29565b82525050565b6000602082019050613f596000830184613f35565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f8a82613f5f565b9050919050565b613f9a81613f7f565b8114613fa557600080fd5b50565b600081359050613fb781613f91565b92915050565b600060208284031215613fd357613fd2613e9a565b5b6000613fe184828501613fa8565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614024578082015181840152602081019050614009565b60008484015250505050565b6000601f19601f8301169050919050565b600061404c82613fea565b6140568185613ff5565b9350614066818560208601614006565b61406f81614030565b840191505092915050565b600060208201905081810360008301526140948184614041565b905092915050565b6000819050919050565b6140af8161409c565b81146140ba57600080fd5b50565b6000813590506140cc816140a6565b92915050565b6000602082840312156140e8576140e7613e9a565b5b60006140f6848285016140bd565b91505092915050565b61410881613f7f565b82525050565b600060208201905061412360008301846140ff565b92915050565b600080604083850312156141405761413f613e9a565b5b600061414e85828601613fa8565b925050602061415f858286016140bd565b9150509250929050565b61417281613f29565b811461417d57600080fd5b50565b60008135905061418f81614169565b92915050565b6000602082840312156141ab576141aa613e9a565b5b60006141b984828501614180565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6141f78161409c565b82525050565b600061420983836141ee565b60208301905092915050565b6000602082019050919050565b600061422d826141c2565b61423781856141cd565b9350614242836141de565b8060005b8381101561427357815161425a88826141fd565b975061426583614215565b925050600181019050614246565b5085935050505092915050565b6000602082019050818103600083015261429a8184614222565b905092915050565b6142ab8161409c565b82525050565b60006020820190506142c660008301846142a2565b92915050565b6000806000606084860312156142e5576142e4613e9a565b5b60006142f386828701613fa8565b935050602061430486828701613fa8565b9250506040614315868287016140bd565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126143445761434361431f565b5b8235905067ffffffffffffffff81111561436157614360614324565b5b60208301915083602082028301111561437d5761437c614329565b5b9250929050565b6000806020838503121561439b5761439a613e9a565b5b600083013567ffffffffffffffff8111156143b9576143b8613e9f565b5b6143c58582860161432e565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61440e82614030565b810181811067ffffffffffffffff8211171561442d5761442c6143d6565b5b80604052505050565b6000614440613e90565b905061444c8282614405565b919050565b600067ffffffffffffffff82111561446c5761446b6143d6565b5b61447582614030565b9050602081019050919050565b82818337600083830152505050565b60006144a461449f84614451565b614436565b9050828152602081018484840111156144c0576144bf6143d1565b5b6144cb848285614482565b509392505050565b600082601f8301126144e8576144e761431f565b5b81356144f8848260208601614491565b91505092915050565b60006020828403121561451757614516613e9a565b5b600082013567ffffffffffffffff81111561453557614534613e9f565b5b614541848285016144d3565b91505092915050565b6000806040838503121561456157614560613e9a565b5b600061456f85828601613fa8565b925050602061458085828601614180565b9150509250929050565b600067ffffffffffffffff8211156145a5576145a46143d6565b5b6145ae82614030565b9050602081019050919050565b60006145ce6145c98461458a565b614436565b9050828152602081018484840111156145ea576145e96143d1565b5b6145f5848285614482565b509392505050565b600082601f8301126146125761461161431f565b5b81356146228482602086016145bb565b91505092915050565b6000806000806080858703121561464557614644613e9a565b5b600061465387828801613fa8565b945050602061466487828801613fa8565b9350506040614675878288016140bd565b925050606085013567ffffffffffffffff81111561469657614695613e9f565b5b6146a2878288016145fd565b91505092959194509250565b600080604083850312156146c5576146c4613e9a565b5b60006146d385828601613fa8565b92505060206146e485828601613fa8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147578261409c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147895761478861471d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147db57607f821691505b6020821081036147ee576147ed614794565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614850602183613ff5565b915061485b826147f4565b604082019050919050565b6000602082019050818103600083015261487f81614843565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006148e2603d83613ff5565b91506148ed82614886565b604082019050919050565b60006020820190508181036000830152614911816148d5565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614974602d83613ff5565b915061497f82614918565b604082019050919050565b600060208201905081810360008301526149a381614967565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614a06602b83613ff5565b9150614a11826149aa565b604082019050919050565b60006020820190508181036000830152614a35816149f9565b9050919050565b7f7573657220646f6e74206f776e206e6674000000000000000000000000000000600082015250565b6000614a72601183613ff5565b9150614a7d82614a3c565b602082019050919050565b60006020820190508181036000830152614aa181614a65565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614b04602c83613ff5565b9150614b0f82614aa8565b604082019050919050565b60006020820190508181036000830152614b3381614af7565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b9c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b5f565b614ba68683614b5f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614be3614bde614bd98461409c565b614bbe565b61409c565b9050919050565b6000819050919050565b614bfd83614bc8565b614c11614c0982614bea565b848454614b6c565b825550505050565b600090565b614c26614c19565b614c31818484614bf4565b505050565b5b81811015614c5557614c4a600082614c1e565b600181019050614c37565b5050565b601f821115614c9a57614c6b81614b3a565b614c7484614b4f565b81016020851015614c83578190505b614c97614c8f85614b4f565b830182614c36565b50505b505050565b600082821c905092915050565b6000614cbd60001984600802614c9f565b1980831691505092915050565b6000614cd68383614cac565b9150826002028217905092915050565b614cef82613fea565b67ffffffffffffffff811115614d0857614d076143d6565b5b614d1282546147c3565b614d1d828285614c59565b600060209050601f831160018114614d505760008415614d3e578287015190505b614d488582614cca565b865550614db0565b601f198416614d5e86614b3a565b60005b82811015614d8657848901518255600182019150602085019450602081019050614d61565b86831015614da35784890151614d9f601f891682614cac565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614dee601883613ff5565b9150614df982614db8565b602082019050919050565b60006020820190508181036000830152614e1d81614de1565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614e80602983613ff5565b9150614e8b82614e24565b604082019050919050565b60006020820190508181036000830152614eaf81614e73565b9050919050565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b6000614eec601b83613ff5565b9150614ef782614eb6565b602082019050919050565b60006020820190508181036000830152614f1b81614edf565b9050919050565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560008201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b6000614f7e602483613ff5565b9150614f8982614f22565b604082019050919050565b60006020820190508181036000830152614fad81614f71565b9050919050565b6000614fbf8261409c565b9150614fca8361409c565b9250828201905080821115614fe257614fe161471d565b5b92915050565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b600061501e601683613ff5565b915061502982614fe8565b602082019050919050565b6000602082019050818103600083015261504d81615011565b9050919050565b7f6d696e7420697320706175736564000000000000000000000000000000000000600082015250565b600061508a600e83613ff5565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f4f6e6c792061646d696e2063616e206d696e7421000000000000000000000000600082015250565b60006150f6601483613ff5565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b9050919050565b7f75736572206973206e6f74204f476c6973746564000000000000000000000000600082015250565b6000615162601483613ff5565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b60006151ce601c83613ff5565b91506151d982615198565b602082019050919050565b600060208201905081810360008301526151fd816151c1565b9050919050565b7f75736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b600061523a601783613ff5565b915061524582615204565b602082019050919050565b600060208201905081810360008301526152698161522d565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006152cc602f83613ff5565b91506152d782615270565b604082019050919050565b600060208201905081810360008301526152fb816152bf565b9050919050565b600081905092915050565b600061531882613fea565b6153228185615302565b9350615332818560208601614006565b80840191505092915050565b6000815461534b816147c3565b6153558186615302565b945060018216600081146153705760018114615385576153b8565b60ff19831686528115158202860193506153b8565b61538e85614b3a565b60005b838110156153b057815481890152600182019150602081019050615391565b838801955050505b50505092915050565b60006153cd828661530d565b91506153d9828561530d565b91506153e5828461533e565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061544e602683613ff5565b9150615459826153f2565b604082019050919050565b6000602082019050818103600083015261547d81615441565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154ba602083613ff5565b91506154c582615484565b602082019050919050565b600060208201905081810360008301526154e9816154ad565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061554c602583613ff5565b9150615557826154f0565b604082019050919050565b6000602082019050818103600083015261557b8161553f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006155de602483613ff5565b91506155e982615582565b604082019050919050565b6000602082019050818103600083015261560d816155d1565b9050919050565b600061561f8261409c565b915061562a8361409c565b92508282026156388161409c565b9150828204841483151761564f5761564e61471d565b5b5092915050565b7f4d7573742073656e6420746f74616c2070726963652e00000000000000000000600082015250565b600061568c601683613ff5565b915061569782615656565b602082019050919050565b600060208201905081810360008301526156bb8161567f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006156f8601983613ff5565b9150615703826156c2565b602082019050919050565b60006020820190508181036000830152615727816156eb565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061578a603283613ff5565b91506157958261572e565b604082019050919050565b600060208201905081810360008301526157b98161577d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b600061584b603583613ff5565b9150615856826157ef565b604082019050919050565b6000602082019050818103600083015261587a8161583e565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006158a882615881565b6158b2818561588c565b93506158c2818560208601614006565b6158cb81614030565b840191505092915050565b60006080820190506158eb60008301876140ff565b6158f860208301866140ff565b61590560408301856142a2565b8181036060830152615917818461589d565b905095945050505050565b60008151905061593181613ed0565b92915050565b60006020828403121561594d5761594c613e9a565b5b600061595b84828501615922565b91505092915050565b600061596f8261409c565b915061597a8361409c565b92508282039050818111156159925761599161471d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006159fd602083613ff5565b9150615a08826159c7565b602082019050919050565b60006020820190508181036000830152615a2c816159f0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615a69601c83613ff5565b9150615a7482615a33565b602082019050919050565b60006020820190508181036000830152615a9881615a5c565b9050919050565b600081905092915050565b50565b6000615aba600083615a9f565b9150615ac582615aaa565b600082019050919050565b6000615adb82615aad565b9150819050919050565b7f6e617469766520746f6b656e207472616e73666572206661696c656400000000600082015250565b6000615b1b601c83613ff5565b9150615b2682615ae5565b602082019050919050565b60006020820190508181036000830152615b4a81615b0e565b9050919050565b6000604082019050615b6660008301856140ff565b615b7360208301846142a2565b9392505050565b6000606082019050615b8f60008301866140ff565b615b9c60208301856140ff565b615ba960408301846142a2565b949350505050565b600081519050615bc081614169565b92915050565b600060208284031215615bdc57615bdb613e9a565b5b6000615bea84828501615bb1565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615c4f602a83613ff5565b9150615c5a82615bf3565b604082019050919050565b60006020820190508181036000830152615c7e81615c42565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615ce1602683613ff5565b9150615cec82615c85565b604082019050919050565b60006020820190508181036000830152615d1081615cd4565b9050919050565b6000615d2282615881565b615d2c8185615a9f565b9350615d3c818560208601614006565b80840191505092915050565b6000615d548284615d17565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615d95601d83613ff5565b9150615da082615d5f565b602082019050919050565b60006020820190508181036000830152615dc481615d88565b905091905056fea264697066735822122061eff8bc8bae8d7ea123e748c08e0b4ada9805c49f53637aab7b414c29be856564736f6c63430008120033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000005d04e5807b0afa777545f7c4299266a1e6319bc50000000000000000000000000000000000000000000000000000000000000007426f78626965730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036278620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b726569627763726f6e743773697571707a73766f366475376a776967323377696d78656f7a6c786b6173636570776774723432786f666100000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061031a5760003560e01c80635c975abb116101ab578063b88d4fde116100f7578063d5abeb0111610095578063f2c4ce1e1161006f578063f2c4ce1e14610c0f578063f2fde38b14610c38578063f30e6e7714610c61578063f74f9bfd14610c8a5761031a565b8063d5abeb0114610b7e578063da3ef23f14610ba9578063e985e9c514610bd25761031a565b8063bcc028f7116100d1578063bcc028f714610ac4578063c668286214610aed578063c87b56dd14610b18578063d0eb26b014610b555761031a565b8063b88d4fde14610a33578063ba4e5c4914610a5c578063ba7d2c7614610a995761031a565b80637f00c7a611610164578063986096461161013e57806398609646146109985780639c70b512146109c3578063a0712d68146109ee578063a22cb46514610a0a5761031a565b80637f00c7a6146109195780638da5cb5b1461094257806395d89b411461096d5761031a565b80635c975abb146108095780636352211e146108345780636c0360eb1461087157806370a082311461089c578063715018a6146108d9578063755edd17146108f05761031a565b806323b872dd1161026a57806342842e0e116102235780634c261247116101fd5780634c2612471461074f5780634f6ccce71461077857806351830227146107b557806355f804b3146107e05761031a565b806342842e0e146106d457806342966c68146106fd57806344a0d68a146107265761031a565b806323b872dd146105a2578063281c506b146105cb5780632beab4b7146105f45780632f745c591461061d578063352a79ed1461065a5780633af32abf146106975761031a565b80630d1bc0eb116102d757806318160ddd116102b157806318160ddd146104e657806318cae269146105115780631dd02b4b1461054e578063239c70ae146105775761031a565b80630d1bc0eb146104555780630d381a281461047e57806313faede6146104bb5761031a565b806301ffc9a71461031f5780630580076a1461035c57806306fdde0314610399578063081812fc146103c4578063081c8c4414610401578063095ea7b31461042c575b600080fd5b34801561032b57600080fd5b5061034660048036038101906103419190613efc565b610cb5565b6040516103539190613f44565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613fbd565b610d2f565b6040516103909190613f44565b60405180910390f35b3480156103a557600080fd5b506103ae610ddd565b6040516103bb919061407a565b60405180910390f35b3480156103d057600080fd5b506103eb60048036038101906103e691906140d2565b610e6f565b6040516103f8919061410e565b60405180910390f35b34801561040d57600080fd5b50610416610eb5565b604051610423919061407a565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190614129565b610f43565b005b34801561046157600080fd5b5061047c60048036038101906104779190614195565b61105a565b005b34801561048a57600080fd5b506104a560048036038101906104a09190613fbd565b61107f565b6040516104b29190614280565b60405180910390f35b3480156104c757600080fd5b506104d061112d565b6040516104dd91906142b1565b60405180910390f35b3480156104f257600080fd5b506104fb611133565b60405161050891906142b1565b60405180910390f35b34801561051d57600080fd5b5061053860048036038101906105339190613fbd565b611140565b60405161054591906142b1565b60405180910390f35b34801561055a57600080fd5b5061057560048036038101906105709190614195565b611158565b005b34801561058357600080fd5b5061058c61117d565b60405161059991906142b1565b60405180910390f35b3480156105ae57600080fd5b506105c960048036038101906105c491906142cc565b611183565b005b3480156105d757600080fd5b506105f260048036038101906105ed9190613fbd565b6111e3565b005b34801561060057600080fd5b5061061b60048036038101906106169190614384565b61122f565b005b34801561062957600080fd5b50610644600480360381019061063f9190614129565b61125b565b60405161065191906142b1565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c91906140d2565b611300565b60405161068e919061410e565b60405180910390f35b3480156106a357600080fd5b506106be60048036038101906106b99190613fbd565b61133f565b6040516106cb9190613f44565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f691906142cc565b6113ed565b005b34801561070957600080fd5b50610724600480360381019061071f91906140d2565b61140d565b005b34801561073257600080fd5b5061074d600480360381019061074891906140d2565b61148f565b005b34801561075b57600080fd5b5061077660048036038101906107719190614501565b6114a1565b005b34801561078457600080fd5b5061079f600480360381019061079a91906140d2565b6114d0565b6040516107ac91906142b1565b60405180910390f35b3480156107c157600080fd5b506107ca611541565b6040516107d79190613f44565b60405180910390f35b3480156107ec57600080fd5b5061080760048036038101906108029190614501565b611554565b005b34801561081557600080fd5b5061081e61156f565b60405161082b9190613f44565b60405180910390f35b34801561084057600080fd5b5061085b600480360381019061085691906140d2565b611582565b604051610868919061410e565b60405180910390f35b34801561087d57600080fd5b50610886611608565b604051610893919061407a565b60405180910390f35b3480156108a857600080fd5b506108c360048036038101906108be9190613fbd565b611696565b6040516108d091906142b1565b60405180910390f35b3480156108e557600080fd5b506108ee61174d565b005b3480156108fc57600080fd5b5061091760048036038101906109129190613fbd565b611761565b005b34801561092557600080fd5b50610940600480360381019061093b91906140d2565b6117e5565b005b34801561094e57600080fd5b506109576117f7565b604051610964919061410e565b60405180910390f35b34801561097957600080fd5b50610982611821565b60405161098f919061407a565b60405180910390f35b3480156109a457600080fd5b506109ad6118b3565b6040516109ba9190613f44565b60405180910390f35b3480156109cf57600080fd5b506109d86118c6565b6040516109e59190613f44565b60405180910390f35b610a086004803603810190610a0391906140d2565b6118d9565b005b348015610a1657600080fd5b50610a316004803603810190610a2c919061454a565b611d1c565b005b348015610a3f57600080fd5b50610a5a6004803603810190610a55919061462b565b611d32565b005b348015610a6857600080fd5b50610a836004803603810190610a7e91906140d2565b611d94565b604051610a90919061410e565b60405180910390f35b348015610aa557600080fd5b50610aae611dd3565b604051610abb91906142b1565b60405180910390f35b348015610ad057600080fd5b50610aeb6004803603810190610ae69190614384565b611dd9565b005b348015610af957600080fd5b50610b02611e05565b604051610b0f919061407a565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a91906140d2565b611e93565b604051610b4c919061407a565b60405180910390f35b348015610b6157600080fd5b50610b7c6004803603810190610b7791906140d2565b611feb565b005b348015610b8a57600080fd5b50610b93611ffd565b604051610ba091906142b1565b60405180910390f35b348015610bb557600080fd5b50610bd06004803603810190610bcb9190614501565b612003565b005b348015610bde57600080fd5b50610bf96004803603810190610bf491906146ae565b61201e565b604051610c069190613f44565b60405180910390f35b348015610c1b57600080fd5b50610c366004803603810190610c319190614501565b6120b2565b005b348015610c4457600080fd5b50610c5f6004803603810190610c5a9190613fbd565b6120cd565b005b348015610c6d57600080fd5b50610c886004803603810190610c839190614195565b612150565b005b348015610c9657600080fd5b50610c9f612175565b604051610cac91906142b1565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d285750610d278261217b565b5b9050919050565b600080600090505b601580549050811015610dd2578273ffffffffffffffffffffffffffffffffffffffff1660158281548110610d6f57610d6e6146ee565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610dbf576001915050610dd8565b8080610dca9061474c565b915050610d37565b50600090505b919050565b606060008054610dec906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610e18906147c3565b8015610e655780601f10610e3a57610100808354040283529160200191610e65565b820191906000526020600020905b815481529060010190602001808311610e4857829003601f168201915b5050505050905090565b6000610e7a8261225d565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600e8054610ec2906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054610eee906147c3565b8015610f3b5780601f10610f1057610100808354040283529160200191610f3b565b820191906000526020600020905b815481529060010190602001808311610f1e57829003601f168201915b505050505081565b6000610f4e82611582565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590614866565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fdd6122a8565b73ffffffffffffffffffffffffffffffffffffffff16148061100c575061100b816110066122a8565b61201e565b5b61104b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611042906148f8565b60405180910390fd5b61105583836122b0565b505050565b611062612369565b80601360026101000a81548160ff02191690831515021790555050565b6060600061108c83611696565b905060008167ffffffffffffffff8111156110aa576110a96143d6565b5b6040519080825280602002602001820160405280156110d85781602001602082028036833780820191505090505b50905060005b82811015611122576110f0858261125b565b828281518110611103576111026146ee565b5b602002602001018181525050808061111a9061474c565b9150506110de565b508092505050919050565b600f5481565b6000600880549050905090565b60166020528060005260406000206000915090505481565b611160612369565b80601360036101000a81548160ff02191690831515021790555050565b60115481565b61119461118e6122a8565b826123e7565b6111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca9061498a565b60405180910390fd5b6111de83838361247c565b505050565b6111eb612369565b80601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611237612369565b601460006112459190613db2565b818160149190611256929190613dd3565b505050565b600061126683611696565b82106112a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129e90614a1c565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6015818154811061131057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600090505b6014805490508110156113e2578273ffffffffffffffffffffffffffffffffffffffff166014828154811061137f5761137e6146ee565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036113cf5760019150506113e8565b80806113da9061474c565b915050611347565b50600090505b919050565b61140883838360405180602001604052806000815250611d32565b505050565b61141681611582565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90614a88565b60405180910390fd5b61148c81612775565b50565b611497612369565b80600f8190555050565b6114a9612369565b6114b281611554565b6001601360016101000a81548160ff02191690831515021790555050565b60006114da611133565b821061151b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151290614b1a565b60405180910390fd5b6008828154811061152f5761152e6146ee565b5b90600052602060002001549050919050565b601360019054906101000a900460ff1681565b61155c612369565b80600b908161156b9190614ce6565b5050565b601360009054906101000a900460ff1681565b60008061158e836128c3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f690614e04565b60405180910390fd5b80915050919050565b600b8054611615906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611641906147c3565b801561168e5780601f106116635761010080835404028352916020019161168e565b820191906000526020600020905b81548152906001019060200180831161167157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fd90614e96565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611755612369565b61175f6000612900565b565b611769612369565b601660008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906117b99061474c565b9190505550600d60008154809291906117d19061474c565b91905055506117e281600d546129c6565b50565b6117ed612369565b8060118190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611830906147c3565b80601f016020809104026020016040519081016040528092919081815260200182805461185c906147c3565b80156118a95780601f1061187e576101008083540402835291602001916118a9565b820191906000526020600020905b81548152906001019060200180831161188c57829003601f168201915b5050505050905090565b601360029054906101000a900460ff1681565b601360039054906101000a900460ff1681565b6000811161191c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191390614f02565b60405180910390fd5b601154811115611961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195890614f94565b60405180910390fd5b60105481600d546119729190614fb4565b11156119b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119aa90615034565b60405180910390fd5b6119bb6117f7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611c7e57601360009054906101000a900460ff1615611a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a34906150a0565b60405180910390fd5b6106f4811115611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a799061510c565b60405180910390fd5b60011515601360029054906101000a900460ff16151503611b7b57611aa633610d2f565b611ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adc90615178565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548282611b389190614fb4565b1115611b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b70906151e4565b60405180910390fd5b505b60011515601360039054906101000a900460ff16151503611c7457611b9f3361133f565b611bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd590615250565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506012548282611c319190614fb4565b1115611c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c69906151e4565b60405180910390fd5b505b611c7d816129e4565b5b6000600190505b818111611d1857601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611cdc9061474c565b9190505550600d6000815480929190611cf49061474c565b9190505550611d0533600d546129c6565b8080611d109061474c565b915050611c85565b5050565b611d2e611d276122a8565b8383612a8a565b5050565b611d43611d3d6122a8565b836123e7565b611d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d799061498a565b60405180910390fd5b611d8e84848484612bf6565b50505050565b60148181548110611da457600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60125481565b611de1612369565b60156000611def9190613db2565b818160159190611e00929190613dd3565b505050565b600c8054611e12906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611e3e906147c3565b8015611e8b5780601f10611e6057610100808354040283529160200191611e8b565b820191906000526020600020905b815481529060010190602001808311611e6e57829003601f168201915b505050505081565b6060611e9e82612c52565b611edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed4906152e2565b60405180910390fd5b60001515601360019054906101000a900460ff16151503611f8a57600e8054611f05906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054611f31906147c3565b8015611f7e5780601f10611f5357610100808354040283529160200191611f7e565b820191906000526020600020905b815481529060010190602001808311611f6157829003601f168201915b50505050509050611fe6565b6000611f94612c93565b90506000815111611fb45760405180602001604052806000815250611fe2565b80611fbe84612d25565b600c604051602001611fd2939291906153c1565b6040516020818303038152906040525b9150505b919050565b611ff3612369565b8060128190555050565b60105481565b61200b612369565b80600c908161201a9190614ce6565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6120ba612369565b80600e90816120c99190614ce6565b5050565b6120d5612369565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213b90615464565b60405180910390fd5b61214d81612900565b50565b612158612369565b80601360006101000a81548160ff02191690831515021790555050565b600d5481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061224657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612256575061225582612df3565b5b9050919050565b61226681612c52565b6122a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229c90614e04565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661232383611582565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6123716122a8565b73ffffffffffffffffffffffffffffffffffffffff1661238f6117f7565b73ffffffffffffffffffffffffffffffffffffffff16146123e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dc906154d0565b60405180910390fd5b565b6000806123f383611582565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124355750612434818561201e565b5b8061247357508373ffffffffffffffffffffffffffffffffffffffff1661245b84610e6f565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661249c82611582565b73ffffffffffffffffffffffffffffffffffffffff16146124f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e990615562565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612561576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612558906155f4565b60405180910390fd5b61256e8383836001612e5d565b8273ffffffffffffffffffffffffffffffffffffffff1661258e82611582565b73ffffffffffffffffffffffffffffffffffffffff16146125e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125db90615562565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127708383836001612fbb565b505050565b600061278082611582565b9050612790816000846001612e5d565b61279982611582565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128bf816000846001612fbb565b5050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129e0828260405180602001604052806000815250612fc1565b5050565b6000600f540315612a87576000600f54826129ff9190615614565b9050803414612a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3a906156a2565b60405180910390fd5b612a8573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168461301c565b505b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612af8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aef9061570e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612be99190613f44565b60405180910390a3505050565b612c0184848461247c565b612c0d8484848461308f565b612c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c43906157a0565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16612c74836128c3565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b8054612ca2906147c3565b80601f0160208091040260200160405190810160405280929190818152602001828054612cce906147c3565b8015612d1b5780601f10612cf057610100808354040283529160200191612d1b565b820191906000526020600020905b815481529060010190602001808311612cfe57829003601f168201915b5050505050905090565b606060006001612d3484613216565b01905060008167ffffffffffffffff811115612d5357612d526143d6565b5b6040519080825280601f01601f191660200182016040528015612d855781602001600182028036833780820191505090505b509050600082602001820190505b600115612de8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612ddc57612ddb6157c0565b5b04945060008503612d93575b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612e6984848484613369565b6001811115612ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ea490615861565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612ef457612eef8161336f565b612f33565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614612f3257612f3185826133b8565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612f7557612f7081613525565b612fb4565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612fb357612fb284826135f6565b5b5b5050505050565b50505050565b612fcb8383613675565b612fd8600084848461308f565b613017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161300e906157a0565b60405180910390fd5b505050565b60008103156130895773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361307b576130768282613892565b613088565b61308784848484613943565b5b5b50505050565b60006130b08473ffffffffffffffffffffffffffffffffffffffff16613a0f565b15613209578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d96122a8565b8786866040518563ffffffff1660e01b81526004016130fb94939291906158d6565b6020604051808303816000875af192505050801561313757506040513d601f19601f820116820180604052508101906131349190615937565b60015b6131b9573d8060008114613167576040519150601f19603f3d011682016040523d82523d6000602084013e61316c565b606091505b5060008151036131b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131a8906157a0565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061320e565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613274577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161326a576132696157c0565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106132b1576d04ee2d6d415b85acef810000000083816132a7576132a66157c0565b5b0492506020810190505b662386f26fc1000083106132e057662386f26fc1000083816132d6576132d56157c0565b5b0492506010810190505b6305f5e1008310613309576305f5e10083816132ff576132fe6157c0565b5b0492506008810190505b612710831061332e576127108381613324576133236157c0565b5b0492506004810190505b606483106133515760648381613347576133466157c0565b5b0492506002810190505b600a8310613360576001810190505b80915050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133c584611696565b6133cf9190615964565b90506000600760008481526020019081526020016000205490508181146134b4576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506135399190615964565b9050600060096000848152602001908152602001600020549050600060088381548110613569576135686146ee565b5b90600052602060002001549050806008838154811061358b5761358a6146ee565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806135da576135d9615998565b5b6001900381819060005260206000200160009055905550505050565b600061360183611696565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136db90615a13565b60405180910390fd5b6136ed81612c52565b1561372d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372490615a7f565b60405180910390fd5b61373b600083836001612e5d565b61374481612c52565b15613784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377b90615a7f565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461388e600083836001612fbb565b5050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516138b890615ad0565b60006040518083038185875af1925050503d80600081146138f5576040519150601f19603f3d011682016040523d82523d6000602084013e6138fa565b606091505b505090508061393e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161393590615b31565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160315613a09573073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036139da576139d582828673ffffffffffffffffffffffffffffffffffffffff16613a329092919063ffffffff16565b613a08565b613a078383838773ffffffffffffffffffffffffffffffffffffffff16613ab8909392919063ffffffff16565b5b5b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b613ab38363a9059cbb60e01b8484604051602401613a51929190615b51565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613b41565b505050565b613b3b846323b872dd60e01b858585604051602401613ad993929190615b7a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613b41565b50505050565b6000613ba3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613c089092919063ffffffff16565b9050600081511115613c035780806020019051810190613bc39190615bc6565b613c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf990615c65565b60405180910390fd5b5b505050565b6060613c178484600085613c20565b90509392505050565b606082471015613c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5c90615cf7565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613c8e9190615d48565b60006040518083038185875af1925050503d8060008114613ccb576040519150601f19603f3d011682016040523d82523d6000602084013e613cd0565b606091505b5091509150613ce187838387613ced565b92505050949350505050565b60608315613d4f576000835103613d4757613d0785613a0f565b613d46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3d90615dab565b60405180910390fd5b5b829050613d5a565b613d598383613d62565b5b949350505050565b600082511115613d755781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613da9919061407a565b60405180910390fd5b5080546000825590600052602060002090810190613dd09190613e73565b50565b828054828255906000526020600020908101928215613e62579160200282015b82811115613e6157823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613df3565b5b509050613e6f9190613e73565b5090565b5b80821115613e8c576000816000905550600101613e74565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ed981613ea4565b8114613ee457600080fd5b50565b600081359050613ef681613ed0565b92915050565b600060208284031215613f1257613f11613e9a565b5b6000613f2084828501613ee7565b91505092915050565b60008115159050919050565b613f3e81613f29565b82525050565b6000602082019050613f596000830184613f35565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613f8a82613f5f565b9050919050565b613f9a81613f7f565b8114613fa557600080fd5b50565b600081359050613fb781613f91565b92915050565b600060208284031215613fd357613fd2613e9a565b5b6000613fe184828501613fa8565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614024578082015181840152602081019050614009565b60008484015250505050565b6000601f19601f8301169050919050565b600061404c82613fea565b6140568185613ff5565b9350614066818560208601614006565b61406f81614030565b840191505092915050565b600060208201905081810360008301526140948184614041565b905092915050565b6000819050919050565b6140af8161409c565b81146140ba57600080fd5b50565b6000813590506140cc816140a6565b92915050565b6000602082840312156140e8576140e7613e9a565b5b60006140f6848285016140bd565b91505092915050565b61410881613f7f565b82525050565b600060208201905061412360008301846140ff565b92915050565b600080604083850312156141405761413f613e9a565b5b600061414e85828601613fa8565b925050602061415f858286016140bd565b9150509250929050565b61417281613f29565b811461417d57600080fd5b50565b60008135905061418f81614169565b92915050565b6000602082840312156141ab576141aa613e9a565b5b60006141b984828501614180565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6141f78161409c565b82525050565b600061420983836141ee565b60208301905092915050565b6000602082019050919050565b600061422d826141c2565b61423781856141cd565b9350614242836141de565b8060005b8381101561427357815161425a88826141fd565b975061426583614215565b925050600181019050614246565b5085935050505092915050565b6000602082019050818103600083015261429a8184614222565b905092915050565b6142ab8161409c565b82525050565b60006020820190506142c660008301846142a2565b92915050565b6000806000606084860312156142e5576142e4613e9a565b5b60006142f386828701613fa8565b935050602061430486828701613fa8565b9250506040614315868287016140bd565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126143445761434361431f565b5b8235905067ffffffffffffffff81111561436157614360614324565b5b60208301915083602082028301111561437d5761437c614329565b5b9250929050565b6000806020838503121561439b5761439a613e9a565b5b600083013567ffffffffffffffff8111156143b9576143b8613e9f565b5b6143c58582860161432e565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61440e82614030565b810181811067ffffffffffffffff8211171561442d5761442c6143d6565b5b80604052505050565b6000614440613e90565b905061444c8282614405565b919050565b600067ffffffffffffffff82111561446c5761446b6143d6565b5b61447582614030565b9050602081019050919050565b82818337600083830152505050565b60006144a461449f84614451565b614436565b9050828152602081018484840111156144c0576144bf6143d1565b5b6144cb848285614482565b509392505050565b600082601f8301126144e8576144e761431f565b5b81356144f8848260208601614491565b91505092915050565b60006020828403121561451757614516613e9a565b5b600082013567ffffffffffffffff81111561453557614534613e9f565b5b614541848285016144d3565b91505092915050565b6000806040838503121561456157614560613e9a565b5b600061456f85828601613fa8565b925050602061458085828601614180565b9150509250929050565b600067ffffffffffffffff8211156145a5576145a46143d6565b5b6145ae82614030565b9050602081019050919050565b60006145ce6145c98461458a565b614436565b9050828152602081018484840111156145ea576145e96143d1565b5b6145f5848285614482565b509392505050565b600082601f8301126146125761461161431f565b5b81356146228482602086016145bb565b91505092915050565b6000806000806080858703121561464557614644613e9a565b5b600061465387828801613fa8565b945050602061466487828801613fa8565b9350506040614675878288016140bd565b925050606085013567ffffffffffffffff81111561469657614695613e9f565b5b6146a2878288016145fd565b91505092959194509250565b600080604083850312156146c5576146c4613e9a565b5b60006146d385828601613fa8565b92505060206146e485828601613fa8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147578261409c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147895761478861471d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147db57607f821691505b6020821081036147ee576147ed614794565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614850602183613ff5565b915061485b826147f4565b604082019050919050565b6000602082019050818103600083015261487f81614843565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006148e2603d83613ff5565b91506148ed82614886565b604082019050919050565b60006020820190508181036000830152614911816148d5565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000614974602d83613ff5565b915061497f82614918565b604082019050919050565b600060208201905081810360008301526149a381614967565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614a06602b83613ff5565b9150614a11826149aa565b604082019050919050565b60006020820190508181036000830152614a35816149f9565b9050919050565b7f7573657220646f6e74206f776e206e6674000000000000000000000000000000600082015250565b6000614a72601183613ff5565b9150614a7d82614a3c565b602082019050919050565b60006020820190508181036000830152614aa181614a65565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614b04602c83613ff5565b9150614b0f82614aa8565b604082019050919050565b60006020820190508181036000830152614b3381614af7565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b9c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b5f565b614ba68683614b5f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614be3614bde614bd98461409c565b614bbe565b61409c565b9050919050565b6000819050919050565b614bfd83614bc8565b614c11614c0982614bea565b848454614b6c565b825550505050565b600090565b614c26614c19565b614c31818484614bf4565b505050565b5b81811015614c5557614c4a600082614c1e565b600181019050614c37565b5050565b601f821115614c9a57614c6b81614b3a565b614c7484614b4f565b81016020851015614c83578190505b614c97614c8f85614b4f565b830182614c36565b50505b505050565b600082821c905092915050565b6000614cbd60001984600802614c9f565b1980831691505092915050565b6000614cd68383614cac565b9150826002028217905092915050565b614cef82613fea565b67ffffffffffffffff811115614d0857614d076143d6565b5b614d1282546147c3565b614d1d828285614c59565b600060209050601f831160018114614d505760008415614d3e578287015190505b614d488582614cca565b865550614db0565b601f198416614d5e86614b3a565b60005b82811015614d8657848901518255600182019150602085019450602081019050614d61565b86831015614da35784890151614d9f601f891682614cac565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614dee601883613ff5565b9150614df982614db8565b602082019050919050565b60006020820190508181036000830152614e1d81614de1565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614e80602983613ff5565b9150614e8b82614e24565b604082019050919050565b60006020820190508181036000830152614eaf81614e73565b9050919050565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b6000614eec601b83613ff5565b9150614ef782614eb6565b602082019050919050565b60006020820190508181036000830152614f1b81614edf565b9050919050565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560008201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b6000614f7e602483613ff5565b9150614f8982614f22565b604082019050919050565b60006020820190508181036000830152614fad81614f71565b9050919050565b6000614fbf8261409c565b9150614fca8361409c565b9250828201905080821115614fe257614fe161471d565b5b92915050565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b600061501e601683613ff5565b915061502982614fe8565b602082019050919050565b6000602082019050818103600083015261504d81615011565b9050919050565b7f6d696e7420697320706175736564000000000000000000000000000000000000600082015250565b600061508a600e83613ff5565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f4f6e6c792061646d696e2063616e206d696e7421000000000000000000000000600082015250565b60006150f6601483613ff5565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b9050919050565b7f75736572206973206e6f74204f476c6973746564000000000000000000000000600082015250565b6000615162601483613ff5565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b60006151ce601c83613ff5565b91506151d982615198565b602082019050919050565b600060208201905081810360008301526151fd816151c1565b9050919050565b7f75736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b600061523a601783613ff5565b915061524582615204565b602082019050919050565b600060208201905081810360008301526152698161522d565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006152cc602f83613ff5565b91506152d782615270565b604082019050919050565b600060208201905081810360008301526152fb816152bf565b9050919050565b600081905092915050565b600061531882613fea565b6153228185615302565b9350615332818560208601614006565b80840191505092915050565b6000815461534b816147c3565b6153558186615302565b945060018216600081146153705760018114615385576153b8565b60ff19831686528115158202860193506153b8565b61538e85614b3a565b60005b838110156153b057815481890152600182019150602081019050615391565b838801955050505b50505092915050565b60006153cd828661530d565b91506153d9828561530d565b91506153e5828461533e565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061544e602683613ff5565b9150615459826153f2565b604082019050919050565b6000602082019050818103600083015261547d81615441565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154ba602083613ff5565b91506154c582615484565b602082019050919050565b600060208201905081810360008301526154e9816154ad565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061554c602583613ff5565b9150615557826154f0565b604082019050919050565b6000602082019050818103600083015261557b8161553f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006155de602483613ff5565b91506155e982615582565b604082019050919050565b6000602082019050818103600083015261560d816155d1565b9050919050565b600061561f8261409c565b915061562a8361409c565b92508282026156388161409c565b9150828204841483151761564f5761564e61471d565b5b5092915050565b7f4d7573742073656e6420746f74616c2070726963652e00000000000000000000600082015250565b600061568c601683613ff5565b915061569782615656565b602082019050919050565b600060208201905081810360008301526156bb8161567f565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006156f8601983613ff5565b9150615703826156c2565b602082019050919050565b60006020820190508181036000830152615727816156eb565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061578a603283613ff5565b91506157958261572e565b604082019050919050565b600060208201905081810360008301526157b98161577d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b600061584b603583613ff5565b9150615856826157ef565b604082019050919050565b6000602082019050818103600083015261587a8161583e565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006158a882615881565b6158b2818561588c565b93506158c2818560208601614006565b6158cb81614030565b840191505092915050565b60006080820190506158eb60008301876140ff565b6158f860208301866140ff565b61590560408301856142a2565b8181036060830152615917818461589d565b905095945050505050565b60008151905061593181613ed0565b92915050565b60006020828403121561594d5761594c613e9a565b5b600061595b84828501615922565b91505092915050565b600061596f8261409c565b915061597a8361409c565b92508282039050818111156159925761599161471d565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006159fd602083613ff5565b9150615a08826159c7565b602082019050919050565b60006020820190508181036000830152615a2c816159f0565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615a69601c83613ff5565b9150615a7482615a33565b602082019050919050565b60006020820190508181036000830152615a9881615a5c565b9050919050565b600081905092915050565b50565b6000615aba600083615a9f565b9150615ac582615aaa565b600082019050919050565b6000615adb82615aad565b9150819050919050565b7f6e617469766520746f6b656e207472616e73666572206661696c656400000000600082015250565b6000615b1b601c83613ff5565b9150615b2682615ae5565b602082019050919050565b60006020820190508181036000830152615b4a81615b0e565b9050919050565b6000604082019050615b6660008301856140ff565b615b7360208301846142a2565b9392505050565b6000606082019050615b8f60008301866140ff565b615b9c60208301856140ff565b615ba960408301846142a2565b949350505050565b600081519050615bc081614169565b92915050565b600060208284031215615bdc57615bdb613e9a565b5b6000615bea84828501615bb1565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615c4f602a83613ff5565b9150615c5a82615bf3565b604082019050919050565b60006020820190508181036000830152615c7e81615c42565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615ce1602683613ff5565b9150615cec82615c85565b604082019050919050565b60006020820190508181036000830152615d1081615cd4565b9050919050565b6000615d2282615881565b615d2c8185615a9f565b9350615d3c818560208601614006565b80840191505092915050565b6000615d548284615d17565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615d95601d83613ff5565b9150615da082615d5f565b602082019050919050565b60006020820190508181036000830152615dc481615d88565b905091905056fea264697066735822122061eff8bc8bae8d7ea123e748c08e0b4ada9805c49f53637aab7b414c29be856564736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000005d04e5807b0afa777545f7c4299266a1e6319bc50000000000000000000000000000000000000000000000000000000000000007426f78626965730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036278620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f697066732e696f2f697066732f6261666b726569627763726f6e743773697571707a73766f366475376a776967323377696d78656f7a6c786b6173636570776774723432786f666100000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Boxbies
Arg [1] : _symbol (string): bxb
Arg [2] : _initNotRevealedUri (string): https://ipfs.io/ipfs/bafkreibwcront7siuqpzsvo6du7jwig23wimxeozlxkascepwgtr42xofa
Arg [3] : _primarySaleRecipient (address): 0x5d04e5807b0aFa777545F7c4299266a1e6319bc5
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000005d04e5807b0afa777545f7c4299266a1e6319bc5
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 426f786269657300000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 6278620000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [9] : 68747470733a2f2f697066732e696f2f697066732f6261666b72656962776372
Arg [10] : 6f6e743773697571707a73766f366475376a776967323377696d78656f7a6c78
Arg [11] : 6b6173636570776774723432786f666100000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.