ERC-721
Overview
Max Total Supply
0 AART
Holders
392
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AARTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CollectiveCanvas
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "base64-sol/base64.sol"; import "hardhat/console.sol"; /** * @title Collective Canvas contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */ contract CollectiveCanvas is ERC721, Ownable { enum ValidationState { LOOKING_FOR_OPEN_TAG_OPEN_BRACKET, LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET, LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET_EXCLUSIVE, LOOKING_FOR_CLOSE_TAG_OPEN_BRACKET, LOOKING_FOR_CLOSE_TAG_SLASH, LOOKING_FOR_CLOSE_TAG_CLOSE_BRACKET, LOOKING_FOR_CLOSE_QUOTE } struct ValidationStackFrame { ValidationState state; uint index; } struct TokenMetadata { address creator; uint256 timestamp; uint256 funded; uint256 withdrawn; } uint256 public basePrice; bytes[] private _layers; mapping(uint256 => TokenMetadata) private _tokenMetadata; constructor(string memory name, string memory symbol) ERC721(name, symbol) { basePrice = 24000000000000000; //0.024 ETH } function mint(bytes memory layer) public payable returns (uint256) { require(currentPriceToMint() <= msg.value, "Eth value sent is not sufficient"); _validateLayer(layer); uint mintIndex = _layers.length; _layers.push(layer); _safeMint(msg.sender, mintIndex); _tokenMetadata[mintIndex] = TokenMetadata({creator: msg.sender, timestamp: block.timestamp, funded: msg.value, withdrawn: 0}); return mintIndex; } function balanceOfToken(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "Query for nonexistent token"); uint256 balance = 0; for (uint256 i=tokenId;i<_layers.length;i++) { balance += (_tokenMetadata[i].funded / (i + 1)); } return balance - _tokenMetadata[tokenId].withdrawn; } function totalFunded() public view returns (uint256) { uint256 result = 0; for (uint256 i=0;i<_layers.length;i++) { result += _tokenMetadata[i].funded; } return result; } function withdraw(uint256 tokenId, uint256 amount) public { uint256 balance = balanceOfToken(tokenId); require(balance >= amount, "Attempt to withdraw more than balance"); require(ownerOf(tokenId) == msg.sender, "Unauthorized attempt to withdraw"); TokenMetadata storage metadata = _tokenMetadata[tokenId]; metadata.withdrawn += amount; _tokenMetadata[tokenId] = metadata; payable(msg.sender).transfer(amount); } function currentPriceToMint() public view returns (uint256) { return basePrice * ((_layers.length / 10) + 1); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory svgUri = _encodeSvgUriAtTokenId(_layers.length-1); string memory json = Base64.encode(abi.encodePacked('{"name":"Autonomous Art #', Strings.toString(tokenId), '","image":"', svgUri, '"}')); string memory jsonUri = string(abi.encodePacked("data:application/json;base64,", json)); return jsonUri; } function layerCount() public view returns (uint256) { return _layers.length; } function historicalImageAt(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "Query for nonexistent token"); return _encodeSvgUriAtTokenId(tokenId); } function creatorAt(uint256 tokenId) public view returns (address) { require(_exists(tokenId), "Query for nonexistent token"); return _tokenMetadata[tokenId].creator; } function timestampAt(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId), "Query for nonexistent token"); return _tokenMetadata[tokenId].timestamp; } function setBasePrice(uint256 updatedBasePrice) public onlyOwner { basePrice = updatedBasePrice; } function _encodeSvgUriAtTokenId(uint256 tokenId) private view returns (string memory) { return string(abi.encodePacked('data:image/svg+xml;base64,', Base64.encode(_encodeSvgAtTokenId(tokenId)))); } function _encodeSvgAtTokenId(uint256 tokenId) private view returns (bytes memory) { bytes memory svg = '<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">'; uint layerIndex = 0; for (layerIndex = 0 ; layerIndex < tokenId+1; layerIndex++) { svg = abi.encodePacked(svg, '<g>', _layers[layerIndex], '</g>'); } svg = abi.encodePacked(svg, '</svg>'); return svg; } function _validateLayer(bytes memory layer) public pure { ValidationStackFrame[] memory stack = new ValidationStackFrame[](10); uint16 index = 0; stack[0] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_OPEN_TAG_OPEN_BRACKET, index: 0}); for (uint i=0;i<layer.length;i++) { if (stack[index].state == ValidationState.LOOKING_FOR_OPEN_TAG_OPEN_BRACKET) { require(layer[i] == 0x3c, "Expecting '<'"); require(index + 1 < stack.length, "Stack space exceeded"); stack[++index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET, index: i+1}); } else if (stack[index].state == ValidationState.LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET) { if (layer[i] == 0x2f) { // '/' stack[index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET_EXCLUSIVE, index: i}); } else if (layer[i] == 0x22) { // '"' require(index + 1 < stack.length, "Stack space exceeded"); stack[++index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_CLOSE_QUOTE, index: i}); } else if (layer[i] == 0x3e) { // '>' stack[index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_CLOSE_TAG_OPEN_BRACKET, index: stack[index].index}); } else { require((layer[i] >= 0x30 && layer[i] <= 0x39) || (layer[i] >= 0x41 && layer[i] <= 0x7a) || (layer[i] == 0x3d) || (layer[i] == 0x20) || (layer[i] == 0x2d), string(abi.encodePacked("Expecting '0-9', 'a-zA-Z', '=', '-', or ' ' but got: ", layer[i]))); } } else if (stack[index].state == ValidationState.LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET_EXCLUSIVE) { require(layer[i] == 0x3e, "Expecting '>'"); index--; } else if (stack[index].state == ValidationState.LOOKING_FOR_CLOSE_TAG_OPEN_BRACKET) { require(layer[i] == 0x3c, "Expecting '<'"); stack[index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_CLOSE_TAG_SLASH, index: stack[index].index}); } else if (stack[index].state == ValidationState.LOOKING_FOR_CLOSE_TAG_SLASH) { if (layer[i] == 0x2f) { // '/' stack[index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_CLOSE_TAG_CLOSE_BRACKET, index: i + 1 - stack[index].index}); } else { require((layer[i] >= 0x41 && layer[i] <= 0x7a), "Expecting a-zA-Z"); require(index + 1 < stack.length, "Stack space exceeded"); stack[index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_CLOSE_TAG_OPEN_BRACKET, index: stack[index].index}); stack[++index] = ValidationStackFrame({state: ValidationState.LOOKING_FOR_OPEN_TAG_CLOSE_BRACKET, index: i}); } } else if (stack[index].state == ValidationState.LOOKING_FOR_CLOSE_TAG_CLOSE_BRACKET) { if (layer[i] == 0x3e) { // '>' index--; } else { require(layer[i] == layer[i - stack[index].index], string(abi.encodePacked("Expecting a-zA-Z to match: ", layer[i - stack[index].index]))); } } else if (stack[index].state == ValidationState.LOOKING_FOR_CLOSE_QUOTE) { if (layer[i] == 0x22) { // '"' index--; } else { require((layer[i] >= 0x20 && layer[i] <= 0x7e), string(abi.encodePacked("Expecting ascii 0x20-0x7e, but got: ", layer[i]))); } } } require(index == 0, "Invalid layer, ended with non-zero index"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"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":[{"internalType":"bytes","name":"layer","type":"bytes"}],"name":"_validateLayer","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"balanceOfToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"basePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"creatorAt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPriceToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"historicalImageAt","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"layerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"layer","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"updatedBasePrice","type":"uint256"}],"name":"setBasePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"timestampAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFunded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200399e3803806200399e83398101604081905262000034916200023a565b8151829082906200004d906000906020850190620000e9565b50805162000063906001906020840190620000e9565b505050620000806200007a6200009360201b60201c565b62000097565b5050665543df729c0000600755620002f4565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000f790620002a1565b90600052602060002090601f0160209004810192826200011b576000855562000166565b82601f106200013657805160ff191683800117855562000166565b8280016001018555821562000166579182015b828111156200016657825182559160200191906001019062000149565b506200017492915062000178565b5090565b5b8082111562000174576000815560010162000179565b600082601f830112620001a0578081fd5b81516001600160401b0380821115620001bd57620001bd620002de565b6040516020601f8401601f1916820181018381118382101715620001e557620001e5620002de565b6040528382528584018101871015620001fc578485fd5b8492505b838310156200021f578583018101518284018201529182019162000200565b838311156200023057848185840101525b5095945050505050565b600080604083850312156200024d578182fd5b82516001600160401b038082111562000264578384fd5b62000272868387016200018f565b9350602085015191508082111562000288578283fd5b5062000297858286016200018f565b9150509250929050565b600281046001821680620002b657607f821691505b60208210811415620002d857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61369a80620003046000396000f3fe6080604052600436106101b75760003560e01c806395d89b41116100ec578063c71a7d671161008a578063de4b326211610064578063de4b326214610496578063e985e9c5146104b6578063efd32692146104d6578063f2fde38b146104f6576101b7565b8063c71a7d671461044c578063c7876ea414610461578063c87b56dd14610476576101b7565b8063a5929815116100c6578063a5929815146103d7578063ad044f49146103f7578063ae198eb41461040c578063b88d4fde1461042c576101b7565b806395d89b41146103825780639fa5819014610397578063a22cb465146103b7576101b7565b806356e7f6c71161015957806370a082311161013357806370a0823114610325578063715018a6146103455780637ba0e2e71461035a5780638da5cb5b1461036d576101b7565b806356e7f6c7146102c35780636352211e146102e557806364d265df14610305576101b7565b8063095ea7b311610195578063095ea7b31461024157806323b872dd1461026357806342842e0e14610283578063441a3e70146102a3576101b7565b806301ffc9a7146101bc57806306fdde03146101f2578063081812fc14610214575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004612811565b610516565b6040516101e99190612cb4565b60405180910390f35b3480156101fe57600080fd5b50610207610590565b6040516101e99190612cbf565b34801561022057600080fd5b5061023461022f36600461287c565b610622565b6040516101e99190612c64565b34801561024d57600080fd5b5061026161025c3660046127e8565b61066e565b005b34801561026f57600080fd5b5061026161027e36600461270d565b610706565b34801561028f57600080fd5b5061026161029e36600461270d565b61073e565b3480156102af57600080fd5b506102616102be366004612894565b610759565b3480156102cf57600080fd5b506102d8610856565b6040516101e9919061341b565b3480156102f157600080fd5b5061023461030036600461287c565b61085c565b34801561031157600080fd5b50610261610320366004612849565b610891565b34801561033157600080fd5b506102d86103403660046126c1565b611663565b34801561035157600080fd5b506102616116a7565b6102d8610368366004612849565b6116f2565b34801561037957600080fd5b506102346117dd565b34801561038e57600080fd5b506102076117ec565b3480156103a357600080fd5b506102076103b236600461287c565b6117fb565b3480156103c357600080fd5b506102616103d23660046127ae565b61182b565b3480156103e357600080fd5b506102346103f236600461287c565b6118f9565b34801561040357600080fd5b506102d861193c565b34801561041857600080fd5b506102d861042736600461287c565b611981565b34801561043857600080fd5b50610261610447366004612748565b6119be565b34801561045857600080fd5b506102d86119fd565b34801561046d57600080fd5b506102d8611a2c565b34801561048257600080fd5b5061020761049136600461287c565b611a32565b3480156104a257600080fd5b506102616104b136600461287c565b611ad8565b3480156104c257600080fd5b506101dc6104d13660046126db565b611b1c565b3480156104e257600080fd5b506102d86104f136600461287c565b611b4a565b34801561050257600080fd5b506102616105113660046126c1565b611be8565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061057957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610588575061058882611c59565b90505b919050565b60606000805461059f90613502565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90613502565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b600061062d82611c8b565b6106525760405162461bcd60e51b81526004016106499061315d565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106798261085c565b9050806001600160a01b0316836001600160a01b031614156106ad5760405162461bcd60e51b815260040161064990613298565b806001600160a01b03166106bf611ca8565b6001600160a01b031614806106db57506106db816104d1611ca8565b6106f75760405162461bcd60e51b815260040161064990612fda565b6107018383611cac565b505050565b610717610711611ca8565b82611d1a565b6107335760405162461bcd60e51b815260040161064990613389565b610701838383611d9f565b610701838383604051806020016040528060008152506119be565b600061076483611b4a565b9050818110156107865760405162461bcd60e51b815260040161064990612f7d565b336107908461085c565b6001600160a01b0316146107b65760405162461bcd60e51b815260040161064990612d40565b6000838152600960205260408120600381018054919285926107d9908490613456565b9091555050600084815260096020526040808220835481546001600160a01b0319166001600160a01b03909116178155600180850154908201556002808501549082015560038085015491015551339185156108fc02918691818181858888f1935050505015801561084f573d6000803e3d6000fd5b5050505050565b60085490565b6000818152600260205260408120546001600160a01b0316806105885760405162461bcd60e51b815260040161064990613094565b60408051600a8082526101608201909252600091816020015b6108b2612579565b8152602001906001900390816108aa575050604080518082019091529091506000908082815260200160008152508260008151811061090157634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b8351811015611640576000838361ffff168151811061093e57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151600681111561096957634e487b7160e01b600052602160045260246000fd5b1415610a4d5783818151811061098f57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600f60fa1b146109c15760405162461bcd60e51b815260040161064990612cd2565b82516109ce836001613430565b61ffff16106109ef5760405162461bcd60e51b815260040161064990612f46565b604080518082019091528060018152602001610a0c836001613456565b905283610a188461353d565b93508361ffff1681518110610a3d57634e487b7160e01b600052603260045260246000fd5b602002602001018190525061162e565b6001838361ffff1681518110610a7357634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516006811115610a9e57634e487b7160e01b600052602160045260246000fd5b1415610ec657838181518110610ac457634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602f60f81b1415610b295760408051808201909152806002815260200182815250838361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250610ec1565b838181518110610b4957634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601160f91b1415610bd6578251610b71836001613430565b61ffff1610610b925760405162461bcd60e51b815260040161064990612f46565b60408051808201909152806006815260200182905283610bb18461353d565b93508361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b838181518110610bf657634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60f91b1415610c7a57604080518082019091528060038152602001848461ffff1681518110610c4757634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815250838361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b603060f81b848281518110610c9f57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191610801590610cee5750603960f81b848281518110610cdc57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b80610d685750604160f81b848281518110610d1957634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191610801590610d685750607a60f81b848281518110610d5657634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b80610da55750838181518110610d8e57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916603d60f81b145b80610dfe5750838181518110610dcb57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b0319167f2000000000000000000000000000000000000000000000000000000000000000145b80610e575750838181518110610e2457634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b0319167f2d00000000000000000000000000000000000000000000000000000000000000145b848281518110610e7757634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001610e929190612add565b60405160208183030381529060405290610ebf5760405162461bcd60e51b81526004016106499190612cbf565b505b61162e565b6002838361ffff1681518110610eec57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516006811115610f1757634e487b7160e01b600052602160045260246000fd5b1415610f8157838181518110610f3d57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60f91b14610f6f5760405162461bcd60e51b8152600401610649906130f1565b81610f79816134e4565b92505061162e565b6003838361ffff1681518110610fa757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516006811115610fd257634e487b7160e01b600052602160045260246000fd5b141561109357838181518110610ff857634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600f60fa1b1461102a5760405162461bcd60e51b815260040161064990612cd2565b604080518082019091528060048152602001848461ffff168151811061106057634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815250838361ffff1681518110610a3d57634e487b7160e01b600052603260045260246000fd5b6004838361ffff16815181106110b957634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160068111156110e457634e487b7160e01b600052602160045260246000fd5b14156112f65783818151811061110a57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602f60f81b14156111a557604080518082019091528060058152602001848461ffff168151811061115b57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001518360016111749190613456565b61117e91906134a1565b815250838361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b604160f81b8482815181106111ca57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916108015906112195750607a60f81b84828151811061120757634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b6112355760405162461bcd60e51b815260040161064990613352565b8251611242836001613430565b61ffff16106112635760405162461bcd60e51b815260040161064990612f46565b604080518082019091528060038152602001848461ffff168151811061129957634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815250838361ffff16815181106112cc57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260408051808201909152806001815260200182905283610a188461353d565b6005838361ffff168151811061131c57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151600681111561134757634e487b7160e01b600052602160045260246000fd5b14156114b45783818151811061136d57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60f91b141561139a5781611392816134e4565b925050610ec1565b83838361ffff16815181106113bf57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151826113d691906134a1565b815181106113f457634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b6001600160f81b03191684828151811061142957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b6001600160f81b0319161484848461ffff168151811061146457634e487b7160e01b600052603260045260246000fd5b6020026020010151602001518361147b91906134a1565b8151811061149957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001610e929190612c29565b6006838361ffff16815181106114da57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151600681111561150557634e487b7160e01b600052602160045260246000fd5b141561162e5783818151811061152b57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601160f91b14156115505781610f79816134e4565b602060f81b84828151811061157557634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916108015906115c45750607e60f81b8482815181106115b257634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b8482815181106115e457634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b6040516020016115ff9190612b83565b6040516020818303038152906040529061162c5760405162461bcd60e51b81526004016106499190612cbf565b505b806116388161355f565b91505061090f565b5061ffff8116156107015760405162461bcd60e51b8152600401610649906132f5565b60006001600160a01b03821661168b5760405162461bcd60e51b815260040161064990613037565b506001600160a01b031660009081526003602052604090205490565b6116af611ca8565b6001600160a01b03166116c06117dd565b6001600160a01b0316146116e65760405162461bcd60e51b8152600401610649906131a9565b6116f06000611ecc565b565b6000346116fd6119fd565b111561171b5760405162461bcd60e51b8152600401610649906133e6565b61172482610891565b600880546001810182556000919091528251611768907ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee38301906020860190612590565b506117733382611f1e565b6040805160808101825233815242602080830191825234838501908152600060608501818152878252600990935294909420925183546001600160a01b0319166001600160a01b039091161783559051600183015591516002820155905160039091015592915050565b6006546001600160a01b031690565b60606001805461059f90613502565b606061180682611c8b565b6118225760405162461bcd60e51b815260040161064990612d09565b61058882611f3c565b611833611ca8565b6001600160a01b0316826001600160a01b031614156118645760405162461bcd60e51b815260040161064990612ec3565b8060056000611871611ca8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556118b5611ca8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118ed9190612cb4565b60405180910390a35050565b600061190482611c8b565b6119205760405162461bcd60e51b815260040161064990612d09565b506000908152600960205260409020546001600160a01b031690565b600080805b60085481101561197b576000818152600960205260409020600201546119679083613456565b9150806119738161355f565b915050611941565b50905090565b600061198c82611c8b565b6119a85760405162461bcd60e51b815260040161064990612d09565b5060009081526009602052604090206001015490565b6119cf6119c9611ca8565b83611d1a565b6119eb5760405162461bcd60e51b815260040161064990613389565b6119f784848484611f75565b50505050565b600854600090611a0f90600a9061346e565b611a1a906001613456565b600754611a279190613482565b905090565b60075481565b6060611a3d82611c8b565b611a595760405162461bcd60e51b81526004016106499061323b565b600854600090611a7490611a6f906001906134a1565b611f3c565b90506000611aaa611a8485611fa8565b83604051602001611a96929190612a32565b6040516020818303038152906040526120df565b9050600081604051602001611abf9190612b3e565b60408051808303601f1901815291905295945050505050565b611ae0611ca8565b6001600160a01b0316611af16117dd565b6001600160a01b031614611b175760405162461bcd60e51b8152600401610649906131a9565b600755565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000611b5582611c8b565b611b715760405162461bcd60e51b815260040161064990612d09565b6000825b600854811015611bc457611b8a816001613456565b600082815260096020526040902060020154611ba6919061346e565b611bb09083613456565b915080611bbc8161355f565b915050611b75565b50600083815260096020526040902060030154611be190826134a1565b9392505050565b611bf0611ca8565b6001600160a01b0316611c016117dd565b6001600160a01b031614611c275760405162461bcd60e51b8152600401610649906131a9565b6001600160a01b038116611c4d5760405162461bcd60e51b815260040161064990612dd2565b611c5681611ecc565b50565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ce18261085c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d2582611c8b565b611d415760405162461bcd60e51b815260040161064990612efa565b6000611d4c8361085c565b9050806001600160a01b0316846001600160a01b03161480611d875750836001600160a01b0316611d7c84610622565b6001600160a01b0316145b80611d975750611d978185611b1c565b949350505050565b826001600160a01b0316611db28261085c565b6001600160a01b031614611dd85760405162461bcd60e51b8152600401610649906131de565b6001600160a01b038216611dfe5760405162461bcd60e51b815260040161064990612e66565b611e09838383610701565b611e14600082611cac565b6001600160a01b0383166000908152600360205260408120805460019290611e3d9084906134a1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e6b908490613456565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f3882826040518060200160405280600081525061226f565b5050565b6060611f4f611f4a836122a2565b6120df565b604051602001611f5f9190612be4565b6040516020818303038152906040529050919050565b611f80848484611d9f565b611f8c84848484612360565b6119f75760405162461bcd60e51b815260040161064990612d75565b606081611fe9575060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015261058b565b8160005b81156120135780611ffd8161355f565b915061200c9050600a8361346e565b9150611fed565b60008167ffffffffffffffff81111561203c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612066576020820181803683370190505b5090505b8415611d975761207b6001836134a1565b9150612088600a8661357a565b612093906030613456565b60f81b8183815181106120b657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506120d8600a8661346e565b945061206a565b6060815160001415612100575060408051602081019091526000815261058b565b60006040518060600160405280604081526020016135e7604091399050600060038451600261212f9190613456565b612139919061346e565b612144906004613482565b90506000612153826020613456565b67ffffffffffffffff81111561217957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121a3576020820181803683370190505b509050818152600183018586518101602084015b8183101561220f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016121b7565b600389510660018114612229576002811461225557612261565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612261565b603d60f81b6000198301525b509398975050505050505050565b6122798383612494565b6122866000848484612360565b6107015760405162461bcd60e51b815260040161064990612d75565b606060006040518060600160405280603e8152602001613627603e9139905060005b6122cf846001613456565b8110156123375781600882815481106122f857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160405160200161231392919061290a565b6040516020818303038152906040529150808061232f9061355f565b9150506122c4565b8160405160200161234891906129f1565b60408051808303601f19018152919052949350505050565b6000612374846001600160a01b0316612573565b1561248957836001600160a01b031663150b7a02612390611ca8565b8786866040518563ffffffff1660e01b81526004016123b29493929190612c78565b602060405180830381600087803b1580156123cc57600080fd5b505af19250505080156123fc575060408051601f3d908101601f191682019092526123f99181019061282d565b60015b612456573d80801561242a576040519150601f19603f3d011682016040523d82523d6000602084013e61242f565b606091505b50805161244e5760405162461bcd60e51b815260040161064990612d75565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d97565b506001949350505050565b6001600160a01b0382166124ba5760405162461bcd60e51b815260040161064990613128565b6124c381611c8b565b156124e05760405162461bcd60e51b815260040161064990612e2f565b6124ec60008383610701565b6001600160a01b0382166000908152600360205260408120805460019290612515908490613456565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b604080518082019091526000808252602082015290565b82805461259c90613502565b90600052602060002090601f0160209004810192826125be5760008555612604565b82601f106125d757805160ff1916838001178555612604565b82800160010185558215612604579182015b828111156126045782518255916020019190600101906125e9565b50612610929150612614565b5090565b5b808211156126105760008155600101612615565b80356001600160a01b038116811461058b57600080fd5b600082601f830112612650578081fd5b813567ffffffffffffffff8082111561266b5761266b6135ba565b604051601f8301601f19168101602001828111828210171561268f5761268f6135ba565b6040528281528483016020018610156126a6578384fd5b82602086016020830137918201602001929092529392505050565b6000602082840312156126d2578081fd5b611be182612629565b600080604083850312156126ed578081fd5b6126f683612629565b915061270460208401612629565b90509250929050565b600080600060608486031215612721578081fd5b61272a84612629565b925061273860208501612629565b9150604084013590509250925092565b6000806000806080858703121561275d578081fd5b61276685612629565b935061277460208601612629565b925060408501359150606085013567ffffffffffffffff811115612796578182fd5b6127a287828801612640565b91505092959194509250565b600080604083850312156127c0578182fd5b6127c983612629565b9150602083013580151581146127dd578182fd5b809150509250929050565b600080604083850312156127fa578182fd5b61280383612629565b946020939093013593505050565b600060208284031215612822578081fd5b8135611be1816135d0565b60006020828403121561283e578081fd5b8151611be1816135d0565b60006020828403121561285a578081fd5b813567ffffffffffffffff811115612870578182fd5b611d9784828501612640565b60006020828403121561288d578081fd5b5035919050565b600080604083850312156128a6578182fd5b50508035926020909101359150565b600081518084526128cd8160208601602086016134b8565b601f01601f19169290920160200192915050565b7f3c2f673e00000000000000000000000000000000000000000000000000000000815260040190565b60008351602061291d82858389016134b8565b7f3c673e0000000000000000000000000000000000000000000000000000000000918401918252845460039084906002810460018083168061296057607f831692505b86831081141561297e57634e487b7160e01b89526022600452602489fd5b80801561299257600181146129a7576129d7565b60ff19851689880152838901870195506129d7565b6129b08c613424565b8a5b858110156129cd5781548b82018a01529084019089016129b2565b505086848a010195505b50505050506129e5816128e1565b98975050505050505050565b60008251612a038184602087016134b8565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000920191825250600601919050565b60007f7b226e616d65223a224175746f6e6f6d6f75732041727420230000000000000082528351612a6a8160198501602088016134b8565b7f222c22696d616765223a220000000000000000000000000000000000000000006019918401918201528351612aa78160248401602088016134b8565b7f227d00000000000000000000000000000000000000000000000000000000000060249290910191820152602601949350505050565b7f457870656374696e672027302d39272c2027612d7a412d5a272c20273d272c2081527f272d272c206f72202720272062757420676f743a20000000000000000000000060208201526001600160f81b031991909116603582015260360190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612b7681601d8501602087016134b8565b91909101601d0192915050565b7f457870656374696e6720617363696920307832302d307837652c20627574206781527f6f743a200000000000000000000000000000000000000000000000000000000060208201526001600160f81b031991909116602482015260250190565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000082528251612c1c81601a8501602087016134b8565b91909101601a0192915050565b7f457870656374696e6720612d7a412d5a20746f206d617463683a20000000000081526001600160f81b031991909116601b820152601c0190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612caa60808301846128b5565b9695505050505050565b901515815260200190565b600060208252611be160208301846128b5565b6020808252600d908201527f457870656374696e6720273c2700000000000000000000000000000000000000604082015260600190565b6020808252601b908201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e0000000000604082015260600190565b6020808252818101527f556e617574686f72697a656420617474656d707420746f207769746864726177604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526014908201527f537461636b207370616365206578636565646564000000000000000000000000604082015260600190565b60208082526025908201527f417474656d707420746f207769746864726177206d6f7265207468616e20626160408201527f6c616e6365000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252600d908201527f457870656374696e6720273e2700000000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f496e76616c6964206c617965722c20656e6465642077697468206e6f6e2d7a6560408201527f726f20696e646578000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f457870656374696e6720612d7a412d5a00000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252818101527f4574682076616c75652073656e74206973206e6f742073756666696369656e74604082015260600190565b90815260200190565b60009081526020902090565b600061ffff80831681851680830382111561344d5761344d61358e565b01949350505050565b600082198211156134695761346961358e565b500190565b60008261347d5761347d6135a4565b500490565b600081600019048311821515161561349c5761349c61358e565b500290565b6000828210156134b3576134b361358e565b500390565b60005b838110156134d35781810151838201526020016134bb565b838111156119f75750506000910152565b600061ffff8216806134f8576134f861358e565b6000190192915050565b60028104600182168061351657607f821691505b6020821081141561353757634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156135555761355561358e565b6001019392505050565b60006000198214156135735761357361358e565b5060010190565b600082613589576135896135a4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c5657600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076696577426f783d2230203020353030203530302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223ea264697066735822122056481b716f95f7f973f134c0698b1233a76e86a9d2bf2aaaf15531bedd4e217164736f6c6343000800003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d4175746f6e6f6d6f75734172740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044141525400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101b75760003560e01c806395d89b41116100ec578063c71a7d671161008a578063de4b326211610064578063de4b326214610496578063e985e9c5146104b6578063efd32692146104d6578063f2fde38b146104f6576101b7565b8063c71a7d671461044c578063c7876ea414610461578063c87b56dd14610476576101b7565b8063a5929815116100c6578063a5929815146103d7578063ad044f49146103f7578063ae198eb41461040c578063b88d4fde1461042c576101b7565b806395d89b41146103825780639fa5819014610397578063a22cb465146103b7576101b7565b806356e7f6c71161015957806370a082311161013357806370a0823114610325578063715018a6146103455780637ba0e2e71461035a5780638da5cb5b1461036d576101b7565b806356e7f6c7146102c35780636352211e146102e557806364d265df14610305576101b7565b8063095ea7b311610195578063095ea7b31461024157806323b872dd1461026357806342842e0e14610283578063441a3e70146102a3576101b7565b806301ffc9a7146101bc57806306fdde03146101f2578063081812fc14610214575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004612811565b610516565b6040516101e99190612cb4565b60405180910390f35b3480156101fe57600080fd5b50610207610590565b6040516101e99190612cbf565b34801561022057600080fd5b5061023461022f36600461287c565b610622565b6040516101e99190612c64565b34801561024d57600080fd5b5061026161025c3660046127e8565b61066e565b005b34801561026f57600080fd5b5061026161027e36600461270d565b610706565b34801561028f57600080fd5b5061026161029e36600461270d565b61073e565b3480156102af57600080fd5b506102616102be366004612894565b610759565b3480156102cf57600080fd5b506102d8610856565b6040516101e9919061341b565b3480156102f157600080fd5b5061023461030036600461287c565b61085c565b34801561031157600080fd5b50610261610320366004612849565b610891565b34801561033157600080fd5b506102d86103403660046126c1565b611663565b34801561035157600080fd5b506102616116a7565b6102d8610368366004612849565b6116f2565b34801561037957600080fd5b506102346117dd565b34801561038e57600080fd5b506102076117ec565b3480156103a357600080fd5b506102076103b236600461287c565b6117fb565b3480156103c357600080fd5b506102616103d23660046127ae565b61182b565b3480156103e357600080fd5b506102346103f236600461287c565b6118f9565b34801561040357600080fd5b506102d861193c565b34801561041857600080fd5b506102d861042736600461287c565b611981565b34801561043857600080fd5b50610261610447366004612748565b6119be565b34801561045857600080fd5b506102d86119fd565b34801561046d57600080fd5b506102d8611a2c565b34801561048257600080fd5b5061020761049136600461287c565b611a32565b3480156104a257600080fd5b506102616104b136600461287c565b611ad8565b3480156104c257600080fd5b506101dc6104d13660046126db565b611b1c565b3480156104e257600080fd5b506102d86104f136600461287c565b611b4a565b34801561050257600080fd5b506102616105113660046126c1565b611be8565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061057957506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610588575061058882611c59565b90505b919050565b60606000805461059f90613502565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb90613502565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b600061062d82611c8b565b6106525760405162461bcd60e51b81526004016106499061315d565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106798261085c565b9050806001600160a01b0316836001600160a01b031614156106ad5760405162461bcd60e51b815260040161064990613298565b806001600160a01b03166106bf611ca8565b6001600160a01b031614806106db57506106db816104d1611ca8565b6106f75760405162461bcd60e51b815260040161064990612fda565b6107018383611cac565b505050565b610717610711611ca8565b82611d1a565b6107335760405162461bcd60e51b815260040161064990613389565b610701838383611d9f565b610701838383604051806020016040528060008152506119be565b600061076483611b4a565b9050818110156107865760405162461bcd60e51b815260040161064990612f7d565b336107908461085c565b6001600160a01b0316146107b65760405162461bcd60e51b815260040161064990612d40565b6000838152600960205260408120600381018054919285926107d9908490613456565b9091555050600084815260096020526040808220835481546001600160a01b0319166001600160a01b03909116178155600180850154908201556002808501549082015560038085015491015551339185156108fc02918691818181858888f1935050505015801561084f573d6000803e3d6000fd5b5050505050565b60085490565b6000818152600260205260408120546001600160a01b0316806105885760405162461bcd60e51b815260040161064990613094565b60408051600a8082526101608201909252600091816020015b6108b2612579565b8152602001906001900390816108aa575050604080518082019091529091506000908082815260200160008152508260008151811061090157634e487b7160e01b600052603260045260246000fd5b602002602001018190525060005b8351811015611640576000838361ffff168151811061093e57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151600681111561096957634e487b7160e01b600052602160045260246000fd5b1415610a4d5783818151811061098f57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600f60fa1b146109c15760405162461bcd60e51b815260040161064990612cd2565b82516109ce836001613430565b61ffff16106109ef5760405162461bcd60e51b815260040161064990612f46565b604080518082019091528060018152602001610a0c836001613456565b905283610a188461353d565b93508361ffff1681518110610a3d57634e487b7160e01b600052603260045260246000fd5b602002602001018190525061162e565b6001838361ffff1681518110610a7357634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516006811115610a9e57634e487b7160e01b600052602160045260246000fd5b1415610ec657838181518110610ac457634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602f60f81b1415610b295760408051808201909152806002815260200182815250838361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250610ec1565b838181518110610b4957634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601160f91b1415610bd6578251610b71836001613430565b61ffff1610610b925760405162461bcd60e51b815260040161064990612f46565b60408051808201909152806006815260200182905283610bb18461353d565b93508361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b838181518110610bf657634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60f91b1415610c7a57604080518082019091528060038152602001848461ffff1681518110610c4757634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815250838361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b603060f81b848281518110610c9f57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191610801590610cee5750603960f81b848281518110610cdc57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b80610d685750604160f81b848281518110610d1957634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191610801590610d685750607a60f81b848281518110610d5657634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b80610da55750838181518110610d8e57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916603d60f81b145b80610dfe5750838181518110610dcb57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b0319167f2000000000000000000000000000000000000000000000000000000000000000145b80610e575750838181518110610e2457634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b0319167f2d00000000000000000000000000000000000000000000000000000000000000145b848281518110610e7757634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001610e929190612add565b60405160208183030381529060405290610ebf5760405162461bcd60e51b81526004016106499190612cbf565b505b61162e565b6002838361ffff1681518110610eec57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516006811115610f1757634e487b7160e01b600052602160045260246000fd5b1415610f8157838181518110610f3d57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60f91b14610f6f5760405162461bcd60e51b8152600401610649906130f1565b81610f79816134e4565b92505061162e565b6003838361ffff1681518110610fa757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516006811115610fd257634e487b7160e01b600052602160045260246000fd5b141561109357838181518110610ff857634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916600f60fa1b1461102a5760405162461bcd60e51b815260040161064990612cd2565b604080518082019091528060048152602001848461ffff168151811061106057634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815250838361ffff1681518110610a3d57634e487b7160e01b600052603260045260246000fd5b6004838361ffff16815181106110b957634e487b7160e01b600052603260045260246000fd5b60200260200101516000015160068111156110e457634e487b7160e01b600052602160045260246000fd5b14156112f65783818151811061110a57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602f60f81b14156111a557604080518082019091528060058152602001848461ffff168151811061115b57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001518360016111749190613456565b61117e91906134a1565b815250838361ffff1681518110610b1957634e487b7160e01b600052603260045260246000fd5b604160f81b8482815181106111ca57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916108015906112195750607a60f81b84828151811061120757634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b6112355760405162461bcd60e51b815260040161064990613352565b8251611242836001613430565b61ffff16106112635760405162461bcd60e51b815260040161064990612f46565b604080518082019091528060038152602001848461ffff168151811061129957634e487b7160e01b600052603260045260246000fd5b602002602001015160200151815250838361ffff16815181106112cc57634e487b7160e01b600052603260045260246000fd5b602090810291909101015260408051808201909152806001815260200182905283610a188461353d565b6005838361ffff168151811061131c57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151600681111561134757634e487b7160e01b600052602160045260246000fd5b14156114b45783818151811061136d57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60f91b141561139a5781611392816134e4565b925050610ec1565b83838361ffff16815181106113bf57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151826113d691906134a1565b815181106113f457634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b6001600160f81b03191684828151811061142957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b6001600160f81b0319161484848461ffff168151811061146457634e487b7160e01b600052603260045260246000fd5b6020026020010151602001518361147b91906134a1565b8151811061149957634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001610e929190612c29565b6006838361ffff16815181106114da57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151600681111561150557634e487b7160e01b600052602160045260246000fd5b141561162e5783818151811061152b57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601160f91b14156115505781610f79816134e4565b602060f81b84828151811061157557634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916108015906115c45750607e60f81b8482815181106115b257634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191611155b8482815181106115e457634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b6040516020016115ff9190612b83565b6040516020818303038152906040529061162c5760405162461bcd60e51b81526004016106499190612cbf565b505b806116388161355f565b91505061090f565b5061ffff8116156107015760405162461bcd60e51b8152600401610649906132f5565b60006001600160a01b03821661168b5760405162461bcd60e51b815260040161064990613037565b506001600160a01b031660009081526003602052604090205490565b6116af611ca8565b6001600160a01b03166116c06117dd565b6001600160a01b0316146116e65760405162461bcd60e51b8152600401610649906131a9565b6116f06000611ecc565b565b6000346116fd6119fd565b111561171b5760405162461bcd60e51b8152600401610649906133e6565b61172482610891565b600880546001810182556000919091528251611768907ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee38301906020860190612590565b506117733382611f1e565b6040805160808101825233815242602080830191825234838501908152600060608501818152878252600990935294909420925183546001600160a01b0319166001600160a01b039091161783559051600183015591516002820155905160039091015592915050565b6006546001600160a01b031690565b60606001805461059f90613502565b606061180682611c8b565b6118225760405162461bcd60e51b815260040161064990612d09565b61058882611f3c565b611833611ca8565b6001600160a01b0316826001600160a01b031614156118645760405162461bcd60e51b815260040161064990612ec3565b8060056000611871611ca8565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556118b5611ca8565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118ed9190612cb4565b60405180910390a35050565b600061190482611c8b565b6119205760405162461bcd60e51b815260040161064990612d09565b506000908152600960205260409020546001600160a01b031690565b600080805b60085481101561197b576000818152600960205260409020600201546119679083613456565b9150806119738161355f565b915050611941565b50905090565b600061198c82611c8b565b6119a85760405162461bcd60e51b815260040161064990612d09565b5060009081526009602052604090206001015490565b6119cf6119c9611ca8565b83611d1a565b6119eb5760405162461bcd60e51b815260040161064990613389565b6119f784848484611f75565b50505050565b600854600090611a0f90600a9061346e565b611a1a906001613456565b600754611a279190613482565b905090565b60075481565b6060611a3d82611c8b565b611a595760405162461bcd60e51b81526004016106499061323b565b600854600090611a7490611a6f906001906134a1565b611f3c565b90506000611aaa611a8485611fa8565b83604051602001611a96929190612a32565b6040516020818303038152906040526120df565b9050600081604051602001611abf9190612b3e565b60408051808303601f1901815291905295945050505050565b611ae0611ca8565b6001600160a01b0316611af16117dd565b6001600160a01b031614611b175760405162461bcd60e51b8152600401610649906131a9565b600755565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000611b5582611c8b565b611b715760405162461bcd60e51b815260040161064990612d09565b6000825b600854811015611bc457611b8a816001613456565b600082815260096020526040902060020154611ba6919061346e565b611bb09083613456565b915080611bbc8161355f565b915050611b75565b50600083815260096020526040902060030154611be190826134a1565b9392505050565b611bf0611ca8565b6001600160a01b0316611c016117dd565b6001600160a01b031614611c275760405162461bcd60e51b8152600401610649906131a9565b6001600160a01b038116611c4d5760405162461bcd60e51b815260040161064990612dd2565b611c5681611ecc565b50565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ce18261085c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d2582611c8b565b611d415760405162461bcd60e51b815260040161064990612efa565b6000611d4c8361085c565b9050806001600160a01b0316846001600160a01b03161480611d875750836001600160a01b0316611d7c84610622565b6001600160a01b0316145b80611d975750611d978185611b1c565b949350505050565b826001600160a01b0316611db28261085c565b6001600160a01b031614611dd85760405162461bcd60e51b8152600401610649906131de565b6001600160a01b038216611dfe5760405162461bcd60e51b815260040161064990612e66565b611e09838383610701565b611e14600082611cac565b6001600160a01b0383166000908152600360205260408120805460019290611e3d9084906134a1565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e6b908490613456565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611f3882826040518060200160405280600081525061226f565b5050565b6060611f4f611f4a836122a2565b6120df565b604051602001611f5f9190612be4565b6040516020818303038152906040529050919050565b611f80848484611d9f565b611f8c84848484612360565b6119f75760405162461bcd60e51b815260040161064990612d75565b606081611fe9575060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015261058b565b8160005b81156120135780611ffd8161355f565b915061200c9050600a8361346e565b9150611fed565b60008167ffffffffffffffff81111561203c57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612066576020820181803683370190505b5090505b8415611d975761207b6001836134a1565b9150612088600a8661357a565b612093906030613456565b60f81b8183815181106120b657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506120d8600a8661346e565b945061206a565b6060815160001415612100575060408051602081019091526000815261058b565b60006040518060600160405280604081526020016135e7604091399050600060038451600261212f9190613456565b612139919061346e565b612144906004613482565b90506000612153826020613456565b67ffffffffffffffff81111561217957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121a3576020820181803683370190505b509050818152600183018586518101602084015b8183101561220f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016121b7565b600389510660018114612229576002811461225557612261565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612261565b603d60f81b6000198301525b509398975050505050505050565b6122798383612494565b6122866000848484612360565b6107015760405162461bcd60e51b815260040161064990612d75565b606060006040518060600160405280603e8152602001613627603e9139905060005b6122cf846001613456565b8110156123375781600882815481106122f857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160405160200161231392919061290a565b6040516020818303038152906040529150808061232f9061355f565b9150506122c4565b8160405160200161234891906129f1565b60408051808303601f19018152919052949350505050565b6000612374846001600160a01b0316612573565b1561248957836001600160a01b031663150b7a02612390611ca8565b8786866040518563ffffffff1660e01b81526004016123b29493929190612c78565b602060405180830381600087803b1580156123cc57600080fd5b505af19250505080156123fc575060408051601f3d908101601f191682019092526123f99181019061282d565b60015b612456573d80801561242a576040519150601f19603f3d011682016040523d82523d6000602084013e61242f565b606091505b50805161244e5760405162461bcd60e51b815260040161064990612d75565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d97565b506001949350505050565b6001600160a01b0382166124ba5760405162461bcd60e51b815260040161064990613128565b6124c381611c8b565b156124e05760405162461bcd60e51b815260040161064990612e2f565b6124ec60008383610701565b6001600160a01b0382166000908152600360205260408120805460019290612515908490613456565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b604080518082019091526000808252602082015290565b82805461259c90613502565b90600052602060002090601f0160209004810192826125be5760008555612604565b82601f106125d757805160ff1916838001178555612604565b82800160010185558215612604579182015b828111156126045782518255916020019190600101906125e9565b50612610929150612614565b5090565b5b808211156126105760008155600101612615565b80356001600160a01b038116811461058b57600080fd5b600082601f830112612650578081fd5b813567ffffffffffffffff8082111561266b5761266b6135ba565b604051601f8301601f19168101602001828111828210171561268f5761268f6135ba565b6040528281528483016020018610156126a6578384fd5b82602086016020830137918201602001929092529392505050565b6000602082840312156126d2578081fd5b611be182612629565b600080604083850312156126ed578081fd5b6126f683612629565b915061270460208401612629565b90509250929050565b600080600060608486031215612721578081fd5b61272a84612629565b925061273860208501612629565b9150604084013590509250925092565b6000806000806080858703121561275d578081fd5b61276685612629565b935061277460208601612629565b925060408501359150606085013567ffffffffffffffff811115612796578182fd5b6127a287828801612640565b91505092959194509250565b600080604083850312156127c0578182fd5b6127c983612629565b9150602083013580151581146127dd578182fd5b809150509250929050565b600080604083850312156127fa578182fd5b61280383612629565b946020939093013593505050565b600060208284031215612822578081fd5b8135611be1816135d0565b60006020828403121561283e578081fd5b8151611be1816135d0565b60006020828403121561285a578081fd5b813567ffffffffffffffff811115612870578182fd5b611d9784828501612640565b60006020828403121561288d578081fd5b5035919050565b600080604083850312156128a6578182fd5b50508035926020909101359150565b600081518084526128cd8160208601602086016134b8565b601f01601f19169290920160200192915050565b7f3c2f673e00000000000000000000000000000000000000000000000000000000815260040190565b60008351602061291d82858389016134b8565b7f3c673e0000000000000000000000000000000000000000000000000000000000918401918252845460039084906002810460018083168061296057607f831692505b86831081141561297e57634e487b7160e01b89526022600452602489fd5b80801561299257600181146129a7576129d7565b60ff19851689880152838901870195506129d7565b6129b08c613424565b8a5b858110156129cd5781548b82018a01529084019089016129b2565b505086848a010195505b50505050506129e5816128e1565b98975050505050505050565b60008251612a038184602087016134b8565b7f3c2f7376673e0000000000000000000000000000000000000000000000000000920191825250600601919050565b60007f7b226e616d65223a224175746f6e6f6d6f75732041727420230000000000000082528351612a6a8160198501602088016134b8565b7f222c22696d616765223a220000000000000000000000000000000000000000006019918401918201528351612aa78160248401602088016134b8565b7f227d00000000000000000000000000000000000000000000000000000000000060249290910191820152602601949350505050565b7f457870656374696e672027302d39272c2027612d7a412d5a272c20273d272c2081527f272d272c206f72202720272062757420676f743a20000000000000000000000060208201526001600160f81b031991909116603582015260360190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251612b7681601d8501602087016134b8565b91909101601d0192915050565b7f457870656374696e6720617363696920307832302d307837652c20627574206781527f6f743a200000000000000000000000000000000000000000000000000000000060208201526001600160f81b031991909116602482015260250190565b60007f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000082528251612c1c81601a8501602087016134b8565b91909101601a0192915050565b7f457870656374696e6720612d7a412d5a20746f206d617463683a20000000000081526001600160f81b031991909116601b820152601c0190565b6001600160a01b0391909116815260200190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612caa60808301846128b5565b9695505050505050565b901515815260200190565b600060208252611be160208301846128b5565b6020808252600d908201527f457870656374696e6720273c2700000000000000000000000000000000000000604082015260600190565b6020808252601b908201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e0000000000604082015260600190565b6020808252818101527f556e617574686f72697a656420617474656d707420746f207769746864726177604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526014908201527f537461636b207370616365206578636565646564000000000000000000000000604082015260600190565b60208082526025908201527f417474656d707420746f207769746864726177206d6f7265207468616e20626160408201527f6c616e6365000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252600d908201527f457870656374696e6720273e2700000000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f496e76616c6964206c617965722c20656e6465642077697468206e6f6e2d7a6560408201527f726f20696e646578000000000000000000000000000000000000000000000000606082015260800190565b60208082526010908201527f457870656374696e6720612d7a412d5a00000000000000000000000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252818101527f4574682076616c75652073656e74206973206e6f742073756666696369656e74604082015260600190565b90815260200190565b60009081526020902090565b600061ffff80831681851680830382111561344d5761344d61358e565b01949350505050565b600082198211156134695761346961358e565b500190565b60008261347d5761347d6135a4565b500490565b600081600019048311821515161561349c5761349c61358e565b500290565b6000828210156134b3576134b361358e565b500390565b60005b838110156134d35781810151838201526020016134bb565b838111156119f75750506000910152565b600061ffff8216806134f8576134f861358e565b6000190192915050565b60028104600182168061351657607f821691505b6020821081141561353757634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff808316818114156135555761355561358e565b6001019392505050565b60006000198214156135735761357361358e565b5060010190565b600082613589576135896135a4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114611c5657600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076696577426f783d2230203020353030203530302220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223ea264697066735822122056481b716f95f7f973f134c0698b1233a76e86a9d2bf2aaaf15531bedd4e217164736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d4175746f6e6f6d6f75734172740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044141525400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): AutonomousArt
Arg [1] : symbol (string): AART
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [3] : 4175746f6e6f6d6f757341727400000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4141525400000000000000000000000000000000000000000000000000000000
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.