ERC-721
Overview
Max Total Supply
0 HOUR
Holders
80
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
7 HOURLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheHours
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 400 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 /// @title TheHours2.sol /// @author Lawrence X Rogers /// @dev this contract handles the NFT implementation (ERC721) and metadata formatting pragma solidity ^0.8.19; import "contracts/TheHoursArt.sol"; import "contracts/interfaces/ITheHours.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Base64.sol"; contract TheHours is ITheHours, ERC721, Ownable { using Strings for uint256; using Mint for bytes32; // the rarity of each action type, out of 0xFF for each action bytes11 immutable public actionRarity; bytes11 immutable public actionRarityForAllowlist; // action availability, where each index corresponds to the action type bool[MINT_TYPES_COUNT] public isActionAvailable; bool[MINT_TYPES_COUNT] public isActionAvailableForAllowlist; // if a finishing touch is available, this is the type. NONE means not available. uint256 public finishingTouchType = MINT_TYPE_NONE; // the k value for the finishing touch rarity function uint256 public immutable finishingTouchK; // whether the collection has finished. no more minting after this. bool public finished = false; // address of the approved minter. address public approvedMinter; // the number of minted tokens and the id of the next token to be minted uint256 public tokenCounter; // all of the information about each mint. used to generate the SVG bytes32[] mintDetails; // the address of the Jackson2Art contract address immutable artAddress; /** * @notice create TheHours ERC721 contract * @param _actionRarity must have at least one byte as 0xFF to ensure one action is always available */ constructor( address _artAddress, bytes11 _actionRarity, bytes11 _actionRarityForAllowList, uint256 _finishingTouchK ) ERC721("TheHours", "HOUR") { artAddress = _artAddress; actionRarity = _actionRarity; actionRarityForAllowlist = _actionRarityForAllowList; finishingTouchK = _finishingTouchK; approvedMinter = address(0); setActionAvailability(); } /** * @notice set the approved minter * @notice this can only be set once */ function setApprovedMinter(address _approvedMinter) public onlyOwner { require(approvedMinter == address(0), "TheHours: Approved minter already set"); approvedMinter = _approvedMinter; } /** * @notice mint a new token to the given address, storing the mintDetails. * @notice updates the action availability. * @notice depends on approvedMinter being the AuctionHouse for validateBid to be called, so mintDetails respects action availability */ function mint(bytes32 _mintDetails, address _to) public { require(finished == false, "TheHours: Minting is over"); require(msg.sender == approvedMinter, "TheHours: Not approved minter"); mintDetails.push(_mintDetails); _mint(_to, tokenCounter); unchecked { tokenCounter++; } setActionAvailability(); if (_mintDetails.isFinishingTouch()) { finished = true; } } /** * @notice updates the availability of actions, including finishingTouch * @dev uses block.difficulty and block.number for creating a random seed * @dev the availability of each action is calculated independently by using different parts of the seed */ function setActionAvailability() internal { bytes32 random = keccak256(abi.encodePacked(block.difficulty, block.number)); for (uint256 i = 0; i < MINT_TYPES_COUNT; i++) { isActionAvailable[i] = random[i] <= actionRarity[i]; isActionAvailableForAllowlist[i] = random[i] <= actionRarityForAllowlist[i]; } finishingTouchType = (uint(random) % 10000 <= getFinishingTouchRarity10000()) ? uint(random) % MINT_TYPES_COUNT : MINT_TYPE_NONE; } /** * @notice used by the AuctionHouse to make sure a given bid is valid * @param _mintDetails the details of the bid * @param _isInAllowlist whether the bidder is attempting to use the allowlist */ function validateBid(bytes32 _mintDetails, bool _isInAllowlist) public view returns (bool) { require(_mintDetails.mintType() < MINT_TYPES_COUNT, "TheHours: Invalid mint type"); if (_mintDetails.isFinishingTouch()) { require(finishingTouchType == _mintDetails.mintType(), "TheHours: Finishing touch not available for type"); return true; } if (_isInAllowlist) { return isActionAvailableForAllowlist[_mintDetails.mintType()]; } return isActionAvailable[_mintDetails.mintType()]; } function getAllMintDetails() public view returns (bytes32[] memory) { return mintDetails; } /** * @notice returns the probability of a finishing touch being available, as a number out of 10000 (lowest probability is 0.01%) */ function getFinishingTouchRarity10000() public view returns (uint) { if (tokenCounter <= 96) { return 0; } else { return (tokenCounter - 96) * (tokenCounter - 96) / finishingTouchK; } } function getActionAvailability() public view returns (bool[MINT_TYPES_COUNT] memory) { return isActionAvailable; } function getAllowlistActionAvailability() public view returns (bool[MINT_TYPES_COUNT] memory) { return isActionAvailableForAllowlist; } function _attributeNames() internal pure returns (string[MINT_TYPES_COUNT] memory) { return [ "Rectangle", "Circle", "Rotate", "Quad", "Shear", "Background Color", "Window Rectangle", "Window Circle", "Tile", "Scale", "Italicize" ]; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory theURI) { require(_exists(tokenId), "TheHours: Token doesn't exist"); bytes memory imageURI = abi.encodePacked( "data:image/svg+xml;base64,", Base64.encode(ITheHoursArt(artAddress).generateSVG(mintDetails, tokenId)) ); bytes memory actionTypeAttribute = abi.encodePacked(_attributeNames()[mintDetails[tokenId].mintType()]); if (mintDetails[tokenId].isFinishingTouch()) { actionTypeAttribute = abi.encodePacked("Finishing Touch -- ", actionTypeAttribute); } theURI = formatTokenURI(imageURI, tokenId, actionTypeAttribute); } function formatTokenURI(bytes memory imageURI, uint tokenId, bytes memory actionTypeAttribute) internal pure returns (string memory) { return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( abi.encodePacked( '{', '"name" : "Hour#', tokenId.toString(), '", ', '"description" : "An experimint in collaborative art the evolves through hourly auctions.", ', '"image" : "', imageURI, '", ', '"attributes": [{"trait_type":"Action Type", "value": "', actionTypeAttribute, '"}]', "}" ) ) ) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// 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.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); /// @solidity memory-safe-assembly assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
pragma solidity ^0.8.10; uint256 constant MINT_TYPES_COUNT = 11; uint256 constant MINT_TYPE_NONE = 255; uint256 constant MINT_TYPE_RECTANGLE = 0; uint256 constant MINT_TYPE_CIRCLE = 1; uint256 constant MINT_TYPE_ROTATE = 2; uint256 constant MINT_TYPE_QUAD = 3; uint256 constant MINT_TYPE_SHEAR = 4; uint256 constant MINT_TYPE_BACKGROUND = 5; uint256 constant MINT_TYPE_WINDOW_RECTANGLE = 6; uint256 constant MINT_TYPE_WINDOW_CIRCLE = 7; uint256 constant MINT_TYPE_TILE = 8; uint256 constant MINT_TYPE_SCALE = 9; uint256 constant MINT_TYPE_ITALICIZE = 10; int256 constant MIN_OPACITY = 40; int256 constant MAX_OPACITY = 80; int256 constant PAINTABLE_MIN_X = -140; int256 constant PAINTABLE_MIN_Y = -190; int256 constant RECTANGLE_MIN_WIDTH = 5; int256 constant CIRCLE_MIN_RADIUS = 5; int256 constant CIRCLE_MAX_RADIUS = 300; int256 constant QUAD_MIN_AMOUNT = -100; int256 constant QUAD_MAX_AMOUNT = 250; int256 constant SHEAR_MIN_SLICES = 2; int256 constant SHEAR_MAX_SLICES = 6; int256 constant SHEAR_MIN_AMOUNT = -600; int256 constant SHEAR_MAX_AMOUNT = 600; int256 constant WINDOW_RECTANGLE_MIN_WIDTH = 50; int256 constant WINDOW_CIRCLE_MIN_RADIUS = 50; bytes constant svg_begin = hex"0a202020203c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a786c696e6b3d2022687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b222076696577426f783d222d313530202d3230302033303020343030223e3c7265637420783d222d3135302220793d222d323030222077696474683d2233303022206865696768743d22343030222066696c6c3d22"; bytes constant svg_begin_2 = hex"22202f3e2020202020202020202020200a20202020202020203c636c6970506174682069643d2263616e766173223e0a2020202020202020202020203c7265637420783d222d3134302220793d222d313930222077696474683d2232383022206865696768743d22333830222f3e0a20202020202020203c2f636c6970506174683e0a20202020202020203c672069643d2274686563616e76617322207374796c653d22636c69702d706174683a75726c282363616e76617329223e"; bytes constant svg_end = hex"3c2f673e3c2f7376673e";
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.10; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface ITheHours is IERC721 { function mint(bytes32 _mintDetails, address _to) external; function validateBid(bytes32 mintDetails, bool isInAllowlist) external returns (bool); function tokenCounter() external returns (uint256); function finished() external returns (bool); } interface ITheHoursArt { function generateSVG(bytes32[] memory mints, uint256 index) external view returns (bytes memory svg); }
// SPDX-License-Identifier: GPL-3.0 /// @title Jackson2SVGs /// @dev this contract contains all the code to convert /// mints (as bytes32) into SVG snippets. pragma solidity ^0.8.19; import "./ArtParams.sol"; import "./Mint.sol"; import "hardhat/console.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract Jackson2SVGs { using Mint for bytes32; using Strings for uint256; /// SHAPES ****************************************** function getRectangleSVG(bytes32 mint) internal pure returns (bytes memory rectangleSVG) { rectangleSVG = abi.encodePacked( "<rect x='", intToString(byteToInt(mint[1], PAINTABLE_MIN_X, PAINTABLE_MIN_X * -1)), "' y='", intToString(byteToInt(mint[2], PAINTABLE_MIN_Y, PAINTABLE_MIN_Y * -1)), "' width='", intToString(byteToInt(mint[3], RECTANGLE_MIN_WIDTH, PAINTABLE_MIN_X * -2)), "' height='", intToString(byteToInt(mint[4], RECTANGLE_MIN_WIDTH, PAINTABLE_MIN_Y * -2)), "' fill='", extractColor(mint, 5), "' opacity='0.", intToString(byteToInt(mint[8], MIN_OPACITY, MAX_OPACITY)), "' />"); } function getCircleSVG(bytes32 mint) internal pure returns (bytes memory) { return abi.encodePacked( "<circle cx='", intToString(byteToInt(mint[1], PAINTABLE_MIN_X, PAINTABLE_MIN_X * -1)), "' cy='", intToString(byteToInt(mint[2], PAINTABLE_MIN_Y, PAINTABLE_MIN_Y * -1)), "' r='", intToString(byteToInt(mint[3], CIRCLE_MIN_RADIUS, CIRCLE_MAX_RADIUS)), "' fill='", extractColor(mint, 4), "' opacity='0.", intToString(byteToInt(mint[7], MIN_OPACITY, MAX_OPACITY)), "' />"); } /// EFFECTS ****************************************** function getRotateSVG(bytes32 mint) internal pure returns (bytes memory) { return abi.encodePacked('<g transform="rotate(', intToString(byteToInt(mint[1], -180, 180)), ')" ><g>'); } function getQuadSVG(bytes32 mint, uint id) internal pure returns (bytes memory) { int a = byteToInt(mint[1], QUAD_MIN_AMOUNT, QUAD_MAX_AMOUNT); string memory amount = intToString(a); string memory nAmount = intToString(a * -1); return abi.encodePacked( '<filter id="quad', id.toString(), '" x="-140" y="-190" width="280" height="380">', '<feOffset in="SourceGraphic" x="-140" y="-190" width="140" height="190" dx="', nAmount, '" dy="', nAmount, '" result="o1"/>', '<feOffset in="SourceGraphic" x="0" y="-190" width="140" height="190" dx="', amount, '" dy="',nAmount,'" result="o2"/>', '<feOffset in="SourceGraphic" x="-140" y="0" width="140" height="190" dx="', nAmount, '" dy="', amount,'" result="o3"/>', '<feOffset in="SourceGraphic" x="0" y="0" width="140" height="190" dx="', amount, '" dy="', amount, '" result="o4"/>', '<feMerge><feMergeNode in="o1"/><feMergeNode in="o2" /><feMergeNode in="o3"/><feMergeNode in="o4"/></feMerge>', '</filter><g filter="url(#quad', id.toString(), ')"><g>' ); } function getShearSVG(bytes32 mint, uint id) internal pure returns (bytes memory) { int amount = byteToInt(mint[1], SHEAR_MIN_AMOUNT, SHEAR_MAX_AMOUNT); int slices = byteToInt(mint[2], SHEAR_MIN_SLICES, SHEAR_MAX_SLICES); bytes memory offsetsSVG = ''; int sliceWidth = 280 / slices; for (int i = 0; i < slices; i++) { int dy = ((((i * 100) - ((slices * 100) - 100)/2) / slices) * amount) / 100; offsetsSVG = abi.encodePacked(offsetsSVG, '<feOffset in="SourceGraphic" x="', intToString(-140 + (sliceWidth * i)), '" y="-190" width="', intToString(sliceWidth), '" height="380" dy="', intToString(dy), '" result="d', intToString(i), '"/>'); } bytes memory mergeSVG = '<feMerge>'; for (uint i = 0; i < uint(slices); i++) { mergeSVG = abi.encodePacked(mergeSVG, '<feMergeNode in="d', i.toString(), '"/>'); } mergeSVG = abi.encodePacked(mergeSVG, '</feMerge>'); return abi.encodePacked( '<filter id="shear', id.toString(), '" x="-140" y="-190" width="280" height="380">', offsetsSVG, mergeSVG, '</filter><g filter="url(#shear', id.toString(), ')"><g>' ); } function getWindowRectangleSVG(bytes32 mint, uint id) internal pure returns (bytes memory) { return abi.encodePacked( "<mask id='maskr", id.toString(), "'><rect x='", intToString(byteToInt(mint[1], PAINTABLE_MIN_X, PAINTABLE_MIN_X * -1)), "' y='", intToString(byteToInt(mint[2], PAINTABLE_MIN_Y, PAINTABLE_MIN_Y * -1)), "' width='", intToString(byteToInt(mint[3], WINDOW_RECTANGLE_MIN_WIDTH, PAINTABLE_MIN_X * -2)), "' height='", intToString(byteToInt(mint[4], WINDOW_RECTANGLE_MIN_WIDTH, PAINTABLE_MIN_Y * -2)), "' fill='white'/></mask><g mask='url(#maskr", id.toString(), ")'><g>" ); } function getWindowCircleSVG(bytes32 mint, uint id) internal pure returns (bytes memory) { return abi.encodePacked( "<mask id='maskc", id.toString(), "'><circle cx='", intToString(byteToInt(mint[1], PAINTABLE_MIN_X, PAINTABLE_MIN_X * -1)), "' cy='", intToString(byteToInt(mint[2], PAINTABLE_MIN_Y, PAINTABLE_MIN_Y * -1)), "' r='", intToString(byteToInt(mint[3], WINDOW_CIRCLE_MIN_RADIUS, CIRCLE_MAX_RADIUS)), "' fill='white'/></mask><g mask='url(#maskc", id.toString(), ")'><g>" ); } function getTileSVG(bytes32 mint, uint id) internal pure returns (bytes memory) { return abi.encodePacked( "<filter id='tile", id.toString(), "' x='-140' y='-190' width='280' height='380'><feOffset dx='0' x='" , intToString(byteToInt(mint[1], PAINTABLE_MIN_X, PAINTABLE_MIN_X * -1)), "' y='", intToString(byteToInt(mint[2], PAINTABLE_MIN_Y, PAINTABLE_MIN_Y * -1)), "' width='", intToString(byteToInt(mint[3], WINDOW_RECTANGLE_MIN_WIDTH, PAINTABLE_MIN_X * -2)), "' height='", intToString(byteToInt(mint[4], WINDOW_RECTANGLE_MIN_WIDTH, PAINTABLE_MIN_Y * -2)), "' result='in'/><feTile in='in' x='-140' y='-190' width='280' height='380'/></filter><g filter='url(#tile", id.toString(), ")'><g>" ); } function getScaleSVG(bytes32 mint) internal pure returns (bytes memory) { return abi.encodePacked( "<g transform='scale(", toDecimal(byteToInt(mint[1], 50, 200)), " ", toDecimal(byteToInt(mint[2], 50, 200)), ")'><g>" ); } function getItalicizeSVG(bytes32 mint) internal pure returns (bytes memory) { return abi.encodePacked("<g transform='skewX(", intToString(byteToInt(mint[1], -50, 50)), ")'><g>" ); } /// UTILITY FUNCTIONS ******************************** function intToString(int i) internal pure returns (string memory) { if (i >= 0) { return uint(i).toString(); } else { return string(abi.encodePacked("-", uint(i * -1).toString())); } } // ONLY POSITIVE INTEGERS OUT OF 100 function toDecimal(int i) internal pure returns (bytes memory) { int whole = (i / 100); int decimal = (i % 100); string memory point = decimal >= 10 ? "." : (decimal > 0 ? ".0" : ".00"); return abi.encodePacked(intToString(whole), point, intToString(decimal)); } function extractColor(bytes32 mint, uint index) internal pure returns (bytes memory) { return abi.encodePacked("rgb(", Strings.toString(uint8(mint[index])), ",", Strings.toString(uint8(mint[index + 1])), ",", Strings.toString(uint8(mint[index + 2])), ")"); } function byteToInt(bytes1 _byte, int min, int max) internal pure returns (int theInt) { int percent = (int16(uint16(uint8(_byte)) * 100) / 255); int i = min + (percent * (max - min) / 100); return i; } }
// SPDX-License-Identifier: GPL-3.0 /// @title Mint.sol /// @author Lawrence X Rogers /// @dev this Library has some useful utility functions for the Mints stored as Bytes32 pragma solidity ^0.8.10; import "./ArtParams.sol"; library Mint { function mintType(bytes32 mint) internal pure returns (uint256) { return uint256(uint8(mint[0])); } function isShape(bytes32 mint) internal pure returns (bool) { return mintType(mint) <= MINT_TYPE_CIRCLE; } function isBackground(bytes32 mint) internal pure returns (bool) { return mintType(mint) == MINT_TYPE_BACKGROUND; } function isEffect(bytes32 mint) internal pure returns (bool) { return mintType(mint) > MINT_TYPE_CIRCLE && mintType(mint) != MINT_TYPE_BACKGROUND; } function isFinishingTouch(bytes32 mint) internal pure returns (bool) { return mint[31] == 0x01; } }
// SPDX-License-Identifier: GPL-3.0 /// @title TheHours2Art.sol /// @author Lawrence X Rogers /// @dev this contract handles the assembly of mints into a TheHours SVG pragma solidity ^0.8.19; import "./Jackson2SVGs.sol"; import "./ArtParams.sol"; import "./Mint.sol"; import "hardhat/console.sol"; import "contracts/interfaces/ITheHours.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract TheHoursArt is Jackson2SVGs, ITheHoursArt { using Strings for uint256; using Strings for int256; using Mint for bytes32; uint8 constant MINT_TYPE_INDEX = 0; /// @notice generates an SVG from a list of mints, up to index @index function generateSVG(bytes32[] memory mints, uint256 index) external pure returns (bytes memory svg) { uint256 effectsTotal = countEffects(mints); bytes[] memory effectsQueue = new bytes[](effectsTotal); uint256 effectsIndex = 0; bytes memory bgColor = "nobackgroundspecified"; for (uint256 i1 = index + 1; i1 > 0; i1--) { uint256 i = i1 - 1; bytes32 mint = mints[i]; if (mint.isBackground() && bgColor.length == 21) { bgColor = extractColor(mint, 1); } else { if (mint.isBackground()) continue; else if (mint.isShape()) { svg = bytes.concat(getShapeSVG(mint), svg); } else { svg = bytes.concat("</g></g>", svg); effectsQueue[effectsIndex++] = getEffectSVG(mint, i); } } } for (int256 i = int256(effectsIndex) - 1; i >= 0; i--) { svg = bytes.concat(effectsQueue[uint256(i)], svg); } if (bgColor.length == 21) { // length of "nobackgroundspecified" bgColor = "white"; } return abi.encodePacked(svg_begin, bgColor, svg_begin_2, svg, svg_end); } /// @notice checks which type of shape the Mint is, and calls the corresponding function function getShapeSVG(bytes32 mint) internal pure returns (bytes memory shapeSVG) { if (mint.mintType() == MINT_TYPE_RECTANGLE) { return getRectangleSVG(mint); } else if (mint.mintType() == MINT_TYPE_CIRCLE) { return getCircleSVG(mint); } } /// @notice checks which type of Effect the Mint is, and calls the corresponding function function getEffectSVG(bytes32 mint, uint256 id) internal pure returns (bytes memory) { if (mint.mintType() == MINT_TYPE_ROTATE) return getRotateSVG(mint); else if (mint.mintType() == MINT_TYPE_QUAD) return getQuadSVG(mint, id); else if (mint.mintType() == MINT_TYPE_SHEAR) return getShearSVG(mint, id); else if (mint.mintType() == MINT_TYPE_WINDOW_RECTANGLE) return getWindowRectangleSVG(mint, id); else if (mint.mintType() == MINT_TYPE_WINDOW_CIRCLE) return getWindowCircleSVG(mint, id); else if (mint.mintType() == MINT_TYPE_TILE) return getTileSVG(mint, id); else if (mint.mintType() == MINT_TYPE_SCALE) return getScaleSVG(mint); else if (mint.mintType() == MINT_TYPE_ITALICIZE) return getItalicizeSVG(mint); return ""; } function countEffects(bytes32[] memory mints) internal pure returns (uint256 count) { for (uint256 i = 0; i < mints.length; i++) { if (mints[i].isEffect()) count++; } } }
// 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(int256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); } function logUint(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", 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(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", 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(uint256 p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); } function log(uint256 p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); } function log(uint256 p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); } function log(uint256 p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); } function log(string memory p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", 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, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", 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, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", 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(uint256 p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); } function log(uint256 p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); } function log(uint256 p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); } function log(uint256 p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); } function log(uint256 p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); } function log(uint256 p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); } function log(uint256 p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); } function log(uint256 p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); } function log(uint256 p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); } function log(uint256 p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); } function log(uint256 p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); } function log(uint256 p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); } function log(uint256 p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); } function log(string memory p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); } function log(string memory p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); } function log(string memory p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); } function log(string memory p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", 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, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); } function log(bool p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); } function log(bool p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); } function log(bool p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", 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, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); } function log(address p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); } function log(address p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); } function log(address p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", 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, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", 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(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", 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, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", 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, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", 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, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", 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, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", 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)); } }
{ "optimizer": { "enabled": true, "runs": 400 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_artAddress","type":"address"},{"internalType":"bytes11","name":"_actionRarity","type":"bytes11"},{"internalType":"bytes11","name":"_actionRarityForAllowList","type":"bytes11"},{"internalType":"uint256","name":"_finishingTouchK","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"actionRarity","outputs":[{"internalType":"bytes11","name":"","type":"bytes11"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"actionRarityForAllowlist","outputs":[{"internalType":"bytes11","name":"","type":"bytes11"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"approvedMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishingTouchK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishingTouchType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActionAvailability","outputs":[{"internalType":"bool[11]","name":"","type":"bool[11]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllMintDetails","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowlistActionAvailability","outputs":[{"internalType":"bool[11]","name":"","type":"bool[11]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFinishingTouchRarity10000","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isActionAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isActionAvailableForAllowlist","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":[{"internalType":"bytes32","name":"_mintDetails","type":"bytes32"},{"internalType":"address","name":"_to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"address","name":"_approvedMinter","type":"address"}],"name":"setApprovedMinter","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":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"theURI","type":"string"}],"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":[{"internalType":"bytes32","name":"_mintDetails","type":"bytes32"},{"internalType":"bool","name":"_isInAllowlist","type":"bool"}],"name":"validateBid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
610100346200057f5762002ace601f38829003908101601f19168301906001600160401b038211848310176200036857808493604093845284396080938491810103126200057f5781516001600160a01b03811681036200057f576200006860208401620005a0565b606062000077848601620005a0565b9401518351620000878162000584565b6008815267546865486f75727360c01b6020820152845190620000aa8262000584565b60048252632427aaa960e11b60208301528051906001600160401b038211620003685760005490600182811c9216801562000574575b6020831014620004685781601f84931162000511575b50602090601f8311600114620004955760009262000489575b50508160011b916000199060031b1c1916176000555b8051906001600160401b038211620003685760015490600182811c921680156200047e575b6020831014620004685781601f84931162000404575b50602090601f83116001146200038a576000926200037e575b50508160011b916000199060031b1c1916176001555b60068054336001600160a01b03198216811790925585519391906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a360ff600955600a805460e09590955290875260a095865260c0919091526001600160a81b031992831690554460208201908152438483015283825290606081016001600160401b03811182821017620003685784525190209060005b600b8110620002a857505062000248620005b6565b6127108206116200029f57600b90065b600955519061248192836200060d843951828181610eb8015261134e0152518181816101bf015261132d015260c051818181611012015261227d015260e051816103ca0152f35b5060ff62000258565b602081101562000352576200032960ff60f81b83885116831a60f8918087861a841b16908560051c936200030082601f891695831b168411158587600701919060ff8084549260031b93151516831b921b1916179055565b878b5116871a901b16101591600801919060ff8084549260031b93151516831b921b1916179055565b60001981146200033c5760010162000233565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b01519050388062000179565b6001600090815260008051602062002aae8339815191529350601f198516905b818110620003eb5750908460019594939210620003d1575b505050811b016001556200018f565b015160001960f88460031b161c19169055388080620003c2565b92936020600181928786015181550195019301620003aa565b600160005290915060008051602062002aae833981519152601f840160051c810191602085106200045d575b90601f859493920160051c01905b8181106200044d575062000160565b600081558493506001016200043e565b909150819062000430565b634e487b7160e01b600052602260045260246000fd5b91607f16916200014a565b0151905038806200010f565b6000808052935060008051602062002a8e83398151915291905b601f1984168510620004f5576001945083601f19811610620004db575b505050811b0160005562000125565b015160001960f88460031b161c19169055388080620004cc565b81810151835560209485019460019093019290910190620004af565b6000805290915060008051602062002a8e833981519152601f840160051c8101916020851062000569575b90601f859493920160051c01905b818110620005595750620000f6565b600081558493506001016200054a565b90915081906200053c565b91607f1691620000e0565b600080fd5b604081019081106001600160401b038211176200036857604052565b51906001600160a81b0319821682036200057f57565b600b5460608111620005c85750600090565b605f1981019081116200033c57808002908082048114901517156200033c5760c051908115620005f6570490565b634e487b7160e01b600052601260045260246000fdfe608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a7146118d15750816306fdde0314611806578163081812fc146117de578163095ea7b314611665578163224eb7431461163957816323b872dd1461160f578163256e60fa1461154e578163293c6a3a146111e05781632e14aa451461117857816342842e0e1461114f5781636352211e1461111f57816370a0823114611089578163715018a6146110355781637aed1f5c14610ffa5781637cf41a0214610f2f5781638a35012514610f105781638da5cb5b14610ee85781638f195aee14610ea35781639304419814610df657816395d89b4114610cef5781639be4f8b914610cc4578163a22cb46514610bf9578163a7c2003014610bbc578163b88d4fde14610b32578163bef4876b14610b0e578163c87b56dd14610359578163d082e3811461033a578163db3864ab14610306578163e985e9c5146102b8578163f2fde38b146101ef57508063f9ef48b6146101ab5763fa09a28b1461018557600080fd5b346101a757816003193601126101a7576020906101a061224d565b9051908152f35b5080fd5b50346101a757816003193601126101a757517f00000000000000000000000000000000000000000000000000000000000000006001600160a81b0319168152602090f35b9050346102b45760203660031901126102b45761020a611984565b90610213611b35565b6001600160a01b03809216928315610262575050600654826001600160a01b0319821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b5050346101a757806003193601126101a75760ff816020936102d8611984565b6102e061199f565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b8284346103375781600319360112610337575061032e602092610327611a61565b90356120f4565b90519015158152f35b80fd5b5050346101a757816003193601126101a757602090600b549051908152f35b839150346101a75760209182600319360112610337578135906103928260005260026020526001600160a01b0360406000205416151590565b15610acb578451634d6747bb60e01b81528381018690528181806103b8604482016121f0565b86602483015203816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165afa8015610ac1578290610a44575b6104039150612305565b91855193610456603a86888101967f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008852610446815180928c868601910161193c565b810103601a810188520186611af7565b865161046181611a70565b86845b6101608110610a36575050508651610160810181811067ffffffffffffffff821117610a235780895261049681611adb565b600981526852656374616e676c6560b81b610180830152815287516104ba81611adb565b6006815265436972636c6560d01b888201528782015287516104db81611adb565b6006815265526f7461746560d01b888201528882015287516104fc81611adb565b82815263145d585960e21b888201526060820152875161051b81611adb565b600581526429b432b0b960d91b888201526080820152875161053c81611adb565b601081526f2130b1b5b3b937bab7321021b7b637b960811b8882015260a0820152875161056881611adb565b601081526f57696e646f772052656374616e676c6560801b8882015260c0820152875161059481611adb565b600d81526c57696e646f7720436972636c6560981b8882015260e082015287516105bd81611adb565b8281526354696c6560e01b8882015261010082015287516105dd81611adb565b60058152645363616c6560d81b8882015261012082015287516105ff81611adb565b60098152684974616c6963697a6560b81b8882015261014082015261062383612071565b90549060031b1c841a600b811015610a105760051b0151918751610663888281610656818301988981519384920161193c565b8101038084520182611af7565b809361066e83612071565b905460039190911b1c60f81b6001600160f81b031916600160f81b146109b5575b505080809285917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000090818110156109a8575b5050886d04ee2d6d415b85acef810000000080861015610999575b5050662386f26fc100008085101561098a575b506305f5e1008085101561097b575b506127108085101561096f575b50506064831015610961575b600a80931015610959575b9060219160019281610731858094016122d3565b9750870101905b610923575b5050505060d66108bf93926108ba9261091f968951958693607b60f81b8b8601526e226e616d6522203a2022486f75722360881b6021860152610789815180928d60308901910161193c565b840161082f6201116160ed1b938460308401527f226465736372697074696f6e22203a2022416e206578706572696d696e74206960338401527f6e20636f6c6c61626f72617469766520617274207468652065766f6c7665732060538401527f7468726f75676820686f75726c792061756374696f6e732e222c20000000000060738401526a1134b6b0b3b291101d101160a91b608e840152518093609984019061193c565b019060998201527f2261747472696275746573223a205b7b2274726169745f74797065223a224163609c8201527f74696f6e2054797065222c202276616c7565223a20220000000000000000000060bc820152610895825180938b60d28501910161193c565b0162227d5d60e81b60d2820152607d60f81b60d58201520360b6810184520182611af7565b612305565b92610910603d825180967f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000878301526109008151809289868601910161193c565b810103601d810187520185611af7565b5192828493845283019061195f565b0390f35b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561095457919082610738565b61073d565b60010161071d565b916064600291049201610712565b90930492018980610706565b6008919294049301908a6106f9565b6010919294049301908a6106ea565b9091929404930190888b6106d7565b0493508991508a806106bc565b6109f8929450610a08916033918b519485927f46696e697368696e6720546f756368202d2d20000000000000000000000000008d8501525180928585019061193c565b8101036013810184520182611af7565b91888061068f565b634e487b7160e01b855260328352602485fd5b634e487b7160e01b855260418352602485fd5b606081840152018790610464565b503d8083833e610a548183611af7565b81019085818303126102b45780519067ffffffffffffffff8211610abd570181601f820112156102b457805190610a8a82611b19565b92610a9789519485611af7565b828452878383010111610abd578291610ab89188806104039601910161193c565b6103f9565b8380fd5b86513d84823e3d90fd5b845162461bcd60e51b8152808401859052601d60248201527f546865486f7572733a20546f6b656e20646f65736e27742065786973740000006044820152606490fd5b5050346101a757816003193601126101a75760209060ff600a541690519015158152f35b919050346102b45760803660031901126102b457610b4e611984565b610b5661199f565b846064359467ffffffffffffffff86116101a757366023870112156101a75785013594610b8e610b8587611b19565b95519586611af7565b85855236602487830101116101a75785610bb996602460209301838801378501015260443591611ca2565b80f35b9050346102b45760203660031901126102b4573591600b831015610337575060ff610be86020936119e3565b92905490519260031b1c1615158152f35b919050346102b457806003193601126102b457610c14611984565b906001600160a01b03610c25611a61565b921692833314610c82575033845260056020528084208385526020528084209115159160ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020606492519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b5050346101a757816003193601126101a7576020906001600160a01b03600a5460081c169051908152f35b8284346103375780600319360112610337578151918160019283549384811c91818616958615610dec575b6020968785108114610dd9578899509688969785829a529182600014610db2575050600114610d57575b50505061091f9291610910910385611af7565b91908693508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b828410610d9a575050508201018161091061091f610d44565b8054848a018601528895508794909301928101610d81565b60ff19168782015293151560051b86019093019350849250610910915061091f9050610d44565b634e487b7160e01b835260228a52602483fd5b92607f1692610d1a565b9050346102b45760203660031901126102b457610e11611984565b90610e1a611b35565b600a54926001600160a01b038460081c16610e52575050610100600160a81b039060081b1690610100600160a81b03191617600a5580f35b906020608492519162461bcd60e51b8352820152602560248201527f546865486f7572733a20417070726f766564206d696e74657220616c726561646044820152641e481cd95d60da1b6064820152fd5b5050346101a757816003193601126101a757517f00000000000000000000000000000000000000000000000000000000000000006001600160a81b0319168152602090f35b5050346101a757816003193601126101a7576020906001600160a01b03600654169051908152f35b5050346101a757816003193601126101a7576020906009549051908152f35b5050346101a757816003193601126101a7578061016061091f9251610f5381611a70565b36903780519060085460ff9081811615158452818160081c1615156020850152818160101c16151583850152818160181c1615156060850152818160201c1615156080850152818160281c16151560a0850152818160301c16151560c0850152818160381c16151560e08501528181841c161515610100850152818160481c16151561012085015260501c161515610140830152610ff082611a70565b5191829182611a30565b5050346101a757816003193601126101a757602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b833461033757806003193601126103375761104e611b35565b806001600160a01b0360065481198116600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b839150346101a75760203660031901126101a7576001600160a01b036110ad611984565b169081156110ca5760208480858581526003845220549051908152f35b608490602085519162461bcd60e51b8352820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152fd5b82843461033757602036600319011261033757506001600160a01b0361114760209335611bd9565b915191168152f35b5050346101a757610bb990611163366119fb565b9192519261117084611abf565b858452611ca2565b5050346101a757816003193601126101a75780516111a081611199816121f0565b0382611af7565b815192839260208080860192818752855180945286019401925b8281106111c957505050500390f35b8351855286955093810193928101926001016111ba565b919050346102b457806003193601126102b4578135906111fe61199f565b90600a549160ff831661150b576001600160a01b03809360081c1633036114c857600c5494680100000000000000008610156114b557611245600196878101600c55612071565b939080549460031b600019958689831b921b1916179055600b948554931680156114725761129261128c8560005260026020526001600160a01b0360406000205416151590565b156120a8565b6112b561128c8560005260026020526001600160a01b0360406000205416151590565b80895260209360038552828a20898154019055808a5260028552828a20826001600160a01b03198254161790558251918a7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4878654018655838101914483524381830152815261132781611aa3565b519020927f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000895b8781106113c55750505050505061138461224d565b6127108206116113bc57065b60095560f81b6001600160f81b031916600160f81b146113ae575080f35b60ff19600a541617600a5580f35b505060ff611390565b8581101561145f5761143e60f86001600160f81b031989841a821b81166114116113ee866119e3565b8489891a871b168411159060ff8084549260031b93151516831b921b1916179055565b61141a856119b5565b92909388871a901b1610159060ff8084549260031b93151516831b921b1916179055565b83811461144c57890161136f565b634e487b7160e01b8b526011855260248bfd5b634e487b7160e01b8b526032855260248bfd5b815162461bcd60e51b8152602081850181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606490fd5b634e487b7160e01b875260419052602486fd5b815162461bcd60e51b8152602081870152601d60248201527f546865486f7572733a204e6f7420617070726f766564206d696e7465720000006044820152606490fd5b815162461bcd60e51b8152602081870152601960248201527f546865486f7572733a204d696e74696e67206973206f766572000000000000006044820152606490fd5b5050346101a757816003193601126101a7578061016061091f925161157281611a70565b36903780519060075460ff9081811615158452818160081c1615156020850152818160101c16151583850152818160181c1615156060850152818160201c1615156080850152818160281c16151560a0850152818160301c16151560c0850152818160381c16151560e08501528181841c161515610100850152818160481c16151561012085015260501c161515610140830152610ff082611a70565b833461033757610bb9611621366119fb565b9161163461162f8433611d2d565b611c40565b611df5565b9050346102b45760203660031901126102b4573591600b831015610337575060ff610be86020936119b5565b9050346102b457816003193601126102b45761167f611984565b90602435926001600160a01b0391828061169887611bd9565b1694169380851461179157803314908115611772575b501561170a578486526020528420805473ffffffffffffffffffffffffffffffffffffffff1916831790556116e283611bd9565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b6020608492519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205281862033875260205260ff8287205416386116ae565b506020608492519162461bcd60e51b8352820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b82843461033757602036600319011261033757506001600160a01b0361114760209335611bfe565b82843461033757806003193601126103375781519181825492600184811c918186169586156118c7575b6020968785108114610dd9578899509688969785829a529182600014610db257505060011461186c5750505061091f9291610910910385611af7565b91908693508280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106118af575050508201018161091061091f610d44565b8054848a018601528895508794909301928101611896565b92607f1692611830565b8491346102b45760203660031901126102b4573563ffffffff60e01b81168091036102b457602092506380ac58cd60e01b811490811561192b575b811561191a575b5015158152f35b6301ffc9a760e01b14905083611913565b635b5e139f60e01b8114915061190c565b60005b83811061194f5750506000910152565b818101518382015260200161193f565b906020916119788151809281855285808601910161193c565b601f01601f1916010190565b600435906001600160a01b038216820361199a57565b600080fd5b602435906001600160a01b038216820361199a57565b90600b8210156119cd57601f8260051c600801921690565b634e487b7160e01b600052603260045260246000fd5b90600b8210156119cd57601f8260051c600701921690565b606090600319011261199a576001600160a01b0390600435828116810361199a5791602435908116810361199a579060443590565b610160810192916000915b600b8310611a4857505050565b6001908251151581526020809101920192019190611a3b565b60243590811515820361199a57565b610160810190811067ffffffffffffffff821117611a8d57604052565b634e487b7160e01b600052604160045260246000fd5b6060810190811067ffffffffffffffff821117611a8d57604052565b6020810190811067ffffffffffffffff821117611a8d57604052565b6040810190811067ffffffffffffffff821117611a8d57604052565b90601f8019910116810190811067ffffffffffffffff821117611a8d57604052565b67ffffffffffffffff8111611a8d57601f01601f191660200190565b6001600160a01b03600654163303611b4957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15611b9457565b60405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b60005260026020526001600160a01b0360406000205416611bfb811515611b8d565b90565b611c26611c218260005260026020526001600160a01b0360406000205416151590565b611b8d565b60005260046020526001600160a01b036040600020541690565b15611c4757565b60405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b90611cc6939291611cb661162f8433611d2d565b611cc1838383611df5565b611f04565b15611ccd57565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b906001600160a01b038080611d4184611bd9565b16931691838314938415611d74575b508315611d5e575b50505090565b611d6a91929350611bfe565b1614388080611d58565b909350600052600560205260406000208260005260205260ff604060002054169238611d50565b15611da257565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b90611e1d91611e0384611bd9565b916001600160a01b03938493848094169485911614611d9b565b16918215611eb35781611e3a91611e3386611bd9565b1614611d9b565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206001600160a01b03199081815416905583825260036020526040822060001981540190558482526040822060018154019055858252600260205284604083209182541617905580a4565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9293600093909291803b1561206657948491611f5f9660405180948193630a85bd0160e11b978884523360048501526001600160a01b0380921660248501526044840152608060648401528260209b8c97608483019061195f565b0393165af1849181612022575b50612011575050503d600014612009573d611f8681611b19565b90611f946040519283611af7565b81528091833d92013e5b805191826120065760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b01fd5b506060611f9e565b6001600160e01b0319161492509050565b9091508581813d831161205f575b61203a8183611af7565b8101031261205b57516001600160e01b03198116810361205b579038611f6c565b8480fd5b503d612030565b505050915050600190565b600c548110156119cd57600c6000527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70190600090565b156120af57565b60405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b908160001a91600b8310156121ab5760f81b6001600160f81b031916600160f81b1461213f579060ff916121365761212b906119e3565b90549060031b1c1690565b61212b906119b5565b506009540361214d57600190565b60405162461bcd60e51b815260206004820152603060248201527f546865486f7572733a2046696e697368696e6720746f756368206e6f7420617660448201526f61696c61626c6520666f72207479706560801b6064820152608490fd5b60405162461bcd60e51b815260206004820152601b60248201527f546865486f7572733a20496e76616c6964206d696e74207479706500000000006044820152606490fd5b600c5490818152602080910191600c6000527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7916000905b828210612236575050505090565b835485529384019360019384019390910190612228565b600b546060811161225e5750600090565b605f1981019081116122bd57808002908082048114901517156122bd577f00000000000000000000000000000000000000000000000000000000000000009081156122a7570490565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b906122dd82611b19565b6122ea6040519182611af7565b82815280926122fb601f1991611b19565b0190602036910137565b8051156124375760405161231881611aa3565b604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f604082015281516002928382018092116122bd576003918290046001600160fe1b03811681036122bd5761239a908594951b6122d3565b936020850193829183518401925b8381106123e657505050505106806001146123d3576002146123c8575090565b603d90600019015390565b50603d9081600019820153600119015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c16880101518885015316850101518782015301959291906123a8565b5060405161244481611abf565b600081529056fea2646970667358221220200d5551186f1655f555d4f5dd5c4cf3ae86723b83287a5da15fac16083ee08f64736f6c63430008130033290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563b10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6000000000000000000000000e5b7a3369face9623da22f579b2951caa92f9b7dffb2260a0a140f0f0a1919000000000000000000000000000000000000000000ffff4c1414281e1e14333300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c91826301ffc9a7146118d15750816306fdde0314611806578163081812fc146117de578163095ea7b314611665578163224eb7431461163957816323b872dd1461160f578163256e60fa1461154e578163293c6a3a146111e05781632e14aa451461117857816342842e0e1461114f5781636352211e1461111f57816370a0823114611089578163715018a6146110355781637aed1f5c14610ffa5781637cf41a0214610f2f5781638a35012514610f105781638da5cb5b14610ee85781638f195aee14610ea35781639304419814610df657816395d89b4114610cef5781639be4f8b914610cc4578163a22cb46514610bf9578163a7c2003014610bbc578163b88d4fde14610b32578163bef4876b14610b0e578163c87b56dd14610359578163d082e3811461033a578163db3864ab14610306578163e985e9c5146102b8578163f2fde38b146101ef57508063f9ef48b6146101ab5763fa09a28b1461018557600080fd5b346101a757816003193601126101a7576020906101a061224d565b9051908152f35b5080fd5b50346101a757816003193601126101a757517fffff4c1414281e1e1433330000000000000000000000000000000000000000006001600160a81b0319168152602090f35b9050346102b45760203660031901126102b45761020a611984565b90610213611b35565b6001600160a01b03809216928315610262575050600654826001600160a01b0319821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b5050346101a757806003193601126101a75760ff816020936102d8611984565b6102e061199f565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b8284346103375781600319360112610337575061032e602092610327611a61565b90356120f4565b90519015158152f35b80fd5b5050346101a757816003193601126101a757602090600b549051908152f35b839150346101a75760209182600319360112610337578135906103928260005260026020526001600160a01b0360406000205416151590565b15610acb578451634d6747bb60e01b81528381018690528181806103b8604482016121f0565b86602483015203816001600160a01b037f000000000000000000000000e5b7a3369face9623da22f579b2951caa92f9b7d165afa8015610ac1578290610a44575b6104039150612305565b91855193610456603a86888101967f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008852610446815180928c868601910161193c565b810103601a810188520186611af7565b865161046181611a70565b86845b6101608110610a36575050508651610160810181811067ffffffffffffffff821117610a235780895261049681611adb565b600981526852656374616e676c6560b81b610180830152815287516104ba81611adb565b6006815265436972636c6560d01b888201528782015287516104db81611adb565b6006815265526f7461746560d01b888201528882015287516104fc81611adb565b82815263145d585960e21b888201526060820152875161051b81611adb565b600581526429b432b0b960d91b888201526080820152875161053c81611adb565b601081526f2130b1b5b3b937bab7321021b7b637b960811b8882015260a0820152875161056881611adb565b601081526f57696e646f772052656374616e676c6560801b8882015260c0820152875161059481611adb565b600d81526c57696e646f7720436972636c6560981b8882015260e082015287516105bd81611adb565b8281526354696c6560e01b8882015261010082015287516105dd81611adb565b60058152645363616c6560d81b8882015261012082015287516105ff81611adb565b60098152684974616c6963697a6560b81b8882015261014082015261062383612071565b90549060031b1c841a600b811015610a105760051b0151918751610663888281610656818301988981519384920161193c565b8101038084520182611af7565b809361066e83612071565b905460039190911b1c60f81b6001600160f81b031916600160f81b146109b5575b505080809285917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000090818110156109a8575b5050886d04ee2d6d415b85acef810000000080861015610999575b5050662386f26fc100008085101561098a575b506305f5e1008085101561097b575b506127108085101561096f575b50506064831015610961575b600a80931015610959575b9060219160019281610731858094016122d3565b9750870101905b610923575b5050505060d66108bf93926108ba9261091f968951958693607b60f81b8b8601526e226e616d6522203a2022486f75722360881b6021860152610789815180928d60308901910161193c565b840161082f6201116160ed1b938460308401527f226465736372697074696f6e22203a2022416e206578706572696d696e74206960338401527f6e20636f6c6c61626f72617469766520617274207468652065766f6c7665732060538401527f7468726f75676820686f75726c792061756374696f6e732e222c20000000000060738401526a1134b6b0b3b291101d101160a91b608e840152518093609984019061193c565b019060998201527f2261747472696275746573223a205b7b2274726169745f74797065223a224163609c8201527f74696f6e2054797065222c202276616c7565223a20220000000000000000000060bc820152610895825180938b60d28501910161193c565b0162227d5d60e81b60d2820152607d60f81b60d58201520360b6810184520182611af7565b612305565b92610910603d825180967f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000878301526109008151809289868601910161193c565b810103601d810187520185611af7565b5192828493845283019061195f565b0390f35b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a83530491821561095457919082610738565b61073d565b60010161071d565b916064600291049201610712565b90930492018980610706565b6008919294049301908a6106f9565b6010919294049301908a6106ea565b9091929404930190888b6106d7565b0493508991508a806106bc565b6109f8929450610a08916033918b519485927f46696e697368696e6720546f756368202d2d20000000000000000000000000008d8501525180928585019061193c565b8101036013810184520182611af7565b91888061068f565b634e487b7160e01b855260328352602485fd5b634e487b7160e01b855260418352602485fd5b606081840152018790610464565b503d8083833e610a548183611af7565b81019085818303126102b45780519067ffffffffffffffff8211610abd570181601f820112156102b457805190610a8a82611b19565b92610a9789519485611af7565b828452878383010111610abd578291610ab89188806104039601910161193c565b6103f9565b8380fd5b86513d84823e3d90fd5b845162461bcd60e51b8152808401859052601d60248201527f546865486f7572733a20546f6b656e20646f65736e27742065786973740000006044820152606490fd5b5050346101a757816003193601126101a75760209060ff600a541690519015158152f35b919050346102b45760803660031901126102b457610b4e611984565b610b5661199f565b846064359467ffffffffffffffff86116101a757366023870112156101a75785013594610b8e610b8587611b19565b95519586611af7565b85855236602487830101116101a75785610bb996602460209301838801378501015260443591611ca2565b80f35b9050346102b45760203660031901126102b4573591600b831015610337575060ff610be86020936119e3565b92905490519260031b1c1615158152f35b919050346102b457806003193601126102b457610c14611984565b906001600160a01b03610c25611a61565b921692833314610c82575033845260056020528084208385526020528084209115159160ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020606492519162461bcd60e51b8352820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b5050346101a757816003193601126101a7576020906001600160a01b03600a5460081c169051908152f35b8284346103375780600319360112610337578151918160019283549384811c91818616958615610dec575b6020968785108114610dd9578899509688969785829a529182600014610db2575050600114610d57575b50505061091f9291610910910385611af7565b91908693508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b828410610d9a575050508201018161091061091f610d44565b8054848a018601528895508794909301928101610d81565b60ff19168782015293151560051b86019093019350849250610910915061091f9050610d44565b634e487b7160e01b835260228a52602483fd5b92607f1692610d1a565b9050346102b45760203660031901126102b457610e11611984565b90610e1a611b35565b600a54926001600160a01b038460081c16610e52575050610100600160a81b039060081b1690610100600160a81b03191617600a5580f35b906020608492519162461bcd60e51b8352820152602560248201527f546865486f7572733a20417070726f766564206d696e74657220616c726561646044820152641e481cd95d60da1b6064820152fd5b5050346101a757816003193601126101a757517fffb2260a0a140f0f0a19190000000000000000000000000000000000000000006001600160a81b0319168152602090f35b5050346101a757816003193601126101a7576020906001600160a01b03600654169051908152f35b5050346101a757816003193601126101a7576020906009549051908152f35b5050346101a757816003193601126101a7578061016061091f9251610f5381611a70565b36903780519060085460ff9081811615158452818160081c1615156020850152818160101c16151583850152818160181c1615156060850152818160201c1615156080850152818160281c16151560a0850152818160301c16151560c0850152818160381c16151560e08501528181841c161515610100850152818160481c16151561012085015260501c161515610140830152610ff082611a70565b5191829182611a30565b5050346101a757816003193601126101a757602090517f00000000000000000000000000000000000000000000000000000000000000b48152f35b833461033757806003193601126103375761104e611b35565b806001600160a01b0360065481198116600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b839150346101a75760203660031901126101a7576001600160a01b036110ad611984565b169081156110ca5760208480858581526003845220549051908152f35b608490602085519162461bcd60e51b8352820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152fd5b82843461033757602036600319011261033757506001600160a01b0361114760209335611bd9565b915191168152f35b5050346101a757610bb990611163366119fb565b9192519261117084611abf565b858452611ca2565b5050346101a757816003193601126101a75780516111a081611199816121f0565b0382611af7565b815192839260208080860192818752855180945286019401925b8281106111c957505050500390f35b8351855286955093810193928101926001016111ba565b919050346102b457806003193601126102b4578135906111fe61199f565b90600a549160ff831661150b576001600160a01b03809360081c1633036114c857600c5494680100000000000000008610156114b557611245600196878101600c55612071565b939080549460031b600019958689831b921b1916179055600b948554931680156114725761129261128c8560005260026020526001600160a01b0360406000205416151590565b156120a8565b6112b561128c8560005260026020526001600160a01b0360406000205416151590565b80895260209360038552828a20898154019055808a5260028552828a20826001600160a01b03198254161790558251918a7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4878654018655838101914483524381830152815261132781611aa3565b519020927fffff4c1414281e1e1433330000000000000000000000000000000000000000007fffb2260a0a140f0f0a1919000000000000000000000000000000000000000000895b8781106113c55750505050505061138461224d565b6127108206116113bc57065b60095560f81b6001600160f81b031916600160f81b146113ae575080f35b60ff19600a541617600a5580f35b505060ff611390565b8581101561145f5761143e60f86001600160f81b031989841a821b81166114116113ee866119e3565b8489891a871b168411159060ff8084549260031b93151516831b921b1916179055565b61141a856119b5565b92909388871a901b1610159060ff8084549260031b93151516831b921b1916179055565b83811461144c57890161136f565b634e487b7160e01b8b526011855260248bfd5b634e487b7160e01b8b526032855260248bfd5b815162461bcd60e51b8152602081850181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606490fd5b634e487b7160e01b875260419052602486fd5b815162461bcd60e51b8152602081870152601d60248201527f546865486f7572733a204e6f7420617070726f766564206d696e7465720000006044820152606490fd5b815162461bcd60e51b8152602081870152601960248201527f546865486f7572733a204d696e74696e67206973206f766572000000000000006044820152606490fd5b5050346101a757816003193601126101a7578061016061091f925161157281611a70565b36903780519060075460ff9081811615158452818160081c1615156020850152818160101c16151583850152818160181c1615156060850152818160201c1615156080850152818160281c16151560a0850152818160301c16151560c0850152818160381c16151560e08501528181841c161515610100850152818160481c16151561012085015260501c161515610140830152610ff082611a70565b833461033757610bb9611621366119fb565b9161163461162f8433611d2d565b611c40565b611df5565b9050346102b45760203660031901126102b4573591600b831015610337575060ff610be86020936119b5565b9050346102b457816003193601126102b45761167f611984565b90602435926001600160a01b0391828061169887611bd9565b1694169380851461179157803314908115611772575b501561170a578486526020528420805473ffffffffffffffffffffffffffffffffffffffff1916831790556116e283611bd9565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b6020608492519162461bcd60e51b8352820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152fd5b90508652600560205281862033875260205260ff8287205416386116ae565b506020608492519162461bcd60e51b8352820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b82843461033757602036600319011261033757506001600160a01b0361114760209335611bfe565b82843461033757806003193601126103375781519181825492600184811c918186169586156118c7575b6020968785108114610dd9578899509688969785829a529182600014610db257505060011461186c5750505061091f9291610910910385611af7565b91908693508280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106118af575050508201018161091061091f610d44565b8054848a018601528895508794909301928101611896565b92607f1692611830565b8491346102b45760203660031901126102b4573563ffffffff60e01b81168091036102b457602092506380ac58cd60e01b811490811561192b575b811561191a575b5015158152f35b6301ffc9a760e01b14905083611913565b635b5e139f60e01b8114915061190c565b60005b83811061194f5750506000910152565b818101518382015260200161193f565b906020916119788151809281855285808601910161193c565b601f01601f1916010190565b600435906001600160a01b038216820361199a57565b600080fd5b602435906001600160a01b038216820361199a57565b90600b8210156119cd57601f8260051c600801921690565b634e487b7160e01b600052603260045260246000fd5b90600b8210156119cd57601f8260051c600701921690565b606090600319011261199a576001600160a01b0390600435828116810361199a5791602435908116810361199a579060443590565b610160810192916000915b600b8310611a4857505050565b6001908251151581526020809101920192019190611a3b565b60243590811515820361199a57565b610160810190811067ffffffffffffffff821117611a8d57604052565b634e487b7160e01b600052604160045260246000fd5b6060810190811067ffffffffffffffff821117611a8d57604052565b6020810190811067ffffffffffffffff821117611a8d57604052565b6040810190811067ffffffffffffffff821117611a8d57604052565b90601f8019910116810190811067ffffffffffffffff821117611a8d57604052565b67ffffffffffffffff8111611a8d57601f01601f191660200190565b6001600160a01b03600654163303611b4957565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b15611b9457565b60405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606490fd5b60005260026020526001600160a01b0360406000205416611bfb811515611b8d565b90565b611c26611c218260005260026020526001600160a01b0360406000205416151590565b611b8d565b60005260046020526001600160a01b036040600020541690565b15611c4757565b60405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608490fd5b90611cc6939291611cb661162f8433611d2d565b611cc1838383611df5565b611f04565b15611ccd57565b60405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b906001600160a01b038080611d4184611bd9565b16931691838314938415611d74575b508315611d5e575b50505090565b611d6a91929350611bfe565b1614388080611d58565b909350600052600560205260406000208260005260205260ff604060002054169238611d50565b15611da257565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b90611e1d91611e0384611bd9565b916001600160a01b03938493848094169485911614611d9b565b16918215611eb35781611e3a91611e3386611bd9565b1614611d9b565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60008481526004602052604081206001600160a01b03199081815416905583825260036020526040822060001981540190558482526040822060018154019055858252600260205284604083209182541617905580a4565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b9293600093909291803b1561206657948491611f5f9660405180948193630a85bd0160e11b978884523360048501526001600160a01b0380921660248501526044840152608060648401528260209b8c97608483019061195f565b0393165af1849181612022575b50612011575050503d600014612009573d611f8681611b19565b90611f946040519283611af7565b81528091833d92013e5b805191826120065760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608490fd5b01fd5b506060611f9e565b6001600160e01b0319161492509050565b9091508581813d831161205f575b61203a8183611af7565b8101031261205b57516001600160e01b03198116810361205b579038611f6c565b8480fd5b503d612030565b505050915050600190565b600c548110156119cd57600c6000527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70190600090565b156120af57565b60405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b908160001a91600b8310156121ab5760f81b6001600160f81b031916600160f81b1461213f579060ff916121365761212b906119e3565b90549060031b1c1690565b61212b906119b5565b506009540361214d57600190565b60405162461bcd60e51b815260206004820152603060248201527f546865486f7572733a2046696e697368696e6720746f756368206e6f7420617660448201526f61696c61626c6520666f72207479706560801b6064820152608490fd5b60405162461bcd60e51b815260206004820152601b60248201527f546865486f7572733a20496e76616c6964206d696e74207479706500000000006044820152606490fd5b600c5490818152602080910191600c6000527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7916000905b828210612236575050505090565b835485529384019360019384019390910190612228565b600b546060811161225e5750600090565b605f1981019081116122bd57808002908082048114901517156122bd577f00000000000000000000000000000000000000000000000000000000000000b49081156122a7570490565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b906122dd82611b19565b6122ea6040519182611af7565b82815280926122fb601f1991611b19565b0190602036910137565b8051156124375760405161231881611aa3565b604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f604082015281516002928382018092116122bd576003918290046001600160fe1b03811681036122bd5761239a908594951b6122d3565b936020850193829183518401925b8381106123e657505050505106806001146123d3576002146123c8575090565b603d90600019015390565b50603d9081600019820153600119015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c16880101518885015316850101518782015301959291906123a8565b5060405161244481611abf565b600081529056fea2646970667358221220200d5551186f1655f555d4f5dd5c4cf3ae86723b83287a5da15fac16083ee08f64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e5b7a3369face9623da22f579b2951caa92f9b7dffb2260a0a140f0f0a1919000000000000000000000000000000000000000000ffff4c1414281e1e14333300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4
-----Decoded View---------------
Arg [0] : _artAddress (address): 0xE5B7a3369FAce9623Da22f579B2951CAA92F9B7D
Arg [1] : _actionRarity (bytes11): 0xffb2260a0a140f0f0a1919
Arg [2] : _actionRarityForAllowList (bytes11): 0xffff4c1414281e1e143333
Arg [3] : _finishingTouchK (uint256): 180
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000e5b7a3369face9623da22f579b2951caa92f9b7d
Arg [1] : ffb2260a0a140f0f0a1919000000000000000000000000000000000000000000
Arg [2] : ffff4c1414281e1e143333000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000b4
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.