ERC-721
NFT
Overview
Max Total Supply
10,000 WR
Holders
4,559
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 WRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
weathereport
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract weathereport is ERC721Enumerable, PaymentSplitter, Ownable, ReentrancyGuard { using SafeMath for uint256; using Strings for uint256; // Token Data uint256 public constant TOKEN_PRICE = 0.15 ether; uint256 public constant MAX_TOKENS = 10000; uint256 public constant RESERVED_TOKENS = 550; uint256 public totalReserved = 0; // Track total tokens reserved uint256 public MAX_MINTS; // White List Token Data uint256 public MAX_PRE_MINTS; // Contract Data string public PROVENANCE; string public _contractURI; string public _baseTokenURI; // Sale Switches bool public mainSaleActive = false; bool public preSaleActive = false; // White List Token Counters mapping(address => uint256) public _preSaleList; // Merkle Roots bytes32 public preSaleRoot; // Metadata bool public metadataSwitch = false; IERC721Metadata public metadataSource; modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } constructor( string memory name, string memory symbol, string memory contractURI_, string memory baseURI, uint256 maxMints, uint256 maxPreMints, address[] memory payees, uint256[] memory shares, bytes32 preSaleRoot_ ) ERC721(name, symbol) PaymentSplitter(payees, shares) { setContractURI(contractURI_); setBaseURI(baseURI); preSaleRoot = preSaleRoot_; MAX_MINTS = maxMints; MAX_PRE_MINTS = maxPreMints; } /* Reserves */ function reserveTokens(address to, uint256 numberOfTokens) public onlyOwner { require( totalSupply().add(numberOfTokens) <= MAX_TOKENS, "This would exceed max supply of Tokens" ); require( totalReserved.add(numberOfTokens) <= RESERVED_TOKENS, "This would exceed max reservation of Tokens" ); for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(to, totalSupply()); } // update totalReserved totalReserved = totalReserved.add(numberOfTokens); } /* Setters */ function setProvenanceHash(string memory provenanceHash) public onlyOwner { PROVENANCE = provenanceHash; } function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } function setContractURI(string memory contractURI_) public onlyOwner { _contractURI = contractURI_; } function setMaxMints(uint256 maxMints_) public onlyOwner { MAX_MINTS = maxMints_; } function setMaxPreMints(uint256 maxPreMints_) public onlyOwner { MAX_PRE_MINTS = maxPreMints_; } function setPreSaleRoot(bytes32 _preSaleRoot) public onlyOwner { preSaleRoot = _preSaleRoot; } /* Getters */ function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function contractURI() public view returns (string memory) { return _contractURI; } /* Sale Switches */ function flipPreSaleState() public onlyOwner { preSaleActive = !preSaleActive; } function flipMainSaleState() public onlyOwner { mainSaleActive = !mainSaleActive; } /* Pre Sale */ function mintPreSaleTokens( uint256 numberOfTokens, bytes32[] calldata _merkleProof ) external payable nonReentrant { require(preSaleActive, "Pre mint is not active"); require( _preSaleList[msg.sender].add(numberOfTokens) <= MAX_PRE_MINTS, "Exceeded max available to purchase" ); require(numberOfTokens > 0, "Must mint more than 0 tokens"); require( totalSupply().add(numberOfTokens) <= MAX_TOKENS, "Purchase would exceed max supply of Tokens" ); require( TOKEN_PRICE.mul(numberOfTokens) <= msg.value, "Ether value sent is not correct" ); // check proof bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require( MerkleProof.verify(_merkleProof, preSaleRoot, leaf), "Invalid MerkleProof" ); // update presale counter _preSaleList[msg.sender] = _preSaleList[msg.sender].add(numberOfTokens); for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, totalSupply()); } } function numPreSaleMinted(address addr) external view returns (uint256) { return _preSaleList[addr]; } /* Main Sale */ function mintTokens(uint256 numberOfTokens) public payable nonReentrant callerIsUser { require(mainSaleActive, "Sale must be active to mint token"); require( numberOfTokens <= MAX_MINTS, "Can only mint max purchase of tokens at a time" ); require(numberOfTokens > 0, "Must mint more than 0 tokens"); require( totalSupply().add(numberOfTokens) <= MAX_TOKENS, "Purchase would exceed max supply of Tokens" ); require( TOKEN_PRICE.mul(numberOfTokens) <= msg.value, "Ether value sent is not correct" ); for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(msg.sender, totalSupply()); } } /* Metadata */ function flipMetadataSwitch() public onlyOwner { metadataSwitch = !metadataSwitch; } function setMetadataSource(address _address) public onlyOwner { metadataSource = IERC721Metadata(_address); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); // extensible metadata by delegating to external metadata contract if (metadataSwitch) { return metadataSource.tokenURI(tokenId); } else { return string(abi.encodePacked(_baseTokenURI, tokenId.toString())); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 {} }
// 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 v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// 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 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 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 v4.4.1 (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 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "optimizer": { "enabled": true, "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":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"uint256","name":"maxMints","type":"uint256"},{"internalType":"uint256","name":"maxPreMints","type":"uint256"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"bytes32","name":"preSaleRoot_","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_preSaleList","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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMainSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMetadataSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPreSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"mainSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataSource","outputs":[{"internalType":"contract IERC721Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataSwitch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mintPreSaleTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"numPreSaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMints_","type":"uint256"}],"name":"setMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPreMints_","type":"uint256"}],"name":"setMaxPreMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setMetadataSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_preSaleRoot","type":"bytes32"}],"name":"setPreSaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260006013556019805461ffff19169055601c805460ff191690553480156200002b57600080fd5b5060405162004486380380620044868339810160408190526200004e916200061b565b82828a8a81600090805190602001906200006a929190620003fa565b50805162000080906001906020840190620003fa565b5050508051825114620000b05760405162461bcd60e51b8152600401620000a790620007d4565b60405180910390fd5b6000825111620000d45760405162461bcd60e51b8152600401620000a79062000871565b60005b82518110156200015857620001438382815181106200010657634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200012f57634e487b7160e01b600052603260045260246000fd5b6020026020010151620001a960201b60201c565b806200014f8162000989565b915050620000d7565b505050620001756200016f620002db60201b60201c565b620002df565b6001601255620001858762000331565b620001908662000390565b601b55505060149190915560155550620009d392505050565b6001600160a01b038216620001d25760405162461bcd60e51b8152600401620000a79062000753565b60008111620001f55760405162461bcd60e51b8152600401620000a790620008a8565b6001600160a01b0382166000908152600c6020526040902054156200022e5760405162461bcd60e51b8152600401620000a79062000826565b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0384169081179091556000908152600c60205260409020819055600a546200029890829062000931565b600a556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac90620002cf90849084906200073a565b60405180910390a15050565b3390565b601180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200033b620002db565b6001600160a01b03166200034e620003eb565b6001600160a01b031614620003775760405162461bcd60e51b8152600401620000a7906200079f565b80516200038c906017906020840190620003fa565b5050565b6200039a620002db565b6001600160a01b0316620003ad620003eb565b6001600160a01b031614620003d65760405162461bcd60e51b8152600401620000a7906200079f565b80516200038c906018906020840190620003fa565b6011546001600160a01b031690565b82805462000408906200094c565b90600052602060002090601f0160209004810192826200042c576000855562000477565b82601f106200044757805160ff191683800117855562000477565b8280016001018555821562000477579182015b82811115620004775782518255916020019190600101906200045a565b506200048592915062000489565b5090565b5b808211156200048557600081556001016200048a565b600082601f830112620004b1578081fd5b81516020620004ca620004c4836200090b565b620008df565b8281528181019085830183850287018401881015620004e7578586fd5b855b858110156200051c5781516001600160a01b038116811462000509578788fd5b84529284019290840190600101620004e9565b5090979650505050505050565b600082601f8301126200053a578081fd5b815160206200054d620004c4836200090b565b82815281810190858301838502870184018810156200056a578586fd5b855b858110156200051c578151845292840192908401906001016200056c565b600082601f8301126200059b578081fd5b81516001600160401b03811115620005b757620005b7620009bd565b6020620005cd601f8301601f19168201620008df565b8281528582848701011115620005e1578384fd5b835b8381101562000600578581018301518282018401528201620005e3565b838111156200061157848385840101525b5095945050505050565b60008060008060008060008060006101208a8c0312156200063a578485fd5b89516001600160401b038082111562000651578687fd5b6200065f8d838e016200058a565b9a5060208c015191508082111562000675578687fd5b620006838d838e016200058a565b995060408c015191508082111562000699578687fd5b620006a78d838e016200058a565b985060608c0151915080821115620006bd578687fd5b620006cb8d838e016200058a565b975060808c0151965060a08c0151955060c08c0151915080821115620006ef578485fd5b620006fd8d838e01620004a0565b945060e08c015191508082111562000713578384fd5b50620007228c828d0162000529565b9250506101008a015190509295985092959850929598565b6001600160a01b03929092168252602082015260400190565b6020808252602c908201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060408201526b7a65726f206164647265737360a01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526032908201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726040820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960408201526a206861732073686172657360a81b606082015260800190565b6020808252601a908201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604082015260600190565b6020808252601d908201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604082015260600190565b6040518181016001600160401b0381118282101715620009035762000903620009bd565b604052919050565b60006001600160401b03821115620009275762000927620009bd565b5060209081020190565b60008219821115620009475762000947620009a7565b500190565b6002810460018216806200096157607f821691505b602082108114156200098357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620009a057620009a0620009a7565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613aa380620009e36000396000f3fe6080604052600436106103855760003560e01c80638b83209b116101d1578063c87b56dd11610102578063d79779b2116100a0578063f03255491161006f578063f0325549146109b9578063f2fde38b146109ce578063f47c84c5146109ee578063fe042d4914610a03576103cc565b8063d79779b21461094f578063e33b7de31461096f578063e8a3d48514610984578063e985e9c514610999576103cc565b8063cfc86f7b116100dc578063cfc86f7b146108fb578063d1f86ba914610910578063d2b9b7e614610925578063d2d8cb671461093a576103cc565b8063c87b56dd146108a6578063cce132d1146108c6578063ce7c2ac2146108db576103cc565b80639852595c1161016f578063aa4193d611610149578063aa4193d61461083c578063b88d4fde1461085c578063c0e727401461087c578063c71b0e1c14610891576103cc565b80639852595c146107e75780639f7d2e7314610807578063a22cb4651461081c576103cc565b8063938e3d7b116101ab578063938e3d7b1461078a578063949de446146107aa57806395d89b41146107bf57806397304ced146107d4576103cc565b80638b83209b146107355780638da5cb5b146107555780638edec0741461076a576103cc565b80633a98ef39116102b65780636373a6b11161025457806378cf19e91161022357806378cf19e9146106c057806379c9cb7b146106e057806382f96f1a146107005780638449470814610720576103cc565b80636373a6b11461066157806368fc68c71461067657806370a082311461068b578063715018a6146106ab576103cc565b806348b750441161029057806348b75044146105e15780634f6ccce71461060157806355f804b3146106215780636352211e14610641576103cc565b80633a98ef391461058c578063406072a9146105a157806342842e0e146105c1576103cc565b806319165587116103235780632aea3d23116102fd5780632aea3d23146105225780632c5a3f86146105375780632f745c59146105575780633154b9c214610577576103cc565b806319165587146104cd57806323b872dd146104ed57806325e892831461050d576103cc565b8063095ea7b31161035f578063095ea7b3146104565780631096952314610478578063142e3d3e1461049857806318160ddd146104ab576103cc565b806301ffc9a7146103d157806306fdde0314610407578063081812fc14610429576103cc565b366103cc577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706103b3610a23565b346040516103c2929190612e51565b60405180910390a1005b600080fd5b3480156103dd57600080fd5b506103f16103ec366004612b7a565b610a27565b6040516103fe9190612ea7565b60405180910390f35b34801561041357600080fd5b5061041c610a54565b6040516103fe9190612ebb565b34801561043557600080fd5b50610449610444366004612b62565b610ae6565b6040516103fe9190612e3d565b34801561046257600080fd5b50610476610471366004612b1b565b610b32565b005b34801561048457600080fd5b50610476610493366004612bc4565b610bca565b6104766104a6366004612c95565b610c20565b3480156104b757600080fd5b506104c0610e1b565b6040516103fe9190612eb2565b3480156104d957600080fd5b506104766104e83660046129dd565b610e21565b3480156104f957600080fd5b50610476610508366004612a31565b610f2f565b34801561051957600080fd5b506103f1610f67565b34801561052e57600080fd5b50610476610f70565b34801561054357600080fd5b506104c06105523660046129dd565b610fc3565b34801561056357600080fd5b506104c0610572366004612b1b565b610fd5565b34801561058357600080fd5b506104c0611027565b34801561059857600080fd5b506104c061102d565b3480156105ad57600080fd5b506104c06105bc366004612bb2565b611033565b3480156105cd57600080fd5b506104766105dc366004612a31565b61105e565b3480156105ed57600080fd5b506104766105fc366004612bb2565b611079565b34801561060d57600080fd5b506104c061061c366004612b62565b61122f565b34801561062d57600080fd5b5061047661063c366004612bc4565b61128a565b34801561064d57600080fd5b5061044961065c366004612b62565b6112dc565b34801561066d57600080fd5b5061041c611311565b34801561068257600080fd5b506104c061139f565b34801561069757600080fd5b506104c06106a63660046129dd565b6113a5565b3480156106b757600080fd5b506104766113e9565b3480156106cc57600080fd5b506104766106db366004612b1b565b611434565b3480156106ec57600080fd5b506104766106fb366004612b62565b61150d565b34801561070c57600080fd5b506104c061071b3660046129dd565b611551565b34801561072c57600080fd5b506103f161156c565b34801561074157600080fd5b50610449610750366004612b62565b61157a565b34801561076157600080fd5b506104496115b8565b34801561077657600080fd5b506104766107853660046129dd565b6115c7565b34801561079657600080fd5b506104766107a5366004612bc4565b61162e565b3480156107b657600080fd5b506103f1611680565b3480156107cb57600080fd5b5061041c611689565b6104766107e2366004612b62565b611698565b3480156107f357600080fd5b506104c06108023660046129dd565b6117d3565b34801561081357600080fd5b506104766117ee565b34801561082857600080fd5b50610476610837366004612aee565b611841565b34801561084857600080fd5b50610476610857366004612b62565b611853565b34801561086857600080fd5b50610476610877366004612a71565b611897565b34801561088857600080fd5b5061041c6118d6565b34801561089d57600080fd5b506104c06118e3565b3480156108b257600080fd5b5061041c6108c1366004612b62565b6118e9565b3480156108d257600080fd5b506104c06119dc565b3480156108e757600080fd5b506104c06108f63660046129dd565b6119e2565b34801561090757600080fd5b5061041c6119fd565b34801561091c57600080fd5b506104c0611a0a565b34801561093157600080fd5b50610449611a10565b34801561094657600080fd5b506104c0611a24565b34801561095b57600080fd5b506104c061096a3660046129dd565b611a30565b34801561097b57600080fd5b506104c0611a4b565b34801561099057600080fd5b5061041c611a51565b3480156109a557600080fd5b506103f16109b43660046129f9565b611a60565b3480156109c557600080fd5b50610476611a8e565b3480156109da57600080fd5b506104766109e93660046129dd565b611aea565b3480156109fa57600080fd5b506104c0611b5b565b348015610a0f57600080fd5b50610476610a1e366004612b62565b611b61565b3390565b60006001600160e01b0319821663780e9d6360e01b1480610a4c5750610a4c82611ba5565b90505b919050565b606060008054610a6390613988565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90613988565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182611be5565b610b165760405162461bcd60e51b8152600401610b0d906134ea565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b3d826112dc565b9050806001600160a01b0316836001600160a01b03161415610b715760405162461bcd60e51b8152600401610b0d9061364e565b806001600160a01b0316610b83610a23565b6001600160a01b03161480610b9f5750610b9f816109b4610a23565b610bbb5760405162461bcd60e51b8152600401610b0d9061338e565b610bc58383611c02565b505050565b610bd2610a23565b6001600160a01b0316610be36115b8565b6001600160a01b031614610c095760405162461bcd60e51b8152600401610b0d90613536565b8051610c1c906016906020840190612906565b5050565b60026012541415610c435760405162461bcd60e51b8152600401610b0d906137ef565b6002601255601954610100900460ff16610c6f5760405162461bcd60e51b8152600401610b0d90613826565b601554336000908152601a6020526040902054610c8c9085611c70565b1115610caa5760405162461bcd60e51b8152600401610b0d9061368f565b60008311610cca5760405162461bcd60e51b8152600401610b0d9061347e565b612710610cdf84610cd9610e1b565b90611c70565b1115610cfd5760405162461bcd60e51b8152600401610b0d90613077565b34610d10670214e8348c4f000085611c83565b1115610d2e5760405162461bcd60e51b8152600401610b0d90613182565b600033604051602001610d419190612d56565b604051602081830303815290604052805190602001209050610d9a83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b549150849050611c8f565b610db65760405162461bcd60e51b8152600401610b0d9061332a565b336000908152601a6020526040902054610dd09085611c70565b336000908152601a60205260408120919091555b84811015610e0f57610dfd33610df8610e1b565b611ca5565b80610e07816139c3565b915050610de4565b50506001601255505050565b60085490565b6001600160a01b0381166000908152600c6020526040902054610e565760405162461bcd60e51b8152600401610b0d906130c1565b6000610e60611a4b565b610e6a90476138fa565b90506000610e818383610e7c866117d3565b611cbf565b905080610ea05760405162461bcd60e51b8152600401610b0d906132df565b6001600160a01b0383166000908152600d602052604081208054839290610ec89084906138fa565b9250508190555080600b6000828254610ee191906138fa565b90915550610ef190508382611d05565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610f22929190612e51565b60405180910390a1505050565b610f40610f3a610a23565b82611da1565b610f5c5760405162461bcd60e51b8152600401610b0d906136d1565b610bc5838383611e1e565b60195460ff1681565b610f78610a23565b6001600160a01b0316610f896115b8565b6001600160a01b031614610faf5760405162461bcd60e51b8152600401610b0d90613536565b6019805460ff19811660ff90911615179055565b601a6020526000908152604090205481565b6000610fe0836113a5565b8210610ffe5760405162461bcd60e51b8152600401610b0d90612f5d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b601b5481565b600a5490565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b610bc583838360405180602001604052806000815250611897565b6001600160a01b0381166000908152600c60205260409020546110ae5760405162461bcd60e51b8152600401610b0d906130c1565b60006110b983611a30565b6040516370a0823160e01b81526001600160a01b038516906370a08231906110e5903090600401612e3d565b60206040518083038186803b1580156110fd57600080fd5b505afa158015611111573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111359190612c7d565b61113f91906138fa565b905060006111528383610e7c8787611033565b9050806111715760405162461bcd60e51b8152600401610b0d906132df565b6001600160a01b038085166000908152601060209081526040808320938716835292905290812080548392906111a89084906138fa565b90915550506001600160a01b0384166000908152600f6020526040812080548392906111d59084906138fa565b909155506111e69050848483611f4b565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611221929190612e51565b60405180910390a250505050565b6000611239610e1b565b82106112575760405162461bcd60e51b8152600401610b0d90613759565b6008828154811061127857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611292610a23565b6001600160a01b03166112a36115b8565b6001600160a01b0316146112c95760405162461bcd60e51b8152600401610b0d90613536565b8051610c1c906018906020840190612906565b6000818152600260205260408120546001600160a01b031680610a4c5760405162461bcd60e51b8152600401610b0d90613435565b6016805461131e90613988565b80601f016020809104026020016040519081016040528092919081815260200182805461134a90613988565b80156113975780601f1061136c57610100808354040283529160200191611397565b820191906000526020600020905b81548152906001019060200180831161137a57829003601f168201915b505050505081565b61022681565b60006001600160a01b0382166113cd5760405162461bcd60e51b8152600401610b0d906133eb565b506001600160a01b031660009081526003602052604090205490565b6113f1610a23565b6001600160a01b03166114026115b8565b6001600160a01b0316146114285760405162461bcd60e51b8152600401610b0d90613536565b6114326000611fa1565b565b61143c610a23565b6001600160a01b031661144d6115b8565b6001600160a01b0316146114735760405162461bcd60e51b8152600401610b0d90613536565b61271061148282610cd9610e1b565b11156114a05760405162461bcd60e51b8152600401610b0d90613856565b601354610226906114b19083611c70565b11156114cf5760405162461bcd60e51b8152600401610b0d9061356b565b60005b818110156114f8576114e683610df8610e1b565b806114f0816139c3565b9150506114d2565b506013546115069082611c70565b6013555050565b611515610a23565b6001600160a01b03166115266115b8565b6001600160a01b03161461154c5760405162461bcd60e51b8152600401610b0d90613536565b601455565b6001600160a01b03166000908152601a602052604090205490565b601954610100900460ff1681565b6000600e828154811061159d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6011546001600160a01b031690565b6115cf610a23565b6001600160a01b03166115e06115b8565b6001600160a01b0316146116065760405162461bcd60e51b8152600401610b0d90613536565b601c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b611636610a23565b6001600160a01b03166116476115b8565b6001600160a01b03161461166d5760405162461bcd60e51b8152600401610b0d90613536565b8051610c1c906017906020840190612906565b601c5460ff1681565b606060018054610a6390613988565b600260125414156116bb5760405162461bcd60e51b8152600401610b0d906137ef565b60026012553233146116df5760405162461bcd60e51b8152600401610b0d90613357565b60195460ff166117015760405162461bcd60e51b8152600401610b0d90612f1c565b6014548111156117235760405162461bcd60e51b8152600401610b0d90612ece565b600081116117435760405162461bcd60e51b8152600401610b0d9061347e565b61271061175282610cd9610e1b565b11156117705760405162461bcd60e51b8152600401610b0d90613077565b34611783670214e8348c4f000083611c83565b11156117a15760405162461bcd60e51b8152600401610b0d90613182565b60005b818110156117ca576117b833610df8610e1b565b806117c2816139c3565b9150506117a4565b50506001601255565b6001600160a01b03166000908152600d602052604090205490565b6117f6610a23565b6001600160a01b03166118076115b8565b6001600160a01b03161461182d5760405162461bcd60e51b8152600401610b0d90613536565b601c805460ff19811660ff90911615179055565b610c1c61184c610a23565b8383611ff3565b61185b610a23565b6001600160a01b031661186c6115b8565b6001600160a01b0316146118925760405162461bcd60e51b8152600401610b0d90613536565b601555565b6118a86118a2610a23565b83611da1565b6118c45760405162461bcd60e51b8152600401610b0d906136d1565b6118d084848484612096565b50505050565b6017805461131e90613988565b60135481565b60606118f482611be5565b6119105760405162461bcd60e51b8152600401610b0d906135ff565b601c5460ff16156119aa57601c5460405163c87b56dd60e01b81526101009091046001600160a01b03169063c87b56dd9061194f908590600401612eb2565b60006040518083038186803b15801561196757600080fd5b505afa15801561197b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119a39190810190612c0a565b9050610a4f565b60186119b5836120c9565b6040516020016119c6929190612d9d565b6040516020818303038152906040529050610a4f565b60145481565b6001600160a01b03166000908152600c602052604090205490565b6018805461131e90613988565b60155481565b601c5461010090046001600160a01b031681565b670214e8348c4f000081565b6001600160a01b03166000908152600f602052604090205490565b600b5490565b606060178054610a6390613988565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611a96610a23565b6001600160a01b0316611aa76115b8565b6001600160a01b031614611acd5760405162461bcd60e51b8152600401610b0d90613536565b6019805461ff001981166101009182900460ff1615909102179055565b611af2610a23565b6001600160a01b0316611b036115b8565b6001600160a01b031614611b295760405162461bcd60e51b8152600401610b0d90613536565b6001600160a01b038116611b4f5760405162461bcd60e51b8152600401610b0d90612ffa565b611b5881611fa1565b50565b61271081565b611b69610a23565b6001600160a01b0316611b7a6115b8565b6001600160a01b031614611ba05760405162461bcd60e51b8152600401610b0d90613536565b601b55565b60006001600160e01b031982166380ac58cd60e01b1480611bd657506001600160e01b03198216635b5e139f60e01b145b80610a4c5750610a4c826121e4565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c37826112dc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c7c82846138fa565b9392505050565b6000611c7c8284613926565b600082611c9c85846121fd565b14949350505050565b610c1c8282604051806020016040528060008152506122b5565b600a546001600160a01b0384166000908152600c602052604081205490918391611ce99086613926565b611cf39190613912565b611cfd9190613945565b949350505050565b80471015611d255760405162461bcd60e51b8152600401610b0d90613216565b6000826001600160a01b031682604051611d3e90612e3a565b60006040518083038185875af1925050503d8060008114611d7b576040519150601f19603f3d011682016040523d82523d6000602084013e611d80565b606091505b5050905080610bc55760405162461bcd60e51b8152600401610b0d906131b9565b6000611dac82611be5565b611dc85760405162461bcd60e51b8152600401610b0d90613293565b6000611dd3836112dc565b9050806001600160a01b0316846001600160a01b03161480611e0e5750836001600160a01b0316611e0384610ae6565b6001600160a01b0316145b80611cfd5750611cfd8185611a60565b826001600160a01b0316611e31826112dc565b6001600160a01b031614611e575760405162461bcd60e51b8152600401610b0d906135b6565b6001600160a01b038216611e7d5760405162461bcd60e51b8152600401610b0d90613107565b611e888383836122e8565b611e93600082611c02565b6001600160a01b0383166000908152600360205260408120805460019290611ebc908490613945565b90915550506001600160a01b0382166000908152600360205260408120805460019290611eea9084906138fa565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610bc58363a9059cbb60e01b8484604051602401611f6a929190612e51565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612371565b601180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156120255760405162461bcd60e51b8152600401610b0d9061314b565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612089908590612ea7565b60405180910390a3505050565b6120a1848484611e1e565b6120ad84848484612400565b6118d05760405162461bcd60e51b8152600401610b0d90612fa8565b6060816120ee57506040805180820190915260018152600360fc1b6020820152610a4f565b8160005b81156121185780612102816139c3565b91506121119050600a83613912565b91506120f2565b60008167ffffffffffffffff81111561214157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561216b576020820181803683370190505b5090505b8415611cfd57612180600183613945565b915061218d600a866139de565b6121989060306138fa565b60f81b8183815181106121bb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506121dd600a86613912565b945061216f565b6001600160e01b031981166301ffc9a760e01b14919050565b600081815b84518110156122ad57600085828151811061222d57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161226e578281604051602001612251929190612d73565b60405160208183030381529060405280519060200120925061229a565b8083604051602001612281929190612d73565b6040516020818303038152906040528051906020012092505b50806122a5816139c3565b915050612202565b509392505050565b6122bf838361251b565b6122cc6000848484612400565b610bc55760405162461bcd60e51b8152600401610b0d90612fa8565b6122f3838383610bc5565b6001600160a01b03831661230f5761230a816125fa565b612332565b816001600160a01b0316836001600160a01b03161461233257612332838261263e565b6001600160a01b03821661234e57612349816126db565b610bc5565b826001600160a01b0316826001600160a01b031614610bc557610bc582826127b4565b60006123c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127f89092919063ffffffff16565b805190915015610bc557808060200190518101906123e49190612b46565b610bc55760405162461bcd60e51b8152600401610b0d906137a5565b6000612414846001600160a01b0316612807565b1561251057836001600160a01b031663150b7a02612430610a23565b8786866040518563ffffffff1660e01b81526004016124529493929190612e6a565b602060405180830381600087803b15801561246c57600080fd5b505af192505050801561249c575060408051601f3d908101601f1916820190925261249991810190612b96565b60015b6124f6573d8080156124ca576040519150601f19603f3d011682016040523d82523d6000602084013e6124cf565b606091505b5080516124ee5760405162461bcd60e51b8152600401610b0d90612fa8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cfd565b506001949350505050565b6001600160a01b0382166125415760405162461bcd60e51b8152600401610b0d906134b5565b61254a81611be5565b156125675760405162461bcd60e51b8152600401610b0d90613040565b612573600083836122e8565b6001600160a01b038216600090815260036020526040812080546001929061259c9084906138fa565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161264b846113a5565b6126559190613945565b6000838152600760205260409020549091508082146126a8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906126ed90600190613945565b6000838152600960205260408120546008805493945090928490811061272357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061275257634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061279857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006127bf836113a5565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060611cfd848460008561280d565b3b151590565b60608247101561282f5760405162461bcd60e51b8152600401610b0d9061324d565b61283885612807565b6128545760405162461bcd60e51b8152600401610b0d90613722565b600080866001600160a01b031685876040516128709190612d81565b60006040518083038185875af1925050503d80600081146128ad576040519150601f19603f3d011682016040523d82523d6000602084013e6128b2565b606091505b50915091506128c28282866128cd565b979650505050505050565b606083156128dc575081611c7c565b8251156128ec5782518084602001fd5b8160405162461bcd60e51b8152600401610b0d9190612ebb565b82805461291290613988565b90600052602060002090601f016020900481019282612934576000855561297a565b82601f1061294d57805160ff191683800117855561297a565b8280016001018555821561297a579182015b8281111561297a57825182559160200191906001019061295f565b5061298692915061298a565b5090565b5b80821115612986576000815560010161298b565b60006129b26129ad846138c6565b61389c565b90508281528383830111156129c657600080fd5b828260208301376000602084830101529392505050565b6000602082840312156129ee578081fd5b8135611c7c81613a34565b60008060408385031215612a0b578081fd5b8235612a1681613a34565b91506020830135612a2681613a34565b809150509250929050565b600080600060608486031215612a45578081fd5b8335612a5081613a34565b92506020840135612a6081613a34565b929592945050506040919091013590565b60008060008060808587031215612a86578081fd5b8435612a9181613a34565b93506020850135612aa181613a34565b925060408501359150606085013567ffffffffffffffff811115612ac3578182fd5b8501601f81018713612ad3578182fd5b612ae28782356020840161299f565b91505092959194509250565b60008060408385031215612b00578182fd5b8235612b0b81613a34565b91506020830135612a2681613a49565b60008060408385031215612b2d578182fd5b8235612b3881613a34565b946020939093013593505050565b600060208284031215612b57578081fd5b8151611c7c81613a49565b600060208284031215612b73578081fd5b5035919050565b600060208284031215612b8b578081fd5b8135611c7c81613a57565b600060208284031215612ba7578081fd5b8151611c7c81613a57565b60008060408385031215612a0b578182fd5b600060208284031215612bd5578081fd5b813567ffffffffffffffff811115612beb578182fd5b8201601f81018413612bfb578182fd5b611cfd8482356020840161299f565b600060208284031215612c1b578081fd5b815167ffffffffffffffff811115612c31578182fd5b8201601f81018413612c41578182fd5b8051612c4f6129ad826138c6565b818152856020838501011115612c63578384fd5b612c7482602083016020860161395c565b95945050505050565b600060208284031215612c8e578081fd5b5051919050565b600080600060408486031215612ca9578081fd5b83359250602084013567ffffffffffffffff80821115612cc7578283fd5b818601915086601f830112612cda578283fd5b813581811115612ce8578384fd5b8760208083028501011115612cfb578384fd5b6020830194508093505050509250925092565b60008151808452612d2681602086016020860161395c565b601f01601f19169290920160200192915050565b60008151612d4c81856020860161395c565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008251612d9381846020870161395c565b9190910192915050565b8254600090819060028104600180831680612db957607f831692505b6020808410821415612dd957634e487b7160e01b87526022600452602487fd5b818015612ded5760018114612dfe57612e2a565b60ff19861689528489019650612e2a565b612e078b6138ee565b885b86811015612e225781548b820152908501908301612e09565b505084890196505b505050505050612c748185612d3a565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e9d90830184612d0e565b9695505050505050565b901515815260200190565b90815260200190565b600060208252611c7c6020830184612d0e565b6020808252602e908201527f43616e206f6e6c79206d696e74206d6178207075726368617365206f6620746f60408201526d6b656e7320617420612074696d6560901b606082015260800190565b60208082526021908201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656040820152603760f91b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602a908201527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015269206f6620546f6b656e7360b01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526013908201527224b73b30b634b21026b2b935b632a83937b7b360691b604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601c908201527f4d757374206d696e74206d6f7265207468616e203020746f6b656e7300000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f5468697320776f756c6420657863656564206d6178207265736572766174696f60408201526a6e206f6620546f6b656e7360a81b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526022908201527f4578636565646564206d617820617661696c61626c6520746f20707572636861604082015261736560f01b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260169082015275507265206d696e74206973206e6f742061637469766560501b604082015260600190565b60208082526026908201527f5468697320776f756c6420657863656564206d617820737570706c79206f6620604082015265546f6b656e7360d01b606082015260800190565b60405181810167ffffffffffffffff811182821017156138be576138be613a1e565b604052919050565b600067ffffffffffffffff8211156138e0576138e0613a1e565b50601f01601f191660200190565b60009081526020902090565b6000821982111561390d5761390d6139f2565b500190565b60008261392157613921613a08565b500490565b6000816000190483118215151615613940576139406139f2565b500290565b600082821015613957576139576139f2565b500390565b60005b8381101561397757818101518382015260200161395f565b838111156118d05750506000910152565b60028104600182168061399c57607f821691505b602082108114156139bd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139d7576139d76139f2565b5060010190565b6000826139ed576139ed613a08565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611b5857600080fd5b8015158114611b5857600080fd5b6001600160e01b031981168114611b5857600080fdfea264697066735822122062618442284594a897f0f30ec1e72749fa60d08c9a67ec8d0f13fc9bf6850b1d64736f6c634300080000330000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000380a46fb62816405d1342c5b74fbcd312e1b763385ee3c5442b230802385c619ecd000000000000000000000000000000000000000000000000000000000000000e57656174686572205265706f7274000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000257520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f7765617468657265706f72742e6d7970696e6174612e636c6f75642f697066732f516d52667877636f486832395843434432414e6f397a6373535863335332333679766238477742354d50595438652f00000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000e0e9796189a82a6b181149bfad5aabbb5d7f1a46000000000000000000000000bf72607924495fa2df7452778645958e0c80b8e400000000000000000000000039ce1c0101b8e9ccf163439618b8027acee387ff000000000000000000000000ed9f922304a7bc4cd1f1c3611060d8486fbd7c4b0000000000000000000000004fffd4be967968be09f8fdb9cd6f99a837f6e6e800000000000000000000000076d0fcaebe6acbd0e0200dade2f938f11bb1e6c5000000000000000000000000272f36c660862cdfdd059910e572ffc9ec7a91c90000000000000000000000001d3a56f8e4a30365512e6a90dd8efd353dc34a620000000000000000000000006dd602e392228e30c79ff842d33a765533d2f2040000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000000cd000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f
Deployed Bytecode
0x6080604052600436106103855760003560e01c80638b83209b116101d1578063c87b56dd11610102578063d79779b2116100a0578063f03255491161006f578063f0325549146109b9578063f2fde38b146109ce578063f47c84c5146109ee578063fe042d4914610a03576103cc565b8063d79779b21461094f578063e33b7de31461096f578063e8a3d48514610984578063e985e9c514610999576103cc565b8063cfc86f7b116100dc578063cfc86f7b146108fb578063d1f86ba914610910578063d2b9b7e614610925578063d2d8cb671461093a576103cc565b8063c87b56dd146108a6578063cce132d1146108c6578063ce7c2ac2146108db576103cc565b80639852595c1161016f578063aa4193d611610149578063aa4193d61461083c578063b88d4fde1461085c578063c0e727401461087c578063c71b0e1c14610891576103cc565b80639852595c146107e75780639f7d2e7314610807578063a22cb4651461081c576103cc565b8063938e3d7b116101ab578063938e3d7b1461078a578063949de446146107aa57806395d89b41146107bf57806397304ced146107d4576103cc565b80638b83209b146107355780638da5cb5b146107555780638edec0741461076a576103cc565b80633a98ef39116102b65780636373a6b11161025457806378cf19e91161022357806378cf19e9146106c057806379c9cb7b146106e057806382f96f1a146107005780638449470814610720576103cc565b80636373a6b11461066157806368fc68c71461067657806370a082311461068b578063715018a6146106ab576103cc565b806348b750441161029057806348b75044146105e15780634f6ccce71461060157806355f804b3146106215780636352211e14610641576103cc565b80633a98ef391461058c578063406072a9146105a157806342842e0e146105c1576103cc565b806319165587116103235780632aea3d23116102fd5780632aea3d23146105225780632c5a3f86146105375780632f745c59146105575780633154b9c214610577576103cc565b806319165587146104cd57806323b872dd146104ed57806325e892831461050d576103cc565b8063095ea7b31161035f578063095ea7b3146104565780631096952314610478578063142e3d3e1461049857806318160ddd146104ab576103cc565b806301ffc9a7146103d157806306fdde0314610407578063081812fc14610429576103cc565b366103cc577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706103b3610a23565b346040516103c2929190612e51565b60405180910390a1005b600080fd5b3480156103dd57600080fd5b506103f16103ec366004612b7a565b610a27565b6040516103fe9190612ea7565b60405180910390f35b34801561041357600080fd5b5061041c610a54565b6040516103fe9190612ebb565b34801561043557600080fd5b50610449610444366004612b62565b610ae6565b6040516103fe9190612e3d565b34801561046257600080fd5b50610476610471366004612b1b565b610b32565b005b34801561048457600080fd5b50610476610493366004612bc4565b610bca565b6104766104a6366004612c95565b610c20565b3480156104b757600080fd5b506104c0610e1b565b6040516103fe9190612eb2565b3480156104d957600080fd5b506104766104e83660046129dd565b610e21565b3480156104f957600080fd5b50610476610508366004612a31565b610f2f565b34801561051957600080fd5b506103f1610f67565b34801561052e57600080fd5b50610476610f70565b34801561054357600080fd5b506104c06105523660046129dd565b610fc3565b34801561056357600080fd5b506104c0610572366004612b1b565b610fd5565b34801561058357600080fd5b506104c0611027565b34801561059857600080fd5b506104c061102d565b3480156105ad57600080fd5b506104c06105bc366004612bb2565b611033565b3480156105cd57600080fd5b506104766105dc366004612a31565b61105e565b3480156105ed57600080fd5b506104766105fc366004612bb2565b611079565b34801561060d57600080fd5b506104c061061c366004612b62565b61122f565b34801561062d57600080fd5b5061047661063c366004612bc4565b61128a565b34801561064d57600080fd5b5061044961065c366004612b62565b6112dc565b34801561066d57600080fd5b5061041c611311565b34801561068257600080fd5b506104c061139f565b34801561069757600080fd5b506104c06106a63660046129dd565b6113a5565b3480156106b757600080fd5b506104766113e9565b3480156106cc57600080fd5b506104766106db366004612b1b565b611434565b3480156106ec57600080fd5b506104766106fb366004612b62565b61150d565b34801561070c57600080fd5b506104c061071b3660046129dd565b611551565b34801561072c57600080fd5b506103f161156c565b34801561074157600080fd5b50610449610750366004612b62565b61157a565b34801561076157600080fd5b506104496115b8565b34801561077657600080fd5b506104766107853660046129dd565b6115c7565b34801561079657600080fd5b506104766107a5366004612bc4565b61162e565b3480156107b657600080fd5b506103f1611680565b3480156107cb57600080fd5b5061041c611689565b6104766107e2366004612b62565b611698565b3480156107f357600080fd5b506104c06108023660046129dd565b6117d3565b34801561081357600080fd5b506104766117ee565b34801561082857600080fd5b50610476610837366004612aee565b611841565b34801561084857600080fd5b50610476610857366004612b62565b611853565b34801561086857600080fd5b50610476610877366004612a71565b611897565b34801561088857600080fd5b5061041c6118d6565b34801561089d57600080fd5b506104c06118e3565b3480156108b257600080fd5b5061041c6108c1366004612b62565b6118e9565b3480156108d257600080fd5b506104c06119dc565b3480156108e757600080fd5b506104c06108f63660046129dd565b6119e2565b34801561090757600080fd5b5061041c6119fd565b34801561091c57600080fd5b506104c0611a0a565b34801561093157600080fd5b50610449611a10565b34801561094657600080fd5b506104c0611a24565b34801561095b57600080fd5b506104c061096a3660046129dd565b611a30565b34801561097b57600080fd5b506104c0611a4b565b34801561099057600080fd5b5061041c611a51565b3480156109a557600080fd5b506103f16109b43660046129f9565b611a60565b3480156109c557600080fd5b50610476611a8e565b3480156109da57600080fd5b506104766109e93660046129dd565b611aea565b3480156109fa57600080fd5b506104c0611b5b565b348015610a0f57600080fd5b50610476610a1e366004612b62565b611b61565b3390565b60006001600160e01b0319821663780e9d6360e01b1480610a4c5750610a4c82611ba5565b90505b919050565b606060008054610a6390613988565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8f90613988565b8015610adc5780601f10610ab157610100808354040283529160200191610adc565b820191906000526020600020905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b6000610af182611be5565b610b165760405162461bcd60e51b8152600401610b0d906134ea565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610b3d826112dc565b9050806001600160a01b0316836001600160a01b03161415610b715760405162461bcd60e51b8152600401610b0d9061364e565b806001600160a01b0316610b83610a23565b6001600160a01b03161480610b9f5750610b9f816109b4610a23565b610bbb5760405162461bcd60e51b8152600401610b0d9061338e565b610bc58383611c02565b505050565b610bd2610a23565b6001600160a01b0316610be36115b8565b6001600160a01b031614610c095760405162461bcd60e51b8152600401610b0d90613536565b8051610c1c906016906020840190612906565b5050565b60026012541415610c435760405162461bcd60e51b8152600401610b0d906137ef565b6002601255601954610100900460ff16610c6f5760405162461bcd60e51b8152600401610b0d90613826565b601554336000908152601a6020526040902054610c8c9085611c70565b1115610caa5760405162461bcd60e51b8152600401610b0d9061368f565b60008311610cca5760405162461bcd60e51b8152600401610b0d9061347e565b612710610cdf84610cd9610e1b565b90611c70565b1115610cfd5760405162461bcd60e51b8152600401610b0d90613077565b34610d10670214e8348c4f000085611c83565b1115610d2e5760405162461bcd60e51b8152600401610b0d90613182565b600033604051602001610d419190612d56565b604051602081830303815290604052805190602001209050610d9a83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601b549150849050611c8f565b610db65760405162461bcd60e51b8152600401610b0d9061332a565b336000908152601a6020526040902054610dd09085611c70565b336000908152601a60205260408120919091555b84811015610e0f57610dfd33610df8610e1b565b611ca5565b80610e07816139c3565b915050610de4565b50506001601255505050565b60085490565b6001600160a01b0381166000908152600c6020526040902054610e565760405162461bcd60e51b8152600401610b0d906130c1565b6000610e60611a4b565b610e6a90476138fa565b90506000610e818383610e7c866117d3565b611cbf565b905080610ea05760405162461bcd60e51b8152600401610b0d906132df565b6001600160a01b0383166000908152600d602052604081208054839290610ec89084906138fa565b9250508190555080600b6000828254610ee191906138fa565b90915550610ef190508382611d05565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610f22929190612e51565b60405180910390a1505050565b610f40610f3a610a23565b82611da1565b610f5c5760405162461bcd60e51b8152600401610b0d906136d1565b610bc5838383611e1e565b60195460ff1681565b610f78610a23565b6001600160a01b0316610f896115b8565b6001600160a01b031614610faf5760405162461bcd60e51b8152600401610b0d90613536565b6019805460ff19811660ff90911615179055565b601a6020526000908152604090205481565b6000610fe0836113a5565b8210610ffe5760405162461bcd60e51b8152600401610b0d90612f5d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b601b5481565b600a5490565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b610bc583838360405180602001604052806000815250611897565b6001600160a01b0381166000908152600c60205260409020546110ae5760405162461bcd60e51b8152600401610b0d906130c1565b60006110b983611a30565b6040516370a0823160e01b81526001600160a01b038516906370a08231906110e5903090600401612e3d565b60206040518083038186803b1580156110fd57600080fd5b505afa158015611111573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111359190612c7d565b61113f91906138fa565b905060006111528383610e7c8787611033565b9050806111715760405162461bcd60e51b8152600401610b0d906132df565b6001600160a01b038085166000908152601060209081526040808320938716835292905290812080548392906111a89084906138fa565b90915550506001600160a01b0384166000908152600f6020526040812080548392906111d59084906138fa565b909155506111e69050848483611f4b565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611221929190612e51565b60405180910390a250505050565b6000611239610e1b565b82106112575760405162461bcd60e51b8152600401610b0d90613759565b6008828154811061127857634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b611292610a23565b6001600160a01b03166112a36115b8565b6001600160a01b0316146112c95760405162461bcd60e51b8152600401610b0d90613536565b8051610c1c906018906020840190612906565b6000818152600260205260408120546001600160a01b031680610a4c5760405162461bcd60e51b8152600401610b0d90613435565b6016805461131e90613988565b80601f016020809104026020016040519081016040528092919081815260200182805461134a90613988565b80156113975780601f1061136c57610100808354040283529160200191611397565b820191906000526020600020905b81548152906001019060200180831161137a57829003601f168201915b505050505081565b61022681565b60006001600160a01b0382166113cd5760405162461bcd60e51b8152600401610b0d906133eb565b506001600160a01b031660009081526003602052604090205490565b6113f1610a23565b6001600160a01b03166114026115b8565b6001600160a01b0316146114285760405162461bcd60e51b8152600401610b0d90613536565b6114326000611fa1565b565b61143c610a23565b6001600160a01b031661144d6115b8565b6001600160a01b0316146114735760405162461bcd60e51b8152600401610b0d90613536565b61271061148282610cd9610e1b565b11156114a05760405162461bcd60e51b8152600401610b0d90613856565b601354610226906114b19083611c70565b11156114cf5760405162461bcd60e51b8152600401610b0d9061356b565b60005b818110156114f8576114e683610df8610e1b565b806114f0816139c3565b9150506114d2565b506013546115069082611c70565b6013555050565b611515610a23565b6001600160a01b03166115266115b8565b6001600160a01b03161461154c5760405162461bcd60e51b8152600401610b0d90613536565b601455565b6001600160a01b03166000908152601a602052604090205490565b601954610100900460ff1681565b6000600e828154811061159d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6011546001600160a01b031690565b6115cf610a23565b6001600160a01b03166115e06115b8565b6001600160a01b0316146116065760405162461bcd60e51b8152600401610b0d90613536565b601c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b611636610a23565b6001600160a01b03166116476115b8565b6001600160a01b03161461166d5760405162461bcd60e51b8152600401610b0d90613536565b8051610c1c906017906020840190612906565b601c5460ff1681565b606060018054610a6390613988565b600260125414156116bb5760405162461bcd60e51b8152600401610b0d906137ef565b60026012553233146116df5760405162461bcd60e51b8152600401610b0d90613357565b60195460ff166117015760405162461bcd60e51b8152600401610b0d90612f1c565b6014548111156117235760405162461bcd60e51b8152600401610b0d90612ece565b600081116117435760405162461bcd60e51b8152600401610b0d9061347e565b61271061175282610cd9610e1b565b11156117705760405162461bcd60e51b8152600401610b0d90613077565b34611783670214e8348c4f000083611c83565b11156117a15760405162461bcd60e51b8152600401610b0d90613182565b60005b818110156117ca576117b833610df8610e1b565b806117c2816139c3565b9150506117a4565b50506001601255565b6001600160a01b03166000908152600d602052604090205490565b6117f6610a23565b6001600160a01b03166118076115b8565b6001600160a01b03161461182d5760405162461bcd60e51b8152600401610b0d90613536565b601c805460ff19811660ff90911615179055565b610c1c61184c610a23565b8383611ff3565b61185b610a23565b6001600160a01b031661186c6115b8565b6001600160a01b0316146118925760405162461bcd60e51b8152600401610b0d90613536565b601555565b6118a86118a2610a23565b83611da1565b6118c45760405162461bcd60e51b8152600401610b0d906136d1565b6118d084848484612096565b50505050565b6017805461131e90613988565b60135481565b60606118f482611be5565b6119105760405162461bcd60e51b8152600401610b0d906135ff565b601c5460ff16156119aa57601c5460405163c87b56dd60e01b81526101009091046001600160a01b03169063c87b56dd9061194f908590600401612eb2565b60006040518083038186803b15801561196757600080fd5b505afa15801561197b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119a39190810190612c0a565b9050610a4f565b60186119b5836120c9565b6040516020016119c6929190612d9d565b6040516020818303038152906040529050610a4f565b60145481565b6001600160a01b03166000908152600c602052604090205490565b6018805461131e90613988565b60155481565b601c5461010090046001600160a01b031681565b670214e8348c4f000081565b6001600160a01b03166000908152600f602052604090205490565b600b5490565b606060178054610a6390613988565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611a96610a23565b6001600160a01b0316611aa76115b8565b6001600160a01b031614611acd5760405162461bcd60e51b8152600401610b0d90613536565b6019805461ff001981166101009182900460ff1615909102179055565b611af2610a23565b6001600160a01b0316611b036115b8565b6001600160a01b031614611b295760405162461bcd60e51b8152600401610b0d90613536565b6001600160a01b038116611b4f5760405162461bcd60e51b8152600401610b0d90612ffa565b611b5881611fa1565b50565b61271081565b611b69610a23565b6001600160a01b0316611b7a6115b8565b6001600160a01b031614611ba05760405162461bcd60e51b8152600401610b0d90613536565b601b55565b60006001600160e01b031982166380ac58cd60e01b1480611bd657506001600160e01b03198216635b5e139f60e01b145b80610a4c5750610a4c826121e4565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c37826112dc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c7c82846138fa565b9392505050565b6000611c7c8284613926565b600082611c9c85846121fd565b14949350505050565b610c1c8282604051806020016040528060008152506122b5565b600a546001600160a01b0384166000908152600c602052604081205490918391611ce99086613926565b611cf39190613912565b611cfd9190613945565b949350505050565b80471015611d255760405162461bcd60e51b8152600401610b0d90613216565b6000826001600160a01b031682604051611d3e90612e3a565b60006040518083038185875af1925050503d8060008114611d7b576040519150601f19603f3d011682016040523d82523d6000602084013e611d80565b606091505b5050905080610bc55760405162461bcd60e51b8152600401610b0d906131b9565b6000611dac82611be5565b611dc85760405162461bcd60e51b8152600401610b0d90613293565b6000611dd3836112dc565b9050806001600160a01b0316846001600160a01b03161480611e0e5750836001600160a01b0316611e0384610ae6565b6001600160a01b0316145b80611cfd5750611cfd8185611a60565b826001600160a01b0316611e31826112dc565b6001600160a01b031614611e575760405162461bcd60e51b8152600401610b0d906135b6565b6001600160a01b038216611e7d5760405162461bcd60e51b8152600401610b0d90613107565b611e888383836122e8565b611e93600082611c02565b6001600160a01b0383166000908152600360205260408120805460019290611ebc908490613945565b90915550506001600160a01b0382166000908152600360205260408120805460019290611eea9084906138fa565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610bc58363a9059cbb60e01b8484604051602401611f6a929190612e51565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612371565b601180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156120255760405162461bcd60e51b8152600401610b0d9061314b565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612089908590612ea7565b60405180910390a3505050565b6120a1848484611e1e565b6120ad84848484612400565b6118d05760405162461bcd60e51b8152600401610b0d90612fa8565b6060816120ee57506040805180820190915260018152600360fc1b6020820152610a4f565b8160005b81156121185780612102816139c3565b91506121119050600a83613912565b91506120f2565b60008167ffffffffffffffff81111561214157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561216b576020820181803683370190505b5090505b8415611cfd57612180600183613945565b915061218d600a866139de565b6121989060306138fa565b60f81b8183815181106121bb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506121dd600a86613912565b945061216f565b6001600160e01b031981166301ffc9a760e01b14919050565b600081815b84518110156122ad57600085828151811061222d57634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161226e578281604051602001612251929190612d73565b60405160208183030381529060405280519060200120925061229a565b8083604051602001612281929190612d73565b6040516020818303038152906040528051906020012092505b50806122a5816139c3565b915050612202565b509392505050565b6122bf838361251b565b6122cc6000848484612400565b610bc55760405162461bcd60e51b8152600401610b0d90612fa8565b6122f3838383610bc5565b6001600160a01b03831661230f5761230a816125fa565b612332565b816001600160a01b0316836001600160a01b03161461233257612332838261263e565b6001600160a01b03821661234e57612349816126db565b610bc5565b826001600160a01b0316826001600160a01b031614610bc557610bc582826127b4565b60006123c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166127f89092919063ffffffff16565b805190915015610bc557808060200190518101906123e49190612b46565b610bc55760405162461bcd60e51b8152600401610b0d906137a5565b6000612414846001600160a01b0316612807565b1561251057836001600160a01b031663150b7a02612430610a23565b8786866040518563ffffffff1660e01b81526004016124529493929190612e6a565b602060405180830381600087803b15801561246c57600080fd5b505af192505050801561249c575060408051601f3d908101601f1916820190925261249991810190612b96565b60015b6124f6573d8080156124ca576040519150601f19603f3d011682016040523d82523d6000602084013e6124cf565b606091505b5080516124ee5760405162461bcd60e51b8152600401610b0d90612fa8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611cfd565b506001949350505050565b6001600160a01b0382166125415760405162461bcd60e51b8152600401610b0d906134b5565b61254a81611be5565b156125675760405162461bcd60e51b8152600401610b0d90613040565b612573600083836122e8565b6001600160a01b038216600090815260036020526040812080546001929061259c9084906138fa565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161264b846113a5565b6126559190613945565b6000838152600760205260409020549091508082146126a8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906126ed90600190613945565b6000838152600960205260408120546008805493945090928490811061272357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061275257634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061279857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006127bf836113a5565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6060611cfd848460008561280d565b3b151590565b60608247101561282f5760405162461bcd60e51b8152600401610b0d9061324d565b61283885612807565b6128545760405162461bcd60e51b8152600401610b0d90613722565b600080866001600160a01b031685876040516128709190612d81565b60006040518083038185875af1925050503d80600081146128ad576040519150601f19603f3d011682016040523d82523d6000602084013e6128b2565b606091505b50915091506128c28282866128cd565b979650505050505050565b606083156128dc575081611c7c565b8251156128ec5782518084602001fd5b8160405162461bcd60e51b8152600401610b0d9190612ebb565b82805461291290613988565b90600052602060002090601f016020900481019282612934576000855561297a565b82601f1061294d57805160ff191683800117855561297a565b8280016001018555821561297a579182015b8281111561297a57825182559160200191906001019061295f565b5061298692915061298a565b5090565b5b80821115612986576000815560010161298b565b60006129b26129ad846138c6565b61389c565b90508281528383830111156129c657600080fd5b828260208301376000602084830101529392505050565b6000602082840312156129ee578081fd5b8135611c7c81613a34565b60008060408385031215612a0b578081fd5b8235612a1681613a34565b91506020830135612a2681613a34565b809150509250929050565b600080600060608486031215612a45578081fd5b8335612a5081613a34565b92506020840135612a6081613a34565b929592945050506040919091013590565b60008060008060808587031215612a86578081fd5b8435612a9181613a34565b93506020850135612aa181613a34565b925060408501359150606085013567ffffffffffffffff811115612ac3578182fd5b8501601f81018713612ad3578182fd5b612ae28782356020840161299f565b91505092959194509250565b60008060408385031215612b00578182fd5b8235612b0b81613a34565b91506020830135612a2681613a49565b60008060408385031215612b2d578182fd5b8235612b3881613a34565b946020939093013593505050565b600060208284031215612b57578081fd5b8151611c7c81613a49565b600060208284031215612b73578081fd5b5035919050565b600060208284031215612b8b578081fd5b8135611c7c81613a57565b600060208284031215612ba7578081fd5b8151611c7c81613a57565b60008060408385031215612a0b578182fd5b600060208284031215612bd5578081fd5b813567ffffffffffffffff811115612beb578182fd5b8201601f81018413612bfb578182fd5b611cfd8482356020840161299f565b600060208284031215612c1b578081fd5b815167ffffffffffffffff811115612c31578182fd5b8201601f81018413612c41578182fd5b8051612c4f6129ad826138c6565b818152856020838501011115612c63578384fd5b612c7482602083016020860161395c565b95945050505050565b600060208284031215612c8e578081fd5b5051919050565b600080600060408486031215612ca9578081fd5b83359250602084013567ffffffffffffffff80821115612cc7578283fd5b818601915086601f830112612cda578283fd5b813581811115612ce8578384fd5b8760208083028501011115612cfb578384fd5b6020830194508093505050509250925092565b60008151808452612d2681602086016020860161395c565b601f01601f19169290920160200192915050565b60008151612d4c81856020860161395c565b9290920192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008251612d9381846020870161395c565b9190910192915050565b8254600090819060028104600180831680612db957607f831692505b6020808410821415612dd957634e487b7160e01b87526022600452602487fd5b818015612ded5760018114612dfe57612e2a565b60ff19861689528489019650612e2a565b612e078b6138ee565b885b86811015612e225781548b820152908501908301612e09565b505084890196505b505050505050612c748185612d3a565b90565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e9d90830184612d0e565b9695505050505050565b901515815260200190565b90815260200190565b600060208252611c7c6020830184612d0e565b6020808252602e908201527f43616e206f6e6c79206d696e74206d6178207075726368617365206f6620746f60408201526d6b656e7320617420612074696d6560901b606082015260800190565b60208082526021908201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656040820152603760f91b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252602a908201527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015269206f6620546f6b656e7360b01b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526013908201527224b73b30b634b21026b2b935b632a83937b7b360691b604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601c908201527f4d757374206d696e74206d6f7265207468616e203020746f6b656e7300000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f5468697320776f756c6420657863656564206d6178207265736572766174696f60408201526a6e206f6620546f6b656e7360a81b606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526022908201527f4578636565646564206d617820617661696c61626c6520746f20707572636861604082015261736560f01b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825260169082015275507265206d696e74206973206e6f742061637469766560501b604082015260600190565b60208082526026908201527f5468697320776f756c6420657863656564206d617820737570706c79206f6620604082015265546f6b656e7360d01b606082015260800190565b60405181810167ffffffffffffffff811182821017156138be576138be613a1e565b604052919050565b600067ffffffffffffffff8211156138e0576138e0613a1e565b50601f01601f191660200190565b60009081526020902090565b6000821982111561390d5761390d6139f2565b500190565b60008261392157613921613a08565b500490565b6000816000190483118215151615613940576139406139f2565b500290565b600082821015613957576139576139f2565b500390565b60005b8381101561397757818101518382015260200161395f565b838111156118d05750506000910152565b60028104600182168061399c57607f821691505b602082108114156139bd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156139d7576139d76139f2565b5060010190565b6000826139ed576139ed613a08565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611b5857600080fd5b8015158114611b5857600080fd5b6001600160e01b031981168114611b5857600080fdfea264697066735822122062618442284594a897f0f30ec1e72749fa60d08c9a67ec8d0f13fc9bf6850b1d64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000380a46fb62816405d1342c5b74fbcd312e1b763385ee3c5442b230802385c619ecd000000000000000000000000000000000000000000000000000000000000000e57656174686572205265706f7274000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000257520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f7765617468657265706f72742e6d7970696e6174612e636c6f75642f697066732f516d52667877636f486832395843434432414e6f397a6373535863335332333679766238477742354d50595438652f00000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000e0e9796189a82a6b181149bfad5aabbb5d7f1a46000000000000000000000000bf72607924495fa2df7452778645958e0c80b8e400000000000000000000000039ce1c0101b8e9ccf163439618b8027acee387ff000000000000000000000000ed9f922304a7bc4cd1f1c3611060d8486fbd7c4b0000000000000000000000004fffd4be967968be09f8fdb9cd6f99a837f6e6e800000000000000000000000076d0fcaebe6acbd0e0200dade2f938f11bb1e6c5000000000000000000000000272f36c660862cdfdd059910e572ffc9ec7a91c90000000000000000000000001d3a56f8e4a30365512e6a90dd8efd353dc34a620000000000000000000000006dd602e392228e30c79ff842d33a765533d2f2040000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000000fa00000000000000000000000000000000000000000000000000000000000000cd000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f
-----Decoded View---------------
Arg [0] : name (string): Weather Report
Arg [1] : symbol (string): WR
Arg [2] : contractURI_ (string):
Arg [3] : baseURI (string): https://weathereport.mypinata.cloud/ipfs/QmRfxwcoHh29XCCD2ANo9zcsSXc3S236yvb8GwB5MPYT8e/
Arg [4] : maxMints (uint256): 2
Arg [5] : maxPreMints (uint256): 2
Arg [6] : payees (address[]): 0xE0e9796189a82a6b181149BFad5AABbB5d7f1A46,0xbF72607924495fa2df7452778645958E0C80b8e4,0x39Ce1c0101b8E9ccF163439618b8027acEe387ff,0xED9f922304a7bc4CD1f1C3611060D8486Fbd7c4b,0x4ffFD4BE967968BE09F8Fdb9CD6F99A837F6E6E8,0x76d0FcAEbe6Acbd0E0200DAdE2F938f11BB1E6C5,0x272F36C660862CdfDD059910e572FfC9Ec7A91C9,0x1d3a56F8e4a30365512e6a90DD8EfD353DC34a62,0x6dd602E392228E30C79fF842D33A765533d2f204
Arg [7] : shares (uint256[]): 300,250,205,100,50,50,15,15,15
Arg [8] : preSaleRoot_ (bytes32): 0xa46fb62816405d1342c5b74fbcd312e1b763385ee3c5442b230802385c619ecd
-----Encoded View---------------
38 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000380
Arg [8] : a46fb62816405d1342c5b74fbcd312e1b763385ee3c5442b230802385c619ecd
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [10] : 57656174686572205265706f7274000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 5752000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000058
Arg [15] : 68747470733a2f2f7765617468657265706f72742e6d7970696e6174612e636c
Arg [16] : 6f75642f697066732f516d52667877636f486832395843434432414e6f397a63
Arg [17] : 73535863335332333679766238477742354d50595438652f0000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [19] : 000000000000000000000000e0e9796189a82a6b181149bfad5aabbb5d7f1a46
Arg [20] : 000000000000000000000000bf72607924495fa2df7452778645958e0c80b8e4
Arg [21] : 00000000000000000000000039ce1c0101b8e9ccf163439618b8027acee387ff
Arg [22] : 000000000000000000000000ed9f922304a7bc4cd1f1c3611060d8486fbd7c4b
Arg [23] : 0000000000000000000000004fffd4be967968be09f8fdb9cd6f99a837f6e6e8
Arg [24] : 00000000000000000000000076d0fcaebe6acbd0e0200dade2f938f11bb1e6c5
Arg [25] : 000000000000000000000000272f36c660862cdfdd059910e572ffc9ec7a91c9
Arg [26] : 0000000000000000000000001d3a56f8e4a30365512e6a90dd8efd353dc34a62
Arg [27] : 0000000000000000000000006dd602e392228e30c79ff842d33a765533d2f204
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [29] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [30] : 00000000000000000000000000000000000000000000000000000000000000fa
Arg [31] : 00000000000000000000000000000000000000000000000000000000000000cd
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [33] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [35] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [36] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [37] : 000000000000000000000000000000000000000000000000000000000000000f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.