Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 144 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16264768 | 767 days ago | IN | 0 ETH | 0.00050603 | ||||
Safe Transfer Fr... | 15660654 | 851 days ago | IN | 0 ETH | 0.00037758 | ||||
Set Approval For... | 15554099 | 866 days ago | IN | 0 ETH | 0.00045805 | ||||
Safe Transfer Fr... | 15468875 | 879 days ago | IN | 0 ETH | 0.00034366 | ||||
Set Approval For... | 15420324 | 887 days ago | IN | 0 ETH | 0.00029096 | ||||
Set Approval For... | 15407841 | 889 days ago | IN | 0 ETH | 0.00030453 | ||||
Set Approval For... | 15405279 | 890 days ago | IN | 0 ETH | 0.00037137 | ||||
Set Approval For... | 15382007 | 893 days ago | IN | 0 ETH | 0.00017175 | ||||
Set Approval For... | 15381059 | 893 days ago | IN | 0 ETH | 0.0002629 | ||||
Transfer From | 15381014 | 893 days ago | IN | 0 ETH | 0.00028926 | ||||
Safe Transfer Fr... | 15380131 | 894 days ago | IN | 0 ETH | 0.00055991 | ||||
Set Approval For... | 15378491 | 894 days ago | IN | 0 ETH | 0.00040135 | ||||
Set Approval For... | 15378481 | 894 days ago | IN | 0 ETH | 0.00057683 | ||||
Set Approval For... | 15378402 | 894 days ago | IN | 0 ETH | 0.00036259 | ||||
Set Approval For... | 15378401 | 894 days ago | IN | 0 ETH | 0.00057043 | ||||
Safe Transfer Fr... | 15374931 | 894 days ago | IN | 0 ETH | 0.00076059 | ||||
Safe Transfer Fr... | 15374694 | 894 days ago | IN | 0 ETH | 0.00064096 | ||||
Set Approval For... | 15371485 | 895 days ago | IN | 0 ETH | 0.00099707 | ||||
Safe Transfer Fr... | 15369369 | 895 days ago | IN | 0 ETH | 0.00077684 | ||||
Set Approval For... | 15367054 | 896 days ago | IN | 0 ETH | 0.00050245 | ||||
Set Approval For... | 15366618 | 896 days ago | IN | 0 ETH | 0.00066376 | ||||
Set Approval For... | 15362219 | 896 days ago | IN | 0 ETH | 0.00036073 | ||||
Safe Transfer Fr... | 15360877 | 897 days ago | IN | 0 ETH | 0.00179097 | ||||
Safe Transfer Fr... | 15360876 | 897 days ago | IN | 0 ETH | 0.00164838 | ||||
Safe Transfer Fr... | 15360875 | 897 days ago | IN | 0 ETH | 0.0014804 |
Latest 12 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15360692 | 897 days ago | 0.32 ETH | ||||
15360554 | 897 days ago | 0.08 ETH | ||||
15360545 | 897 days ago | 0.48 ETH | ||||
15360535 | 897 days ago | 0.48 ETH | ||||
15360524 | 897 days ago | 0.48 ETH | ||||
15360518 | 897 days ago | 0.48 ETH | ||||
15360513 | 897 days ago | 0.48 ETH | ||||
15360505 | 897 days ago | 0.48 ETH | ||||
15360493 | 897 days ago | 0.48 ETH | ||||
15360486 | 897 days ago | 0.48 ETH | ||||
15360475 | 897 days ago | 0.56 ETH | ||||
14742438 | 997 days ago | 1.68 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
W3bScholars
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC2981, IERC165} from "@openzeppelin/contracts/interfaces/IERC2981.sol"; /** ___ __ ________ ________ |\ \ |\ \ |\_____ \ |\ __ \ \ \ \ \ \ \\|____|\ /_\ \ \|\ /_ \ \ \ __\ \ \ \|\ \\ \ __ \ \ \ \|\__\_\ \ __\_\ \\ \ \|\ \ \ \____________\ |\_______\\ \_______\ \|____________| \|_______| \|_______| ________ ________ ___ ___ ________ ___ ________ ________ ________ |\ ____\ |\ ____\ |\ \|\ \ |\ __ \ |\ \ |\ __ \ |\ __ \ |\ ____\ \ \ \___|_\ \ \___| \ \ \\\ \\ \ \|\ \\ \ \ \ \ \|\ \\ \ \|\ \\ \ \___|_ \ \_____ \\ \ \ \ \ __ \\ \ \\\ \\ \ \ \ \ __ \\ \ _ _\\ \_____ \ \|____|\ \\ \ \____ \ \ \ \ \\ \ \\\ \\ \ \____ \ \ \ \ \\ \ \\ \|\|____|\ \ ____\_\ \\ \_______\\ \__\ \__\\ \_______\\ \_______\\ \__\ \__\\ \__\\ _\ ____\_\ \ |\_________\\|_______| \|__|\|__| \|_______| \|_______| \|__|\|__| \|__|\|__||\_________\ \|_________| \|_________| */ contract W3bScholars is ERC721, ERC721Enumerable, IERC2981, Ownable, ReentrancyGuard { using Strings for uint256; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant PRICE_PER_TOKEN = 0.08 ether; uint256 public constant MAX_ALLOW_LIST_MINT = 100; bool public saleIsActive = false; bool public isAllowListActive = false; address public beneficiary; address public royalties; string public baseURI; bytes32 public merkleRoot; mapping(address => uint256) private _alreadyMinted; constructor( address _beneficiary, address _royalties, string memory _initialBaseURI ) ERC721("SCHOLARS", "SCHLR") { beneficiary = _beneficiary; royalties = _royalties; baseURI = _initialBaseURI; } function setIsAllowListActive(bool _isAllowListActive) external onlyOwner { isAllowListActive = _isAllowListActive; } function setRoyalties(address _royalties) public onlyOwner { royalties = _royalties; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function alreadyMinted(address addr) public view returns (uint256) { return _alreadyMinted[addr]; } function mintAllowList(uint256 amount, bytes32[] calldata merkleProof) public payable nonReentrant { address sender = _msgSender(); uint256 ts = totalSupply(); require(isAllowListActive, "Sale is closed"); require(ts + amount <= MAX_SUPPLY, "Purchase would exceed max tokens"); require( amount <= MAX_ALLOW_LIST_MINT - _alreadyMinted[sender], "Insufficient mints left" ); require( MerkleProof.verify( merkleProof, merkleRoot, keccak256(abi.encodePacked(sender)) ), "Invalid proof" ); require( msg.value == PRICE_PER_TOKEN * amount, "Incorrect payable amount" ); _alreadyMinted[sender] += amount; for (uint256 i = 1; i <= amount; i++) { _safeMint(sender, ts + i); } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function setBaseURI(string memory baseURI_) external onlyOwner { baseURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setSaleState(bool newState) public onlyOwner { saleIsActive = newState; } function mint(uint256 numberOfTokens) public payable { uint256 ts = totalSupply(); require(saleIsActive, "Sale must be active to mint"); require( ts + numberOfTokens <= MAX_SUPPLY, "Purchase would exceed max tokens" ); require( PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether value sent is not correct" ); for (uint256 i = 1; i <= numberOfTokens; i++) { _safeMint(msg.sender, ts + i); } } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(beneficiary).transfer(balance); } function contractURI() public view returns (string memory) { return string(abi.encodePacked(baseURI, "collection.json")); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address, uint256 royaltyAmount) { _tokenId; // silence solc warning royaltyAmount = (_salePrice * 750) / 10000; return (royalties, royaltyAmount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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: balance query for the zero address"); 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: owner query for nonexistent token"); 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) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); 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: transfer caller is not 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: transfer caller is not 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) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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 a {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 a {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 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 { 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 v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // 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) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./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 payed 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 v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// 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.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 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_royalties","type":"address"},{"internalType":"string","name":"_initialBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ALLOW_LIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"alreadyMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintAllowList","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royalties","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowListActive","type":"bool"}],"name":"setIsAllowListActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royalties","type":"address"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setSaleState","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"}]
Contract Creation Code
60806040526000600c60006101000a81548160ff0219169083151502179055506000600c60016101000a81548160ff0219169083151502179055503480156200004757600080fd5b50604051620052b8380380620052b883398181016040528101906200006d919062000559565b6040518060400160405280600881526020017f5343484f4c4152530000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f5343484c520000000000000000000000000000000000000000000000000000008152508160009080519060200190620000f1929190620002a7565b5080600190805190602001906200010a929190620002a7565b5050506200012d62000121620001d960201b60201c565b620001e160201b60201c565b6001600b8190555082600c60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e9080519060200190620001cf929190620002a7565b5050505062000639565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002b59062000603565b90600052602060002090601f016020900481019282620002d9576000855562000325565b82601f10620002f457805160ff191683800117855562000325565b8280016001018555821562000325579182015b828111156200032457825182559160200191906001019062000307565b5b50905062000334919062000338565b5090565b5b808211156200035357600081600090555060010162000339565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000398826200036b565b9050919050565b620003aa816200038b565b8114620003b657600080fd5b50565b600081519050620003ca816200039f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200042582620003da565b810181811067ffffffffffffffff82111715620004475762000446620003eb565b5b80604052505050565b60006200045c62000357565b90506200046a82826200041a565b919050565b600067ffffffffffffffff8211156200048d576200048c620003eb565b5b6200049882620003da565b9050602081019050919050565b60005b83811015620004c5578082015181840152602081019050620004a8565b83811115620004d5576000848401525b50505050565b6000620004f2620004ec846200046f565b62000450565b905082815260208101848484011115620005115762000510620003d5565b5b6200051e848285620004a5565b509392505050565b600082601f8301126200053e576200053d620003d0565b5b815162000550848260208601620004db565b91505092915050565b60008060006060848603121562000575576200057462000361565b5b60006200058586828701620003b9565b93505060206200059886828701620003b9565b925050604084015167ffffffffffffffff811115620005bc57620005bb62000366565b5b620005ca8682870162000526565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200061c57607f821691505b60208210811415620006335762000632620005d4565b5b50919050565b614c6f80620006496000396000f3fe6080604052600436106102305760003560e01c80636352211e1161012e578063a22cb465116100ab578063e985e9c51161006f578063e985e9c514610843578063eb8d244414610880578063f053dc5c146108ab578063f2fde38b146108d6578063fa05a657146108ff57610230565b8063a22cb46514610760578063b88d4fde14610789578063c4e37095146107b2578063c87b56dd146107db578063e8a3d4851461081857610230565b80637cb64759116100f25780637cb647591461069a578063833b9499146106c35780638da5cb5b146106ee57806395d89b4114610719578063a0712d681461074457610230565b80636352211e146105b55780636c0360eb146105f257806370a082311461061d578063715018a61461065a578063718bc4af1461067157610230565b80632a9e63c6116101bc57806338af3eed1161018057806338af3eed146104e45780633ccfd60b1461050f57806342842e0e146105265780634f6ccce71461054f57806355f804b31461058c57610230565b80632a9e63c6146103fd5780632e8ba1f2146104265780632eb4a7ab146104515780632f745c591461047c57806332cb6b0c146104b957610230565b80630a398b88116102035780630a398b881461030357806318160ddd1461034057806323b872dd1461036b57806329fc6bae146103945780632a55205a146103bf57610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906131b5565b61091b565b60405161026991906131fd565b60405180910390f35b34801561027e57600080fd5b50610287610995565b60405161029491906132b1565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190613309565b610a27565b6040516102d19190613377565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc91906133be565b610aac565b005b34801561030f57600080fd5b5061032a600480360381019061032591906133fe565b610bc4565b604051610337919061343a565b60405180910390f35b34801561034c57600080fd5b50610355610c0d565b604051610362919061343a565b60405180910390f35b34801561037757600080fd5b50610392600480360381019061038d9190613455565b610c1a565b005b3480156103a057600080fd5b506103a9610c7a565b6040516103b691906131fd565b60405180910390f35b3480156103cb57600080fd5b506103e660048036038101906103e191906134a8565b610c8d565b6040516103f49291906134e8565b60405180910390f35b34801561040957600080fd5b50610424600480360381019061041f91906133fe565b610cd9565b005b34801561043257600080fd5b5061043b610d99565b604051610448919061343a565b60405180910390f35b34801561045d57600080fd5b50610466610d9e565b604051610473919061352a565b60405180910390f35b34801561048857600080fd5b506104a3600480360381019061049e91906133be565b610da4565b6040516104b0919061343a565b60405180910390f35b3480156104c557600080fd5b506104ce610e49565b6040516104db919061343a565b60405180910390f35b3480156104f057600080fd5b506104f9610e4f565b6040516105069190613377565b60405180910390f35b34801561051b57600080fd5b50610524610e75565b005b34801561053257600080fd5b5061054d60048036038101906105489190613455565b610f62565b005b34801561055b57600080fd5b5061057660048036038101906105719190613309565b610f82565b604051610583919061343a565b60405180910390f35b34801561059857600080fd5b506105b360048036038101906105ae919061367a565b610ff3565b005b3480156105c157600080fd5b506105dc60048036038101906105d79190613309565b611089565b6040516105e99190613377565b60405180910390f35b3480156105fe57600080fd5b5061060761113b565b60405161061491906132b1565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f91906133fe565b6111c9565b604051610651919061343a565b60405180910390f35b34801561066657600080fd5b5061066f611281565b005b34801561067d57600080fd5b50610698600480360381019061069391906136ef565b611309565b005b3480156106a657600080fd5b506106c160048036038101906106bc9190613748565b6113a2565b005b3480156106cf57600080fd5b506106d8611428565b6040516106e5919061343a565b60405180910390f35b3480156106fa57600080fd5b50610703611434565b6040516107109190613377565b60405180910390f35b34801561072557600080fd5b5061072e61145e565b60405161073b91906132b1565b60405180910390f35b61075e60048036038101906107599190613309565b6114f0565b005b34801561076c57600080fd5b5061078760048036038101906107829190613775565b61162c565b005b34801561079557600080fd5b506107b060048036038101906107ab9190613856565b611642565b005b3480156107be57600080fd5b506107d960048036038101906107d491906136ef565b6116a4565b005b3480156107e757600080fd5b5061080260048036038101906107fd9190613309565b61173d565b60405161080f91906132b1565b60405180910390f35b34801561082457600080fd5b5061082d6117e4565b60405161083a91906132b1565b60405180910390f35b34801561084f57600080fd5b5061086a600480360381019061086591906138d9565b61180c565b60405161087791906131fd565b60405180910390f35b34801561088c57600080fd5b506108956118a0565b6040516108a291906131fd565b60405180910390f35b3480156108b757600080fd5b506108c06118b3565b6040516108cd9190613377565b60405180910390f35b3480156108e257600080fd5b506108fd60048036038101906108f891906133fe565b6118d9565b005b61091960048036038101906109149190613979565b6119d1565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061098e575061098d82611d08565b5b9050919050565b6060600080546109a490613a08565b80601f01602080910402602001604051908101604052809291908181526020018280546109d090613a08565b8015610a1d5780601f106109f257610100808354040283529160200191610a1d565b820191906000526020600020905b815481529060010190602001808311610a0057829003601f168201915b5050505050905090565b6000610a3282611d82565b610a71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6890613aac565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ab782611089565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1f90613b3e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b47611dee565b73ffffffffffffffffffffffffffffffffffffffff161480610b765750610b7581610b70611dee565b61180c565b5b610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac90613bd0565b60405180910390fd5b610bbf8383611df6565b505050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600880549050905090565b610c2b610c25611dee565b82611eaf565b610c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6190613c62565b60405180910390fd5b610c75838383611f8d565b505050565b600c60019054906101000a900460ff1681565b6000806127106102ee84610ca19190613cb1565b610cab9190613d3a565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691509250929050565b610ce1611dee565b73ffffffffffffffffffffffffffffffffffffffff16610cff611434565b73ffffffffffffffffffffffffffffffffffffffff1614610d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4c90613db7565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606481565b600f5481565b6000610daf836111c9565b8210610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de790613e49565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61271081565b600c60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e7d611dee565b73ffffffffffffffffffffffffffffffffffffffff16610e9b611434565b73ffffffffffffffffffffffffffffffffffffffff1614610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee890613db7565b60405180910390fd5b6000479050600c60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610f5e573d6000803e3d6000fd5b5050565b610f7d83838360405180602001604052806000815250611642565b505050565b6000610f8c610c0d565b8210610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490613edb565b60405180910390fd5b60088281548110610fe157610fe0613efb565b5b90600052602060002001549050919050565b610ffb611dee565b73ffffffffffffffffffffffffffffffffffffffff16611019611434565b73ffffffffffffffffffffffffffffffffffffffff161461106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106690613db7565b60405180910390fd5b80600e90805190602001906110859291906130a6565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112990613f9c565b60405180910390fd5b80915050919050565b600e805461114890613a08565b80601f016020809104026020016040519081016040528092919081815260200182805461117490613a08565b80156111c15780601f10611196576101008083540402835291602001916111c1565b820191906000526020600020905b8154815290600101906020018083116111a457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561123a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112319061402e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611289611dee565b73ffffffffffffffffffffffffffffffffffffffff166112a7611434565b73ffffffffffffffffffffffffffffffffffffffff16146112fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f490613db7565b60405180910390fd5b61130760006121f4565b565b611311611dee565b73ffffffffffffffffffffffffffffffffffffffff1661132f611434565b73ffffffffffffffffffffffffffffffffffffffff1614611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90613db7565b60405180910390fd5b80600c60016101000a81548160ff02191690831515021790555050565b6113aa611dee565b73ffffffffffffffffffffffffffffffffffffffff166113c8611434565b73ffffffffffffffffffffffffffffffffffffffff161461141e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141590613db7565b60405180910390fd5b80600f8190555050565b67011c37937e08000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461146d90613a08565b80601f016020809104026020016040519081016040528092919081815260200182805461149990613a08565b80156114e65780601f106114bb576101008083540402835291602001916114e6565b820191906000526020600020905b8154815290600101906020018083116114c957829003601f168201915b5050505050905090565b60006114fa610c0d565b9050600c60009054906101000a900460ff1661154b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115429061409a565b60405180910390fd5b612710828261155a91906140ba565b111561159b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115929061415c565b60405180910390fd5b348267011c37937e0800006115b09190613cb1565b11156115f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e8906141c8565b60405180910390fd5b6000600190505b8281116116275761161433828461160f91906140ba565b6122ba565b808061161f906141e8565b9150506115f8565b505050565b61163e611637611dee565b83836122d8565b5050565b61165361164d611dee565b83611eaf565b611692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168990613c62565b60405180910390fd5b61169e84848484612445565b50505050565b6116ac611dee565b73ffffffffffffffffffffffffffffffffffffffff166116ca611434565b73ffffffffffffffffffffffffffffffffffffffff1614611720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171790613db7565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b606061174882611d82565b611787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177e906142a3565b60405180910390fd5b60006117916124a1565b905060008151116117b157604051806020016040528060008152506117dc565b806117bb84612533565b6040516020016117cc9291906142ff565b6040516020818303038152906040525b915050919050565b6060600e6040516020016117f89190614403565b604051602081830303815290604052905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c60009054906101000a900460ff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118e1611dee565b73ffffffffffffffffffffffffffffffffffffffff166118ff611434565b73ffffffffffffffffffffffffffffffffffffffff1614611955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194c90613db7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc90614497565b60405180910390fd5b6119ce816121f4565b50565b6002600b541415611a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0e90614503565b60405180910390fd5b6002600b819055506000611a29611dee565b90506000611a35610c0d565b9050600c60019054906101000a900460ff16611a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7d9061456f565b60405180910390fd5b6127108582611a9591906140ba565b1115611ad6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acd9061415c565b60405180910390fd5b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546064611b22919061458f565b851115611b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5b9061460f565b60405180910390fd5b611bd8848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5484604051602001611bbd9190614677565b60405160208183030381529060405280519060200120612694565b611c17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0e906146de565b60405180910390fd5b8467011c37937e080000611c2b9190613cb1565b3414611c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c639061474a565b60405180910390fd5b84601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cbb91906140ba565b925050819055506000600190505b858111611cf857611ce5838284611ce091906140ba565b6122ba565b8080611cf0906141e8565b915050611cc9565b5050506001600b81905550505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d7b5750611d7a826126ab565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e6983611089565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611eba82611d82565b611ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef0906147dc565b60405180910390fd5b6000611f0483611089565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f7357508373ffffffffffffffffffffffffffffffffffffffff16611f5b84610a27565b73ffffffffffffffffffffffffffffffffffffffff16145b80611f845750611f83818561180c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611fad82611089565b73ffffffffffffffffffffffffffffffffffffffff1614612003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffa9061486e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206a90614900565b60405180910390fd5b61207e83838361278d565b612089600082611df6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120d9919061458f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461213091906140ba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121ef83838361279d565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122d48282604051806020016040528060008152506127a2565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233e9061496c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161243891906131fd565b60405180910390a3505050565b612450848484611f8d565b61245c848484846127fd565b61249b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612492906149fe565b60405180910390fd5b50505050565b6060600e80546124b090613a08565b80601f01602080910402602001604051908101604052809291908181526020018280546124dc90613a08565b80156125295780601f106124fe57610100808354040283529160200191612529565b820191906000526020600020905b81548152906001019060200180831161250c57829003601f168201915b5050505050905090565b6060600082141561257b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061268f565b600082905060005b600082146125ad578080612596906141e8565b915050600a826125a69190613d3a565b9150612583565b60008167ffffffffffffffff8111156125c9576125c861354f565b5b6040519080825280601f01601f1916602001820160405280156125fb5781602001600182028036833780820191505090505b5090505b6000851461268857600182612614919061458f565b9150600a856126239190614a1e565b603061262f91906140ba565b60f81b81838151811061264557612644613efb565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126819190613d3a565b94506125ff565b8093505050505b919050565b6000826126a18584612994565b1490509392505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612786575061278582612a09565b5b9050919050565b612798838383612a73565b505050565b505050565b6127ac8383612b87565b6127b960008484846127fd565b6127f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ef906149fe565b60405180910390fd5b505050565b600061281e8473ffffffffffffffffffffffffffffffffffffffff16612d61565b15612987578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612847611dee565b8786866040518563ffffffff1660e01b81526004016128699493929190614aa4565b602060405180830381600087803b15801561288357600080fd5b505af19250505080156128b457506040513d601f19601f820116820180604052508101906128b19190614b05565b60015b612937573d80600081146128e4576040519150601f19603f3d011682016040523d82523d6000602084013e6128e9565b606091505b5060008151141561292f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612926906149fe565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061298c565b600190505b949350505050565b60008082905060005b84518110156129fe5760008582815181106129bb576129ba613efb565b5b602002602001015190508083116129dd576129d68382612d84565b92506129ea565b6129e78184612d84565b92505b5080806129f6906141e8565b91505061299d565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612a7e838383612d9b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac157612abc81612da0565b612b00565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612aff57612afe8382612de9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b4357612b3e81612f56565b612b82565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b8157612b808282613027565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bee90614b7e565b60405180910390fd5b612c0081611d82565b15612c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3790614bea565b60405180910390fd5b612c4c6000838361278d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c9c91906140ba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d5d6000838361279d565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612df6846111c9565b612e00919061458f565b9050600060076000848152602001908152602001600020549050818114612ee5576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612f6a919061458f565b9050600060096000848152602001908152602001600020549050600060088381548110612f9a57612f99613efb565b5b906000526020600020015490508060088381548110612fbc57612fbb613efb565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061300b5761300a614c0a565b5b6001900381819060005260206000200160009055905550505050565b6000613032836111c9565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546130b290613a08565b90600052602060002090601f0160209004810192826130d4576000855561311b565b82601f106130ed57805160ff191683800117855561311b565b8280016001018555821561311b579182015b8281111561311a5782518255916020019190600101906130ff565b5b509050613128919061312c565b5090565b5b8082111561314557600081600090555060010161312d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131928161315d565b811461319d57600080fd5b50565b6000813590506131af81613189565b92915050565b6000602082840312156131cb576131ca613153565b5b60006131d9848285016131a0565b91505092915050565b60008115159050919050565b6131f7816131e2565b82525050565b600060208201905061321260008301846131ee565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613252578082015181840152602081019050613237565b83811115613261576000848401525b50505050565b6000601f19601f8301169050919050565b600061328382613218565b61328d8185613223565b935061329d818560208601613234565b6132a681613267565b840191505092915050565b600060208201905081810360008301526132cb8184613278565b905092915050565b6000819050919050565b6132e6816132d3565b81146132f157600080fd5b50565b600081359050613303816132dd565b92915050565b60006020828403121561331f5761331e613153565b5b600061332d848285016132f4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061336182613336565b9050919050565b61337181613356565b82525050565b600060208201905061338c6000830184613368565b92915050565b61339b81613356565b81146133a657600080fd5b50565b6000813590506133b881613392565b92915050565b600080604083850312156133d5576133d4613153565b5b60006133e3858286016133a9565b92505060206133f4858286016132f4565b9150509250929050565b60006020828403121561341457613413613153565b5b6000613422848285016133a9565b91505092915050565b613434816132d3565b82525050565b600060208201905061344f600083018461342b565b92915050565b60008060006060848603121561346e5761346d613153565b5b600061347c868287016133a9565b935050602061348d868287016133a9565b925050604061349e868287016132f4565b9150509250925092565b600080604083850312156134bf576134be613153565b5b60006134cd858286016132f4565b92505060206134de858286016132f4565b9150509250929050565b60006040820190506134fd6000830185613368565b61350a602083018461342b565b9392505050565b6000819050919050565b61352481613511565b82525050565b600060208201905061353f600083018461351b565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61358782613267565b810181811067ffffffffffffffff821117156135a6576135a561354f565b5b80604052505050565b60006135b9613149565b90506135c5828261357e565b919050565b600067ffffffffffffffff8211156135e5576135e461354f565b5b6135ee82613267565b9050602081019050919050565b82818337600083830152505050565b600061361d613618846135ca565b6135af565b9050828152602081018484840111156136395761363861354a565b5b6136448482856135fb565b509392505050565b600082601f83011261366157613660613545565b5b813561367184826020860161360a565b91505092915050565b6000602082840312156136905761368f613153565b5b600082013567ffffffffffffffff8111156136ae576136ad613158565b5b6136ba8482850161364c565b91505092915050565b6136cc816131e2565b81146136d757600080fd5b50565b6000813590506136e9816136c3565b92915050565b60006020828403121561370557613704613153565b5b6000613713848285016136da565b91505092915050565b61372581613511565b811461373057600080fd5b50565b6000813590506137428161371c565b92915050565b60006020828403121561375e5761375d613153565b5b600061376c84828501613733565b91505092915050565b6000806040838503121561378c5761378b613153565b5b600061379a858286016133a9565b92505060206137ab858286016136da565b9150509250929050565b600067ffffffffffffffff8211156137d0576137cf61354f565b5b6137d982613267565b9050602081019050919050565b60006137f96137f4846137b5565b6135af565b9050828152602081018484840111156138155761381461354a565b5b6138208482856135fb565b509392505050565b600082601f83011261383d5761383c613545565b5b813561384d8482602086016137e6565b91505092915050565b600080600080608085870312156138705761386f613153565b5b600061387e878288016133a9565b945050602061388f878288016133a9565b93505060406138a0878288016132f4565b925050606085013567ffffffffffffffff8111156138c1576138c0613158565b5b6138cd87828801613828565b91505092959194509250565b600080604083850312156138f0576138ef613153565b5b60006138fe858286016133a9565b925050602061390f858286016133a9565b9150509250929050565b600080fd5b600080fd5b60008083601f84011261393957613938613545565b5b8235905067ffffffffffffffff81111561395657613955613919565b5b6020830191508360208202830111156139725761397161391e565b5b9250929050565b60008060006040848603121561399257613991613153565b5b60006139a0868287016132f4565b935050602084013567ffffffffffffffff8111156139c1576139c0613158565b5b6139cd86828701613923565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a2057607f821691505b60208210811415613a3457613a336139d9565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613a96602c83613223565b9150613aa182613a3a565b604082019050919050565b60006020820190508181036000830152613ac581613a89565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b28602183613223565b9150613b3382613acc565b604082019050919050565b60006020820190508181036000830152613b5781613b1b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613bba603883613223565b9150613bc582613b5e565b604082019050919050565b60006020820190508181036000830152613be981613bad565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613c4c603183613223565b9150613c5782613bf0565b604082019050919050565b60006020820190508181036000830152613c7b81613c3f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cbc826132d3565b9150613cc7836132d3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d0057613cff613c82565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d45826132d3565b9150613d50836132d3565b925082613d6057613d5f613d0b565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613da1602083613223565b9150613dac82613d6b565b602082019050919050565b60006020820190508181036000830152613dd081613d94565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613e33602b83613223565b9150613e3e82613dd7565b604082019050919050565b60006020820190508181036000830152613e6281613e26565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613ec5602c83613223565b9150613ed082613e69565b604082019050919050565b60006020820190508181036000830152613ef481613eb8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613f86602983613223565b9150613f9182613f2a565b604082019050919050565b60006020820190508181036000830152613fb581613f79565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614018602a83613223565b915061402382613fbc565b604082019050919050565b600060208201905081810360008301526140478161400b565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b6000614084601b83613223565b915061408f8261404e565b602082019050919050565b600060208201905081810360008301526140b381614077565b9050919050565b60006140c5826132d3565b91506140d0836132d3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561410557614104613c82565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73600082015250565b6000614146602083613223565b915061415182614110565b602082019050919050565b6000602082019050818103600083015261417581614139565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b60006141b2601f83613223565b91506141bd8261417c565b602082019050919050565b600060208201905081810360008301526141e1816141a5565b9050919050565b60006141f3826132d3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561422657614225613c82565b5b600182019050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061428d602f83613223565b915061429882614231565b604082019050919050565b600060208201905081810360008301526142bc81614280565b9050919050565b600081905092915050565b60006142d982613218565b6142e381856142c3565b93506142f3818560208601613234565b80840191505092915050565b600061430b82856142ce565b915061431782846142ce565b91508190509392505050565b60008190508160005260206000209050919050565b6000815461434581613a08565b61434f81866142c3565b9450600182166000811461436a576001811461437b576143ae565b60ff198316865281860193506143ae565b61438485614323565b60005b838110156143a657815481890152600182019150602081019050614387565b838801955050505b50505092915050565b7f636f6c6c656374696f6e2e6a736f6e0000000000000000000000000000000000600082015250565b60006143ed600f836142c3565b91506143f8826143b7565b600f82019050919050565b600061440f8284614338565b915061441a826143e0565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614481602683613223565b915061448c82614425565b604082019050919050565b600060208201905081810360008301526144b081614474565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006144ed601f83613223565b91506144f8826144b7565b602082019050919050565b6000602082019050818103600083015261451c816144e0565b9050919050565b7f53616c6520697320636c6f736564000000000000000000000000000000000000600082015250565b6000614559600e83613223565b915061456482614523565b602082019050919050565b600060208201905081810360008301526145888161454c565b9050919050565b600061459a826132d3565b91506145a5836132d3565b9250828210156145b8576145b7613c82565b5b828203905092915050565b7f496e73756666696369656e74206d696e7473206c656674000000000000000000600082015250565b60006145f9601783613223565b9150614604826145c3565b602082019050919050565b60006020820190508181036000830152614628816145ec565b9050919050565b60008160601b9050919050565b60006146478261462f565b9050919050565b60006146598261463c565b9050919050565b61467161466c82613356565b61464e565b82525050565b60006146838284614660565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60006146c8600d83613223565b91506146d382614692565b602082019050919050565b600060208201905081810360008301526146f7816146bb565b9050919050565b7f496e636f72726563742070617961626c6520616d6f756e740000000000000000600082015250565b6000614734601883613223565b915061473f826146fe565b602082019050919050565b6000602082019050818103600083015261476381614727565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006147c6602c83613223565b91506147d18261476a565b604082019050919050565b600060208201905081810360008301526147f5816147b9565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614858602583613223565b9150614863826147fc565b604082019050919050565b600060208201905081810360008301526148878161484b565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006148ea602483613223565b91506148f58261488e565b604082019050919050565b60006020820190508181036000830152614919816148dd565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614956601983613223565b915061496182614920565b602082019050919050565b6000602082019050818103600083015261498581614949565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006149e8603283613223565b91506149f38261498c565b604082019050919050565b60006020820190508181036000830152614a17816149db565b9050919050565b6000614a29826132d3565b9150614a34836132d3565b925082614a4457614a43613d0b565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614a7682614a4f565b614a808185614a5a565b9350614a90818560208601613234565b614a9981613267565b840191505092915050565b6000608082019050614ab96000830187613368565b614ac66020830186613368565b614ad3604083018561342b565b8181036060830152614ae58184614a6b565b905095945050505050565b600081519050614aff81613189565b92915050565b600060208284031215614b1b57614b1a613153565b5b6000614b2984828501614af0565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b68602083613223565b9150614b7382614b32565b602082019050919050565b60006020820190508181036000830152614b9781614b5b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614bd4601c83613223565b9150614bdf82614b9e565b602082019050919050565b60006020820190508181036000830152614c0381614bc7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220b91f6a89ab274b1366c3c2a67c3a90a4176c9f71d5887d8e7c601fbea2dcd76264736f6c634300080900330000000000000000000000008e93c7c02f2bcb20877a192d1b078b9007e2fd4f0000000000000000000000008e93c7c02f2bcb20877a192d1b078b9007e2fd4f0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6173736574732e7733627363686f6c6172732e636f6d2f6d657461646174612f000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102305760003560e01c80636352211e1161012e578063a22cb465116100ab578063e985e9c51161006f578063e985e9c514610843578063eb8d244414610880578063f053dc5c146108ab578063f2fde38b146108d6578063fa05a657146108ff57610230565b8063a22cb46514610760578063b88d4fde14610789578063c4e37095146107b2578063c87b56dd146107db578063e8a3d4851461081857610230565b80637cb64759116100f25780637cb647591461069a578063833b9499146106c35780638da5cb5b146106ee57806395d89b4114610719578063a0712d681461074457610230565b80636352211e146105b55780636c0360eb146105f257806370a082311461061d578063715018a61461065a578063718bc4af1461067157610230565b80632a9e63c6116101bc57806338af3eed1161018057806338af3eed146104e45780633ccfd60b1461050f57806342842e0e146105265780634f6ccce71461054f57806355f804b31461058c57610230565b80632a9e63c6146103fd5780632e8ba1f2146104265780632eb4a7ab146104515780632f745c591461047c57806332cb6b0c146104b957610230565b80630a398b88116102035780630a398b881461030357806318160ddd1461034057806323b872dd1461036b57806329fc6bae146103945780632a55205a146103bf57610230565b806301ffc9a71461023557806306fdde0314610272578063081812fc1461029d578063095ea7b3146102da575b600080fd5b34801561024157600080fd5b5061025c600480360381019061025791906131b5565b61091b565b60405161026991906131fd565b60405180910390f35b34801561027e57600080fd5b50610287610995565b60405161029491906132b1565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190613309565b610a27565b6040516102d19190613377565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc91906133be565b610aac565b005b34801561030f57600080fd5b5061032a600480360381019061032591906133fe565b610bc4565b604051610337919061343a565b60405180910390f35b34801561034c57600080fd5b50610355610c0d565b604051610362919061343a565b60405180910390f35b34801561037757600080fd5b50610392600480360381019061038d9190613455565b610c1a565b005b3480156103a057600080fd5b506103a9610c7a565b6040516103b691906131fd565b60405180910390f35b3480156103cb57600080fd5b506103e660048036038101906103e191906134a8565b610c8d565b6040516103f49291906134e8565b60405180910390f35b34801561040957600080fd5b50610424600480360381019061041f91906133fe565b610cd9565b005b34801561043257600080fd5b5061043b610d99565b604051610448919061343a565b60405180910390f35b34801561045d57600080fd5b50610466610d9e565b604051610473919061352a565b60405180910390f35b34801561048857600080fd5b506104a3600480360381019061049e91906133be565b610da4565b6040516104b0919061343a565b60405180910390f35b3480156104c557600080fd5b506104ce610e49565b6040516104db919061343a565b60405180910390f35b3480156104f057600080fd5b506104f9610e4f565b6040516105069190613377565b60405180910390f35b34801561051b57600080fd5b50610524610e75565b005b34801561053257600080fd5b5061054d60048036038101906105489190613455565b610f62565b005b34801561055b57600080fd5b5061057660048036038101906105719190613309565b610f82565b604051610583919061343a565b60405180910390f35b34801561059857600080fd5b506105b360048036038101906105ae919061367a565b610ff3565b005b3480156105c157600080fd5b506105dc60048036038101906105d79190613309565b611089565b6040516105e99190613377565b60405180910390f35b3480156105fe57600080fd5b5061060761113b565b60405161061491906132b1565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f91906133fe565b6111c9565b604051610651919061343a565b60405180910390f35b34801561066657600080fd5b5061066f611281565b005b34801561067d57600080fd5b50610698600480360381019061069391906136ef565b611309565b005b3480156106a657600080fd5b506106c160048036038101906106bc9190613748565b6113a2565b005b3480156106cf57600080fd5b506106d8611428565b6040516106e5919061343a565b60405180910390f35b3480156106fa57600080fd5b50610703611434565b6040516107109190613377565b60405180910390f35b34801561072557600080fd5b5061072e61145e565b60405161073b91906132b1565b60405180910390f35b61075e60048036038101906107599190613309565b6114f0565b005b34801561076c57600080fd5b5061078760048036038101906107829190613775565b61162c565b005b34801561079557600080fd5b506107b060048036038101906107ab9190613856565b611642565b005b3480156107be57600080fd5b506107d960048036038101906107d491906136ef565b6116a4565b005b3480156107e757600080fd5b5061080260048036038101906107fd9190613309565b61173d565b60405161080f91906132b1565b60405180910390f35b34801561082457600080fd5b5061082d6117e4565b60405161083a91906132b1565b60405180910390f35b34801561084f57600080fd5b5061086a600480360381019061086591906138d9565b61180c565b60405161087791906131fd565b60405180910390f35b34801561088c57600080fd5b506108956118a0565b6040516108a291906131fd565b60405180910390f35b3480156108b757600080fd5b506108c06118b3565b6040516108cd9190613377565b60405180910390f35b3480156108e257600080fd5b506108fd60048036038101906108f891906133fe565b6118d9565b005b61091960048036038101906109149190613979565b6119d1565b005b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061098e575061098d82611d08565b5b9050919050565b6060600080546109a490613a08565b80601f01602080910402602001604051908101604052809291908181526020018280546109d090613a08565b8015610a1d5780601f106109f257610100808354040283529160200191610a1d565b820191906000526020600020905b815481529060010190602001808311610a0057829003601f168201915b5050505050905090565b6000610a3282611d82565b610a71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6890613aac565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ab782611089565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1f90613b3e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b47611dee565b73ffffffffffffffffffffffffffffffffffffffff161480610b765750610b7581610b70611dee565b61180c565b5b610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac90613bd0565b60405180910390fd5b610bbf8383611df6565b505050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600880549050905090565b610c2b610c25611dee565b82611eaf565b610c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6190613c62565b60405180910390fd5b610c75838383611f8d565b505050565b600c60019054906101000a900460ff1681565b6000806127106102ee84610ca19190613cb1565b610cab9190613d3a565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691509250929050565b610ce1611dee565b73ffffffffffffffffffffffffffffffffffffffff16610cff611434565b73ffffffffffffffffffffffffffffffffffffffff1614610d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4c90613db7565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606481565b600f5481565b6000610daf836111c9565b8210610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de790613e49565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61271081565b600c60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e7d611dee565b73ffffffffffffffffffffffffffffffffffffffff16610e9b611434565b73ffffffffffffffffffffffffffffffffffffffff1614610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee890613db7565b60405180910390fd5b6000479050600c60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610f5e573d6000803e3d6000fd5b5050565b610f7d83838360405180602001604052806000815250611642565b505050565b6000610f8c610c0d565b8210610fcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc490613edb565b60405180910390fd5b60088281548110610fe157610fe0613efb565b5b90600052602060002001549050919050565b610ffb611dee565b73ffffffffffffffffffffffffffffffffffffffff16611019611434565b73ffffffffffffffffffffffffffffffffffffffff161461106f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106690613db7565b60405180910390fd5b80600e90805190602001906110859291906130a6565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112990613f9c565b60405180910390fd5b80915050919050565b600e805461114890613a08565b80601f016020809104026020016040519081016040528092919081815260200182805461117490613a08565b80156111c15780601f10611196576101008083540402835291602001916111c1565b820191906000526020600020905b8154815290600101906020018083116111a457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561123a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112319061402e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611289611dee565b73ffffffffffffffffffffffffffffffffffffffff166112a7611434565b73ffffffffffffffffffffffffffffffffffffffff16146112fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f490613db7565b60405180910390fd5b61130760006121f4565b565b611311611dee565b73ffffffffffffffffffffffffffffffffffffffff1661132f611434565b73ffffffffffffffffffffffffffffffffffffffff1614611385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c90613db7565b60405180910390fd5b80600c60016101000a81548160ff02191690831515021790555050565b6113aa611dee565b73ffffffffffffffffffffffffffffffffffffffff166113c8611434565b73ffffffffffffffffffffffffffffffffffffffff161461141e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141590613db7565b60405180910390fd5b80600f8190555050565b67011c37937e08000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461146d90613a08565b80601f016020809104026020016040519081016040528092919081815260200182805461149990613a08565b80156114e65780601f106114bb576101008083540402835291602001916114e6565b820191906000526020600020905b8154815290600101906020018083116114c957829003601f168201915b5050505050905090565b60006114fa610c0d565b9050600c60009054906101000a900460ff1661154b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115429061409a565b60405180910390fd5b612710828261155a91906140ba565b111561159b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115929061415c565b60405180910390fd5b348267011c37937e0800006115b09190613cb1565b11156115f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e8906141c8565b60405180910390fd5b6000600190505b8281116116275761161433828461160f91906140ba565b6122ba565b808061161f906141e8565b9150506115f8565b505050565b61163e611637611dee565b83836122d8565b5050565b61165361164d611dee565b83611eaf565b611692576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168990613c62565b60405180910390fd5b61169e84848484612445565b50505050565b6116ac611dee565b73ffffffffffffffffffffffffffffffffffffffff166116ca611434565b73ffffffffffffffffffffffffffffffffffffffff1614611720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171790613db7565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b606061174882611d82565b611787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177e906142a3565b60405180910390fd5b60006117916124a1565b905060008151116117b157604051806020016040528060008152506117dc565b806117bb84612533565b6040516020016117cc9291906142ff565b6040516020818303038152906040525b915050919050565b6060600e6040516020016117f89190614403565b604051602081830303815290604052905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c60009054906101000a900460ff1681565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118e1611dee565b73ffffffffffffffffffffffffffffffffffffffff166118ff611434565b73ffffffffffffffffffffffffffffffffffffffff1614611955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194c90613db7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc90614497565b60405180910390fd5b6119ce816121f4565b50565b6002600b541415611a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0e90614503565b60405180910390fd5b6002600b819055506000611a29611dee565b90506000611a35610c0d565b9050600c60019054906101000a900460ff16611a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7d9061456f565b60405180910390fd5b6127108582611a9591906140ba565b1115611ad6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611acd9061415c565b60405180910390fd5b601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546064611b22919061458f565b851115611b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5b9061460f565b60405180910390fd5b611bd8848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5484604051602001611bbd9190614677565b60405160208183030381529060405280519060200120612694565b611c17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0e906146de565b60405180910390fd5b8467011c37937e080000611c2b9190613cb1565b3414611c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c639061474a565b60405180910390fd5b84601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cbb91906140ba565b925050819055506000600190505b858111611cf857611ce5838284611ce091906140ba565b6122ba565b8080611cf0906141e8565b915050611cc9565b5050506001600b81905550505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d7b5750611d7a826126ab565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e6983611089565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611eba82611d82565b611ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef0906147dc565b60405180910390fd5b6000611f0483611089565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f7357508373ffffffffffffffffffffffffffffffffffffffff16611f5b84610a27565b73ffffffffffffffffffffffffffffffffffffffff16145b80611f845750611f83818561180c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611fad82611089565b73ffffffffffffffffffffffffffffffffffffffff1614612003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffa9061486e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612073576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206a90614900565b60405180910390fd5b61207e83838361278d565b612089600082611df6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120d9919061458f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461213091906140ba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121ef83838361279d565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122d48282604051806020016040528060008152506127a2565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233e9061496c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161243891906131fd565b60405180910390a3505050565b612450848484611f8d565b61245c848484846127fd565b61249b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612492906149fe565b60405180910390fd5b50505050565b6060600e80546124b090613a08565b80601f01602080910402602001604051908101604052809291908181526020018280546124dc90613a08565b80156125295780601f106124fe57610100808354040283529160200191612529565b820191906000526020600020905b81548152906001019060200180831161250c57829003601f168201915b5050505050905090565b6060600082141561257b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061268f565b600082905060005b600082146125ad578080612596906141e8565b915050600a826125a69190613d3a565b9150612583565b60008167ffffffffffffffff8111156125c9576125c861354f565b5b6040519080825280601f01601f1916602001820160405280156125fb5781602001600182028036833780820191505090505b5090505b6000851461268857600182612614919061458f565b9150600a856126239190614a1e565b603061262f91906140ba565b60f81b81838151811061264557612644613efb565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126819190613d3a565b94506125ff565b8093505050505b919050565b6000826126a18584612994565b1490509392505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612786575061278582612a09565b5b9050919050565b612798838383612a73565b505050565b505050565b6127ac8383612b87565b6127b960008484846127fd565b6127f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ef906149fe565b60405180910390fd5b505050565b600061281e8473ffffffffffffffffffffffffffffffffffffffff16612d61565b15612987578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612847611dee565b8786866040518563ffffffff1660e01b81526004016128699493929190614aa4565b602060405180830381600087803b15801561288357600080fd5b505af19250505080156128b457506040513d601f19601f820116820180604052508101906128b19190614b05565b60015b612937573d80600081146128e4576040519150601f19603f3d011682016040523d82523d6000602084013e6128e9565b606091505b5060008151141561292f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612926906149fe565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061298c565b600190505b949350505050565b60008082905060005b84518110156129fe5760008582815181106129bb576129ba613efb565b5b602002602001015190508083116129dd576129d68382612d84565b92506129ea565b6129e78184612d84565b92505b5080806129f6906141e8565b91505061299d565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612a7e838383612d9b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ac157612abc81612da0565b612b00565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612aff57612afe8382612de9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b4357612b3e81612f56565b612b82565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612b8157612b808282613027565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bee90614b7e565b60405180910390fd5b612c0081611d82565b15612c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3790614bea565b60405180910390fd5b612c4c6000838361278d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c9c91906140ba565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d5d6000838361279d565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082600052816020526040600020905092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612df6846111c9565b612e00919061458f565b9050600060076000848152602001908152602001600020549050818114612ee5576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612f6a919061458f565b9050600060096000848152602001908152602001600020549050600060088381548110612f9a57612f99613efb565b5b906000526020600020015490508060088381548110612fbc57612fbb613efb565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061300b5761300a614c0a565b5b6001900381819060005260206000200160009055905550505050565b6000613032836111c9565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546130b290613a08565b90600052602060002090601f0160209004810192826130d4576000855561311b565b82601f106130ed57805160ff191683800117855561311b565b8280016001018555821561311b579182015b8281111561311a5782518255916020019190600101906130ff565b5b509050613128919061312c565b5090565b5b8082111561314557600081600090555060010161312d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131928161315d565b811461319d57600080fd5b50565b6000813590506131af81613189565b92915050565b6000602082840312156131cb576131ca613153565b5b60006131d9848285016131a0565b91505092915050565b60008115159050919050565b6131f7816131e2565b82525050565b600060208201905061321260008301846131ee565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613252578082015181840152602081019050613237565b83811115613261576000848401525b50505050565b6000601f19601f8301169050919050565b600061328382613218565b61328d8185613223565b935061329d818560208601613234565b6132a681613267565b840191505092915050565b600060208201905081810360008301526132cb8184613278565b905092915050565b6000819050919050565b6132e6816132d3565b81146132f157600080fd5b50565b600081359050613303816132dd565b92915050565b60006020828403121561331f5761331e613153565b5b600061332d848285016132f4565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061336182613336565b9050919050565b61337181613356565b82525050565b600060208201905061338c6000830184613368565b92915050565b61339b81613356565b81146133a657600080fd5b50565b6000813590506133b881613392565b92915050565b600080604083850312156133d5576133d4613153565b5b60006133e3858286016133a9565b92505060206133f4858286016132f4565b9150509250929050565b60006020828403121561341457613413613153565b5b6000613422848285016133a9565b91505092915050565b613434816132d3565b82525050565b600060208201905061344f600083018461342b565b92915050565b60008060006060848603121561346e5761346d613153565b5b600061347c868287016133a9565b935050602061348d868287016133a9565b925050604061349e868287016132f4565b9150509250925092565b600080604083850312156134bf576134be613153565b5b60006134cd858286016132f4565b92505060206134de858286016132f4565b9150509250929050565b60006040820190506134fd6000830185613368565b61350a602083018461342b565b9392505050565b6000819050919050565b61352481613511565b82525050565b600060208201905061353f600083018461351b565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61358782613267565b810181811067ffffffffffffffff821117156135a6576135a561354f565b5b80604052505050565b60006135b9613149565b90506135c5828261357e565b919050565b600067ffffffffffffffff8211156135e5576135e461354f565b5b6135ee82613267565b9050602081019050919050565b82818337600083830152505050565b600061361d613618846135ca565b6135af565b9050828152602081018484840111156136395761363861354a565b5b6136448482856135fb565b509392505050565b600082601f83011261366157613660613545565b5b813561367184826020860161360a565b91505092915050565b6000602082840312156136905761368f613153565b5b600082013567ffffffffffffffff8111156136ae576136ad613158565b5b6136ba8482850161364c565b91505092915050565b6136cc816131e2565b81146136d757600080fd5b50565b6000813590506136e9816136c3565b92915050565b60006020828403121561370557613704613153565b5b6000613713848285016136da565b91505092915050565b61372581613511565b811461373057600080fd5b50565b6000813590506137428161371c565b92915050565b60006020828403121561375e5761375d613153565b5b600061376c84828501613733565b91505092915050565b6000806040838503121561378c5761378b613153565b5b600061379a858286016133a9565b92505060206137ab858286016136da565b9150509250929050565b600067ffffffffffffffff8211156137d0576137cf61354f565b5b6137d982613267565b9050602081019050919050565b60006137f96137f4846137b5565b6135af565b9050828152602081018484840111156138155761381461354a565b5b6138208482856135fb565b509392505050565b600082601f83011261383d5761383c613545565b5b813561384d8482602086016137e6565b91505092915050565b600080600080608085870312156138705761386f613153565b5b600061387e878288016133a9565b945050602061388f878288016133a9565b93505060406138a0878288016132f4565b925050606085013567ffffffffffffffff8111156138c1576138c0613158565b5b6138cd87828801613828565b91505092959194509250565b600080604083850312156138f0576138ef613153565b5b60006138fe858286016133a9565b925050602061390f858286016133a9565b9150509250929050565b600080fd5b600080fd5b60008083601f84011261393957613938613545565b5b8235905067ffffffffffffffff81111561395657613955613919565b5b6020830191508360208202830111156139725761397161391e565b5b9250929050565b60008060006040848603121561399257613991613153565b5b60006139a0868287016132f4565b935050602084013567ffffffffffffffff8111156139c1576139c0613158565b5b6139cd86828701613923565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a2057607f821691505b60208210811415613a3457613a336139d9565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613a96602c83613223565b9150613aa182613a3a565b604082019050919050565b60006020820190508181036000830152613ac581613a89565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b28602183613223565b9150613b3382613acc565b604082019050919050565b60006020820190508181036000830152613b5781613b1b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613bba603883613223565b9150613bc582613b5e565b604082019050919050565b60006020820190508181036000830152613be981613bad565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613c4c603183613223565b9150613c5782613bf0565b604082019050919050565b60006020820190508181036000830152613c7b81613c3f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cbc826132d3565b9150613cc7836132d3565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d0057613cff613c82565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d45826132d3565b9150613d50836132d3565b925082613d6057613d5f613d0b565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613da1602083613223565b9150613dac82613d6b565b602082019050919050565b60006020820190508181036000830152613dd081613d94565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613e33602b83613223565b9150613e3e82613dd7565b604082019050919050565b60006020820190508181036000830152613e6281613e26565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613ec5602c83613223565b9150613ed082613e69565b604082019050919050565b60006020820190508181036000830152613ef481613eb8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613f86602983613223565b9150613f9182613f2a565b604082019050919050565b60006020820190508181036000830152613fb581613f79565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614018602a83613223565b915061402382613fbc565b604082019050919050565b600060208201905081810360008301526140478161400b565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b6000614084601b83613223565b915061408f8261404e565b602082019050919050565b600060208201905081810360008301526140b381614077565b9050919050565b60006140c5826132d3565b91506140d0836132d3565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561410557614104613c82565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73600082015250565b6000614146602083613223565b915061415182614110565b602082019050919050565b6000602082019050818103600083015261417581614139565b9050919050565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b60006141b2601f83613223565b91506141bd8261417c565b602082019050919050565b600060208201905081810360008301526141e1816141a5565b9050919050565b60006141f3826132d3565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561422657614225613c82565b5b600182019050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061428d602f83613223565b915061429882614231565b604082019050919050565b600060208201905081810360008301526142bc81614280565b9050919050565b600081905092915050565b60006142d982613218565b6142e381856142c3565b93506142f3818560208601613234565b80840191505092915050565b600061430b82856142ce565b915061431782846142ce565b91508190509392505050565b60008190508160005260206000209050919050565b6000815461434581613a08565b61434f81866142c3565b9450600182166000811461436a576001811461437b576143ae565b60ff198316865281860193506143ae565b61438485614323565b60005b838110156143a657815481890152600182019150602081019050614387565b838801955050505b50505092915050565b7f636f6c6c656374696f6e2e6a736f6e0000000000000000000000000000000000600082015250565b60006143ed600f836142c3565b91506143f8826143b7565b600f82019050919050565b600061440f8284614338565b915061441a826143e0565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614481602683613223565b915061448c82614425565b604082019050919050565b600060208201905081810360008301526144b081614474565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006144ed601f83613223565b91506144f8826144b7565b602082019050919050565b6000602082019050818103600083015261451c816144e0565b9050919050565b7f53616c6520697320636c6f736564000000000000000000000000000000000000600082015250565b6000614559600e83613223565b915061456482614523565b602082019050919050565b600060208201905081810360008301526145888161454c565b9050919050565b600061459a826132d3565b91506145a5836132d3565b9250828210156145b8576145b7613c82565b5b828203905092915050565b7f496e73756666696369656e74206d696e7473206c656674000000000000000000600082015250565b60006145f9601783613223565b9150614604826145c3565b602082019050919050565b60006020820190508181036000830152614628816145ec565b9050919050565b60008160601b9050919050565b60006146478261462f565b9050919050565b60006146598261463c565b9050919050565b61467161466c82613356565b61464e565b82525050565b60006146838284614660565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60006146c8600d83613223565b91506146d382614692565b602082019050919050565b600060208201905081810360008301526146f7816146bb565b9050919050565b7f496e636f72726563742070617961626c6520616d6f756e740000000000000000600082015250565b6000614734601883613223565b915061473f826146fe565b602082019050919050565b6000602082019050818103600083015261476381614727565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006147c6602c83613223565b91506147d18261476a565b604082019050919050565b600060208201905081810360008301526147f5816147b9565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614858602583613223565b9150614863826147fc565b604082019050919050565b600060208201905081810360008301526148878161484b565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006148ea602483613223565b91506148f58261488e565b604082019050919050565b60006020820190508181036000830152614919816148dd565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614956601983613223565b915061496182614920565b602082019050919050565b6000602082019050818103600083015261498581614949565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006149e8603283613223565b91506149f38261498c565b604082019050919050565b60006020820190508181036000830152614a17816149db565b9050919050565b6000614a29826132d3565b9150614a34836132d3565b925082614a4457614a43613d0b565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614a7682614a4f565b614a808185614a5a565b9350614a90818560208601613234565b614a9981613267565b840191505092915050565b6000608082019050614ab96000830187613368565b614ac66020830186613368565b614ad3604083018561342b565b8181036060830152614ae58184614a6b565b905095945050505050565b600081519050614aff81613189565b92915050565b600060208284031215614b1b57614b1a613153565b5b6000614b2984828501614af0565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b68602083613223565b9150614b7382614b32565b602082019050919050565b60006020820190508181036000830152614b9781614b5b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614bd4601c83613223565b9150614bdf82614b9e565b602082019050919050565b60006020820190508181036000830152614c0381614bc7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220b91f6a89ab274b1366c3c2a67c3a90a4176c9f71d5887d8e7c601fbea2dcd76264736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008e93c7c02f2bcb20877a192d1b078b9007e2fd4f0000000000000000000000008e93c7c02f2bcb20877a192d1b078b9007e2fd4f0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6173736574732e7733627363686f6c6172732e636f6d2f6d657461646174612f000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _beneficiary (address): 0x8E93C7C02f2bcB20877a192d1b078B9007E2FD4F
Arg [1] : _royalties (address): 0x8E93C7C02f2bcB20877a192d1b078B9007E2FD4F
Arg [2] : _initialBaseURI (string): https://assets.w3bscholars.com/metadata/
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000008e93c7c02f2bcb20877a192d1b078b9007e2fd4f
Arg [1] : 0000000000000000000000008e93c7c02f2bcb20877a192d1b078b9007e2fd4f
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [4] : 68747470733a2f2f6173736574732e7733627363686f6c6172732e636f6d2f6d
Arg [5] : 657461646174612f000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.