Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
8,001 GUPPY
Holders
1,412
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 GUPPYLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GuppyGang
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 500000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; /** * @title Guppy Gang * @dev ERC721 Token for the Guppy Gang project * Deployed on 31th October 2021 */ contract GuppyGang is ERC721Enumerable, Ownable, AccessControlEnumerable, PaymentSplitter { // Allows for safe math operations on integers such as add, sub, mul, and div using SafeMath for uint256; // Used for incrementing token id to _tokenIdCounter using Counters for Counters.Counter; // Roles to allow for the staff to call protected functions such as set sale active to true bytes32 public constant STAFF_ROLE = keccak256("STAFF_ROLE"); bytes32 public constant WHITELIST_ROLE = keccak256("WHITELIST_ROLE"); // General token specifics uint256 public constant MAX_TOKENS = 10000; uint256 public constant MAX_MINTS_PER_TX = 20; // limit the amount of mints per transaction uint256 public tokenPrice = 80000000000000000; // 0.080 ether // Counter to keep track of supply for minting Counters.Counter private _tokenIdCounter; // Contract information storage for for instance metadata storage string public baseURI; string public contractURI; string public provenance; string public license; // Control booleans for minting functions or to allow functions to irreversibly be called once bool public licenseLocked = false; bool public saleIsActive = false; bool public whiteListSaleIsActive = false; // Register of user wallets that are whitelisted for the whitelist sale mapping(address => bool) public whitelist; // Addresses that are able to release the funds in this contract address[] private constantPayees = [ 0x33A7B4D0eD67E44CCdc56c08822809859f541A17, // PLS 0x724878296ef5E9DE81CD27BE8b2dE3Dc325E45D1, // UI 0xF55fFe9EB51E2B013eA4cAEb7868C5c75cA65396 // PLD ]; // Allocated share per constantPayees address in the corresponding order uint256[] private constantShares = [40,20,40]; /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `STAFF_ROLE` and `WHITELIST_ROLE` to the * account that deploys the contract. * * See {ERC721}. */ constructor() ERC721("Guppy Gang", "GUPPY") PaymentSplitter(constantPayees, constantShares) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(STAFF_ROLE, _msgSender()); _setupRole(WHITELIST_ROLE, _msgSender()); } /** * @dev As both ERC721 and AccessControlEnumerable include supportsInterface we need to override both. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, AccessControlEnumerable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Flip the boolean state of saleIsActive to enable/disable public sale */ function flipSaleState() external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); saleIsActive = !saleIsActive; } /** * @dev Flip the boolean state of whiteListSaleIsActive to enable/disable whitelist sale */ function flipWhiteListSaleState() external { require(hasRole(WHITELIST_ROLE, _msgSender()), "Must have whitelist role to call this function."); whiteListSaleIsActive = !whiteListSaleIsActive; } /** * @dev Add an array of user wallets to the whitelist for whitelist sale */ function addWhitelist(address[] memory _whitelist) external { _changeWhiteList(_whitelist, true); } /** * @dev Remove an array of user wallets from the whitelist for whitelist sale */ function removeWhitelist(address[] memory _whitelist) external { _changeWhiteList(_whitelist, false); } /** * @dev Private function to change the white list */ function _changeWhiteList(address[] memory _whitelist, bool _value) internal { require(hasRole(WHITELIST_ROLE, _msgSender()), "Must have whitelist role to call this function."); for(uint256 i = 0; i < _whitelist.length; i++) { whitelist[_whitelist[i]] = _value; } } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /** * @dev Set the base uri per token */ function setBaseURI(string memory newBaseUri) external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); baseURI = newBaseUri; } /** * @dev Set the Contract-level URI */ function setContractURI(string memory _contractURI) external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); contractURI = _contractURI; } /** * @dev Provenance may only be set once irreversibly */ function setProvenance(string memory _provenance) external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); require(bytes(provenance).length == 0, "Provenance already set."); provenance = _provenance; } /** * @dev Change the token price */ function setTokenPrice(uint256 _tokenPrice) external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); tokenPrice = _tokenPrice; } /** * @dev Returns the license for tokens */ function tokenLicense(uint256 _id) public view returns (string memory) { require(_id <= totalSupply(), "Token not within range."); return license; } /** * @dev Locks the license to prevent further changes */ function lockLicense() external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); licenseLocked = true; } /** * @dev Change the license if not locked already */ function changeLicense(string memory _license) external { require(hasRole(STAFF_ROLE, _msgSender()), "Must have staff role to call this function."); require(licenseLocked == false, "License is already locked."); license = _license; } /** * @dev Minting for those that are on the whitelist when whiteListSaleIsActive is set to true */ function whitelistMint(uint256 numberOfTokens) external payable { require(whiteListSaleIsActive, "Whitelist sale must be active to mint."); require(whitelist[_msgSender()], "You are not whitelisted."); _mintToken(numberOfTokens); } /** * @dev Minting for the public when saleIsActive is set to true */ function mint(uint256 numberOfTokens) external payable { require(saleIsActive, "Sale must be active to mint."); _mintToken(numberOfTokens); } /** * @dev Private function to mint the token */ function _mintToken(uint256 numberOfTokens) internal { require(numberOfTokens <= MAX_MINTS_PER_TX, "There is a limit on minting too many at a time."); require(totalSupply() + numberOfTokens <= MAX_TOKENS, "Purchase would exceed max total supply."); require(msg.value >= tokenPrice.mul(numberOfTokens), "Not enough ether sent."); require(_msgSender() == tx.origin, "Contracts are not allowed to mint."); for(uint256 i = 0; i < numberOfTokens; i++) { uint256 mintIndex = _tokenIdCounter.current() + 1; if (mintIndex <= MAX_TOKENS) { _safeMint(_msgSender(), mintIndex); _tokenIdCounter.increment(); } } } }
// SPDX-License-Identifier: MIT 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 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 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 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControlEnumerable.sol"; import "./AccessControl.sol"; import "../utils/structs/EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Address.sol"; import "../utils/Context.sol"; import "../utils/math/SafeMath.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. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(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; /** * @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 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 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 = (totalReceived * _shares[account]) / _totalShares - _released[account]; require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] = _released[account] + payment; _totalReleased = _totalReleased + payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @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 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 no longer needed starting with Solidity 0.8. 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 pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT 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 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 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 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 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 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 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 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 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 pragma solidity ^0.8.0; import "./IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": true, "runs": 500000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_TX","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":"STAFF_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelist","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_license","type":"string"}],"name":"changeLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhiteListSaleState","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"license","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"licenseLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelist","type":"address[]"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","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":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setTokenPrice","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":"uint256","name":"_id","type":"uint256"}],"name":"tokenLicense","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","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"},{"inputs":[],"name":"whiteListSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
67011c37937e0800006012556018805462ffffff1916905560e06040527333a7b4d0ed67e44ccdc56c08822809859f541a17608090815273724878296ef5e9de81cd27be8b2de3dc325e45d160a05273f55ffe9eb51e2b013ea4caeb7868c5c75ca6539660c0526200007690601a9060036200074d565b506040805160608101825260288082526014602083015291810191909152620000a490601b906003620007b7565b50348015620000b257600080fd5b50601a8054806020026020016040519081016040528092919081815260200182805480156200010b57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620000ec575b5050505050601b8054806020026020016040519081016040528092919081815260200182805480156200015e57602002820191906000526020600020905b81548152602001906001019080831162000149575b5050604080518082018252600a81526947757070792047616e6760b01b602080830191825283518085019094526005845264475550505960d81b908401528151919550919350620001b4925060009190620007fa565b508051620001ca906001906020840190620007fa565b505050620001e7620001e1620003a060201b60201c565b620003a4565b8051825114620002595760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620002ac5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f20706179656573000000000000604482015260640162000250565b60005b825181101562000330576200031b838281518110620002de57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200030757634e487b7160e01b600052603260045260246000fd5b6020026020010151620003f660201b60201c565b806200032781620008e6565b915050620002af565b506200034291506000905033620005e4565b6200036e7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a054333620005e4565b6200039a7fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be676033620005e4565b6200091a565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620004635760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b606482015260840162000250565b60008111620004b55760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a20736861726573206172652030000000604482015260640162000250565b6001600160a01b0382166000908152600f602052604090205415620005315760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b606482015260840162000250565b60118054600181019091557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319166001600160a01b0384169081179091556000908152600f60205260409020819055600d546200059b9082906200088e565b600d55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b620005fb82826200062760201b6200259c1760201c565b6000828152600c6020908152604090912062000622918390620025a662000637821b17901c565b505050565b62000633828262000657565b5050565b60006200064e836001600160a01b038416620006fb565b90505b92915050565b6000828152600b602090815260408083206001600160a01b038516845290915290205460ff1662000633576000828152600b602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006b73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054620007445750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000651565b50600062000651565b828054828255906000526020600020908101928215620007a5579160200282015b82811115620007a557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200076e565b50620007b392915062000877565b5090565b828054828255906000526020600020908101928215620007a5579160200282015b82811115620007a5578251829060ff16905591602001919060010190620007d8565b8280546200080890620008a9565b90600052602060002090601f0160209004810192826200082c5760008555620007a5565b82601f106200084757805160ff1916838001178555620007a5565b82800160010185558215620007a5579182015b82811115620007a55782518255916020019190600101906200085a565b5b80821115620007b3576000815560010162000878565b60008219821115620008a457620008a462000904565b500190565b600181811c90821680620008be57607f821691505b60208210811415620008e057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620008fd57620008fd62000904565b5060010190565b634e487b7160e01b600052601160045260246000fd5b614d02806200092a6000396000f3fe6080604052600436106103905760003560e01c8063868ff4a2116101dc578063bf4702fc11610102578063e33b7de3116100a0578063edac985b1161006f578063edac985b14610b50578063f2fde38b14610b70578063f47c84c514610b90578063ffe630b514610ba657600080fd5b8063e33b7de314610ab1578063e8a3d48514610ac6578063e985e9c514610adb578063eb8d244414610b3157600080fd5b8063ca15c873116100dc578063ca15c87314610a0e578063ce7c2ac214610a2e578063d547741f14610a71578063d9b137b214610a9157600080fd5b8063bf4702fc146109c4578063c6a91b42146109d9578063c87b56dd146109ee57600080fd5b80639852595c1161017a578063a217fddf11610149578063a217fddf1461094f578063a22cb46514610964578063b09904b514610984578063b88d4fde146109a457600080fd5b80639852595c146108a95780639b19251a146108ec578063a0712d681461091c578063a149a9071461092f57600080fd5b80639010d07c116101b65780639010d07c1461080157806391d1485414610821578063938e3d7b1461087457806395d89b411461089457600080fd5b8063868ff4a2146107a35780638b83209b146107b65780638da5cb5b146107d657600080fd5b806334918dfd116102c15780636a61e5fc1161025f578063715018a61161022e578063715018a6146107105780637a997ab7146107255780637ff9b5961461075957806385290fa11461076f57600080fd5b80636a61e5fc146106a65780636b87d24c146106c65780636c0360eb146106db57806370a08231146106f057600080fd5b806342842e0e1161029b57806342842e0e146106265780634f6ccce71461064657806355f804b3146106665780636352211e1461068657600080fd5b806334918dfd146105dc57806336568abe146105f15780633a98ef391461061157600080fd5b8063191655871161032e57806323b872dd1161030857806323b872dd1461054c578063248a9ca31461056c5780632f2ff15d1461059c5780632f745c59146105bc57600080fd5b806319165587146104f25780631a5722b214610512578063232452161461052c57600080fd5b8063095ea7b31161036a578063095ea7b3146104875780630acc8574146104a95780630f7309e8146104be57806318160ddd146104d357600080fd5b806301ffc9a7146103eb57806306fdde0314610420578063081812fc1461044257600080fd5b366103e6577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770336040805173ffffffffffffffffffffffffffffffffffffffff90921682523460208301520160405180910390a1005b600080fd5b3480156103f757600080fd5b5061040b61040636600461484a565b610bc6565b60405190151581526020015b60405180910390f35b34801561042c57600080fd5b50610435610bd7565b6040516104179190614a0b565b34801561044e57600080fd5b5061046261045d3660046147ed565b610c69565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610417565b34801561049357600080fd5b506104a76104a236600461470e565b610d48565b005b3480156104b557600080fd5b506104a7610ed5565b3480156104ca57600080fd5b50610435610fc6565b3480156104df57600080fd5b506008545b604051908152602001610417565b3480156104fe57600080fd5b506104a761050d3660046145cc565b611054565b34801561051e57600080fd5b5060185461040b9060ff1681565b34801561053857600080fd5b506104a7610547366004614739565b6112c3565b34801561055857600080fd5b506104a7610567366004614620565b6112d1565b34801561057857600080fd5b506104e46105873660046147ed565b6000908152600b602052604090206001015490565b3480156105a857600080fd5b506104a76105b7366004614805565b611372565b3480156105c857600080fd5b506104e46105d736600461470e565b611394565b3480156105e857600080fd5b506104a7611463565b3480156105fd57600080fd5b506104a761060c366004614805565b611553565b34801561061d57600080fd5b50600d546104e4565b34801561063257600080fd5b506104a7610641366004614620565b611575565b34801561065257600080fd5b506104e46106613660046147ed565b611590565b34801561067257600080fd5b506104a7610681366004614882565b611675565b34801561069257600080fd5b506104626106a13660046147ed565b611742565b3480156106b257600080fd5b506104a76106c13660046147ed565b6117f4565b3480156106d257600080fd5b506104356118af565b3480156106e757600080fd5b506104356118bc565b3480156106fc57600080fd5b506104e461070b3660046145cc565b6118c9565b34801561071c57600080fd5b506104a7611997565b34801561073157600080fd5b506104e47fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be676081565b34801561076557600080fd5b506104e460125481565b34801561077b57600080fd5b506104e47f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a054381565b6104a76107b13660046147ed565b611a24565b3480156107c257600080fd5b506104626107d13660046147ed565b611b3e565b3480156107e257600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610462565b34801561080d57600080fd5b5061046261081c366004614829565b611ba2565b34801561082d57600080fd5b5061040b61083c366004614805565b6000918252600b6020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561088057600080fd5b506104a761088f366004614882565b611bc1565b3480156108a057600080fd5b50610435611c8a565b3480156108b557600080fd5b506104e46108c43660046145cc565b73ffffffffffffffffffffffffffffffffffffffff1660009081526010602052604090205490565b3480156108f857600080fd5b5061040b6109073660046145cc565b60196020526000908152604090205460ff1681565b6104a761092a3660046147ed565b611c99565b34801561093b57600080fd5b5060185461040b9062010000900460ff1681565b34801561095b57600080fd5b506104e4600081565b34801561097057600080fd5b506104a761097f3660046146dd565b611d0a565b34801561099057600080fd5b506104a761099f366004614882565b611e21565b3480156109b057600080fd5b506104a76109bf366004614660565b611f57565b3480156109d057600080fd5b506104a7611fff565b3480156109e557600080fd5b506104e4601481565b3480156109fa57600080fd5b50610435610a093660046147ed565b6120e2565b348015610a1a57600080fd5b506104e4610a293660046147ed565b6121f1565b348015610a3a57600080fd5b506104e4610a493660046145cc565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602052604090205490565b348015610a7d57600080fd5b506104a7610a8c366004614805565b612208565b348015610a9d57600080fd5b50610435610aac3660046147ed565b612212565b348015610abd57600080fd5b50600e546104e4565b348015610ad257600080fd5b50610435612318565b348015610ae757600080fd5b5061040b610af63660046145e8565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3d57600080fd5b5060185461040b90610100900460ff1681565b348015610b5c57600080fd5b506104a7610b6b366004614739565b612325565b348015610b7c57600080fd5b506104a7610b8b3660046145cc565b612330565b348015610b9c57600080fd5b506104e461271081565b348015610bb257600080fd5b506104a7610bc1366004614882565b61245d565b6000610bd1826125c8565b92915050565b606060008054610be690614b4e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1290614b4e565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d5382611742565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d16565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e3a5750610e3a8133610af6565b610ec6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d16565b610ed0838361261e565b505050565b610eff7fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67603361083c565b610f8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4d75737420686176652077686974656c69737420726f6c6520746f2063616c6c60448201527f20746869732066756e6374696f6e2e00000000000000000000000000000000006064820152608401610d16565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b60168054610fd390614b4e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fff90614b4e565b801561104c5780601f106110215761010080835404028352916020019161104c565b820191906000526020600020905b81548152906001019060200180831161102f57829003601f168201915b505050505081565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040902054611106576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610d16565b6000600e54476111169190614a6d565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260106020908152604080832054600d54600f90935290832054939450919261115a9085614a99565b6111649190614a85565b61116e9190614ad6565b9050806111fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610d16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526010602052604090205461122e908290614a6d565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260106020526040902055600e54611262908290614a6d565b600e5561126f83826126be565b6040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6112ce816000612818565b50565b6112db3382612987565b611367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d16565b610ed0838383612af7565b61137c8282612d69565b6000828152600c60205260409020610ed090826125a6565b600061139f836118c9565b821061142d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d16565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b61148d7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b611519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b61155d8282612d8f565b6000828152600c60205260409020610ed09082612e3e565b610ed083838360405180602001604052806000815250611f57565b600061159b60085490565b8210611629576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d16565b60088281548110611663577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b61169f7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b61172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b805161173e9060149060208401906144bd565b5050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610bd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d16565b61181e7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b6118aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b601255565b60178054610fd390614b4e565b60148054610fd390614b4e565b600073ffffffffffffffffffffffffffffffffffffffff821661196e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d16565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d16565b611a226000612e60565b565b60185462010000900460ff16611abc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f57686974656c6973742073616c65206d7573742062652061637469766520746f60448201527f206d696e742e00000000000000000000000000000000000000000000000000006064820152608401610d16565b3360009081526019602052604090205460ff16611b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f596f7520617265206e6f742077686974656c69737465642e00000000000000006044820152606401610d16565b6112ce81612ed7565b600060118281548110611b7a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b6000828152600c60205260408120611bba9083613169565b9392505050565b611beb7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b611c77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b805161173e9060159060208401906144bd565b606060018054610be690614b4e565b601854610100900460ff16611b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f53616c65206d7573742062652061637469766520746f206d696e742e000000006044820152606401610d16565b73ffffffffffffffffffffffffffffffffffffffff8216331415611d8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d16565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611e4b7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b60185460ff1615611f44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4c6963656e736520697320616c7265616479206c6f636b65642e0000000000006044820152606401610d16565b805161173e9060179060208401906144bd565b611f613383612987565b611fed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d16565b611ff984848484613175565b50505050565b6120297f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b6120b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16612196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d16565b60006121a0613218565b905060008151116121c05760405180602001604052806000815250611bba565b806121ca84613227565b6040516020016121db929190614912565b6040516020818303038152906040529392505050565b6000818152600c60205260408120610bd1906133a7565b61155d82826133b1565b606061221d60085490565b821115612286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f546f6b656e206e6f742077697468696e2072616e67652e0000000000000000006044820152606401610d16565b6017805461229390614b4e565b80601f01602080910402602001604051908101604052809291908181526020018280546122bf90614b4e565b801561230c5780601f106122e15761010080835404028352916020019161230c565b820191906000526020600020905b8154815290600101906020018083116122ef57829003601f168201915b50505050509050919050565b60158054610fd390614b4e565b6112ce816001612818565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146123b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d16565b73ffffffffffffffffffffffffffffffffffffffff8116612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d16565b6112ce81612e60565b6124877f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b6016805461252090614b4e565b159050612589576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f50726f76656e616e636520616c7265616479207365742e0000000000000000006044820152606401610d16565b805161173e9060169060208401906144bd565b61173e82826133d7565b6000611bba8373ffffffffffffffffffffffffffffffffffffffff84166134cb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f000000000000000000000000000000000000000000000000000000001480610bd15750610bd18261351a565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061267882611742565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015612728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d16565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114612782576040519150601f19603f3d011682016040523d82523d6000602084013e612787565b606091505b5050905080610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d16565b6128427fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67603361083c565b6128ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4d75737420686176652077686974656c69737420726f6c6520746f2063616c6c60448201527f20746869732066756e6374696f6e2e00000000000000000000000000000000006064820152608401610d16565b60005b8251811015610ed0578160196000858481518110612918577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061297f81614ba2565b9150506128d1565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d16565b6000612a4383611742565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612ab257508373ffffffffffffffffffffffffffffffffffffffff16612a9a84610c69565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aef575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612b1782611742565b73ffffffffffffffffffffffffffffffffffffffff1614612bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d16565b73ffffffffffffffffffffffffffffffffffffffff8216612c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d16565b612c67838383613570565b612c7260008261261e565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612ca8908490614ad6565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612ce3908490614a6d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b6020526040902060010154612d858133613676565b610ed083836133d7565b73ffffffffffffffffffffffffffffffffffffffff81163314612e34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d16565b61173e8282613748565b6000611bba8373ffffffffffffffffffffffffffffffffffffffff8416613803565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6014811115612f68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f54686572652069732061206c696d6974206f6e206d696e74696e6720746f6f2060448201527f6d616e7920617420612074696d652e00000000000000000000000000000000006064820152608401610d16565b61271081612f7560085490565b612f7f9190614a6d565b111561300d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f507572636861736520776f756c6420657863656564206d617820746f74616c2060448201527f737570706c792e000000000000000000000000000000000000000000000000006064820152608401610d16565b60125461301a908261396b565b341015613083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420656e6f7567682065746865722073656e742e000000000000000000006044820152606401610d16565b333214613112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e60448201527f742e0000000000000000000000000000000000000000000000000000000000006064820152608401610d16565b60005b8181101561173e57600061312860135490565b613133906001614a6d565b90506127108111613156576131483382613977565b613156601380546001019055565b508061316181614ba2565b915050613115565b6000611bba8383613991565b613180848484612af7565b61318c848484846139e2565b611ff9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d16565b606060148054610be690614b4e565b60608161326757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613291578061327b81614ba2565b915061328a9050600a83614a85565b915061326b565b60008167ffffffffffffffff8111156132d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132fd576020820181803683370190505b5090505b8415612aef57613312600183614ad6565b915061331f600a86614bdb565b61332a906030614a6d565b60f81b818381518110613366577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506133a0600a86614a85565b9450613301565b6000610bd1825490565b6000828152600b60205260409020600101546133cd8133613676565b610ed08383613748565b6000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661173e576000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561346d3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461351257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bd1565b506000610bd1565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610bd15750610bd182613be1565b73ffffffffffffffffffffffffffffffffffffffff83166135d8576135d381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613615565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613615576136158382613c37565b73ffffffffffffffffffffffffffffffffffffffff821661363957610ed081613cee565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610ed057610ed08282613e12565b6000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661173e576136ce8173ffffffffffffffffffffffffffffffffffffffff166014613e63565b6136d9836020613e63565b6040516020016136ea929190614941565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610d1691600401614a0b565b6000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561173e576000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015613961576000613827600183614ad6565b855490915060009061383b90600190614ad6565b90508181146138ee576000866000018281548110613882577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106138cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613926577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bd1565b6000915050610bd1565b6000611bba8284614a99565b61173e828260405180602001604052806000815250614169565b60008260000182815481106139cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613bd6576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613a599033908990889088906004016149c2565b602060405180830381600087803b158015613a7357600080fd5b505af1925050508015613ac1575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613abe91810190614866565b60015b613b8b573d808015613aef576040519150601f19603f3d011682016040523d82523d6000602084013e613af4565b606091505b508051613b83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d16565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612aef565b506001949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610bd15750610bd18261420c565b60006001613c44846118c9565b613c4e9190614ad6565b600083815260076020526040902054909150808214613cae5773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b600854600090613d0090600190614ad6565b60008381526009602052604081205460088054939450909284908110613d4f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613d97577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613df6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613e1d836118c9565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60606000613e72836002614a99565b613e7d906002614a6d565b67ffffffffffffffff811115613ebc577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ee6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613f44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613fce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061400a846002614a99565b614015906001614a6d565b90505b6001811115614100577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061407d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106140ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936140f981614b19565b9050614018565b508315611bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d16565b61417383836142ef565b61418060008484846139e2565b610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d16565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061429f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bd157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610bd1565b73ffffffffffffffffffffffffffffffffffffffff821661436c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d16565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156143f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d16565b61440460008383613570565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061443a908490614a6d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546144c990614b4e565b90600052602060002090601f0160209004810192826144eb5760008555614531565b82601f1061450457805160ff1916838001178555614531565b82800160010185558215614531579182015b82811115614531578251825591602001919060010190614516565b5061453d929150614541565b5090565b5b8082111561453d5760008155600101614542565b600067ffffffffffffffff83111561457057614570614c4d565b6145a160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614a1e565b90508281528383830111156145b557600080fd5b828260208301376000602084830101529392505050565b6000602082840312156145dd578081fd5b8135611bba81614c7c565b600080604083850312156145fa578081fd5b823561460581614c7c565b9150602083013561461581614c7c565b809150509250929050565b600080600060608486031215614634578081fd5b833561463f81614c7c565b9250602084013561464f81614c7c565b929592945050506040919091013590565b60008060008060808587031215614675578081fd5b843561468081614c7c565b9350602085013561469081614c7c565b925060408501359150606085013567ffffffffffffffff8111156146b2578182fd5b8501601f810187136146c2578182fd5b6146d187823560208401614556565b91505092959194509250565b600080604083850312156146ef578182fd5b82356146fa81614c7c565b915060208301358015158114614615578182fd5b60008060408385031215614720578182fd5b823561472b81614c7c565b946020939093013593505050565b6000602080838503121561474b578182fd5b823567ffffffffffffffff80821115614762578384fd5b818501915085601f830112614775578384fd5b81358181111561478757614787614c4d565b8060051b9150614798848301614a1e565b8181528481019084860184860187018a10156147b2578788fd5b8795505b838610156147e057803594506147cb85614c7c565b848352600195909501949186019186016147b6565b5098975050505050505050565b6000602082840312156147fe578081fd5b5035919050565b60008060408385031215614817578182fd5b82359150602083013561461581614c7c565b6000806040838503121561483b578182fd5b50508035926020909101359150565b60006020828403121561485b578081fd5b8135611bba81614c9e565b600060208284031215614877578081fd5b8151611bba81614c9e565b600060208284031215614893578081fd5b813567ffffffffffffffff8111156148a9578182fd5b8201601f810184136148b9578182fd5b612aef84823560208401614556565b600081518084526148e0816020860160208601614aed565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008351614924818460208801614aed565b835190830190614938818360208801614aed565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614979816017850160208801614aed565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516149b6816028840160208801614aed565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614a0160808301846148c8565b9695505050505050565b602081526000611bba60208301846148c8565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614a6557614a65614c4d565b604052919050565b60008219821115614a8057614a80614bef565b500190565b600082614a9457614a94614c1e565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ad157614ad1614bef565b500290565b600082821015614ae857614ae8614bef565b500390565b60005b83811015614b08578181015183820152602001614af0565b83811115611ff95750506000910152565b600081614b2857614b28614bef565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680614b6257607f821691505b60208210811415614b9c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bd457614bd4614bef565b5060010190565b600082614bea57614bea614c1e565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146112ce57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112ce57600080fdfea2646970667358221220443155a6b1d7d7fe69015f846aab114df48821d86476d129029671cf28a3994e64736f6c63430008040033
Deployed Bytecode
0x6080604052600436106103905760003560e01c8063868ff4a2116101dc578063bf4702fc11610102578063e33b7de3116100a0578063edac985b1161006f578063edac985b14610b50578063f2fde38b14610b70578063f47c84c514610b90578063ffe630b514610ba657600080fd5b8063e33b7de314610ab1578063e8a3d48514610ac6578063e985e9c514610adb578063eb8d244414610b3157600080fd5b8063ca15c873116100dc578063ca15c87314610a0e578063ce7c2ac214610a2e578063d547741f14610a71578063d9b137b214610a9157600080fd5b8063bf4702fc146109c4578063c6a91b42146109d9578063c87b56dd146109ee57600080fd5b80639852595c1161017a578063a217fddf11610149578063a217fddf1461094f578063a22cb46514610964578063b09904b514610984578063b88d4fde146109a457600080fd5b80639852595c146108a95780639b19251a146108ec578063a0712d681461091c578063a149a9071461092f57600080fd5b80639010d07c116101b65780639010d07c1461080157806391d1485414610821578063938e3d7b1461087457806395d89b411461089457600080fd5b8063868ff4a2146107a35780638b83209b146107b65780638da5cb5b146107d657600080fd5b806334918dfd116102c15780636a61e5fc1161025f578063715018a61161022e578063715018a6146107105780637a997ab7146107255780637ff9b5961461075957806385290fa11461076f57600080fd5b80636a61e5fc146106a65780636b87d24c146106c65780636c0360eb146106db57806370a08231146106f057600080fd5b806342842e0e1161029b57806342842e0e146106265780634f6ccce71461064657806355f804b3146106665780636352211e1461068657600080fd5b806334918dfd146105dc57806336568abe146105f15780633a98ef391461061157600080fd5b8063191655871161032e57806323b872dd1161030857806323b872dd1461054c578063248a9ca31461056c5780632f2ff15d1461059c5780632f745c59146105bc57600080fd5b806319165587146104f25780631a5722b214610512578063232452161461052c57600080fd5b8063095ea7b31161036a578063095ea7b3146104875780630acc8574146104a95780630f7309e8146104be57806318160ddd146104d357600080fd5b806301ffc9a7146103eb57806306fdde0314610420578063081812fc1461044257600080fd5b366103e6577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770336040805173ffffffffffffffffffffffffffffffffffffffff90921682523460208301520160405180910390a1005b600080fd5b3480156103f757600080fd5b5061040b61040636600461484a565b610bc6565b60405190151581526020015b60405180910390f35b34801561042c57600080fd5b50610435610bd7565b6040516104179190614a0b565b34801561044e57600080fd5b5061046261045d3660046147ed565b610c69565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610417565b34801561049357600080fd5b506104a76104a236600461470e565b610d48565b005b3480156104b557600080fd5b506104a7610ed5565b3480156104ca57600080fd5b50610435610fc6565b3480156104df57600080fd5b506008545b604051908152602001610417565b3480156104fe57600080fd5b506104a761050d3660046145cc565b611054565b34801561051e57600080fd5b5060185461040b9060ff1681565b34801561053857600080fd5b506104a7610547366004614739565b6112c3565b34801561055857600080fd5b506104a7610567366004614620565b6112d1565b34801561057857600080fd5b506104e46105873660046147ed565b6000908152600b602052604090206001015490565b3480156105a857600080fd5b506104a76105b7366004614805565b611372565b3480156105c857600080fd5b506104e46105d736600461470e565b611394565b3480156105e857600080fd5b506104a7611463565b3480156105fd57600080fd5b506104a761060c366004614805565b611553565b34801561061d57600080fd5b50600d546104e4565b34801561063257600080fd5b506104a7610641366004614620565b611575565b34801561065257600080fd5b506104e46106613660046147ed565b611590565b34801561067257600080fd5b506104a7610681366004614882565b611675565b34801561069257600080fd5b506104626106a13660046147ed565b611742565b3480156106b257600080fd5b506104a76106c13660046147ed565b6117f4565b3480156106d257600080fd5b506104356118af565b3480156106e757600080fd5b506104356118bc565b3480156106fc57600080fd5b506104e461070b3660046145cc565b6118c9565b34801561071c57600080fd5b506104a7611997565b34801561073157600080fd5b506104e47fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be676081565b34801561076557600080fd5b506104e460125481565b34801561077b57600080fd5b506104e47f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a054381565b6104a76107b13660046147ed565b611a24565b3480156107c257600080fd5b506104626107d13660046147ed565b611b3e565b3480156107e257600080fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610462565b34801561080d57600080fd5b5061046261081c366004614829565b611ba2565b34801561082d57600080fd5b5061040b61083c366004614805565b6000918252600b6020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b34801561088057600080fd5b506104a761088f366004614882565b611bc1565b3480156108a057600080fd5b50610435611c8a565b3480156108b557600080fd5b506104e46108c43660046145cc565b73ffffffffffffffffffffffffffffffffffffffff1660009081526010602052604090205490565b3480156108f857600080fd5b5061040b6109073660046145cc565b60196020526000908152604090205460ff1681565b6104a761092a3660046147ed565b611c99565b34801561093b57600080fd5b5060185461040b9062010000900460ff1681565b34801561095b57600080fd5b506104e4600081565b34801561097057600080fd5b506104a761097f3660046146dd565b611d0a565b34801561099057600080fd5b506104a761099f366004614882565b611e21565b3480156109b057600080fd5b506104a76109bf366004614660565b611f57565b3480156109d057600080fd5b506104a7611fff565b3480156109e557600080fd5b506104e4601481565b3480156109fa57600080fd5b50610435610a093660046147ed565b6120e2565b348015610a1a57600080fd5b506104e4610a293660046147ed565b6121f1565b348015610a3a57600080fd5b506104e4610a493660046145cc565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602052604090205490565b348015610a7d57600080fd5b506104a7610a8c366004614805565b612208565b348015610a9d57600080fd5b50610435610aac3660046147ed565b612212565b348015610abd57600080fd5b50600e546104e4565b348015610ad257600080fd5b50610435612318565b348015610ae757600080fd5b5061040b610af63660046145e8565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b3d57600080fd5b5060185461040b90610100900460ff1681565b348015610b5c57600080fd5b506104a7610b6b366004614739565b612325565b348015610b7c57600080fd5b506104a7610b8b3660046145cc565b612330565b348015610b9c57600080fd5b506104e461271081565b348015610bb257600080fd5b506104a7610bc1366004614882565b61245d565b6000610bd1826125c8565b92915050565b606060008054610be690614b4e565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1290614b4e565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905090565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16610d1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610d5382611742565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610d16565b3373ffffffffffffffffffffffffffffffffffffffff82161480610e3a5750610e3a8133610af6565b610ec6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d16565b610ed0838361261e565b505050565b610eff7fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67603361083c565b610f8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4d75737420686176652077686974656c69737420726f6c6520746f2063616c6c60448201527f20746869732066756e6374696f6e2e00000000000000000000000000000000006064820152608401610d16565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff8116620100009182900460ff1615909102179055565b60168054610fd390614b4e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fff90614b4e565b801561104c5780601f106110215761010080835404028352916020019161104c565b820191906000526020600020905b81548152906001019060200180831161102f57829003601f168201915b505050505081565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040902054611106576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201527f73686172657300000000000000000000000000000000000000000000000000006064820152608401610d16565b6000600e54476111169190614a6d565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260106020908152604080832054600d54600f90935290832054939450919261115a9085614a99565b6111649190614a85565b61116e9190614ad6565b9050806111fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201527f647565207061796d656e740000000000000000000000000000000000000000006064820152608401610d16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526010602052604090205461122e908290614a6d565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260106020526040902055600e54611262908290614a6d565b600e5561126f83826126be565b6040805173ffffffffffffffffffffffffffffffffffffffff85168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6112ce816000612818565b50565b6112db3382612987565b611367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d16565b610ed0838383612af7565b61137c8282612d69565b6000828152600c60205260409020610ed090826125a6565b600061139f836118c9565b821061142d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610d16565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205490565b61148d7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b611519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b61155d8282612d8f565b6000828152600c60205260409020610ed09082612e3e565b610ed083838360405180602001604052806000815250611f57565b600061159b60085490565b8210611629576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610d16565b60088281548110611663577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b61169f7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b61172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b805161173e9060149060208401906144bd565b5050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610bd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610d16565b61181e7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b6118aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b601255565b60178054610fd390614b4e565b60148054610fd390614b4e565b600073ffffffffffffffffffffffffffffffffffffffff821661196e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610d16565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b600a5473ffffffffffffffffffffffffffffffffffffffff163314611a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d16565b611a226000612e60565b565b60185462010000900460ff16611abc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f57686974656c6973742073616c65206d7573742062652061637469766520746f60448201527f206d696e742e00000000000000000000000000000000000000000000000000006064820152608401610d16565b3360009081526019602052604090205460ff16611b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f596f7520617265206e6f742077686974656c69737465642e00000000000000006044820152606401610d16565b6112ce81612ed7565b600060118281548110611b7a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b6000828152600c60205260408120611bba9083613169565b9392505050565b611beb7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b611c77576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b805161173e9060159060208401906144bd565b606060018054610be690614b4e565b601854610100900460ff16611b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f53616c65206d7573742062652061637469766520746f206d696e742e000000006044820152606401610d16565b73ffffffffffffffffffffffffffffffffffffffff8216331415611d8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d16565b33600081815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611e4b7f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b60185460ff1615611f44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4c6963656e736520697320616c7265616479206c6f636b65642e0000000000006044820152606401610d16565b805161173e9060179060208401906144bd565b611f613383612987565b611fed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610d16565b611ff984848484613175565b50505050565b6120297f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b6120b5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b601880547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008181526002602052604090205460609073ffffffffffffffffffffffffffffffffffffffff16612196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610d16565b60006121a0613218565b905060008151116121c05760405180602001604052806000815250611bba565b806121ca84613227565b6040516020016121db929190614912565b6040516020818303038152906040529392505050565b6000818152600c60205260408120610bd1906133a7565b61155d82826133b1565b606061221d60085490565b821115612286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f546f6b656e206e6f742077697468696e2072616e67652e0000000000000000006044820152606401610d16565b6017805461229390614b4e565b80601f01602080910402602001604051908101604052809291908181526020018280546122bf90614b4e565b801561230c5780601f106122e15761010080835404028352916020019161230c565b820191906000526020600020905b8154815290600101906020018083116122ef57829003601f168201915b50505050509050919050565b60158054610fd390614b4e565b6112ce816001612818565b600a5473ffffffffffffffffffffffffffffffffffffffff1633146123b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d16565b73ffffffffffffffffffffffffffffffffffffffff8116612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d16565b6112ce81612e60565b6124877f5620a1113a72b02a617976b3f6b15600dd7a8b3a916a9ca01e23119d989a05433361083c565b612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f4d757374206861766520737461666620726f6c6520746f2063616c6c2074686960448201527f732066756e6374696f6e2e0000000000000000000000000000000000000000006064820152608401610d16565b6016805461252090614b4e565b159050612589576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f50726f76656e616e636520616c7265616479207365742e0000000000000000006044820152606401610d16565b805161173e9060169060208401906144bd565b61173e82826133d7565b6000611bba8373ffffffffffffffffffffffffffffffffffffffff84166134cb565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f5a05180f000000000000000000000000000000000000000000000000000000001480610bd15750610bd18261351a565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061267882611742565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b80471015612728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d16565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114612782576040519150601f19603f3d011682016040523d82523d6000602084013e612787565b606091505b5050905080610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d16565b6128427fdc72ed553f2544c34465af23b847953efeb813428162d767f9ba5f4013be67603361083c565b6128ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4d75737420686176652077686974656c69737420726f6c6520746f2063616c6c60448201527f20746869732066756e6374696f6e2e00000000000000000000000000000000006064820152608401610d16565b60005b8251811015610ed0578160196000858481518110612918577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790558061297f81614ba2565b9150506128d1565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff16612a38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610d16565b6000612a4383611742565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612ab257508373ffffffffffffffffffffffffffffffffffffffff16612a9a84610c69565b73ffffffffffffffffffffffffffffffffffffffff16145b80612aef575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612b1782611742565b73ffffffffffffffffffffffffffffffffffffffff1614612bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610d16565b73ffffffffffffffffffffffffffffffffffffffff8216612c5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610d16565b612c67838383613570565b612c7260008261261e565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600360205260408120805460019290612ca8908490614ad6565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600360205260408120805460019290612ce3908490614a6d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600b6020526040902060010154612d858133613676565b610ed083836133d7565b73ffffffffffffffffffffffffffffffffffffffff81163314612e34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610d16565b61173e8282613748565b6000611bba8373ffffffffffffffffffffffffffffffffffffffff8416613803565b600a805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6014811115612f68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f54686572652069732061206c696d6974206f6e206d696e74696e6720746f6f2060448201527f6d616e7920617420612074696d652e00000000000000000000000000000000006064820152608401610d16565b61271081612f7560085490565b612f7f9190614a6d565b111561300d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f507572636861736520776f756c6420657863656564206d617820746f74616c2060448201527f737570706c792e000000000000000000000000000000000000000000000000006064820152608401610d16565b60125461301a908261396b565b341015613083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420656e6f7567682065746865722073656e742e000000000000000000006044820152606401610d16565b333214613112576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e60448201527f742e0000000000000000000000000000000000000000000000000000000000006064820152608401610d16565b60005b8181101561173e57600061312860135490565b613133906001614a6d565b90506127108111613156576131483382613977565b613156601380546001019055565b508061316181614ba2565b915050613115565b6000611bba8383613991565b613180848484612af7565b61318c848484846139e2565b611ff9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d16565b606060148054610be690614b4e565b60608161326757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613291578061327b81614ba2565b915061328a9050600a83614a85565b915061326b565b60008167ffffffffffffffff8111156132d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132fd576020820181803683370190505b5090505b8415612aef57613312600183614ad6565b915061331f600a86614bdb565b61332a906030614a6d565b60f81b818381518110613366577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506133a0600a86614a85565b9450613301565b6000610bd1825490565b6000828152600b60205260409020600101546133cd8133613676565b610ed08383613748565b6000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661173e576000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561346d3390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081815260018301602052604081205461351257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bd1565b506000610bd1565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610bd15750610bd182613be1565b73ffffffffffffffffffffffffffffffffffffffff83166135d8576135d381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613615565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613615576136158382613c37565b73ffffffffffffffffffffffffffffffffffffffff821661363957610ed081613cee565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610ed057610ed08282613e12565b6000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661173e576136ce8173ffffffffffffffffffffffffffffffffffffffff166014613e63565b6136d9836020613e63565b6040516020016136ea929190614941565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a0000000000000000000000000000000000000000000000000000000008252610d1691600401614a0b565b6000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561173e576000828152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015613961576000613827600183614ad6565b855490915060009061383b90600190614ad6565b90508181146138ee576000866000018281548110613882577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050808760000184815481106138cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613926577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bd1565b6000915050610bd1565b6000611bba8284614a99565b61173e828260405180602001604052806000815250614169565b60008260000182815481106139cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613bd6576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290613a599033908990889088906004016149c2565b602060405180830381600087803b158015613a7357600080fd5b505af1925050508015613ac1575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252613abe91810190614866565b60015b613b8b573d808015613aef576040519150601f19603f3d011682016040523d82523d6000602084013e613af4565b606091505b508051613b83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d16565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612aef565b506001949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610bd15750610bd18261420c565b60006001613c44846118c9565b613c4e9190614ad6565b600083815260076020526040902054909150808214613cae5773ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b50600091825260076020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600681528383209183525290812055565b600854600090613d0090600190614ad6565b60008381526009602052604081205460088054939450909284908110613d4f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613d97577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613df6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613e1d836118c9565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60606000613e72836002614a99565b613e7d906002614a6d565b67ffffffffffffffff811115613ebc577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613ee6576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613f44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613fce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600061400a846002614a99565b614015906001614a6d565b90505b6001811115614100577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061407d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106140ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c936140f981614b19565b9050614018565b508315611bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d16565b61417383836142ef565b61418060008484846139e2565b610ed0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610d16565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061429f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610bd157507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610bd1565b73ffffffffffffffffffffffffffffffffffffffff821661436c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d16565b60008181526002602052604090205473ffffffffffffffffffffffffffffffffffffffff16156143f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d16565b61440460008383613570565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080546001929061443a908490614a6d565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546144c990614b4e565b90600052602060002090601f0160209004810192826144eb5760008555614531565b82601f1061450457805160ff1916838001178555614531565b82800160010185558215614531579182015b82811115614531578251825591602001919060010190614516565b5061453d929150614541565b5090565b5b8082111561453d5760008155600101614542565b600067ffffffffffffffff83111561457057614570614c4d565b6145a160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601614a1e565b90508281528383830111156145b557600080fd5b828260208301376000602084830101529392505050565b6000602082840312156145dd578081fd5b8135611bba81614c7c565b600080604083850312156145fa578081fd5b823561460581614c7c565b9150602083013561461581614c7c565b809150509250929050565b600080600060608486031215614634578081fd5b833561463f81614c7c565b9250602084013561464f81614c7c565b929592945050506040919091013590565b60008060008060808587031215614675578081fd5b843561468081614c7c565b9350602085013561469081614c7c565b925060408501359150606085013567ffffffffffffffff8111156146b2578182fd5b8501601f810187136146c2578182fd5b6146d187823560208401614556565b91505092959194509250565b600080604083850312156146ef578182fd5b82356146fa81614c7c565b915060208301358015158114614615578182fd5b60008060408385031215614720578182fd5b823561472b81614c7c565b946020939093013593505050565b6000602080838503121561474b578182fd5b823567ffffffffffffffff80821115614762578384fd5b818501915085601f830112614775578384fd5b81358181111561478757614787614c4d565b8060051b9150614798848301614a1e565b8181528481019084860184860187018a10156147b2578788fd5b8795505b838610156147e057803594506147cb85614c7c565b848352600195909501949186019186016147b6565b5098975050505050505050565b6000602082840312156147fe578081fd5b5035919050565b60008060408385031215614817578182fd5b82359150602083013561461581614c7c565b6000806040838503121561483b578182fd5b50508035926020909101359150565b60006020828403121561485b578081fd5b8135611bba81614c9e565b600060208284031215614877578081fd5b8151611bba81614c9e565b600060208284031215614893578081fd5b813567ffffffffffffffff8111156148a9578182fd5b8201601f810184136148b9578182fd5b612aef84823560208401614556565b600081518084526148e0816020860160208601614aed565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008351614924818460208801614aed565b835190830190614938818360208801614aed565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614979816017850160208801614aed565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516149b6816028840160208801614aed565b01602801949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152614a0160808301846148c8565b9695505050505050565b602081526000611bba60208301846148c8565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614a6557614a65614c4d565b604052919050565b60008219821115614a8057614a80614bef565b500190565b600082614a9457614a94614c1e565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ad157614ad1614bef565b500290565b600082821015614ae857614ae8614bef565b500390565b60005b83811015614b08578181015183820152602001614af0565b83811115611ff95750506000910152565b600081614b2857614b28614bef565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680614b6257607f821691505b60208210811415614b9c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614bd457614bd4614bef565b5060010190565b600082614bea57614bea614c1e565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146112ce57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112ce57600080fdfea2646970667358221220443155a6b1d7d7fe69015f846aab114df48821d86476d129029671cf28a3994e64736f6c63430008040033
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.