Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,000 AMCLUB
Holders
860
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AMCLUBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ANIMALSMetaClub
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Created by petdomaa100 /* %%%%%%%%%%%%%%% (%%%%%%#%%%%%%%%% (%%%%%%%%%%%%%%# (%%%%%%%%%%%%%%%%% *%%%#%# %%%%#%%%%%%%#%%%% /#%%%%%%%#%%%%%%%#% %%%%%%%%%%#%%% %%%%%%%%%%%%%%%%%%# /%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%#%%%% %%%%%#%%%%%%%%%%%%% *%%%%%%%%%%#%%%%%%%%% /%%%%%%%%%%%%#%%%%( %%%%%%%%%%%%%%%%%%%%% *%%%%%%%%%%%%%%%%%%%%% #%#%%%#%%%#%%%#%%%#% %%#%%%#%%%#%%%#%%%#%% ,#%%%#%%%#%%%#%%%#%%%#% %%%%%%%%%%%%%%%#%%%%%% %%%%%%%%%%%%%%%%%%%%%%% .%%%%%%%%%%%%%%%%%%%%%%% #%%%%%%%%%%%%%%%#%%%%%%% %%%%%%%#%%%%%%%%%%%%%%% .%%%%%%%%%%%%%%#%%%%%%%%% %%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%% %%#%%%%%%%#%%%%%%%#%%%%%%%#%%%%%%%#%%%%%%%#%%%%%%%#%%%%%%%#%%%%%%%#%%%%%%%#% /%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%#%%%%%%%%%% %%%%#%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%#%%%%%%%%% (%%%%#%%%%%%%%% %%%%%%%%%%%%%%%% %%%#%%%%%%%%%%%%%%%%%%%%/%%%%%%%%%%#%%%%%%%%, /%%%%%%%%%%%%%% %#%#%#%#%#%#%#%# %#%#%#%#%#%#%#%#%#%#%#% #%#%#%#%#%#%#%#%#%* /#%#%#%#%#%#%#% %%%%%%%%%%%%%%%% %%#%%%%%%%%%%%%%%%%%%# *%%%%%%%%%#%%%%%%( *%%%%%%%%%%%%%% %%%%%%%%%#%%%%%% .%#%%%%%%%%%%%%%%%#%% %%%%%%%%%#%%%%%( ,%%%%#%%%%%%%%% (%%%%%%%%%%%%%%%% %#%%%%%%%%%%%%%%%%%( *%%%%%%%%#%%%%# #%%%%%, %%%%#%%%%%%%#%%%% #%%%%%%%#%%%%%%%#% #%%%%%%%#%%* %%%%%%%%%%%%%%%%% .%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%#%% %%%%#, %%%%%%%%%%%%%%%%( %%%#%%%#/ */ pragma solidity 0.8.13; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "hardhat/console.sol"; contract ANIMALSMetaClub is ERC721, Ownable { using Counters for Counters.Counter; using Strings for uint256; bool public paused; bool public revealed; string private _unrevealedUriPrefix; string private _uriPrefix; string private _uriSuffix; uint256 public cost; uint256 public presaleCost; uint256 public maxSupply; uint256 public maxMintAmountPerTX; uint256 public maxMintAmountPerAddress; uint256 public maxMintAmountPerAddressForWL; Counters.Counter private _phase; Counters.Counter private _supply; address[] private _whitelistedAddresses; mapping(address => mapping(uint256 => uint256)) private _mintsOfAddress; uint256 private _vault; mapping(address => uint256) private _dividends; mapping(address => uint256) private _withdrawnDividends; event DividendsDistributed(address indexed from, uint256 amount); event DividendWithdrawn(address indexed to, uint256 amount); constructor(string memory initUnrevealedUriPrefix) ERC721("ANIMALS Meta Club", "AMCLUB") { paused = true; revealed = false; cost = 1 ether; presaleCost = 1 ether; maxSupply = 2000; maxMintAmountPerTX = 2; maxMintAmountPerAddress = 3; maxMintAmountPerAddressForWL = 2; _uriSuffix = ".json"; _unrevealedUriPrefix = initUnrevealedUriPrefix; } function mint(uint256 amount) external payable { bool whitelisted = isAddressWhitelisted(_msgSender()); uint256 maxMintAmount = whitelisted ? maxMintAmountPerAddressForWL : maxMintAmountPerAddress; require(amount > 0 && amount <= maxMintAmountPerTX, "ANIMALSMetaClub: invalid mint amount"); require(getMintsOfAddress(_msgSender(), getCurrentPhase()) + amount <= maxMintAmount, "ANIMALSMetaClub: exceeded max mints for this phase"); require(_supply.current() + amount <= maxSupply, "ANIMALSMetaClub: max token supply exceeded"); require(!paused, "ANIMALSMetaClub: minting is paused"); require(msg.value >= (whitelisted ? presaleCost : cost) * amount, "ANIMALSMetaClub: insufficient ether"); _mintLoop(_msgSender(), amount); _mintsOfAddress[_msgSender()][getCurrentPhase()] += amount; } function airDrop(address[] calldata addresses, uint8[] calldata amounts) external onlyOwner { require(addresses.length == amounts.length, "ANIMALSMetaClub: invalid function arguments"); require(addresses.length > 0, "ANIMALSMetaClub: invalid function arguments"); uint256 newSupply = _supply.current(); for (uint256 i = 0; i < amounts.length; i++) newSupply += amounts[i]; require(newSupply <= maxSupply, "ANIMALSMetaClub: max token supply exceeded"); for (uint256 i = 0; i < addresses.length; i++) { _mintLoop(addresses[i], amounts[i]); } } function beginNextPhase(uint256 newMaxSupply,uint256 newCost,uint256 newPresaleCost) external onlyOwner { _phase.increment(); maxSupply = newMaxSupply; cost = newCost; presaleCost = newPresaleCost; } function flipPausedState() external onlyOwner { paused = !paused; } function reveal(string memory initUriPrefix) external onlyOwner { revealed = true; _uriPrefix = initUriPrefix; } function withdraw() external onlyOwner { (bool success, ) = payable(owner()).call{ value: address(this).balance - vault() }(""); require(success); } function distributeDividends() public payable onlyOwner { uint256 supply = _supply.current(); require(supply > 13, "ANIMALSMetaClub: total token supply need to be above 120"); if (msg.value > 0) { uint256 dividendPerShare = msg.value / (supply - 13); uint256 totalDividend = dividendPerShare * (supply - 13); for (uint256 i = 14; i <= supply; i++) { address owner = ownerOf(i); _dividends[owner] += dividendPerShare; } _vault += totalDividend; emit DividendsDistributed(_msgSender(), totalDividend); } } function distributeDividendsToSpecifiedAddresses(address[] calldata addresses) public payable onlyOwner { require(addresses.length > 0, "ANIMALSMetaClub: invalid number of addresses"); if (msg.value > 0) { uint256 dividendPerShare = msg.value / addresses.length; uint256 totalDividend = dividendPerShare * addresses.length; for (uint256 i = 0; i < addresses.length; i++) { _dividends[addresses[i]] += dividendPerShare; } _vault += totalDividend; emit DividendsDistributed(_msgSender(), totalDividend); } } function withdrawDividend() external { uint256 withdrawableDividend = dividendOf(_msgSender()); if (withdrawableDividend > 0) { _withdrawnDividends[_msgSender()] += withdrawableDividend; _dividends[_msgSender()] -= withdrawableDividend; emit DividendWithdrawn(_msgSender(), withdrawableDividend); (bool success, ) = payable(_msgSender()).call{ value: withdrawableDividend }(""); require(success, "ANIMALSMetaClub: failed to transfer withdrawable dividend"); _vault -= withdrawableDividend; } } function dividendOf(address owner) public view returns (uint256) { return _dividends[owner]; } function withdrawnDividendOf(address owner) public view returns (uint256) { return _withdrawnDividends[owner]; } function vault() public view returns (uint256) { return _vault; } function totalSupply() external view returns (uint256) { return _supply.current(); } function tokenURI(uint256 tokenID) public view override returns (string memory) { require(_exists(tokenID), "ERC721Metadata: URI query for nonexistent token"); if (!revealed) return _unrevealedUriPrefix; string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenID.toString(), _uriSuffix)) : ""; } function walletOfOwner(address account) external view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(account); uint256[] memory ownedTokenIDs = new uint256[](ownerTokenCount); uint256 tokenIndex = 1; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && tokenIndex <= maxSupply) { address owner = ownerOf(tokenIndex); if (owner == account) { ownedTokenIDs[ownedTokenIndex] = tokenIndex; ownedTokenIndex++; } tokenIndex++; } return ownedTokenIDs; } function isAddressWhitelisted(address account) public view returns (bool) { if (account == owner()) return true; for (uint256 i = 0; i < _whitelistedAddresses.length; i++) { if (_whitelistedAddresses[i] == account) return true; } return false; } function getMintsOfAddress(address account, uint256 phaseNumber) public view returns (uint256) { return _mintsOfAddress[account][phaseNumber]; } function getCurrentPhase() public view returns (uint256) { return _phase.current(); } function setURIprefix(string memory newPrefix) external onlyOwner { _uriPrefix = newPrefix; } function setUnrevealedURIprefix(string memory newUnrevealedURI) external onlyOwner { _unrevealedUriPrefix = newUnrevealedURI; } function setURIsuffix(string memory newSuffix) external onlyOwner { _uriSuffix = newSuffix; } function setMaxSupply(uint256 newAmount) external onlyOwner { maxSupply = newAmount; } function setMaxMintAmountPerTX(uint256 newAmount) external onlyOwner { maxMintAmountPerTX = newAmount; } function setMaxMintAmountPerAddress(uint256 newAmount) external onlyOwner { maxMintAmountPerAddress = newAmount; } function setMaxMintAmountPerAddressForWL(uint256 newAmount) external onlyOwner { maxMintAmountPerAddressForWL = newAmount; } function setCost(uint256 newCost) external onlyOwner { cost = newCost; } function setPresaleCost(uint256 newCost) external onlyOwner { presaleCost = newCost; } function setWhitelistedAddresses(address[] calldata addresses) external onlyOwner { delete _whitelistedAddresses; _whitelistedAddresses = addresses; } function _baseURI() internal view override returns (string memory) { return _uriPrefix; } function _mintLoop(address to, uint256 amount) internal { for (uint256 i = 0; i < amount; i++) { _supply.increment(); _safeMint(to, _supply.current()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"initUnrevealedUriPrefix","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DividendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DividendsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint8[]","name":"amounts","type":"uint8[]"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"},{"internalType":"uint256","name":"newCost","type":"uint256"},{"internalType":"uint256","name":"newPresaleCost","type":"uint256"}],"name":"beginNextPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeDividends","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"distributeDividendsToSpecifiedAddresses","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPausedState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"phaseNumber","type":"uint256"}],"name":"getMintsOfAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isAddressWhitelisted","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":"maxMintAmountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerAddressForWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","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":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"initUriPrefix","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setMaxMintAmountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setMaxMintAmountPerAddressForWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setMaxMintAmountPerTX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setPresaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newPrefix","type":"string"}],"name":"setURIprefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newSuffix","type":"string"}],"name":"setURIsuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newUnrevealedURI","type":"string"}],"name":"setUnrevealedURIprefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"setWhitelistedAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"withdrawnDividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200327138038062003271833981016040819052620000349162000256565b604080518082018252601181527020a724a6a0a6299026b2ba309021b63ab160791b60208083019182528351808501909452600684526520a6a1a62aa160d11b9084015281519192916200008b916000916200019a565b508051620000a19060019060208401906200019a565b505050620000be620000b86200014460201b60201c565b62000148565b6006805461ffff60a01b1916600160a01b179055670de0b6b3a7640000600a819055600b556107d0600c556002600d8190556003600e55600f5560408051808201909152600580825264173539b7b760d91b602090920191825262000126916009916200019a565b5080516200013c9060079060208401906200019a565b50506200036e565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a89062000332565b90600052602060002090601f016020900481019282620001cc576000855562000217565b82601f10620001e757805160ff191683800117855562000217565b8280016001018555821562000217579182015b8281111562000217578251825591602001919060010190620001fa565b506200022592915062000229565b5090565b5b808211156200022557600081556001016200022a565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200026a57600080fd5b82516001600160401b03808211156200028257600080fd5b818501915085601f8301126200029757600080fd5b815181811115620002ac57620002ac62000240565b604051601f8201601f19908116603f01168101908382118183101715620002d757620002d762000240565b816040528281528886848701011115620002f057600080fd5b600093505b82841015620003145784840186015181850187015292850192620002f5565b82841115620003265760008684830101525b98975050505050505050565b600181811c908216806200034757607f821691505b6020821081036200036857634e487b7160e01b600052602260045260246000fd5b50919050565b612ef3806200037e6000396000f3fe6080604052600436106102e45760003560e01c8063715018a611610190578063aafd847a116100dc578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b146108dc578063f9daade4146108fc578063fbfa77cf1461091c578063fe3313871461093157600080fd5b8063e985e9c514610853578063ecbd2cda1461089c578063f1528ae1146108bc57600080fd5b8063aafd847a14610764578063aff721411461079a578063b88d4fde146107ba578063c87b56dd146107da578063d5abeb01146107fa578063e3f0aa8a1461081057600080fd5b806395d89b4111610149578063a0712d6811610123578063a0712d68146106fc578063a22cb4651461070f578063a3a40ea51461072f578063a50152291461074457600080fd5b806395d89b41146106b45780639993edbd146106c95780639ada9bce146106e957600080fd5b8063715018a6146105f65780638da5cb5b1461060b5780638e6fe1a3146106295780638fdcf9421461064957806391b89fba1461066957806393eff8511461069f57600080fd5b806342842e0e1161024f5780635c41d75e116102085780636352211e116101e25780636352211e146105815780636a474002146105a15780636f8b44b0146105b657806370a08231146105d657600080fd5b80635c41d75e1461052a5780635c975abb14610540578063617dd82a1461056157600080fd5b806342842e0e1461045c578063438b63001461047c57806344a0d68a146104a95780634c261247146104c957806351830227146104e95780635697f53e1461050a57600080fd5b806313faede6116102a157806313faede6146103c257806318160ddd146103e657806323b872dd146103fb5780632a23d07d1461041b5780632dfa9d00146104315780633ccfd60b1461044757600080fd5b806301ffc9a7146102e957806303c833021461031e57806306fdde0314610328578063081812fc1461034a578063095ea7b31461038257806313f44d10146103a2575b600080fd5b3480156102f557600080fd5b5061030961030436600461269d565b610947565b60405190151581526020015b60405180910390f35b610326610999565b005b34801561033457600080fd5b5061033d610b36565b6040516103159190612712565b34801561035657600080fd5b5061036a610365366004612725565b610bc8565b6040516001600160a01b039091168152602001610315565b34801561038e57600080fd5b5061032661039d36600461275a565b610c5d565b3480156103ae57600080fd5b506103096103bd366004612784565b610d72565b3480156103ce57600080fd5b506103d8600a5481565b604051908152602001610315565b3480156103f257600080fd5b506103d8610e0e565b34801561040757600080fd5b5061032661041636600461279f565b610e1e565b34801561042757600080fd5b506103d8600b5481565b34801561043d57600080fd5b506103d8600d5481565b34801561045357600080fd5b50610326610e4f565b34801561046857600080fd5b5061032661047736600461279f565b610ef8565b34801561048857600080fd5b5061049c610497366004612784565b610f13565b60405161031591906127db565b3480156104b557600080fd5b506103266104c4366004612725565b610ff3565b3480156104d557600080fd5b506103266104e43660046128ab565b611022565b3480156104f557600080fd5b5060065461030990600160a81b900460ff1681565b34801561051657600080fd5b50610326610525366004612725565b611076565b34801561053657600080fd5b506103d8600e5481565b34801561054c57600080fd5b5060065461030990600160a01b900460ff1681565b34801561056d57600080fd5b5061032661057c3660046128ab565b6110a5565b34801561058d57600080fd5b5061036a61059c366004612725565b6110e2565b3480156105ad57600080fd5b50610326611159565b3480156105c257600080fd5b506103266105d1366004612725565b6112c2565b3480156105e257600080fd5b506103d86105f1366004612784565b6112f1565b34801561060257600080fd5b50610326611378565b34801561061757600080fd5b506006546001600160a01b031661036a565b34801561063557600080fd5b50610326610644366004612725565b6113ae565b34801561065557600080fd5b50610326610664366004612725565b6113dd565b34801561067557600080fd5b506103d8610684366004612784565b6001600160a01b031660009081526015602052604090205490565b3480156106ab57600080fd5b5061032661140c565b3480156106c057600080fd5b5061033d611457565b3480156106d557600080fd5b506103266106e4366004612725565b611466565b6103266106f7366004612940565b611495565b61032661070a366004612725565b611614565b34801561071b57600080fd5b5061032661072a366004612982565b61187c565b34801561073b57600080fd5b506103d8611887565b34801561075057600080fd5b5061032661075f3660046128ab565b611892565b34801561077057600080fd5b506103d861077f366004612784565b6001600160a01b031660009081526016602052604090205490565b3480156107a657600080fd5b506103266107b53660046128ab565b6118cf565b3480156107c657600080fd5b506103266107d53660046129be565b61190c565b3480156107e657600080fd5b5061033d6107f5366004612725565b611944565b34801561080657600080fd5b506103d8600c5481565b34801561081c57600080fd5b506103d861082b36600461275a565b6001600160a01b03919091166000908152601360209081526040808320938352929052205490565b34801561085f57600080fd5b5061030961086e366004612a3a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108a857600080fd5b506103266108b7366004612a6d565b611ac5565b3480156108c857600080fd5b506103266108d7366004612940565b611b0b565b3480156108e857600080fd5b506103266108f7366004612784565b611b4d565b34801561090857600080fd5b50610326610917366004612a99565b611be5565b34801561092857600080fd5b506014546103d8565b34801561093d57600080fd5b506103d8600f5481565b60006001600160e01b031982166380ac58cd60e01b148061097857506001600160e01b03198216635b5e139f60e01b145b8061099357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b031633146109cc5760405162461bcd60e51b81526004016109c390612b05565b60405180910390fd5b60006109d760115490565b9050600d8111610a4f5760405162461bcd60e51b815260206004820152603860248201527f414e494d414c534d657461436c75623a20746f74616c20746f6b656e2073757060448201527f706c79206e65656420746f2062652061626f766520313230000000000000000060648201526084016109c3565b3415610b33576000610a62600d83612b50565b610a6c9034612b7d565b90506000610a7b600d84612b50565b610a859083612b91565b9050600e5b838111610ae3576000610a9c826110e2565b6001600160a01b038116600090815260156020526040812080549293508692909190610ac9908490612bb0565b90915550829150610adb905081612bc8565b915050610a8a565b508060146000828254610af69190612bb0565b909155505060405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a250505b50565b606060008054610b4590612be1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7190612be1565b8015610bbe5780601f10610b9357610100808354040283529160200191610bbe565b820191906000526020600020905b815481529060010190602001808311610ba157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c3565b506000908152600460205260409020546001600160a01b031690565b6000610c68826110e2565b9050806001600160a01b0316836001600160a01b031603610cd55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109c3565b336001600160a01b0382161480610cf15750610cf1813361086e565b610d635760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109c3565b610d6d8383611d4c565b505050565b6000610d866006546001600160a01b031690565b6001600160a01b0316826001600160a01b031603610da657506001919050565b60005b601254811015610e0557826001600160a01b031660128281548110610dd057610dd0612c1b565b6000918252602090912001546001600160a01b031603610df35750600192915050565b80610dfd81612bc8565b915050610da9565b50600092915050565b6000610e1960115490565b905090565b610e283382611dba565b610e445760405162461bcd60e51b81526004016109c390612c31565b610d6d838383611eb1565b6006546001600160a01b03163314610e795760405162461bcd60e51b81526004016109c390612b05565b6000610e8d6006546001600160a01b031690565b6001600160a01b0316610e9f60145490565b610ea99047612b50565b604051600081818185875af1925050503d8060008114610ee5576040519150601f19603f3d011682016040523d82523d6000602084013e610eea565b606091505b5050905080610b3357600080fd5b610d6d8383836040518060200160405280600081525061190c565b60606000610f20836112f1565b905060008167ffffffffffffffff811115610f3d57610f3d61281f565b604051908082528060200260200182016040528015610f66578160200160208202803683370190505b509050600160005b8381108015610f7f5750600c548211155b15610fe9576000610f8f836110e2565b9050866001600160a01b0316816001600160a01b031603610fd65782848381518110610fbd57610fbd612c1b565b602090810291909101015281610fd281612bc8565b9250505b82610fe081612bc8565b93505050610f6e565b5090949350505050565b6006546001600160a01b0316331461101d5760405162461bcd60e51b81526004016109c390612b05565b600a55565b6006546001600160a01b0316331461104c5760405162461bcd60e51b81526004016109c390612b05565b6006805460ff60a81b1916600160a81b179055805161107290600890602084019061257d565b5050565b6006546001600160a01b031633146110a05760405162461bcd60e51b81526004016109c390612b05565b600e55565b6006546001600160a01b031633146110cf5760405162461bcd60e51b81526004016109c390612b05565b805161107290600890602084019061257d565b6000818152600260205260408120546001600160a01b0316806109935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109c3565b600061116433610684565b90508015610b3357336000908152601660205260408120805483929061118b908490612bb0565b909155505033600090815260156020526040812080548392906111af908490612b50565b909155505060405181815233907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a2604051600090339083908381818185875af1925050503d806000811461122b576040519150601f19603f3d011682016040523d82523d6000602084013e611230565b606091505b50509050806112a75760405162461bcd60e51b815260206004820152603960248201527f414e494d414c534d657461436c75623a206661696c656420746f207472616e7360448201527f66657220776974686472617761626c65206469766964656e640000000000000060648201526084016109c3565b81601460008282546112b99190612b50565b90915550505050565b6006546001600160a01b031633146112ec5760405162461bcd60e51b81526004016109c390612b05565b600c55565b60006001600160a01b03821661135c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109c3565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146113a25760405162461bcd60e51b81526004016109c390612b05565b6113ac600061204d565b565b6006546001600160a01b031633146113d85760405162461bcd60e51b81526004016109c390612b05565b600d55565b6006546001600160a01b031633146114075760405162461bcd60e51b81526004016109c390612b05565b600b55565b6006546001600160a01b031633146114365760405162461bcd60e51b81526004016109c390612b05565b6006805460ff60a01b198116600160a01b9182900460ff1615909102179055565b606060018054610b4590612be1565b6006546001600160a01b031633146114905760405162461bcd60e51b81526004016109c390612b05565b600f55565b6006546001600160a01b031633146114bf5760405162461bcd60e51b81526004016109c390612b05565b806115215760405162461bcd60e51b815260206004820152602c60248201527f414e494d414c534d657461436c75623a20696e76616c6964206e756d6265722060448201526b6f662061646472657373657360a01b60648201526084016109c3565b34156110725760006115338234612b7d565b905060006115418383612b91565b905060005b838110156115c157826015600087878581811061156557611565612c1b565b905060200201602081019061157a9190612784565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546115a99190612bb0565b909155508190506115b981612bc8565b915050611546565b5080601460008282546115d49190612bb0565b909155505060405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a250505050565b600061161f33610d72565b905060008161163057600e54611634565b600f545b90506000831180156116485750600d548311155b6116a05760405162461bcd60e51b8152602060048201526024808201527f414e494d414c534d657461436c75623a20696e76616c6964206d696e7420616d6044820152631bdd5b9d60e21b60648201526084016109c3565b80836116ae3361082b611887565b6116b89190612bb0565b11156117215760405162461bcd60e51b815260206004820152603260248201527f414e494d414c534d657461436c75623a206578636565646564206d6178206d696044820152716e747320666f72207468697320706861736560701b60648201526084016109c3565b600c548361172e60115490565b6117389190612bb0565b11156117565760405162461bcd60e51b81526004016109c390612c82565b600654600160a01b900460ff16156117bb5760405162461bcd60e51b815260206004820152602260248201527f414e494d414c534d657461436c75623a206d696e74696e672069732070617573604482015261195960f21b60648201526084016109c3565b82826117c957600a546117cd565b600b545b6117d79190612b91565b3410156118325760405162461bcd60e51b815260206004820152602360248201527f414e494d414c534d657461436c75623a20696e73756666696369656e742065746044820152623432b960e91b60648201526084016109c3565b61183c338461209f565b3360009081526013602052604081208491611855611887565b815260200190815260200160002060008282546118729190612bb0565b9091555050505050565b6110723383836120dc565b6000610e1960105490565b6006546001600160a01b031633146118bc5760405162461bcd60e51b81526004016109c390612b05565b805161107290600790602084019061257d565b6006546001600160a01b031633146118f95760405162461bcd60e51b81526004016109c390612b05565b805161107290600990602084019061257d565b6119163383611dba565b6119325760405162461bcd60e51b81526004016109c390612c31565b61193e848484846121aa565b50505050565b6000818152600260205260409020546060906001600160a01b03166119c35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c3565b600654600160a81b900460ff16611a6657600780546119e190612be1565b80601f0160208091040260200160405190810160405280929190818152602001828054611a0d90612be1565b8015611a5a5780601f10611a2f57610100808354040283529160200191611a5a565b820191906000526020600020905b815481529060010190602001808311611a3d57829003601f168201915b50505050509050919050565b6000611a706121dd565b90506000815111611a905760405180602001604052806000815250611abe565b80611a9a846121ec565b6009604051602001611aae93929190612ccc565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611aef5760405162461bcd60e51b81526004016109c390612b05565b611afd601080546001019055565b600c92909255600a55600b55565b6006546001600160a01b03163314611b355760405162461bcd60e51b81526004016109c390612b05565b611b4160126000612601565b610d6d6012838361261f565b6006546001600160a01b03163314611b775760405162461bcd60e51b81526004016109c390612b05565b6001600160a01b038116611bdc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c3565b610b338161204d565b6006546001600160a01b03163314611c0f5760405162461bcd60e51b81526004016109c390612b05565b828114611c2e5760405162461bcd60e51b81526004016109c390612d8f565b82611c4b5760405162461bcd60e51b81526004016109c390612d8f565b6000611c5660115490565b905060005b82811015611cab57838382818110611c7557611c75612c1b565b9050602002016020810190611c8a9190612dda565b611c979060ff1683612bb0565b915080611ca381612bc8565b915050611c5b565b50600c54811115611cce5760405162461bcd60e51b81526004016109c390612c82565b60005b84811015611d4457611d32868683818110611cee57611cee612c1b565b9050602002016020810190611d039190612784565b858584818110611d1557611d15612c1b565b9050602002016020810190611d2a9190612dda565b60ff1661209f565b80611d3c81612bc8565b915050611cd1565b505050505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d81826110e2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611e335760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c3565b6000611e3e836110e2565b9050806001600160a01b0316846001600160a01b03161480611e795750836001600160a01b0316611e6e84610bc8565b6001600160a01b0316145b80611ea957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ec4826110e2565b6001600160a01b031614611f285760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109c3565b6001600160a01b038216611f8a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c3565b611f95600082611d4c565b6001600160a01b0383166000908152600360205260408120805460019290611fbe908490612b50565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fec908490612bb0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b81811015610d6d576120b8601180546001019055565b6120ca836120c560115490565b6122ed565b806120d481612bc8565b9150506120a2565b816001600160a01b0316836001600160a01b03160361213d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6121b5848484611eb1565b6121c184848484612307565b61193e5760405162461bcd60e51b81526004016109c390612dfd565b606060088054610b4590612be1565b6060816000036122135750506040805180820190915260018152600360fc1b602082015290565b8160005b811561223d578061222781612bc8565b91506122369050600a83612b7d565b9150612217565b60008167ffffffffffffffff8111156122585761225861281f565b6040519080825280601f01601f191660200182016040528015612282576020820181803683370190505b5090505b8415611ea957612297600183612b50565b91506122a4600a86612e4f565b6122af906030612bb0565b60f81b8183815181106122c4576122c4612c1b565b60200101906001600160f81b031916908160001a9053506122e6600a86612b7d565b9450612286565b611072828260405180602001604052806000815250612408565b60006001600160a01b0384163b156123fd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061234b903390899088908890600401612e63565b6020604051808303816000875af1925050508015612386575060408051601f3d908101601f1916820190925261238391810190612ea0565b60015b6123e3573d8080156123b4576040519150601f19603f3d011682016040523d82523d6000602084013e6123b9565b606091505b5080516000036123db5760405162461bcd60e51b81526004016109c390612dfd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ea9565b506001949350505050565b612412838361243b565b61241f6000848484612307565b610d6d5760405162461bcd60e51b81526004016109c390612dfd565b6001600160a01b0382166124915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c3565b6000818152600260205260409020546001600160a01b0316156124f65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c3565b6001600160a01b038216600090815260036020526040812080546001929061251f908490612bb0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461258990612be1565b90600052602060002090601f0160209004810192826125ab57600085556125f1565b82601f106125c457805160ff19168380011785556125f1565b828001600101855582156125f1579182015b828111156125f15782518255916020019190600101906125d6565b506125fd929150612672565b5090565b5080546000825590600052602060002090810190610b339190612672565b8280548282559060005260206000209081019282156125f1579160200282015b828111156125f15781546001600160a01b0319166001600160a01b0384351617825560209092019160019091019061263f565b5b808211156125fd5760008155600101612673565b6001600160e01b031981168114610b3357600080fd5b6000602082840312156126af57600080fd5b8135611abe81612687565b60005b838110156126d55781810151838201526020016126bd565b8381111561193e5750506000910152565b600081518084526126fe8160208601602086016126ba565b601f01601f19169290920160200192915050565b602081526000611abe60208301846126e6565b60006020828403121561273757600080fd5b5035919050565b80356001600160a01b038116811461275557600080fd5b919050565b6000806040838503121561276d57600080fd5b6127768361273e565b946020939093013593505050565b60006020828403121561279657600080fd5b611abe8261273e565b6000806000606084860312156127b457600080fd5b6127bd8461273e565b92506127cb6020850161273e565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612813578351835292840192918401916001016127f7565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156128505761285061281f565b604051601f8501601f19908116603f011681019082821181831017156128785761287861281f565b8160405280935085815286868601111561289157600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156128bd57600080fd5b813567ffffffffffffffff8111156128d457600080fd5b8201601f810184136128e557600080fd5b611ea984823560208401612835565b60008083601f84011261290657600080fd5b50813567ffffffffffffffff81111561291e57600080fd5b6020830191508360208260051b850101111561293957600080fd5b9250929050565b6000806020838503121561295357600080fd5b823567ffffffffffffffff81111561296a57600080fd5b612976858286016128f4565b90969095509350505050565b6000806040838503121561299557600080fd5b61299e8361273e565b9150602083013580151581146129b357600080fd5b809150509250929050565b600080600080608085870312156129d457600080fd5b6129dd8561273e565b93506129eb6020860161273e565b925060408501359150606085013567ffffffffffffffff811115612a0e57600080fd5b8501601f81018713612a1f57600080fd5b612a2e87823560208401612835565b91505092959194509250565b60008060408385031215612a4d57600080fd5b612a568361273e565b9150612a646020840161273e565b90509250929050565b600080600060608486031215612a8257600080fd5b505081359360208301359350604090920135919050565b60008060008060408587031215612aaf57600080fd5b843567ffffffffffffffff80821115612ac757600080fd5b612ad3888389016128f4565b90965094506020870135915080821115612aec57600080fd5b50612af9878288016128f4565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612b6257612b62612b3a565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612b8c57612b8c612b67565b500490565b6000816000190483118215151615612bab57612bab612b3a565b500290565b60008219821115612bc357612bc3612b3a565b500190565b600060018201612bda57612bda612b3a565b5060010190565b600181811c90821680612bf557607f821691505b602082108103612c1557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602a908201527f414e494d414c534d657461436c75623a206d617820746f6b656e20737570706c6040820152691e48195e18d95959195960b21b606082015260800190565b600084516020612cdf8285838a016126ba565b855191840191612cf28184848a016126ba565b8554920191600090600181811c9080831680612d0f57607f831692505b8583108103612d2c57634e487b7160e01b85526022600452602485fd5b808015612d405760018114612d5157612d7e565b60ff19851688528388019550612d7e565b60008b81526020902060005b85811015612d765781548a820152908401908801612d5d565b505083880195505b50939b9a5050505050505050505050565b6020808252602b908201527f414e494d414c534d657461436c75623a20696e76616c69642066756e6374696f60408201526a6e20617267756d656e747360a81b606082015260800190565b600060208284031215612dec57600080fd5b813560ff81168114611abe57600080fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612e5e57612e5e612b67565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e96908301846126e6565b9695505050505050565b600060208284031215612eb257600080fd5b8151611abe8161268756fea26469706673582212208c1d0aed7f86e0e21dfabd5441f5ed4e48e6a6acd0782db0fa737c30f7eaae5364736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5741386d77706f647550666564596b7361506279616a5152387552584d424a7961696d3359333555345a4c670000000000000000000000
Deployed Bytecode
0x6080604052600436106102e45760003560e01c8063715018a611610190578063aafd847a116100dc578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b146108dc578063f9daade4146108fc578063fbfa77cf1461091c578063fe3313871461093157600080fd5b8063e985e9c514610853578063ecbd2cda1461089c578063f1528ae1146108bc57600080fd5b8063aafd847a14610764578063aff721411461079a578063b88d4fde146107ba578063c87b56dd146107da578063d5abeb01146107fa578063e3f0aa8a1461081057600080fd5b806395d89b4111610149578063a0712d6811610123578063a0712d68146106fc578063a22cb4651461070f578063a3a40ea51461072f578063a50152291461074457600080fd5b806395d89b41146106b45780639993edbd146106c95780639ada9bce146106e957600080fd5b8063715018a6146105f65780638da5cb5b1461060b5780638e6fe1a3146106295780638fdcf9421461064957806391b89fba1461066957806393eff8511461069f57600080fd5b806342842e0e1161024f5780635c41d75e116102085780636352211e116101e25780636352211e146105815780636a474002146105a15780636f8b44b0146105b657806370a08231146105d657600080fd5b80635c41d75e1461052a5780635c975abb14610540578063617dd82a1461056157600080fd5b806342842e0e1461045c578063438b63001461047c57806344a0d68a146104a95780634c261247146104c957806351830227146104e95780635697f53e1461050a57600080fd5b806313faede6116102a157806313faede6146103c257806318160ddd146103e657806323b872dd146103fb5780632a23d07d1461041b5780632dfa9d00146104315780633ccfd60b1461044757600080fd5b806301ffc9a7146102e957806303c833021461031e57806306fdde0314610328578063081812fc1461034a578063095ea7b31461038257806313f44d10146103a2575b600080fd5b3480156102f557600080fd5b5061030961030436600461269d565b610947565b60405190151581526020015b60405180910390f35b610326610999565b005b34801561033457600080fd5b5061033d610b36565b6040516103159190612712565b34801561035657600080fd5b5061036a610365366004612725565b610bc8565b6040516001600160a01b039091168152602001610315565b34801561038e57600080fd5b5061032661039d36600461275a565b610c5d565b3480156103ae57600080fd5b506103096103bd366004612784565b610d72565b3480156103ce57600080fd5b506103d8600a5481565b604051908152602001610315565b3480156103f257600080fd5b506103d8610e0e565b34801561040757600080fd5b5061032661041636600461279f565b610e1e565b34801561042757600080fd5b506103d8600b5481565b34801561043d57600080fd5b506103d8600d5481565b34801561045357600080fd5b50610326610e4f565b34801561046857600080fd5b5061032661047736600461279f565b610ef8565b34801561048857600080fd5b5061049c610497366004612784565b610f13565b60405161031591906127db565b3480156104b557600080fd5b506103266104c4366004612725565b610ff3565b3480156104d557600080fd5b506103266104e43660046128ab565b611022565b3480156104f557600080fd5b5060065461030990600160a81b900460ff1681565b34801561051657600080fd5b50610326610525366004612725565b611076565b34801561053657600080fd5b506103d8600e5481565b34801561054c57600080fd5b5060065461030990600160a01b900460ff1681565b34801561056d57600080fd5b5061032661057c3660046128ab565b6110a5565b34801561058d57600080fd5b5061036a61059c366004612725565b6110e2565b3480156105ad57600080fd5b50610326611159565b3480156105c257600080fd5b506103266105d1366004612725565b6112c2565b3480156105e257600080fd5b506103d86105f1366004612784565b6112f1565b34801561060257600080fd5b50610326611378565b34801561061757600080fd5b506006546001600160a01b031661036a565b34801561063557600080fd5b50610326610644366004612725565b6113ae565b34801561065557600080fd5b50610326610664366004612725565b6113dd565b34801561067557600080fd5b506103d8610684366004612784565b6001600160a01b031660009081526015602052604090205490565b3480156106ab57600080fd5b5061032661140c565b3480156106c057600080fd5b5061033d611457565b3480156106d557600080fd5b506103266106e4366004612725565b611466565b6103266106f7366004612940565b611495565b61032661070a366004612725565b611614565b34801561071b57600080fd5b5061032661072a366004612982565b61187c565b34801561073b57600080fd5b506103d8611887565b34801561075057600080fd5b5061032661075f3660046128ab565b611892565b34801561077057600080fd5b506103d861077f366004612784565b6001600160a01b031660009081526016602052604090205490565b3480156107a657600080fd5b506103266107b53660046128ab565b6118cf565b3480156107c657600080fd5b506103266107d53660046129be565b61190c565b3480156107e657600080fd5b5061033d6107f5366004612725565b611944565b34801561080657600080fd5b506103d8600c5481565b34801561081c57600080fd5b506103d861082b36600461275a565b6001600160a01b03919091166000908152601360209081526040808320938352929052205490565b34801561085f57600080fd5b5061030961086e366004612a3a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108a857600080fd5b506103266108b7366004612a6d565b611ac5565b3480156108c857600080fd5b506103266108d7366004612940565b611b0b565b3480156108e857600080fd5b506103266108f7366004612784565b611b4d565b34801561090857600080fd5b50610326610917366004612a99565b611be5565b34801561092857600080fd5b506014546103d8565b34801561093d57600080fd5b506103d8600f5481565b60006001600160e01b031982166380ac58cd60e01b148061097857506001600160e01b03198216635b5e139f60e01b145b8061099357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b031633146109cc5760405162461bcd60e51b81526004016109c390612b05565b60405180910390fd5b60006109d760115490565b9050600d8111610a4f5760405162461bcd60e51b815260206004820152603860248201527f414e494d414c534d657461436c75623a20746f74616c20746f6b656e2073757060448201527f706c79206e65656420746f2062652061626f766520313230000000000000000060648201526084016109c3565b3415610b33576000610a62600d83612b50565b610a6c9034612b7d565b90506000610a7b600d84612b50565b610a859083612b91565b9050600e5b838111610ae3576000610a9c826110e2565b6001600160a01b038116600090815260156020526040812080549293508692909190610ac9908490612bb0565b90915550829150610adb905081612bc8565b915050610a8a565b508060146000828254610af69190612bb0565b909155505060405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a250505b50565b606060008054610b4590612be1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7190612be1565b8015610bbe5780601f10610b9357610100808354040283529160200191610bbe565b820191906000526020600020905b815481529060010190602001808311610ba157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610c415760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c3565b506000908152600460205260409020546001600160a01b031690565b6000610c68826110e2565b9050806001600160a01b0316836001600160a01b031603610cd55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109c3565b336001600160a01b0382161480610cf15750610cf1813361086e565b610d635760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109c3565b610d6d8383611d4c565b505050565b6000610d866006546001600160a01b031690565b6001600160a01b0316826001600160a01b031603610da657506001919050565b60005b601254811015610e0557826001600160a01b031660128281548110610dd057610dd0612c1b565b6000918252602090912001546001600160a01b031603610df35750600192915050565b80610dfd81612bc8565b915050610da9565b50600092915050565b6000610e1960115490565b905090565b610e283382611dba565b610e445760405162461bcd60e51b81526004016109c390612c31565b610d6d838383611eb1565b6006546001600160a01b03163314610e795760405162461bcd60e51b81526004016109c390612b05565b6000610e8d6006546001600160a01b031690565b6001600160a01b0316610e9f60145490565b610ea99047612b50565b604051600081818185875af1925050503d8060008114610ee5576040519150601f19603f3d011682016040523d82523d6000602084013e610eea565b606091505b5050905080610b3357600080fd5b610d6d8383836040518060200160405280600081525061190c565b60606000610f20836112f1565b905060008167ffffffffffffffff811115610f3d57610f3d61281f565b604051908082528060200260200182016040528015610f66578160200160208202803683370190505b509050600160005b8381108015610f7f5750600c548211155b15610fe9576000610f8f836110e2565b9050866001600160a01b0316816001600160a01b031603610fd65782848381518110610fbd57610fbd612c1b565b602090810291909101015281610fd281612bc8565b9250505b82610fe081612bc8565b93505050610f6e565b5090949350505050565b6006546001600160a01b0316331461101d5760405162461bcd60e51b81526004016109c390612b05565b600a55565b6006546001600160a01b0316331461104c5760405162461bcd60e51b81526004016109c390612b05565b6006805460ff60a81b1916600160a81b179055805161107290600890602084019061257d565b5050565b6006546001600160a01b031633146110a05760405162461bcd60e51b81526004016109c390612b05565b600e55565b6006546001600160a01b031633146110cf5760405162461bcd60e51b81526004016109c390612b05565b805161107290600890602084019061257d565b6000818152600260205260408120546001600160a01b0316806109935760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109c3565b600061116433610684565b90508015610b3357336000908152601660205260408120805483929061118b908490612bb0565b909155505033600090815260156020526040812080548392906111af908490612b50565b909155505060405181815233907fee503bee2bb6a87e57bc57db795f98137327401a0e7b7ce42e37926cc1a9ca4d9060200160405180910390a2604051600090339083908381818185875af1925050503d806000811461122b576040519150601f19603f3d011682016040523d82523d6000602084013e611230565b606091505b50509050806112a75760405162461bcd60e51b815260206004820152603960248201527f414e494d414c534d657461436c75623a206661696c656420746f207472616e7360448201527f66657220776974686472617761626c65206469766964656e640000000000000060648201526084016109c3565b81601460008282546112b99190612b50565b90915550505050565b6006546001600160a01b031633146112ec5760405162461bcd60e51b81526004016109c390612b05565b600c55565b60006001600160a01b03821661135c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109c3565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146113a25760405162461bcd60e51b81526004016109c390612b05565b6113ac600061204d565b565b6006546001600160a01b031633146113d85760405162461bcd60e51b81526004016109c390612b05565b600d55565b6006546001600160a01b031633146114075760405162461bcd60e51b81526004016109c390612b05565b600b55565b6006546001600160a01b031633146114365760405162461bcd60e51b81526004016109c390612b05565b6006805460ff60a01b198116600160a01b9182900460ff1615909102179055565b606060018054610b4590612be1565b6006546001600160a01b031633146114905760405162461bcd60e51b81526004016109c390612b05565b600f55565b6006546001600160a01b031633146114bf5760405162461bcd60e51b81526004016109c390612b05565b806115215760405162461bcd60e51b815260206004820152602c60248201527f414e494d414c534d657461436c75623a20696e76616c6964206e756d6265722060448201526b6f662061646472657373657360a01b60648201526084016109c3565b34156110725760006115338234612b7d565b905060006115418383612b91565b905060005b838110156115c157826015600087878581811061156557611565612c1b565b905060200201602081019061157a9190612784565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546115a99190612bb0565b909155508190506115b981612bc8565b915050611546565b5080601460008282546115d49190612bb0565b909155505060405181815233907fa493a9229478c3fcd73f66d2cdeb7f94fd0f341da924d1054236d784541165119060200160405180910390a250505050565b600061161f33610d72565b905060008161163057600e54611634565b600f545b90506000831180156116485750600d548311155b6116a05760405162461bcd60e51b8152602060048201526024808201527f414e494d414c534d657461436c75623a20696e76616c6964206d696e7420616d6044820152631bdd5b9d60e21b60648201526084016109c3565b80836116ae3361082b611887565b6116b89190612bb0565b11156117215760405162461bcd60e51b815260206004820152603260248201527f414e494d414c534d657461436c75623a206578636565646564206d6178206d696044820152716e747320666f72207468697320706861736560701b60648201526084016109c3565b600c548361172e60115490565b6117389190612bb0565b11156117565760405162461bcd60e51b81526004016109c390612c82565b600654600160a01b900460ff16156117bb5760405162461bcd60e51b815260206004820152602260248201527f414e494d414c534d657461436c75623a206d696e74696e672069732070617573604482015261195960f21b60648201526084016109c3565b82826117c957600a546117cd565b600b545b6117d79190612b91565b3410156118325760405162461bcd60e51b815260206004820152602360248201527f414e494d414c534d657461436c75623a20696e73756666696369656e742065746044820152623432b960e91b60648201526084016109c3565b61183c338461209f565b3360009081526013602052604081208491611855611887565b815260200190815260200160002060008282546118729190612bb0565b9091555050505050565b6110723383836120dc565b6000610e1960105490565b6006546001600160a01b031633146118bc5760405162461bcd60e51b81526004016109c390612b05565b805161107290600790602084019061257d565b6006546001600160a01b031633146118f95760405162461bcd60e51b81526004016109c390612b05565b805161107290600990602084019061257d565b6119163383611dba565b6119325760405162461bcd60e51b81526004016109c390612c31565b61193e848484846121aa565b50505050565b6000818152600260205260409020546060906001600160a01b03166119c35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109c3565b600654600160a81b900460ff16611a6657600780546119e190612be1565b80601f0160208091040260200160405190810160405280929190818152602001828054611a0d90612be1565b8015611a5a5780601f10611a2f57610100808354040283529160200191611a5a565b820191906000526020600020905b815481529060010190602001808311611a3d57829003601f168201915b50505050509050919050565b6000611a706121dd565b90506000815111611a905760405180602001604052806000815250611abe565b80611a9a846121ec565b6009604051602001611aae93929190612ccc565b6040516020818303038152906040525b9392505050565b6006546001600160a01b03163314611aef5760405162461bcd60e51b81526004016109c390612b05565b611afd601080546001019055565b600c92909255600a55600b55565b6006546001600160a01b03163314611b355760405162461bcd60e51b81526004016109c390612b05565b611b4160126000612601565b610d6d6012838361261f565b6006546001600160a01b03163314611b775760405162461bcd60e51b81526004016109c390612b05565b6001600160a01b038116611bdc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109c3565b610b338161204d565b6006546001600160a01b03163314611c0f5760405162461bcd60e51b81526004016109c390612b05565b828114611c2e5760405162461bcd60e51b81526004016109c390612d8f565b82611c4b5760405162461bcd60e51b81526004016109c390612d8f565b6000611c5660115490565b905060005b82811015611cab57838382818110611c7557611c75612c1b565b9050602002016020810190611c8a9190612dda565b611c979060ff1683612bb0565b915080611ca381612bc8565b915050611c5b565b50600c54811115611cce5760405162461bcd60e51b81526004016109c390612c82565b60005b84811015611d4457611d32868683818110611cee57611cee612c1b565b9050602002016020810190611d039190612784565b858584818110611d1557611d15612c1b565b9050602002016020810190611d2a9190612dda565b60ff1661209f565b80611d3c81612bc8565b915050611cd1565b505050505050565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d81826110e2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611e335760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109c3565b6000611e3e836110e2565b9050806001600160a01b0316846001600160a01b03161480611e795750836001600160a01b0316611e6e84610bc8565b6001600160a01b0316145b80611ea957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611ec4826110e2565b6001600160a01b031614611f285760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109c3565b6001600160a01b038216611f8a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109c3565b611f95600082611d4c565b6001600160a01b0383166000908152600360205260408120805460019290611fbe908490612b50565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fec908490612bb0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b81811015610d6d576120b8601180546001019055565b6120ca836120c560115490565b6122ed565b806120d481612bc8565b9150506120a2565b816001600160a01b0316836001600160a01b03160361213d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109c3565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6121b5848484611eb1565b6121c184848484612307565b61193e5760405162461bcd60e51b81526004016109c390612dfd565b606060088054610b4590612be1565b6060816000036122135750506040805180820190915260018152600360fc1b602082015290565b8160005b811561223d578061222781612bc8565b91506122369050600a83612b7d565b9150612217565b60008167ffffffffffffffff8111156122585761225861281f565b6040519080825280601f01601f191660200182016040528015612282576020820181803683370190505b5090505b8415611ea957612297600183612b50565b91506122a4600a86612e4f565b6122af906030612bb0565b60f81b8183815181106122c4576122c4612c1b565b60200101906001600160f81b031916908160001a9053506122e6600a86612b7d565b9450612286565b611072828260405180602001604052806000815250612408565b60006001600160a01b0384163b156123fd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061234b903390899088908890600401612e63565b6020604051808303816000875af1925050508015612386575060408051601f3d908101601f1916820190925261238391810190612ea0565b60015b6123e3573d8080156123b4576040519150601f19603f3d011682016040523d82523d6000602084013e6123b9565b606091505b5080516000036123db5760405162461bcd60e51b81526004016109c390612dfd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ea9565b506001949350505050565b612412838361243b565b61241f6000848484612307565b610d6d5760405162461bcd60e51b81526004016109c390612dfd565b6001600160a01b0382166124915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109c3565b6000818152600260205260409020546001600160a01b0316156124f65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109c3565b6001600160a01b038216600090815260036020526040812080546001929061251f908490612bb0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461258990612be1565b90600052602060002090601f0160209004810192826125ab57600085556125f1565b82601f106125c457805160ff19168380011785556125f1565b828001600101855582156125f1579182015b828111156125f15782518255916020019190600101906125d6565b506125fd929150612672565b5090565b5080546000825590600052602060002090810190610b339190612672565b8280548282559060005260206000209081019282156125f1579160200282015b828111156125f15781546001600160a01b0319166001600160a01b0384351617825560209092019160019091019061263f565b5b808211156125fd5760008155600101612673565b6001600160e01b031981168114610b3357600080fd5b6000602082840312156126af57600080fd5b8135611abe81612687565b60005b838110156126d55781810151838201526020016126bd565b8381111561193e5750506000910152565b600081518084526126fe8160208601602086016126ba565b601f01601f19169290920160200192915050565b602081526000611abe60208301846126e6565b60006020828403121561273757600080fd5b5035919050565b80356001600160a01b038116811461275557600080fd5b919050565b6000806040838503121561276d57600080fd5b6127768361273e565b946020939093013593505050565b60006020828403121561279657600080fd5b611abe8261273e565b6000806000606084860312156127b457600080fd5b6127bd8461273e565b92506127cb6020850161273e565b9150604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612813578351835292840192918401916001016127f7565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156128505761285061281f565b604051601f8501601f19908116603f011681019082821181831017156128785761287861281f565b8160405280935085815286868601111561289157600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156128bd57600080fd5b813567ffffffffffffffff8111156128d457600080fd5b8201601f810184136128e557600080fd5b611ea984823560208401612835565b60008083601f84011261290657600080fd5b50813567ffffffffffffffff81111561291e57600080fd5b6020830191508360208260051b850101111561293957600080fd5b9250929050565b6000806020838503121561295357600080fd5b823567ffffffffffffffff81111561296a57600080fd5b612976858286016128f4565b90969095509350505050565b6000806040838503121561299557600080fd5b61299e8361273e565b9150602083013580151581146129b357600080fd5b809150509250929050565b600080600080608085870312156129d457600080fd5b6129dd8561273e565b93506129eb6020860161273e565b925060408501359150606085013567ffffffffffffffff811115612a0e57600080fd5b8501601f81018713612a1f57600080fd5b612a2e87823560208401612835565b91505092959194509250565b60008060408385031215612a4d57600080fd5b612a568361273e565b9150612a646020840161273e565b90509250929050565b600080600060608486031215612a8257600080fd5b505081359360208301359350604090920135919050565b60008060008060408587031215612aaf57600080fd5b843567ffffffffffffffff80821115612ac757600080fd5b612ad3888389016128f4565b90965094506020870135915080821115612aec57600080fd5b50612af9878288016128f4565b95989497509550505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612b6257612b62612b3a565b500390565b634e487b7160e01b600052601260045260246000fd5b600082612b8c57612b8c612b67565b500490565b6000816000190483118215151615612bab57612bab612b3a565b500290565b60008219821115612bc357612bc3612b3a565b500190565b600060018201612bda57612bda612b3a565b5060010190565b600181811c90821680612bf557607f821691505b602082108103612c1557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602a908201527f414e494d414c534d657461436c75623a206d617820746f6b656e20737570706c6040820152691e48195e18d95959195960b21b606082015260800190565b600084516020612cdf8285838a016126ba565b855191840191612cf28184848a016126ba565b8554920191600090600181811c9080831680612d0f57607f831692505b8583108103612d2c57634e487b7160e01b85526022600452602485fd5b808015612d405760018114612d5157612d7e565b60ff19851688528388019550612d7e565b60008b81526020902060005b85811015612d765781548a820152908401908801612d5d565b505083880195505b50939b9a5050505050505050505050565b6020808252602b908201527f414e494d414c534d657461436c75623a20696e76616c69642066756e6374696f60408201526a6e20617267756d656e747360a81b606082015260800190565b600060208284031215612dec57600080fd5b813560ff81168114611abe57600080fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612e5e57612e5e612b67565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e96908301846126e6565b9695505050505050565b600060208284031215612eb257600080fd5b8151611abe8161268756fea26469706673582212208c1d0aed7f86e0e21dfabd5441f5ed4e48e6a6acd0782db0fa737c30f7eaae5364736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5741386d77706f647550666564596b7361506279616a5152387552584d424a7961696d3359333555345a4c670000000000000000000000
-----Decoded View---------------
Arg [0] : initUnrevealedUriPrefix (string): ipfs://QmWA8mwpoduPfedYksaPbyajQR8uRXMBJyaim3Y35U4ZLg
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 697066733a2f2f516d5741386d77706f647550666564596b7361506279616a51
Arg [3] : 52387552584d424a7961696d3359333555345a4c670000000000000000000000
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.