Polygon Sponsored slots available. Book your slot here!
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,308 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 70406057 | 5 days ago | IN | 0 POL | 0.00139893 | ||||
Set Approval For... | 70127609 | 12 days ago | IN | 0 POL | 0.00139893 | ||||
Set Approval For... | 69843882 | 19 days ago | IN | 0 POL | 0.00150774 | ||||
Safe Transfer Fr... | 69843704 | 19 days ago | IN | 0 POL | 0.00138195 | ||||
Safe Transfer Fr... | 69843704 | 19 days ago | IN | 0 POL | 0.00386878 | ||||
Set Approval For... | 69811613 | 20 days ago | IN | 0 POL | 0.00273766 | ||||
Set Approval For... | 69753452 | 22 days ago | IN | 0 POL | 0.00139893 | ||||
Set Approval For... | 69689556 | 23 days ago | IN | 0 POL | 0.00155791 | ||||
Set Approval For... | 69689545 | 23 days ago | IN | 0 POL | 0.00277942 | ||||
Set Approval For... | 69381303 | 31 days ago | IN | 0 POL | 0.00133364 | ||||
Safe Transfer Fr... | 69377988 | 31 days ago | IN | 0 POL | 0.00836499 | ||||
Set Approval For... | 69087908 | 38 days ago | IN | 0 POL | 0.00151531 | ||||
Set Approval For... | 69030288 | 40 days ago | IN | 0 POL | 0.00139893 | ||||
Set Approval For... | 68996298 | 40 days ago | IN | 0 POL | 0.00139893 | ||||
Safe Transfer Fr... | 68302625 | 58 days ago | IN | 0 POL | 0.00263255 | ||||
Set Approval For... | 68237010 | 59 days ago | IN | 0 POL | 0.00565957 | ||||
Safe Transfer Fr... | 68234442 | 59 days ago | IN | 0 POL | 0.01005798 | ||||
Safe Transfer Fr... | 68233683 | 59 days ago | IN | 0 POL | 0.00794164 | ||||
Set Approval For... | 68198059 | 60 days ago | IN | 0 POL | 0.01412071 | ||||
Set Approval For... | 68052858 | 64 days ago | IN | 0 POL | 0.00139893 | ||||
Set Approval For... | 68052624 | 64 days ago | IN | 0 POL | 0.00070281 | ||||
Set Approval For... | 68052624 | 64 days ago | IN | 0 POL | 0.00070281 | ||||
Set Approval For... | 68052624 | 64 days ago | IN | 0 POL | 0.00070281 | ||||
Set Approval For... | 68052624 | 64 days ago | IN | 0 POL | 0.00070281 | ||||
Set Approval For... | 68052624 | 64 days ago | IN | 0 POL | 0.00070281 |
Loading...
Loading
Contract Name:
GenesisEthernals
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./IFunctionInterface.sol"; contract GenesisEthernals is ERC721, IERC2981, ERC721Enumerable, ERC721Burnable, Pausable, Ownable, DefaultOperatorFilterer, ReentrancyGuard { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; event Mint(uint256 _tokenId, address sender, uint256 amount); address private helper; uint256 public price; uint256 public price2; uint256 public maxSupply; mapping(address => uint256) public addressMinted; string public customBaseURI; uint256 private counterStart; constructor( string memory customBaseURI_, address _helper, uint256 _counter ) ERC721("Aether Games Genesis Ethernals", "AGGEN") { customBaseURI = customBaseURI_; helper = _helper; _tokenIdCounter = Counters.Counter(_counter); counterStart = _counter; _royaltyAmount = 500; maxSupply = 3000; price = 275000; price2 = 180000; _pause(); } /** MINTING **/ function devMint(uint256 amount) public onlyOwner { require(totalSupply() + amount <= maxSupply, "Amount exceeds supply."); for (uint256 i = 0; i < amount; i++) { _mint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); } } function bridgeAirdrop( address[] memory addresses, uint256[] memory tokenIds ) public onlyOwner { require( addresses.length == tokenIds.length, "Address and tokenIds length must be the same." ); for (uint256 i = 0; i < addresses.length; i++) { require(!_exists(tokenIds[i]), "Token already minted."); require(tokenIds[i] < counterStart, "TokenId not in range."); _mint(addresses[i], tokenIds[i]); addressMinted[addresses[i]]++; } } function airdrop(address[] memory addresses) public onlyOwner { require( totalSupply() + addresses.length <= maxSupply, "Amount exceeds supply." ); for (uint256 i = 0; i < addresses.length; i++) { _mint(addresses[i], _tokenIdCounter.current()); _tokenIdCounter.increment(); addressMinted[addresses[i]]++; } } function mint( address _paymentTokenAddress ) public payable whenNotPaused nonReentrant { require(totalSupply() < maxSupply, "Amount exceeds supply."); FunctionInterface(helper).purchaseWithToken( addressMinted[msg.sender] < 1 ? price : price2, _paymentTokenAddress, msg.sender ); _mint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); addressMinted[msg.sender]++; emit Mint(_tokenIdCounter.current(), msg.sender, 1); } /** ACTIVATION **/ function pauseToggle() public onlyOwner { if (paused()) { _unpause(); } else { _pause(); } } /** URI HANDLING **/ function setBaseURI(string memory customBaseURI_) external onlyOwner { customBaseURI = customBaseURI_; } function _baseURI() internal view virtual override returns (string memory) { return customBaseURI; } function tokenURI( uint256 tokenId ) public view override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); return bytes(customBaseURI).length > 0 ? string(abi.encodePacked(customBaseURI, Strings.toString(tokenId))) : ""; } /** SETTERS */ function setHelper(address _helper) external onlyOwner { helper = _helper; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function setPrice2(uint256 _price) external onlyOwner { price2 = _price; } /** GETTERS **/ function getPrice() external view returns (uint256) { return price; } function getPrice2() external view returns (uint256) { return price2; } /** ROYALTIES **/ uint256 public _royaltyAmount; function setRoyaltyAmount(uint256 _amount) external onlyOwner { _royaltyAmount = _amount; } function royaltyInfo( uint256, uint256 salePrice ) external view override returns (address receiver, uint256 royaltyAmount) { return (owner(), (salePrice * _royaltyAmount) / 10000); } /** WITHDRAW **/ function withdraw() public onlyOwner { require(address(this).balance > 0, "Balance is zero"); payable(owner()).transfer(address(this).balance); } function withdrawERC20(address _tokenAddress) public onlyOwner { require(_tokenAddress != address(0), "Invalid token address"); FunctionInterface(_tokenAddress).transfer( msg.sender, AEGInterface(_tokenAddress).balanceOf(address(this)) ); } /** OVERRIDES **/ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface( bytes4 interfaceId ) public view override(ERC721, IERC165, ERC721Enumerable) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 = _owners[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 nor 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 nor 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 nor 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 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 _owners[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); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @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); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @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. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); 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.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// 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.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @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/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// 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.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.0; import "./Library.sol"; interface AEGInterface { function balanceOf(address) external view returns (uint256); function transferFrom(address, address, uint256) external; } interface NftInterface { function adminMint( address _to, uint256 _type, uint256 _level, uint256 _amount, bool _sb ) external; function ownerOf(uint256) external view returns (address); function totalTypes() external view returns (uint256); } interface CardInterface { function packMint(address, uint256[] memory, bool) external; function promoTypes() external view returns (uint256[] memory); function getRarityToCardTypes( Library.Rarity ) external view returns (uint256[] memory); } interface FunctionInterface { function fpMint(address, uint256, uint256) external; function burn(uint256) external; function totalTokens() external view returns (uint256); function transfer(address, uint256) external; function decimals() external view returns (uint8); function purchaseWithToken(uint256, address, address) external; function trim( uint256, uint256[] memory ) external pure returns (uint256[] memory); function burn(address, uint256, uint256) external; function balanceOf(address, uint256) external view returns (uint256); }
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.0; library Library { enum Rarity { Basic, Common, Uncommon, Rare, Epic, Legendary } // struct Card { // uint256 id; // uint256 mintCount; // uint256 burnCount; // uint256 season; // string uri; // Rarity rarity; // bool paused; // bool exists; // bool isPromo; // } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"},{"internalType":"address","name":"_helper","type":"address"},{"internalType":"uint256","name":"_counter","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_royaltyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"bridgeAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"customBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_paymentTokenAddress","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseToggle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_helper","type":"address"}],"name":"setHelper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setRoyaltyAmount","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162005b9a38038062005b9a8339818101604052810190620000379190620007b3565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601e81526020017f4165746865722047616d65732047656e657369732045746865726e616c7300008152506040518060400160405280600581526020017f414747454e0000000000000000000000000000000000000000000000000000008152508160009081620000cb919062000a6f565b508060019081620000dd919062000a6f565b5050506000600a60006101000a81548160ff0219169083151502179055506200011b6200010f620003d160201b60201c565b620003d960201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111562000310578015620001d6576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200019c92919062000b67565b600060405180830381600087803b158015620001b757600080fd5b505af1158015620001cc573d6000803e3d6000fd5b505050506200030f565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000290576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200025692919062000b67565b600060405180830381600087803b1580156200027157600080fd5b505af115801562000286573d6000803e3d6000fd5b505050506200030e565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002d9919062000b94565b600060405180830381600087803b158015620002f457600080fd5b505af115801562000309573d6000803e3d6000fd5b505050505b5b5b50506001600b8190555082601290816200032b919062000a6f565b5081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806020016040528082815250600c60008201518160000155905050806013819055506101f4601481905550610bb860108190555062043238600e819055506202bf20600f81905550620003c86200049f60201b60201c565b50505062000c34565b600033905090565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004af6200051460201b60201c565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004fb620003d160201b60201c565b6040516200050a919062000b94565b60405180910390a1565b620005246200056960201b60201c565b1562000567576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200055e9062000c12565b60405180910390fd5b565b6000600a60009054906101000a900460ff16905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005e9826200059e565b810181811067ffffffffffffffff821117156200060b576200060a620005af565b5b80604052505050565b60006200062062000580565b90506200062e8282620005de565b919050565b600067ffffffffffffffff821115620006515762000650620005af565b5b6200065c826200059e565b9050602081019050919050565b60005b83811015620006895780820151818401526020810190506200066c565b60008484015250505050565b6000620006ac620006a68462000633565b62000614565b905082815260208101848484011115620006cb57620006ca62000599565b5b620006d884828562000669565b509392505050565b600082601f830112620006f857620006f762000594565b5b81516200070a84826020860162000695565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007408262000713565b9050919050565b620007528162000733565b81146200075e57600080fd5b50565b600081519050620007728162000747565b92915050565b6000819050919050565b6200078d8162000778565b81146200079957600080fd5b50565b600081519050620007ad8162000782565b92915050565b600080600060608486031215620007cf57620007ce6200058a565b5b600084015167ffffffffffffffff811115620007f057620007ef6200058f565b5b620007fe86828701620006e0565b9350506020620008118682870162000761565b925050604062000824868287016200079c565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200088157607f821691505b60208210810362000897576200089662000839565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620009017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620008c2565b6200090d8683620008c2565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620009506200094a620009448462000778565b62000925565b62000778565b9050919050565b6000819050919050565b6200096c836200092f565b620009846200097b8262000957565b848454620008cf565b825550505050565b600090565b6200099b6200098c565b620009a881848462000961565b505050565b5b81811015620009d057620009c460008262000991565b600181019050620009ae565b5050565b601f82111562000a1f57620009e9816200089d565b620009f484620008b2565b8101602085101562000a04578190505b62000a1c62000a1385620008b2565b830182620009ad565b50505b505050565b600082821c905092915050565b600062000a446000198460080262000a24565b1980831691505092915050565b600062000a5f838362000a31565b9150826002028217905092915050565b62000a7a826200082e565b67ffffffffffffffff81111562000a965762000a95620005af565b5b62000aa2825462000868565b62000aaf828285620009d4565b600060209050601f83116001811462000ae7576000841562000ad2578287015190505b62000ade858262000a51565b86555062000b4e565b601f19841662000af7866200089d565b60005b8281101562000b215784890151825560018201915060208501945060208101905062000afa565b8683101562000b41578489015162000b3d601f89168262000a31565b8355505b6001600288020188555050505b505050505050565b62000b618162000733565b82525050565b600060408201905062000b7e600083018562000b56565b62000b8d602083018462000b56565b9392505050565b600060208201905062000bab600083018462000b56565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000bfa60108362000bb1565b915062000c078262000bc2565b602082019050919050565b6000602082019050818103600083015262000c2d8162000beb565b9050919050565b614f568062000c446000396000f3fe60806040526004361061025c5760003560e01c80636a6278421161014457806398d5fdca116100b6578063ccf27a4e1161007a578063ccf27a4e146108c4578063d5abeb01146108ed578063e985e9c514610918578063f2fde38b14610955578063f4f3b2001461097e578063fa30297e146109a75761025c565b806398d5fdca146107df578063a035b1fe1461080a578063a22cb46514610835578063b88d4fde1461085e578063c87b56dd146108875761025c565b8063834307d911610108578063834307d9146106f5578063889a3f191461070c5780638da5cb5b1461073757806391b7f5ed1461076257806395d89b411461078b578063986ccc7f146107b65761025c565b80636a6278421461063357806370a082311461064f578063715018a61461068c578063729ad39e146106a357806377176026146106cc5761025c565b8063375a069a116101dd5780634f07de09116101a15780634f07de09146105115780634f6ccce71461053a57806355f804b3146105775780635c975abb146105a05780636352211e146105cb57806369b53824146106085761025c565b8063375a069a146104545780633ccfd60b1461047d57806341f434341461049457806342842e0e146104bf57806342966c68146104e85761025c565b806323b872dd1161022457806323b872dd1461035a5780632464e15d1461038357806327a3181d146103ae5780632a55205a146103d95780632f745c59146104175761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b31461030657806318160ddd1461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906131f6565b6109e4565b604051610295919061323e565b60405180910390f35b3480156102aa57600080fd5b506102b3610a5e565b6040516102c091906132e9565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613341565b610af0565b6040516102fd91906133af565b60405180910390f35b34801561031257600080fd5b5061032d600480360381019061032891906133f6565b610b36565b005b34801561033b57600080fd5b50610344610c4d565b6040516103519190613445565b60405180910390f35b34801561036657600080fd5b50610381600480360381019061037c9190613460565b610c5a565b005b34801561038f57600080fd5b50610398610cba565b6040516103a59190613445565b60405180910390f35b3480156103ba57600080fd5b506103c3610cc4565b6040516103d09190613445565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb91906134b3565b610cca565b60405161040e9291906134f3565b60405180910390f35b34801561042357600080fd5b5061043e600480360381019061043991906133f6565b610cfb565b60405161044b9190613445565b60405180910390f35b34801561046057600080fd5b5061047b60048036038101906104769190613341565b610da0565b005b34801561048957600080fd5b50610492610e3e565b005b3480156104a057600080fd5b506104a9610ed9565b6040516104b6919061357b565b60405180910390f35b3480156104cb57600080fd5b506104e660048036038101906104e19190613460565b610eeb565b005b3480156104f457600080fd5b5061050f600480360381019061050a9190613341565b610f0b565b005b34801561051d57600080fd5b5061053860048036038101906105339190613341565b610f67565b005b34801561054657600080fd5b50610561600480360381019061055c9190613341565b610f79565b60405161056e9190613445565b60405180910390f35b34801561058357600080fd5b5061059e600480360381019061059991906136cb565b610fea565b005b3480156105ac57600080fd5b506105b5611005565b6040516105c2919061323e565b60405180910390f35b3480156105d757600080fd5b506105f260048036038101906105ed9190613341565b61101c565b6040516105ff91906133af565b60405180910390f35b34801561061457600080fd5b5061061d6110cd565b60405161062a9190613445565b60405180910390f35b61064d60048036038101906106489190613714565b6110d3565b005b34801561065b57600080fd5b5061067660048036038101906106719190613714565b611318565b6040516106839190613445565b60405180910390f35b34801561069857600080fd5b506106a16113cf565b005b3480156106af57600080fd5b506106ca60048036038101906106c59190613809565b6113e3565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190613915565b61150c565b005b34801561070157600080fd5b5061070a6116ea565b005b34801561071857600080fd5b50610721611717565b60405161072e91906132e9565b60405180910390f35b34801561074357600080fd5b5061074c6117a5565b60405161075991906133af565b60405180910390f35b34801561076e57600080fd5b5061078960048036038101906107849190613341565b6117cf565b005b34801561079757600080fd5b506107a06117e1565b6040516107ad91906132e9565b60405180910390f35b3480156107c257600080fd5b506107dd60048036038101906107d89190613714565b611873565b005b3480156107eb57600080fd5b506107f46118bf565b6040516108019190613445565b60405180910390f35b34801561081657600080fd5b5061081f6118c9565b60405161082c9190613445565b60405180910390f35b34801561084157600080fd5b5061085c600480360381019061085791906139b9565b6118cf565b005b34801561086a57600080fd5b5061088560048036038101906108809190613a9a565b6118e5565b005b34801561089357600080fd5b506108ae60048036038101906108a99190613341565b611947565b6040516108bb91906132e9565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190613341565b6119ef565b005b3480156108f957600080fd5b50610902611a01565b60405161090f9190613445565b60405180910390f35b34801561092457600080fd5b5061093f600480360381019061093a9190613b1d565b611a07565b60405161094c919061323e565b60405180910390f35b34801561096157600080fd5b5061097c60048036038101906109779190613714565b611a9b565b005b34801561098a57600080fd5b506109a560048036038101906109a09190613714565b611b1e565b005b3480156109b357600080fd5b506109ce60048036038101906109c99190613714565b611c7e565b6040516109db9190613445565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a575750610a5682611c96565b5b9050919050565b606060008054610a6d90613b8c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9990613b8c565b8015610ae65780601f10610abb57610100808354040283529160200191610ae6565b820191906000526020600020905b815481529060010190602001808311610ac957829003601f168201915b5050505050905090565b6000610afb82611d10565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b418261101c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba890613c2f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bd0611d5b565b73ffffffffffffffffffffffffffffffffffffffff161480610bff5750610bfe81610bf9611d5b565b611a07565b5b610c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3590613cc1565b60405180910390fd5b610c488383611d63565b505050565b6000600880549050905090565b610c6b610c65611d5b565b82611e1c565b610caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca190613d53565b60405180910390fd5b610cb5838383611eb1565b505050565b6000600f54905090565b600f5481565b600080610cd56117a5565b61271060145485610ce69190613da2565b610cf09190613e13565b915091509250929050565b6000610d0683611318565b8210610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e90613eb6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610da8612117565b60105481610db4610c4d565b610dbe9190613ed6565b1115610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690613f56565b60405180910390fd5b60005b81811015610e3a57610e1d33610e18600c612195565b6121a3565b610e27600c61237c565b8080610e3290613f76565b915050610e02565b5050565b610e46612117565b60004711610e89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e809061400a565b60405180910390fd5b610e916117a5565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610ed6573d6000803e3d6000fd5b50565b6daaeb6d7670e522a718067333cd4e81565b610f06838383604051806020016040528060008152506118e5565b505050565b610f1c610f16611d5b565b82611e1c565b610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5290613d53565b60405180910390fd5b610f6481612392565b50565b610f6f612117565b8060148190555050565b6000610f83610c4d565b8210610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb9061409c565b60405180910390fd5b60088281548110610fd857610fd76140bc565b5b90600052602060002001549050919050565b610ff2612117565b8060129081611001919061428d565b5050565b6000600a60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bb906143ab565b60405180910390fd5b80915050919050565b60145481565b6110db6124af565b6002600b5403611120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111790614417565b60405180910390fd5b6002600b81905550601054611133610c4d565b10611173576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116a90613f56565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e17983866001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541061120057600f54611204565b600e545b83336040518463ffffffff1660e01b815260040161122493929190614437565b600060405180830381600087803b15801561123e57600080fd5b505af1158015611252573d6000803e3d6000fd5b5050505061126933611264600c612195565b6121a3565b611273600c61237c565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906112c390613f76565b91905055507f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f66112f3600c612195565b336001604051611305939291906144a9565b60405180910390a16001600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137f90614552565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113d7612117565b6113e160006124f9565b565b6113eb612117565b60105481516113f8610c4d565b6114029190613ed6565b1115611443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143a90613f56565b60405180910390fd5b60005b81518110156115085761147c828281518110611465576114646140bc565b5b6020026020010151611477600c612195565b6121a3565b611486600c61237c565b6011600083838151811061149d5761149c6140bc565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906114f090613f76565b9190505550808061150090613f76565b915050611446565b5050565b611514612117565b8051825114611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154f906145e4565b60405180910390fd5b60005b82518110156116e55761158782828151811061157a576115796140bc565b5b60200260200101516125bf565b156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614650565b60405180910390fd5b6013548282815181106115dd576115dc6140bc565b5b602002602001015110611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c906146bc565b60405180910390fd5b61166383828151811061163b5761163a6140bc565b5b6020026020010151838381518110611656576116556140bc565b5b60200260200101516121a3565b6011600084838151811061167a576116796140bc565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906116cd90613f76565b919050555080806116dd90613f76565b91505061155b565b505050565b6116f2612117565b6116fa611005565b1561170c5761170761262b565b611715565b61171461268e565b5b565b6012805461172490613b8c565b80601f016020809104026020016040519081016040528092919081815260200182805461175090613b8c565b801561179d5780601f106117725761010080835404028352916020019161179d565b820191906000526020600020905b81548152906001019060200180831161178057829003601f168201915b505050505081565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117d7612117565b80600e8190555050565b6060600180546117f090613b8c565b80601f016020809104026020016040519081016040528092919081815260200182805461181c90613b8c565b80156118695780601f1061183e57610100808354040283529160200191611869565b820191906000526020600020905b81548152906001019060200180831161184c57829003601f168201915b5050505050905090565b61187b612117565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600e54905090565b600e5481565b6118e16118da611d5b565b83836126f1565b5050565b6118f66118f0611d5b565b83611e1c565b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c90613d53565b60405180910390fd5b6119418484848461285d565b50505050565b6060611952826125bf565b611991576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198890614728565b60405180910390fd5b6000601280546119a090613b8c565b9050116119bc57604051806020016040528060008152506119e8565b60126119c7836128b9565b6040516020016119d8929190614807565b6040516020818303038152906040525b9050919050565b6119f7612117565b80600f8190555050565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611aa3612117565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b099061489d565b60405180910390fd5b611b1b816124f9565b50565b611b26612117565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c90614909565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611beb91906133af565b602060405180830381865afa158015611c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2c919061493e565b6040518363ffffffff1660e01b8152600401611c499291906134f3565b600060405180830381600087803b158015611c6357600080fd5b505af1158015611c77573d6000803e3d6000fd5b5050505050565b60116020528060005260406000206000915090505481565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d095750611d0882612a19565b5b9050919050565b611d19816125bf565b611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f906143ab565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611dd68361101c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611e288361101c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e6a5750611e698185611a07565b5b80611ea857508373ffffffffffffffffffffffffffffffffffffffff16611e9084610af0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ed18261101c565b73ffffffffffffffffffffffffffffffffffffffff1614611f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1e906149dd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8d90614a6f565b60405180910390fd5b611fa1838383612afb565b611fac600082611d63565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ffc9190614a8f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120539190613ed6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612112838383612b0b565b505050565b61211f611d5b565b73ffffffffffffffffffffffffffffffffffffffff1661213d6117a5565b73ffffffffffffffffffffffffffffffffffffffff1614612193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218a90614b0f565b60405180910390fd5b565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612212576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220990614b7b565b60405180910390fd5b61221b816125bf565b1561225b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225290614be7565b60405180910390fd5b61226760008383612afb565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122b79190613ed6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461237860008383612b0b565b5050565b6001816000016000828254019250508190555050565b600061239d8261101c565b90506123ab81600084612afb565b6123b6600083611d63565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124069190614a8f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124ab81600084612b0b565b5050565b6124b7611005565b156124f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ee90614c53565b60405180910390fd5b565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612633612b10565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612677611d5b565b60405161268491906133af565b60405180910390a1565b6126966124af565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126da611d5b565b6040516126e791906133af565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361275f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275690614cbf565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612850919061323e565b60405180910390a3505050565b612868848484611eb1565b61287484848484612b59565b6128b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa90614d51565b60405180910390fd5b50505050565b606060008203612900576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a14565b600082905060005b6000821461293257808061291b90613f76565b915050600a8261292b9190613e13565b9150612908565b60008167ffffffffffffffff81111561294e5761294d6135a0565b5b6040519080825280601f01601f1916602001820160405280156129805781602001600182028036833780820191505090505b5090505b60008514612a0d576001826129999190614a8f565b9150600a856129a89190614d71565b60306129b49190613ed6565b60f81b8183815181106129ca576129c96140bc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a069190613e13565b9450612984565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ae457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612af45750612af382612ce0565b5b9050919050565b612b06838383612d4a565b505050565b505050565b612b18611005565b612b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4e90614dee565b60405180910390fd5b565b6000612b7a8473ffffffffffffffffffffffffffffffffffffffff16612e5c565b15612cd3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ba3611d5b565b8786866040518563ffffffff1660e01b8152600401612bc59493929190614e63565b6020604051808303816000875af1925050508015612c0157506040513d601f19601f82011682018060405250810190612bfe9190614ec4565b60015b612c83573d8060008114612c31576040519150601f19603f3d011682016040523d82523d6000602084013e612c36565b606091505b506000815103612c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7290614d51565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612cd8565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612d55838383612e7f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d9757612d9281612e84565b612dd6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612dd557612dd48382612ecd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e1857612e138161303a565b612e57565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e5657612e55828261310b565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612eda84611318565b612ee49190614a8f565b9050600060076000848152602001908152602001600020549050818114612fc9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061304e9190614a8f565b905060006009600084815260200190815260200160002054905060006008838154811061307e5761307d6140bc565b5b9060005260206000200154905080600883815481106130a05761309f6140bc565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806130ef576130ee614ef1565b5b6001900381819060005260206000200160009055905550505050565b600061311683611318565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131d38161319e565b81146131de57600080fd5b50565b6000813590506131f0816131ca565b92915050565b60006020828403121561320c5761320b613194565b5b600061321a848285016131e1565b91505092915050565b60008115159050919050565b61323881613223565b82525050565b6000602082019050613253600083018461322f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613293578082015181840152602081019050613278565b60008484015250505050565b6000601f19601f8301169050919050565b60006132bb82613259565b6132c58185613264565b93506132d5818560208601613275565b6132de8161329f565b840191505092915050565b6000602082019050818103600083015261330381846132b0565b905092915050565b6000819050919050565b61331e8161330b565b811461332957600080fd5b50565b60008135905061333b81613315565b92915050565b60006020828403121561335757613356613194565b5b60006133658482850161332c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133998261336e565b9050919050565b6133a98161338e565b82525050565b60006020820190506133c460008301846133a0565b92915050565b6133d38161338e565b81146133de57600080fd5b50565b6000813590506133f0816133ca565b92915050565b6000806040838503121561340d5761340c613194565b5b600061341b858286016133e1565b925050602061342c8582860161332c565b9150509250929050565b61343f8161330b565b82525050565b600060208201905061345a6000830184613436565b92915050565b60008060006060848603121561347957613478613194565b5b6000613487868287016133e1565b9350506020613498868287016133e1565b92505060406134a98682870161332c565b9150509250925092565b600080604083850312156134ca576134c9613194565b5b60006134d88582860161332c565b92505060206134e98582860161332c565b9150509250929050565b600060408201905061350860008301856133a0565b6135156020830184613436565b9392505050565b6000819050919050565b600061354161353c6135378461336e565b61351c565b61336e565b9050919050565b600061355382613526565b9050919050565b600061356582613548565b9050919050565b6135758161355a565b82525050565b6000602082019050613590600083018461356c565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6135d88261329f565b810181811067ffffffffffffffff821117156135f7576135f66135a0565b5b80604052505050565b600061360a61318a565b905061361682826135cf565b919050565b600067ffffffffffffffff821115613636576136356135a0565b5b61363f8261329f565b9050602081019050919050565b82818337600083830152505050565b600061366e6136698461361b565b613600565b90508281526020810184848401111561368a5761368961359b565b5b61369584828561364c565b509392505050565b600082601f8301126136b2576136b1613596565b5b81356136c284826020860161365b565b91505092915050565b6000602082840312156136e1576136e0613194565b5b600082013567ffffffffffffffff8111156136ff576136fe613199565b5b61370b8482850161369d565b91505092915050565b60006020828403121561372a57613729613194565b5b6000613738848285016133e1565b91505092915050565b600067ffffffffffffffff82111561375c5761375b6135a0565b5b602082029050602081019050919050565b600080fd5b600061378561378084613741565b613600565b905080838252602082019050602084028301858111156137a8576137a761376d565b5b835b818110156137d157806137bd88826133e1565b8452602084019350506020810190506137aa565b5050509392505050565b600082601f8301126137f0576137ef613596565b5b8135613800848260208601613772565b91505092915050565b60006020828403121561381f5761381e613194565b5b600082013567ffffffffffffffff81111561383d5761383c613199565b5b613849848285016137db565b91505092915050565b600067ffffffffffffffff82111561386d5761386c6135a0565b5b602082029050602081019050919050565b600061389161388c84613852565b613600565b905080838252602082019050602084028301858111156138b4576138b361376d565b5b835b818110156138dd57806138c9888261332c565b8452602084019350506020810190506138b6565b5050509392505050565b600082601f8301126138fc576138fb613596565b5b813561390c84826020860161387e565b91505092915050565b6000806040838503121561392c5761392b613194565b5b600083013567ffffffffffffffff81111561394a57613949613199565b5b613956858286016137db565b925050602083013567ffffffffffffffff81111561397757613976613199565b5b613983858286016138e7565b9150509250929050565b61399681613223565b81146139a157600080fd5b50565b6000813590506139b38161398d565b92915050565b600080604083850312156139d0576139cf613194565b5b60006139de858286016133e1565b92505060206139ef858286016139a4565b9150509250929050565b600067ffffffffffffffff821115613a1457613a136135a0565b5b613a1d8261329f565b9050602081019050919050565b6000613a3d613a38846139f9565b613600565b905082815260208101848484011115613a5957613a5861359b565b5b613a6484828561364c565b509392505050565b600082601f830112613a8157613a80613596565b5b8135613a91848260208601613a2a565b91505092915050565b60008060008060808587031215613ab457613ab3613194565b5b6000613ac2878288016133e1565b9450506020613ad3878288016133e1565b9350506040613ae48782880161332c565b925050606085013567ffffffffffffffff811115613b0557613b04613199565b5b613b1187828801613a6c565b91505092959194509250565b60008060408385031215613b3457613b33613194565b5b6000613b42858286016133e1565b9250506020613b53858286016133e1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ba457607f821691505b602082108103613bb757613bb6613b5d565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c19602183613264565b9150613c2482613bbd565b604082019050919050565b60006020820190508181036000830152613c4881613c0c565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613cab603e83613264565b9150613cb682613c4f565b604082019050919050565b60006020820190508181036000830152613cda81613c9e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613d3d602e83613264565b9150613d4882613ce1565b604082019050919050565b60006020820190508181036000830152613d6c81613d30565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613dad8261330b565b9150613db88361330b565b9250828202613dc68161330b565b91508282048414831517613ddd57613ddc613d73565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e1e8261330b565b9150613e298361330b565b925082613e3957613e38613de4565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613ea0602b83613264565b9150613eab82613e44565b604082019050919050565b60006020820190508181036000830152613ecf81613e93565b9050919050565b6000613ee18261330b565b9150613eec8361330b565b9250828201905080821115613f0457613f03613d73565b5b92915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b6000613f40601683613264565b9150613f4b82613f0a565b602082019050919050565b60006020820190508181036000830152613f6f81613f33565b9050919050565b6000613f818261330b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613fb357613fb2613d73565b5b600182019050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b6000613ff4600f83613264565b9150613fff82613fbe565b602082019050919050565b6000602082019050818103600083015261402381613fe7565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614086602c83613264565b91506140918261402a565b604082019050919050565b600060208201905081810360008301526140b581614079565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261414d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614110565b6141578683614110565b95508019841693508086168417925050509392505050565b600061418a6141856141808461330b565b61351c565b61330b565b9050919050565b6000819050919050565b6141a48361416f565b6141b86141b082614191565b84845461411d565b825550505050565b600090565b6141cd6141c0565b6141d881848461419b565b505050565b5b818110156141fc576141f16000826141c5565b6001810190506141de565b5050565b601f82111561424157614212816140eb565b61421b84614100565b8101602085101561422a578190505b61423e61423685614100565b8301826141dd565b50505b505050565b600082821c905092915050565b600061426460001984600802614246565b1980831691505092915050565b600061427d8383614253565b9150826002028217905092915050565b61429682613259565b67ffffffffffffffff8111156142af576142ae6135a0565b5b6142b98254613b8c565b6142c4828285614200565b600060209050601f8311600181146142f757600084156142e5578287015190505b6142ef8582614271565b865550614357565b601f198416614305866140eb565b60005b8281101561432d57848901518255600182019150602085019450602081019050614308565b8683101561434a5784890151614346601f891682614253565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614395601883613264565b91506143a08261435f565b602082019050919050565b600060208201905081810360008301526143c481614388565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614401601f83613264565b915061440c826143cb565b602082019050919050565b60006020820190508181036000830152614430816143f4565b9050919050565b600060608201905061444c6000830186613436565b61445960208301856133a0565b61446660408301846133a0565b949350505050565b6000819050919050565b600061449361448e6144898461446e565b61351c565b61330b565b9050919050565b6144a381614478565b82525050565b60006060820190506144be6000830186613436565b6144cb60208301856133a0565b6144d8604083018461449a565b949350505050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061453c602983613264565b9150614547826144e0565b604082019050919050565b6000602082019050818103600083015261456b8161452f565b9050919050565b7f4164647265737320616e6420746f6b656e496473206c656e677468206d75737460008201527f206265207468652073616d652e00000000000000000000000000000000000000602082015250565b60006145ce602d83613264565b91506145d982614572565b604082019050919050565b600060208201905081810360008301526145fd816145c1565b9050919050565b7f546f6b656e20616c7265616479206d696e7465642e0000000000000000000000600082015250565b600061463a601583613264565b915061464582614604565b602082019050919050565b600060208201905081810360008301526146698161462d565b9050919050565b7f546f6b656e4964206e6f7420696e2072616e67652e0000000000000000000000600082015250565b60006146a6601583613264565b91506146b182614670565b602082019050919050565b600060208201905081810360008301526146d581614699565b9050919050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b6000614712601f83613264565b915061471d826146dc565b602082019050919050565b6000602082019050818103600083015261474181614705565b9050919050565b600081905092915050565b6000815461476081613b8c565b61476a8186614748565b94506001821660008114614785576001811461479a576147cd565b60ff19831686528115158202860193506147cd565b6147a3856140eb565b60005b838110156147c5578154818901526001820191506020810190506147a6565b838801955050505b50505092915050565b60006147e182613259565b6147eb8185614748565b93506147fb818560208601613275565b80840191505092915050565b60006148138285614753565b915061481f82846147d6565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614887602683613264565b91506148928261482b565b604082019050919050565b600060208201905081810360008301526148b68161487a565b9050919050565b7f496e76616c696420746f6b656e20616464726573730000000000000000000000600082015250565b60006148f3601583613264565b91506148fe826148bd565b602082019050919050565b60006020820190508181036000830152614922816148e6565b9050919050565b60008151905061493881613315565b92915050565b60006020828403121561495457614953613194565b5b600061496284828501614929565b91505092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006149c7602583613264565b91506149d28261496b565b604082019050919050565b600060208201905081810360008301526149f6816149ba565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614a59602483613264565b9150614a64826149fd565b604082019050919050565b60006020820190508181036000830152614a8881614a4c565b9050919050565b6000614a9a8261330b565b9150614aa58361330b565b9250828203905081811115614abd57614abc613d73565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614af9602083613264565b9150614b0482614ac3565b602082019050919050565b60006020820190508181036000830152614b2881614aec565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b65602083613264565b9150614b7082614b2f565b602082019050919050565b60006020820190508181036000830152614b9481614b58565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614bd1601c83613264565b9150614bdc82614b9b565b602082019050919050565b60006020820190508181036000830152614c0081614bc4565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614c3d601083613264565b9150614c4882614c07565b602082019050919050565b60006020820190508181036000830152614c6c81614c30565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ca9601983613264565b9150614cb482614c73565b602082019050919050565b60006020820190508181036000830152614cd881614c9c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614d3b603283613264565b9150614d4682614cdf565b604082019050919050565b60006020820190508181036000830152614d6a81614d2e565b9050919050565b6000614d7c8261330b565b9150614d878361330b565b925082614d9757614d96613de4565b5b828206905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614dd8601483613264565b9150614de382614da2565b602082019050919050565b60006020820190508181036000830152614e0781614dcb565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614e3582614e0e565b614e3f8185614e19565b9350614e4f818560208601613275565b614e588161329f565b840191505092915050565b6000608082019050614e7860008301876133a0565b614e8560208301866133a0565b614e926040830185613436565b8181036060830152614ea48184614e2a565b905095945050505050565b600081519050614ebe816131ca565b92915050565b600060208284031215614eda57614ed9613194565b5b6000614ee884828501614eaf565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122074e9e54c88cbbfce20dbbc038f9616d1bcb5ff5f4c2c9bd0ec4e28e6f38c018f64736f6c634300081300330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000b5be0c6b8e85a6851aa73a904b0aa153cbf020c40000000000000000000000000000000000000000000000000000000000000472000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f6d657461646174612e61657468657267616d65732e696f2f6170692f6d657461646174612f65746865726e616c732f67656e657369732f00
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80636a6278421161014457806398d5fdca116100b6578063ccf27a4e1161007a578063ccf27a4e146108c4578063d5abeb01146108ed578063e985e9c514610918578063f2fde38b14610955578063f4f3b2001461097e578063fa30297e146109a75761025c565b806398d5fdca146107df578063a035b1fe1461080a578063a22cb46514610835578063b88d4fde1461085e578063c87b56dd146108875761025c565b8063834307d911610108578063834307d9146106f5578063889a3f191461070c5780638da5cb5b1461073757806391b7f5ed1461076257806395d89b411461078b578063986ccc7f146107b65761025c565b80636a6278421461063357806370a082311461064f578063715018a61461068c578063729ad39e146106a357806377176026146106cc5761025c565b8063375a069a116101dd5780634f07de09116101a15780634f07de09146105115780634f6ccce71461053a57806355f804b3146105775780635c975abb146105a05780636352211e146105cb57806369b53824146106085761025c565b8063375a069a146104545780633ccfd60b1461047d57806341f434341461049457806342842e0e146104bf57806342966c68146104e85761025c565b806323b872dd1161022457806323b872dd1461035a5780632464e15d1461038357806327a3181d146103ae5780632a55205a146103d95780632f745c59146104175761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b31461030657806318160ddd1461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906131f6565b6109e4565b604051610295919061323e565b60405180910390f35b3480156102aa57600080fd5b506102b3610a5e565b6040516102c091906132e9565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb9190613341565b610af0565b6040516102fd91906133af565b60405180910390f35b34801561031257600080fd5b5061032d600480360381019061032891906133f6565b610b36565b005b34801561033b57600080fd5b50610344610c4d565b6040516103519190613445565b60405180910390f35b34801561036657600080fd5b50610381600480360381019061037c9190613460565b610c5a565b005b34801561038f57600080fd5b50610398610cba565b6040516103a59190613445565b60405180910390f35b3480156103ba57600080fd5b506103c3610cc4565b6040516103d09190613445565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb91906134b3565b610cca565b60405161040e9291906134f3565b60405180910390f35b34801561042357600080fd5b5061043e600480360381019061043991906133f6565b610cfb565b60405161044b9190613445565b60405180910390f35b34801561046057600080fd5b5061047b60048036038101906104769190613341565b610da0565b005b34801561048957600080fd5b50610492610e3e565b005b3480156104a057600080fd5b506104a9610ed9565b6040516104b6919061357b565b60405180910390f35b3480156104cb57600080fd5b506104e660048036038101906104e19190613460565b610eeb565b005b3480156104f457600080fd5b5061050f600480360381019061050a9190613341565b610f0b565b005b34801561051d57600080fd5b5061053860048036038101906105339190613341565b610f67565b005b34801561054657600080fd5b50610561600480360381019061055c9190613341565b610f79565b60405161056e9190613445565b60405180910390f35b34801561058357600080fd5b5061059e600480360381019061059991906136cb565b610fea565b005b3480156105ac57600080fd5b506105b5611005565b6040516105c2919061323e565b60405180910390f35b3480156105d757600080fd5b506105f260048036038101906105ed9190613341565b61101c565b6040516105ff91906133af565b60405180910390f35b34801561061457600080fd5b5061061d6110cd565b60405161062a9190613445565b60405180910390f35b61064d60048036038101906106489190613714565b6110d3565b005b34801561065b57600080fd5b5061067660048036038101906106719190613714565b611318565b6040516106839190613445565b60405180910390f35b34801561069857600080fd5b506106a16113cf565b005b3480156106af57600080fd5b506106ca60048036038101906106c59190613809565b6113e3565b005b3480156106d857600080fd5b506106f360048036038101906106ee9190613915565b61150c565b005b34801561070157600080fd5b5061070a6116ea565b005b34801561071857600080fd5b50610721611717565b60405161072e91906132e9565b60405180910390f35b34801561074357600080fd5b5061074c6117a5565b60405161075991906133af565b60405180910390f35b34801561076e57600080fd5b5061078960048036038101906107849190613341565b6117cf565b005b34801561079757600080fd5b506107a06117e1565b6040516107ad91906132e9565b60405180910390f35b3480156107c257600080fd5b506107dd60048036038101906107d89190613714565b611873565b005b3480156107eb57600080fd5b506107f46118bf565b6040516108019190613445565b60405180910390f35b34801561081657600080fd5b5061081f6118c9565b60405161082c9190613445565b60405180910390f35b34801561084157600080fd5b5061085c600480360381019061085791906139b9565b6118cf565b005b34801561086a57600080fd5b5061088560048036038101906108809190613a9a565b6118e5565b005b34801561089357600080fd5b506108ae60048036038101906108a99190613341565b611947565b6040516108bb91906132e9565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190613341565b6119ef565b005b3480156108f957600080fd5b50610902611a01565b60405161090f9190613445565b60405180910390f35b34801561092457600080fd5b5061093f600480360381019061093a9190613b1d565b611a07565b60405161094c919061323e565b60405180910390f35b34801561096157600080fd5b5061097c60048036038101906109779190613714565b611a9b565b005b34801561098a57600080fd5b506109a560048036038101906109a09190613714565b611b1e565b005b3480156109b357600080fd5b506109ce60048036038101906109c99190613714565b611c7e565b6040516109db9190613445565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a575750610a5682611c96565b5b9050919050565b606060008054610a6d90613b8c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9990613b8c565b8015610ae65780601f10610abb57610100808354040283529160200191610ae6565b820191906000526020600020905b815481529060010190602001808311610ac957829003601f168201915b5050505050905090565b6000610afb82611d10565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b418261101c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610bb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba890613c2f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bd0611d5b565b73ffffffffffffffffffffffffffffffffffffffff161480610bff5750610bfe81610bf9611d5b565b611a07565b5b610c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3590613cc1565b60405180910390fd5b610c488383611d63565b505050565b6000600880549050905090565b610c6b610c65611d5b565b82611e1c565b610caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca190613d53565b60405180910390fd5b610cb5838383611eb1565b505050565b6000600f54905090565b600f5481565b600080610cd56117a5565b61271060145485610ce69190613da2565b610cf09190613e13565b915091509250929050565b6000610d0683611318565b8210610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e90613eb6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610da8612117565b60105481610db4610c4d565b610dbe9190613ed6565b1115610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690613f56565b60405180910390fd5b60005b81811015610e3a57610e1d33610e18600c612195565b6121a3565b610e27600c61237c565b8080610e3290613f76565b915050610e02565b5050565b610e46612117565b60004711610e89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e809061400a565b60405180910390fd5b610e916117a5565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610ed6573d6000803e3d6000fd5b50565b6daaeb6d7670e522a718067333cd4e81565b610f06838383604051806020016040528060008152506118e5565b505050565b610f1c610f16611d5b565b82611e1c565b610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5290613d53565b60405180910390fd5b610f6481612392565b50565b610f6f612117565b8060148190555050565b6000610f83610c4d565b8210610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb9061409c565b60405180910390fd5b60088281548110610fd857610fd76140bc565b5b90600052602060002001549050919050565b610ff2612117565b8060129081611001919061428d565b5050565b6000600a60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bb906143ab565b60405180910390fd5b80915050919050565b60145481565b6110db6124af565b6002600b5403611120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111790614417565b60405180910390fd5b6002600b81905550601054611133610c4d565b10611173576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116a90613f56565b60405180910390fd5b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e17983866001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541061120057600f54611204565b600e545b83336040518463ffffffff1660e01b815260040161122493929190614437565b600060405180830381600087803b15801561123e57600080fd5b505af1158015611252573d6000803e3d6000fd5b5050505061126933611264600c612195565b6121a3565b611273600c61237c565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906112c390613f76565b91905055507f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f66112f3600c612195565b336001604051611305939291906144a9565b60405180910390a16001600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137f90614552565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113d7612117565b6113e160006124f9565b565b6113eb612117565b60105481516113f8610c4d565b6114029190613ed6565b1115611443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143a90613f56565b60405180910390fd5b60005b81518110156115085761147c828281518110611465576114646140bc565b5b6020026020010151611477600c612195565b6121a3565b611486600c61237c565b6011600083838151811061149d5761149c6140bc565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906114f090613f76565b9190505550808061150090613f76565b915050611446565b5050565b611514612117565b8051825114611558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154f906145e4565b60405180910390fd5b60005b82518110156116e55761158782828151811061157a576115796140bc565b5b60200260200101516125bf565b156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614650565b60405180910390fd5b6013548282815181106115dd576115dc6140bc565b5b602002602001015110611625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161c906146bc565b60405180910390fd5b61166383828151811061163b5761163a6140bc565b5b6020026020010151838381518110611656576116556140bc565b5b60200260200101516121a3565b6011600084838151811061167a576116796140bc565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906116cd90613f76565b919050555080806116dd90613f76565b91505061155b565b505050565b6116f2612117565b6116fa611005565b1561170c5761170761262b565b611715565b61171461268e565b5b565b6012805461172490613b8c565b80601f016020809104026020016040519081016040528092919081815260200182805461175090613b8c565b801561179d5780601f106117725761010080835404028352916020019161179d565b820191906000526020600020905b81548152906001019060200180831161178057829003601f168201915b505050505081565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117d7612117565b80600e8190555050565b6060600180546117f090613b8c565b80601f016020809104026020016040519081016040528092919081815260200182805461181c90613b8c565b80156118695780601f1061183e57610100808354040283529160200191611869565b820191906000526020600020905b81548152906001019060200180831161184c57829003601f168201915b5050505050905090565b61187b612117565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600e54905090565b600e5481565b6118e16118da611d5b565b83836126f1565b5050565b6118f66118f0611d5b565b83611e1c565b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c90613d53565b60405180910390fd5b6119418484848461285d565b50505050565b6060611952826125bf565b611991576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198890614728565b60405180910390fd5b6000601280546119a090613b8c565b9050116119bc57604051806020016040528060008152506119e8565b60126119c7836128b9565b6040516020016119d8929190614807565b6040516020818303038152906040525b9050919050565b6119f7612117565b80600f8190555050565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611aa3612117565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b099061489d565b60405180910390fd5b611b1b816124f9565b50565b611b26612117565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c90614909565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611beb91906133af565b602060405180830381865afa158015611c08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c2c919061493e565b6040518363ffffffff1660e01b8152600401611c499291906134f3565b600060405180830381600087803b158015611c6357600080fd5b505af1158015611c77573d6000803e3d6000fd5b5050505050565b60116020528060005260406000206000915090505481565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d095750611d0882612a19565b5b9050919050565b611d19816125bf565b611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f906143ab565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611dd68361101c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611e288361101c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e6a5750611e698185611a07565b5b80611ea857508373ffffffffffffffffffffffffffffffffffffffff16611e9084610af0565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ed18261101c565b73ffffffffffffffffffffffffffffffffffffffff1614611f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1e906149dd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8d90614a6f565b60405180910390fd5b611fa1838383612afb565b611fac600082611d63565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ffc9190614a8f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120539190613ed6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612112838383612b0b565b505050565b61211f611d5b565b73ffffffffffffffffffffffffffffffffffffffff1661213d6117a5565b73ffffffffffffffffffffffffffffffffffffffff1614612193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218a90614b0f565b60405180910390fd5b565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612212576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220990614b7b565b60405180910390fd5b61221b816125bf565b1561225b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225290614be7565b60405180910390fd5b61226760008383612afb565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122b79190613ed6565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461237860008383612b0b565b5050565b6001816000016000828254019250508190555050565b600061239d8261101c565b90506123ab81600084612afb565b6123b6600083611d63565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124069190614a8f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124ab81600084612b0b565b5050565b6124b7611005565b156124f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ee90614c53565b60405180910390fd5b565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612633612b10565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612677611d5b565b60405161268491906133af565b60405180910390a1565b6126966124af565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126da611d5b565b6040516126e791906133af565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361275f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275690614cbf565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612850919061323e565b60405180910390a3505050565b612868848484611eb1565b61287484848484612b59565b6128b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa90614d51565b60405180910390fd5b50505050565b606060008203612900576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a14565b600082905060005b6000821461293257808061291b90613f76565b915050600a8261292b9190613e13565b9150612908565b60008167ffffffffffffffff81111561294e5761294d6135a0565b5b6040519080825280601f01601f1916602001820160405280156129805781602001600182028036833780820191505090505b5090505b60008514612a0d576001826129999190614a8f565b9150600a856129a89190614d71565b60306129b49190613ed6565b60f81b8183815181106129ca576129c96140bc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a069190613e13565b9450612984565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612ae457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612af45750612af382612ce0565b5b9050919050565b612b06838383612d4a565b505050565b505050565b612b18611005565b612b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4e90614dee565b60405180910390fd5b565b6000612b7a8473ffffffffffffffffffffffffffffffffffffffff16612e5c565b15612cd3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ba3611d5b565b8786866040518563ffffffff1660e01b8152600401612bc59493929190614e63565b6020604051808303816000875af1925050508015612c0157506040513d601f19601f82011682018060405250810190612bfe9190614ec4565b60015b612c83573d8060008114612c31576040519150601f19603f3d011682016040523d82523d6000602084013e612c36565b606091505b506000815103612c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7290614d51565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612cd8565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612d55838383612e7f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d9757612d9281612e84565b612dd6565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612dd557612dd48382612ecd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e1857612e138161303a565b612e57565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e5657612e55828261310b565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612eda84611318565b612ee49190614a8f565b9050600060076000848152602001908152602001600020549050818114612fc9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061304e9190614a8f565b905060006009600084815260200190815260200160002054905060006008838154811061307e5761307d6140bc565b5b9060005260206000200154905080600883815481106130a05761309f6140bc565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806130ef576130ee614ef1565b5b6001900381819060005260206000200160009055905550505050565b600061311683611318565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131d38161319e565b81146131de57600080fd5b50565b6000813590506131f0816131ca565b92915050565b60006020828403121561320c5761320b613194565b5b600061321a848285016131e1565b91505092915050565b60008115159050919050565b61323881613223565b82525050565b6000602082019050613253600083018461322f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613293578082015181840152602081019050613278565b60008484015250505050565b6000601f19601f8301169050919050565b60006132bb82613259565b6132c58185613264565b93506132d5818560208601613275565b6132de8161329f565b840191505092915050565b6000602082019050818103600083015261330381846132b0565b905092915050565b6000819050919050565b61331e8161330b565b811461332957600080fd5b50565b60008135905061333b81613315565b92915050565b60006020828403121561335757613356613194565b5b60006133658482850161332c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133998261336e565b9050919050565b6133a98161338e565b82525050565b60006020820190506133c460008301846133a0565b92915050565b6133d38161338e565b81146133de57600080fd5b50565b6000813590506133f0816133ca565b92915050565b6000806040838503121561340d5761340c613194565b5b600061341b858286016133e1565b925050602061342c8582860161332c565b9150509250929050565b61343f8161330b565b82525050565b600060208201905061345a6000830184613436565b92915050565b60008060006060848603121561347957613478613194565b5b6000613487868287016133e1565b9350506020613498868287016133e1565b92505060406134a98682870161332c565b9150509250925092565b600080604083850312156134ca576134c9613194565b5b60006134d88582860161332c565b92505060206134e98582860161332c565b9150509250929050565b600060408201905061350860008301856133a0565b6135156020830184613436565b9392505050565b6000819050919050565b600061354161353c6135378461336e565b61351c565b61336e565b9050919050565b600061355382613526565b9050919050565b600061356582613548565b9050919050565b6135758161355a565b82525050565b6000602082019050613590600083018461356c565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6135d88261329f565b810181811067ffffffffffffffff821117156135f7576135f66135a0565b5b80604052505050565b600061360a61318a565b905061361682826135cf565b919050565b600067ffffffffffffffff821115613636576136356135a0565b5b61363f8261329f565b9050602081019050919050565b82818337600083830152505050565b600061366e6136698461361b565b613600565b90508281526020810184848401111561368a5761368961359b565b5b61369584828561364c565b509392505050565b600082601f8301126136b2576136b1613596565b5b81356136c284826020860161365b565b91505092915050565b6000602082840312156136e1576136e0613194565b5b600082013567ffffffffffffffff8111156136ff576136fe613199565b5b61370b8482850161369d565b91505092915050565b60006020828403121561372a57613729613194565b5b6000613738848285016133e1565b91505092915050565b600067ffffffffffffffff82111561375c5761375b6135a0565b5b602082029050602081019050919050565b600080fd5b600061378561378084613741565b613600565b905080838252602082019050602084028301858111156137a8576137a761376d565b5b835b818110156137d157806137bd88826133e1565b8452602084019350506020810190506137aa565b5050509392505050565b600082601f8301126137f0576137ef613596565b5b8135613800848260208601613772565b91505092915050565b60006020828403121561381f5761381e613194565b5b600082013567ffffffffffffffff81111561383d5761383c613199565b5b613849848285016137db565b91505092915050565b600067ffffffffffffffff82111561386d5761386c6135a0565b5b602082029050602081019050919050565b600061389161388c84613852565b613600565b905080838252602082019050602084028301858111156138b4576138b361376d565b5b835b818110156138dd57806138c9888261332c565b8452602084019350506020810190506138b6565b5050509392505050565b600082601f8301126138fc576138fb613596565b5b813561390c84826020860161387e565b91505092915050565b6000806040838503121561392c5761392b613194565b5b600083013567ffffffffffffffff81111561394a57613949613199565b5b613956858286016137db565b925050602083013567ffffffffffffffff81111561397757613976613199565b5b613983858286016138e7565b9150509250929050565b61399681613223565b81146139a157600080fd5b50565b6000813590506139b38161398d565b92915050565b600080604083850312156139d0576139cf613194565b5b60006139de858286016133e1565b92505060206139ef858286016139a4565b9150509250929050565b600067ffffffffffffffff821115613a1457613a136135a0565b5b613a1d8261329f565b9050602081019050919050565b6000613a3d613a38846139f9565b613600565b905082815260208101848484011115613a5957613a5861359b565b5b613a6484828561364c565b509392505050565b600082601f830112613a8157613a80613596565b5b8135613a91848260208601613a2a565b91505092915050565b60008060008060808587031215613ab457613ab3613194565b5b6000613ac2878288016133e1565b9450506020613ad3878288016133e1565b9350506040613ae48782880161332c565b925050606085013567ffffffffffffffff811115613b0557613b04613199565b5b613b1187828801613a6c565b91505092959194509250565b60008060408385031215613b3457613b33613194565b5b6000613b42858286016133e1565b9250506020613b53858286016133e1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ba457607f821691505b602082108103613bb757613bb6613b5d565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c19602183613264565b9150613c2482613bbd565b604082019050919050565b60006020820190508181036000830152613c4881613c0c565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613cab603e83613264565b9150613cb682613c4f565b604082019050919050565b60006020820190508181036000830152613cda81613c9e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613d3d602e83613264565b9150613d4882613ce1565b604082019050919050565b60006020820190508181036000830152613d6c81613d30565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613dad8261330b565b9150613db88361330b565b9250828202613dc68161330b565b91508282048414831517613ddd57613ddc613d73565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e1e8261330b565b9150613e298361330b565b925082613e3957613e38613de4565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613ea0602b83613264565b9150613eab82613e44565b604082019050919050565b60006020820190508181036000830152613ecf81613e93565b9050919050565b6000613ee18261330b565b9150613eec8361330b565b9250828201905080821115613f0457613f03613d73565b5b92915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b6000613f40601683613264565b9150613f4b82613f0a565b602082019050919050565b60006020820190508181036000830152613f6f81613f33565b9050919050565b6000613f818261330b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613fb357613fb2613d73565b5b600182019050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b6000613ff4600f83613264565b9150613fff82613fbe565b602082019050919050565b6000602082019050818103600083015261402381613fe7565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614086602c83613264565b91506140918261402a565b604082019050919050565b600060208201905081810360008301526140b581614079565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261414d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614110565b6141578683614110565b95508019841693508086168417925050509392505050565b600061418a6141856141808461330b565b61351c565b61330b565b9050919050565b6000819050919050565b6141a48361416f565b6141b86141b082614191565b84845461411d565b825550505050565b600090565b6141cd6141c0565b6141d881848461419b565b505050565b5b818110156141fc576141f16000826141c5565b6001810190506141de565b5050565b601f82111561424157614212816140eb565b61421b84614100565b8101602085101561422a578190505b61423e61423685614100565b8301826141dd565b50505b505050565b600082821c905092915050565b600061426460001984600802614246565b1980831691505092915050565b600061427d8383614253565b9150826002028217905092915050565b61429682613259565b67ffffffffffffffff8111156142af576142ae6135a0565b5b6142b98254613b8c565b6142c4828285614200565b600060209050601f8311600181146142f757600084156142e5578287015190505b6142ef8582614271565b865550614357565b601f198416614305866140eb565b60005b8281101561432d57848901518255600182019150602085019450602081019050614308565b8683101561434a5784890151614346601f891682614253565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614395601883613264565b91506143a08261435f565b602082019050919050565b600060208201905081810360008301526143c481614388565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614401601f83613264565b915061440c826143cb565b602082019050919050565b60006020820190508181036000830152614430816143f4565b9050919050565b600060608201905061444c6000830186613436565b61445960208301856133a0565b61446660408301846133a0565b949350505050565b6000819050919050565b600061449361448e6144898461446e565b61351c565b61330b565b9050919050565b6144a381614478565b82525050565b60006060820190506144be6000830186613436565b6144cb60208301856133a0565b6144d8604083018461449a565b949350505050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061453c602983613264565b9150614547826144e0565b604082019050919050565b6000602082019050818103600083015261456b8161452f565b9050919050565b7f4164647265737320616e6420746f6b656e496473206c656e677468206d75737460008201527f206265207468652073616d652e00000000000000000000000000000000000000602082015250565b60006145ce602d83613264565b91506145d982614572565b604082019050919050565b600060208201905081810360008301526145fd816145c1565b9050919050565b7f546f6b656e20616c7265616479206d696e7465642e0000000000000000000000600082015250565b600061463a601583613264565b915061464582614604565b602082019050919050565b600060208201905081810360008301526146698161462d565b9050919050565b7f546f6b656e4964206e6f7420696e2072616e67652e0000000000000000000000600082015250565b60006146a6601583613264565b91506146b182614670565b602082019050919050565b600060208201905081810360008301526146d581614699565b9050919050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b6000614712601f83613264565b915061471d826146dc565b602082019050919050565b6000602082019050818103600083015261474181614705565b9050919050565b600081905092915050565b6000815461476081613b8c565b61476a8186614748565b94506001821660008114614785576001811461479a576147cd565b60ff19831686528115158202860193506147cd565b6147a3856140eb565b60005b838110156147c5578154818901526001820191506020810190506147a6565b838801955050505b50505092915050565b60006147e182613259565b6147eb8185614748565b93506147fb818560208601613275565b80840191505092915050565b60006148138285614753565b915061481f82846147d6565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614887602683613264565b91506148928261482b565b604082019050919050565b600060208201905081810360008301526148b68161487a565b9050919050565b7f496e76616c696420746f6b656e20616464726573730000000000000000000000600082015250565b60006148f3601583613264565b91506148fe826148bd565b602082019050919050565b60006020820190508181036000830152614922816148e6565b9050919050565b60008151905061493881613315565b92915050565b60006020828403121561495457614953613194565b5b600061496284828501614929565b91505092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006149c7602583613264565b91506149d28261496b565b604082019050919050565b600060208201905081810360008301526149f6816149ba565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614a59602483613264565b9150614a64826149fd565b604082019050919050565b60006020820190508181036000830152614a8881614a4c565b9050919050565b6000614a9a8261330b565b9150614aa58361330b565b9250828203905081811115614abd57614abc613d73565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614af9602083613264565b9150614b0482614ac3565b602082019050919050565b60006020820190508181036000830152614b2881614aec565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b65602083613264565b9150614b7082614b2f565b602082019050919050565b60006020820190508181036000830152614b9481614b58565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614bd1601c83613264565b9150614bdc82614b9b565b602082019050919050565b60006020820190508181036000830152614c0081614bc4565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614c3d601083613264565b9150614c4882614c07565b602082019050919050565b60006020820190508181036000830152614c6c81614c30565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ca9601983613264565b9150614cb482614c73565b602082019050919050565b60006020820190508181036000830152614cd881614c9c565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614d3b603283613264565b9150614d4682614cdf565b604082019050919050565b60006020820190508181036000830152614d6a81614d2e565b9050919050565b6000614d7c8261330b565b9150614d878361330b565b925082614d9757614d96613de4565b5b828206905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614dd8601483613264565b9150614de382614da2565b602082019050919050565b60006020820190508181036000830152614e0781614dcb565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614e3582614e0e565b614e3f8185614e19565b9350614e4f818560208601613275565b614e588161329f565b840191505092915050565b6000608082019050614e7860008301876133a0565b614e8560208301866133a0565b614e926040830185613436565b8181036060830152614ea48184614e2a565b905095945050505050565b600081519050614ebe816131ca565b92915050565b600060208284031215614eda57614ed9613194565b5b6000614ee884828501614eaf565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122074e9e54c88cbbfce20dbbc038f9616d1bcb5ff5f4c2c9bd0ec4e28e6f38c018f64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000b5be0c6b8e85a6851aa73a904b0aa153cbf020c40000000000000000000000000000000000000000000000000000000000000472000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f6d657461646174612e61657468657267616d65732e696f2f6170692f6d657461646174612f65746865726e616c732f67656e657369732f00
-----Decoded View---------------
Arg [0] : customBaseURI_ (string): https://metadata.aethergames.io/api/metadata/ethernals/genesis/
Arg [1] : _helper (address): 0xb5be0C6b8E85A6851aA73a904b0aa153Cbf020c4
Arg [2] : _counter (uint256): 1138
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000b5be0c6b8e85a6851aa73a904b0aa153cbf020c4
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000472
Arg [3] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [4] : 68747470733a2f2f6d657461646174612e61657468657267616d65732e696f2f
Arg [5] : 6170692f6d657461646174612f65746865726e616c732f67656e657369732f00
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.