NFT
Overview
TokenID
3
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Media
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 // Forked from https://github.com/ourzora/core @ 450cd154bfbb70f62e94050cc3f1560d58e0506a pragma solidity >=0.8.4; pragma experimental ABIEncoderV2; import { ERC721Burnable } from './ERC721Burnable.sol'; import { ERC721 } from './ERC721.sol'; import { EnumerableSet } from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol'; import { Counters } from '@openzeppelin/contracts/utils/Counters.sol'; import { SafeMath } from '@openzeppelin/contracts/utils/math/SafeMath.sol'; import { Math } from '@openzeppelin/contracts/utils/math/Math.sol'; import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import { ReentrancyGuard } from '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol'; import { Decimal } from './Decimal.sol'; import { IMedia } from './interfaces/IMedia.sol'; import { IMarket } from './interfaces/IMarket.sol'; import { IDrop } from './interfaces/IDrop.sol'; import { ILux } from './interfaces/ILux.sol'; import './interfaces/IMedia.sol'; import './console.sol'; /** * @title A media value system, with perpetual equity to creators * @notice This contract provides an interface to mint media with a market * owned by the creator. */ contract Media is IMedia, ERC721Burnable, ReentrancyGuard, Ownable { using Counters for Counters.Counter; using SafeMath for uint256; using EnumerableSet for EnumerableSet.UintSet; /* ******* * Globals * ******* */ // Address for the market address public marketContract; // Address for the app address public appContract; // Mapping from token to previous owner of the token mapping(uint256 => address) public previousTokenOwners; // Mapping from token id to creator address mapping(uint256 => address) public tokenCreators; // Mapping from creator address to their (enumerable) set of created tokens mapping(address => EnumerableSet.UintSet) private _creatorTokens; // Mapping from token id to sha256 hash of content mapping(uint256 => bytes32) public tokenContentHashes; // Mapping from token id to sha256 hash of metadata mapping(uint256 => bytes32) public tokenMetadataHashes; // Mapping from token id to metadataURI mapping(uint256 => string) private _tokenMetadataURIs; // Mapping from contentHash to bool mapping(bytes32 => bool) private _contentHashes; //keccak256("Permit(address spender,uint256 tokenId,uint256 nonce,uint256 deadline)"); bytes32 public constant PERMIT_TYPEHASH = 0x49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad; //keccak256("MintWithSig(bytes32 contentHash,bytes32 metadataHash,uint256 creatorShare,uint256 nonce,uint256 deadline)"); bytes32 public constant MINT_WITH_SIG_TYPEHASH = 0x2952e482b8e2b192305f87374d7af45dc2eafafe4f50d26a0c02e90f2fdbe14b; // Mapping from address to token id to permit nonce mapping(address => mapping(uint256 => uint256)) public permitNonces; // Mapping from address to mint with sig nonce mapping(address => uint256) public mintWithSigNonces; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * bytes4(keccak256('tokenMetadataURI(uint256)')) == 0x157c3df9 * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd ^ 0x157c3df9 == 0x4e222e66 */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x4e222e66; Counters.Counter private _tokenIdTracker; /* ********* * Modifiers * ********* */ /** * @notice Require that the token has not been burned and has been minted */ modifier onlyExistingToken(uint256 tokenId) { require(_exists(tokenId), 'Media: nonexistent token'); _; } /** * @notice Require that the token has had a content hash set */ modifier onlyTokenWithContentHash(uint256 tokenId) { require(tokenContentHashes[tokenId] != 0, 'Media: token does not have hash of created content'); _; } /** * @notice Require that the token has had a metadata hash set */ modifier onlyTokenWithMetadataHash(uint256 tokenId) { require(tokenMetadataHashes[tokenId] != 0, 'Media: token does not have hash of its metadata'); _; } /** * @notice Ensure that the provided spender is the approved or the owner of * the media for the specified tokenId */ modifier onlyApprovedOrOwner(address spender, uint256 tokenId) { require(_isApprovedOrOwner(spender, tokenId), 'Media: Only approved or owner'); _; } /** * @notice Ensure the token has been created (even if it has been burned) */ modifier onlyTokenCreated(uint256 tokenId) { require(_tokenIdTracker.current() > tokenId, 'Media: token with that id does not exist'); _; } /** * @notice Ensure that the provided URI is not empty */ modifier onlyValidURI(string memory uri) { require(bytes(uri).length != 0, 'Media: specified uri must be non-empty'); _; } /** * @notice require that the msg.sender is the configured app, market or contract owner */ modifier onlyAuthorizedCaller() { require(appContract == msg.sender || marketContract == msg.sender || owner() == msg.sender, 'Media: Only app contract, market contract or owner'); _; } /** * @notice On deployment, set the market contract address and register the * ERC721 metadata interface */ constructor(string memory name, string memory symbol) ERC721(name, symbol) { _registerInterface(_INTERFACE_ID_ERC721_METADATA); _tokenIdTracker.increment(); // start at 1 } /** * @notice Sets the market contract address. This address is the only permitted address that * can call the mutable functions. */ function configure(address appContractAddr, address marketContractAddr) external onlyOwner { require(appContractAddr != address(0), 'Media: cannot set app contract as zero address'); appContract = appContractAddr; require(marketContractAddr != address(0), 'Media: cannot set market contract as zero address'); marketContract = marketContractAddr; } /* ************** * View Functions * ************** */ /** * @notice return the URI for a particular piece of media with the specified tokenId * @dev This function is an override of the base OZ implementation because we * will return the tokenURI even if the media has been burned. In addition, this * protocol does not support a base URI, so relevant conditionals are removed. * @return the URI for a token */ function tokenURI(uint256 tokenId) public view override onlyTokenCreated(tokenId) returns (string memory) { string memory _tokenURI = _tokenURIs[tokenId]; return _tokenURI; } /** * @notice Return the metadata URI for a piece of media given the token URI * @return the metadata URI for the token */ function tokenMetadataURI(uint256 tokenId) external view override onlyTokenCreated(tokenId) returns (string memory) { return _tokenMetadataURIs[tokenId]; } /* **************** * Public Functions * **************** */ /** * @notice see IMedia */ function mint(MediaData memory data, IMarket.BidShares memory bidShares) public override nonReentrant onlyAuthorizedCaller { _mintForCreator(msg.sender, data, bidShares); } /** * @notice see IMedia */ function mintWithSig( address creator, MediaData memory data, IMarket.BidShares memory bidShares, EIP712Signature memory sig ) public override nonReentrant onlyAuthorizedCaller { require(sig.deadline == 0 || sig.deadline >= block.timestamp, 'Media: mintWithSig expired'); bytes32 domainSeparator = _calculateDomainSeparator(); bytes32 digest = keccak256( abi.encodePacked( '\x19\x01', domainSeparator, keccak256(abi.encode(MINT_WITH_SIG_TYPEHASH, data.contentHash, data.metadataHash, bidShares.creator.value, mintWithSigNonces[creator]++, sig.deadline)) ) ); address recoveredAddress = ecrecover(digest, sig.v, sig.r, sig.s); require(recoveredAddress != address(0) && creator == recoveredAddress, 'Media: Signature invalid'); _mintForCreator(recoveredAddress, data, bidShares); } /** * @notice see IMedia */ function getRecentToken(address creator) public view returns (uint256) { uint256 length = EnumerableSet.length(_creatorTokens[creator]) - 1; return EnumerableSet.at(_creatorTokens[creator], length); } /** * @notice see IMedia */ function auctionTransfer(uint256 tokenId, address recipient) external override onlyAuthorizedCaller { previousTokenOwners[tokenId] = ownerOf(tokenId); _safeTransfer(ownerOf(tokenId), recipient, tokenId, ''); } /** * @notice see IMedia */ function setAsk(uint256 tokenId, IMarket.Ask memory ask) public override nonReentrant onlyApprovedOrOwner(msg.sender, tokenId) { IMarket(marketContract).setAsk(tokenId, ask); } /** * @notice see IMedia */ function setAskFromApp(uint256 tokenId, IMarket.Ask memory ask) public override nonReentrant onlyExistingToken(tokenId) onlyAuthorizedCaller { IMarket(marketContract).setAsk(tokenId, ask); } /** * @notice see IMedia */ function removeAsk(uint256 tokenId) external override nonReentrant onlyApprovedOrOwner(msg.sender, tokenId) { IMarket(marketContract).removeAsk(tokenId); } /** * @notice see IMedia */ function setBid(uint256 tokenId, IMarket.Bid memory bid) public override nonReentrant onlyExistingToken(tokenId) { require(msg.sender == bid.bidder, 'Market: Bidder must be msg sender'); IMarket(marketContract).setBid(tokenId, bid, msg.sender); } /** * Custom version of setBid where App must be onlyApprovedOrOwner * @notice see IMedia */ function setBidFromApp(uint256 tokenId, IMarket.Bid memory bid, address sender) external override nonReentrant onlyExistingToken(tokenId) onlyAuthorizedCaller { require(sender == bid.bidder, 'Market: Bidder must be msg sender'); IMarket(marketContract).setBid(tokenId, bid, sender); } /** * Custom version of setBid where App must be onlyApprovedOrOwner * @notice see IMedia */ function setLazyBidFromApp(uint256 dropId, IDrop.TokenType memory tokenType, IMarket.Bid memory bid, address sender) external override nonReentrant onlyAuthorizedCaller { require(sender == bid.bidder, 'Market: Bidder must be msg sender'); IMarket(marketContract).setLazyBidFromApp(dropId, tokenType, bid, sender); } /** * @notice see IMedia */ function removeBid(uint256 tokenId) external override nonReentrant onlyTokenCreated(tokenId) { IMarket(marketContract).removeBid(tokenId, msg.sender); } /** * @notice see IMedia */ function removeBidFromApp(uint256 tokenId, address sender) external override nonReentrant onlyTokenCreated(tokenId) onlyAuthorizedCaller { IMarket(marketContract).removeBid(tokenId, sender); } /** * @notice see IMedia */ function removeLazyBidFromApp(uint256 dropId, string memory name, address sender) external override nonReentrant onlyAuthorizedCaller { IMarket(marketContract).removeLazyBidFromApp(dropId, name, sender); } /** * @notice see IMedia */ function acceptBid(uint256 tokenId, IMarket.Bid memory bid) public override nonReentrant onlyApprovedOrOwner(msg.sender, tokenId) { IMarket(marketContract).acceptBid(tokenId, bid); } /** * @notice see IMedia */ function acceptBidFromApp(uint256 tokenId, IMarket.Bid memory bid, address sender) external override nonReentrant onlyApprovedOrOwner(sender, tokenId) onlyAuthorizedCaller { IMarket(marketContract).acceptBid(tokenId, bid); } /** * @notice see IMedia */ function acceptLazyBidFromApp(uint256 dropId, IDrop.TokenType memory tokenType, ILux.Token memory token, IMarket.Bid memory bid) external override nonReentrant onlyAuthorizedCaller { IMarket(marketContract).acceptLazyBidFromApp(dropId, tokenType, token, bid); } /** * @notice Burn a token. * @dev Only callable if the media owner is also the creator. */ function burn(uint256 tokenId) public override nonReentrant onlyExistingToken(tokenId) onlyApprovedOrOwner(msg.sender, tokenId) { address owner = ownerOf(tokenId); require(tokenCreators[tokenId] == owner, 'Media: owner is not creator of media'); _burn(tokenId); } /** * @notice Revoke the approvals for a token. The provided `approve` function is not sufficient * for this protocol, as it does not allow an approved address to revoke it's own approval. * In instances where a 3rd party is interacting on a user's behalf via `permit`, they should * revoke their approval once their task is complete as a best practice. */ function revokeApproval(uint256 tokenId) external override nonReentrant { require(msg.sender == getApproved(tokenId), 'Media: caller not approved address'); _approve(address(0), tokenId); } /** * @notice see IMedia * @dev only callable by approved or owner */ function updateTokenURI(uint256 tokenId, string calldata _tokenURI) external override nonReentrant onlyApprovedOrOwner(msg.sender, tokenId) onlyTokenWithContentHash(tokenId) onlyValidURI(_tokenURI) { _setTokenURI(tokenId, _tokenURI); emit TokenURIUpdated(tokenId, msg.sender, _tokenURI); } /** * @notice see IMedia * @dev only callable by approved or owner */ function updateTokenMetadataURI(uint256 tokenId, string calldata metadataURI) external override nonReentrant onlyApprovedOrOwner(msg.sender, tokenId) onlyTokenWithMetadataHash(tokenId) onlyValidURI(metadataURI) { _setTokenMetadataURI(tokenId, metadataURI); emit TokenMetadataURIUpdated(tokenId, msg.sender, metadataURI); } /** * @notice See IMedia * @dev This method is loosely based on the permit for ERC-20 tokens in EIP-2612, but modified * for ERC-721. */ function permit( address spender, uint256 tokenId, EIP712Signature memory sig ) public override nonReentrant onlyExistingToken(tokenId) { require(sig.deadline == 0 || sig.deadline >= block.timestamp, 'Media: Permit expired'); require(spender != address(0), 'Media: spender cannot be 0x0'); bytes32 domainSeparator = _calculateDomainSeparator(); bytes32 digest = keccak256( abi.encodePacked('\x19\x01', domainSeparator, keccak256(abi.encode(PERMIT_TYPEHASH, spender, tokenId, permitNonces[ownerOf(tokenId)][tokenId]++, sig.deadline))) ); address recoveredAddress = ecrecover(digest, sig.v, sig.r, sig.s); require(recoveredAddress != address(0) && ownerOf(tokenId) == recoveredAddress, 'Media: Signature invalid'); _approve(spender, tokenId); } /* ***************** * Private Functions * ***************** */ /** * @notice Creates a new token for `creator`. Its token ID will be automatically * assigned (and available on the emitted {IERC721-Transfer} event), and the token * URI autogenerated based on the base URI passed at construction. * * See {ERC721-_safeMint}. * * On mint, also set the sha256 hashes of the content and its metadata for integrity * checks, along with the initial URIs to point to the content and metadata. Attribute * the token ID to the creator, mark the content hash as used, and set the bid shares for * the media's market. * * Note that although the content hash must be unique for future mints to prevent duplicate media, * metadata has no such requirement. */ function _mintForCreator( address creator, MediaData memory data, IMarket.BidShares memory bidShares ) internal onlyValidURI(data.tokenURI) onlyValidURI(data.metadataURI) { require(data.contentHash != 0, 'Media: content hash must be non-zero'); // require(_contentHashes[data.contentHash] == false, 'Media: a token has already been created with this content hash'); require(data.metadataHash != 0, 'Media: metadata hash must be non-zero'); uint256 tokenId = _tokenIdTracker.current(); _safeMint(creator, tokenId); _tokenIdTracker.increment(); _setTokenContentHash(tokenId, data.contentHash); _setTokenMetadataHash(tokenId, data.metadataHash); _setTokenMetadataURI(tokenId, data.metadataURI); _setTokenURI(tokenId, data.tokenURI); _creatorTokens[creator].add(tokenId); _contentHashes[data.contentHash] = true; tokenCreators[tokenId] = creator; previousTokenOwners[tokenId] = creator; IMarket(marketContract).setBidShares(tokenId, bidShares); } function _setTokenContentHash(uint256 tokenId, bytes32 contentHash) internal virtual onlyExistingToken(tokenId) { tokenContentHashes[tokenId] = contentHash; } function _setTokenMetadataHash(uint256 tokenId, bytes32 metadataHash) internal virtual onlyExistingToken(tokenId) { tokenMetadataHashes[tokenId] = metadataHash; } function _setTokenMetadataURI(uint256 tokenId, string memory metadataURI) internal virtual onlyExistingToken(tokenId) { _tokenMetadataURIs[tokenId] = metadataURI; } /** * @notice Destroys `tokenId`. * @dev We modify the OZ _burn implementation to * maintain metadata and to remove the * previous token owner from the piece */ function _burn(uint256 tokenId) internal override { string memory _tokenURI = _tokenURIs[tokenId]; super._burn(tokenId); if (bytes(_tokenURI).length != 0) { _tokenURIs[tokenId] = _tokenURI; } delete previousTokenOwners[tokenId]; } /** * @notice transfer a token and remove the ask for it. */ function _transfer( address from, address to, uint256 tokenId ) internal override { IMarket(marketContract).removeAsk(tokenId); super._transfer(from, to, tokenId); } /** * @dev Calculates EIP712 DOMAIN_SEPARATOR based on the current contract and chain ID. */ function _calculateDomainSeparator() internal view returns (bytes32) { uint256 chainID; /* solium-disable-next-line */ assembly { chainID := chainid() } return keccak256( abi.encode( keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'), keccak256(bytes('LUX')), keccak256(bytes('1')), chainID, address(this) ) ); } function _hashToken(address owner, ILux.Token memory token) private view returns (ILux.Token memory) { console.log('_hashToken', token.data.tokenURI, token.data.metadataURI); token.data.contentHash = keccak256(abi.encodePacked(token.data.tokenURI, block.number, owner)); token.data.metadataHash = keccak256(abi.encodePacked(token.data.metadataURI, block.number, owner)); return token; } function mintToken(address owner, ILux.Token memory token) external override onlyAuthorizedCaller returns (ILux.Token memory) { console.log('mintToken', owner, token.name, token.data.tokenURI); token = _hashToken(owner, token); _mintForCreator(owner, token.data, token.bidShares); uint256 id = getRecentToken(owner); token.id = id; return token; } function burnToken(address owner, uint256 tokenID) external override nonReentrant onlyExistingToken(tokenID) onlyApprovedOrOwner(owner, tokenID) { _burn(tokenID); } /** * @notice Helper to check that token has not been burned or minted */ function tokenExists(uint256 tokenID) public view override returns (bool) { return _exists(tokenID); } function tokenCreator(uint256 tokenID) public view override returns (address) { return tokenCreators[tokenID]; } function previousTokenOwner(uint256 tokenID) public view override returns (address) { return previousTokenOwners[tokenID]; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; /** * NOTE: This file is a clone of the OpenZeppelin ERC721.sol contract. It was forked from https://github.com/OpenZeppelin/openzeppelin-contracts * at commit 1ada3b633e5bfd9d4ffe0207d64773a11f5a7c40 * * The code was modified to inherit from our customized ERC721 contract. */ import "./ERC721.sol"; import "@openzeppelin/contracts/utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenID`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenID` or be an approved operator. */ function burn(uint256 tokenID) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenID), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenID); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "./console.sol"; /** * NOTE: This file is a clone of the OpenZeppelin ERC721.sol contract. It was forked from https://github.com/OpenZeppelin/openzeppelin-contracts * at commit 1ada3b633e5bfd9d4ffe0207d64773a11f5a7c40 * * * The following functions needed to be modified, prompting this clone: * - `_tokenURIs` visibility was changed from private to internal to support updating URIs after minting * - `_baseURI` visibiility was changed from private to internal to support fetching token URI even after the token was burned * - `_INTERFACE_ID_ERC721_METADATA` is no longer registered as an interface because _tokenURI now returns raw content instead of a JSON file, and supports updatable URIs * - `_approve` visibility was changed from private to internal to support EIP-2612 flavored permits and approval revocation by an approved address */ import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165Storage, IERC721, IERC721Metadata, IERC721Enumerable { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; using Strings for uint256; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping(address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // 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; // Token name string private _name; // Token symbol string private _symbol; // Optional mapping for token URIs mapping(uint256 => string) internal _tokenURIs; // Base URI string internal _baseURI; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @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; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require( owner != address(0), "ERC721: balance query for the zero address" ); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenID) public view override returns (address) { return _tokenOwners.get( tokenID, "ERC721: owner query for nonexistent token" ); } /** * @dev See {IERC721Metadata-name}. */ function name() public view override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view 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 _tokenURI = _tokenURIs[tokenID]; // If there is no base URI, return the token URI. if (bytes(_baseURI).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(_baseURI, _tokenURI)); } // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. return string(abi.encodePacked(_baseURI, tokenID.toString())); } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function baseURI() public view returns (string memory) { return _baseURI; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // _tokenOwners are indexed by tokenIDs, so .length() returns the number of tokenIDs return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { (uint256 tokenID, ) = _tokenOwners.at(index); return tokenID; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenID) public virtual override { address owner = ownerOf(tokenID); console.log("The owner", owner); require(to != owner, "ERC721: approval to current owner"); console.log(msg.sender); 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 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 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 returns (bool) { return _tokenOwners.contains(tokenID); } /** * @dev Returns whether `spender` is allowed to manage `tokenID`. * * Requirements: * * - `tokenID` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenID) internal view returns (bool) { require( _exists(tokenID), "ERC721: operator query for nonexistent token" ); address owner = ownerOf(tokenID); return (spender == owner || getApproved(tokenID) == spender || isApprovedForAll(owner, spender)); } /** * @dev Public method which returns whether `spender` is allowed to manage `tokenID`. * * Requirements: * * - `tokenID` must exist. */ function isApprovedOrOwner(address spender, uint256 tokenID) public view returns (bool) { return _isApprovedOrOwner(spender, tokenID); } /** * @dev Safely mints `tokenID` and transfers it to `to`. * * Requirements: d* * - `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); _holderTokens[to].add(tokenID); _tokenOwners.set(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 = ownerOf(tokenID); _beforeTokenTransfer(owner, address(0), tokenID); // Clear approvals _approve(address(0), tokenID); // Clear metadata (if any) if (bytes(_tokenURIs[tokenID]).length != 0) { delete _tokenURIs[tokenID]; } _holderTokens[owner].remove(tokenID); _tokenOwners.remove(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( 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); _holderTokens[from].remove(tokenID); _holderTokens[to].add(tokenID); _tokenOwners.set(tokenID, to); emit Transfer(from, to, tokenID); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenID`. * * Requirements: * * - `tokenID` must exist. */ function _setTokenURI(uint256 tokenID, string memory _tokenURI) internal virtual { require( _exists(tokenID), "ERC721Metadata: URI set of nonexistent token" ); _tokenURIs[tokenID] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal virtual { _baseURI = baseURI_; } /** * @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()) { return true; } bytes memory returndata = to.functionCall( abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenID, _data ), "ERC721: transfer to non ERC721Receiver implementer" ); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } function _approve(address to, uint256 tokenID) internal { _tokenApprovals[tokenID] = to; emit Approval(ownerOf(tokenID), to, tokenID); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenID` will be * transferred to `to`. * - When `from` is zero, `tokenID` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenID` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenID ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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: Apache-2.0 pragma solidity >=0.8.4; pragma experimental ABIEncoderV2; // Copyright 2019 dYdX Trading Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /** * NOTE: This file is a clone of the dydx protocol's Decimal.sol contract. It was forked from https://github.com/dydxprotocol/solo * at commit 2d8454e02702fe5bc455b848556660629c3cad36 * * It has not been modified other than to use a newer solidity in the pragma to match the rest of the contract suite of this project */ import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import { Math } from "./Math.sol"; /** * @title Decimal * * Library that defines a fixed-point number with 18 decimal places. */ library Decimal { using SafeMath for uint256; // ============ Constants ============ uint256 constant BASE_POW = 18; uint256 constant BASE = 10**BASE_POW; // ============ Structs ============ struct D256 { uint256 value; } // ============ Functions ============ function one() internal pure returns (D256 memory) { return D256({value: BASE}); } function onePlus(D256 memory d) internal pure returns (D256 memory) { return D256({value: d.value.add(BASE)}); } function mul(uint256 target, D256 memory d) internal pure returns (uint256) { return Math.getPartial(target, d.value, BASE); } function div(uint256 target, D256 memory d) internal pure returns (uint256) { return Math.getPartial(target, BASE, d.value); } }
// SPDX-License-Identifier: GPL-3.0 // Forked from https://github.com/ourzora/core @ 450cd154bfbb70f62e94050cc3f1560d58e0506a pragma solidity >=0.8.4; pragma experimental ABIEncoderV2; import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import { IMarket } from './IMarket.sol'; import { ILux } from './ILux.sol'; import { IDrop } from './IDrop.sol'; /** * @title Interface for Zoo Protocol's Media */ interface IMedia is IERC721 { struct EIP712Signature { uint256 deadline; uint8 v; bytes32 r; bytes32 s; } struct MediaData { // A valid URI of the content represented by this token string tokenURI; // A valid URI of the metadata associated with this token string metadataURI; // A SHA256 hash of the content pointed to by tokenURI bytes32 contentHash; // A SHA256 hash of the content pointed to by metadataURI bytes32 metadataHash; } event TokenURIUpdated(uint256 indexed _tokenId, address owner, string _uri); event TokenMetadataURIUpdated(uint256 indexed _tokenId, address owner, string _uri); /** * @notice Return the metadata URI for a piece of media given the token URI */ function tokenMetadataURI(uint256 tokenId) external view returns (string memory); /** * @notice Mint new media for msg.sender. */ function mint(MediaData calldata data, IMarket.BidShares calldata bidShares) external; /** * @notice EIP-712 mintWithSig method. Mints new media for a creator given a valid signature. */ function mintWithSig( address creator, MediaData calldata data, IMarket.BidShares calldata bidShares, EIP712Signature calldata sig ) external; /** * @notice Transfer the token with the given ID to a given address. * Save the previous owner before the transfer, in case there is a sell-on fee. * @dev This can only be called by the auction contract specified at deployment */ function auctionTransfer(uint256 tokenId, address recipient) external; /** * @notice Set the ask on a piece of media */ function setAsk(uint256 tokenId, IMarket.Ask calldata ask) external; /** * @notice Remove the ask on a piece of media */ function removeAsk(uint256 tokenId) external; /** * @notice Set the bid on a piece of media */ function setBid(uint256 tokenId, IMarket.Bid calldata bid) external; /** * @notice Remove the bid on a piece of media */ function removeBid(uint256 tokenId) external; function acceptBid(uint256 tokenId, IMarket.Bid calldata bid) external; /** * @notice Revoke approval for a piece of media */ function revokeApproval(uint256 tokenId) external; /** * @notice Update the token URI */ function updateTokenURI(uint256 tokenId, string calldata tokenURI) external; /** * @notice Update the token metadata uri */ function updateTokenMetadataURI(uint256 tokenId, string calldata metadataURI) external; /** * @notice EIP-712 permit method. Sets an approved spender given a valid signature. */ function permit( address spender, uint256 tokenId, EIP712Signature calldata sig ) external; // Added for App /** * @notice Set the ask on a piece of media */ function setAskFromApp(uint256 tokenId, IMarket.Ask calldata ask) external; /** * @notice Set the bid on a piece of media */ function setBidFromApp(uint256 tokenId, IMarket.Bid memory bid, address sender) external; /** * @notice Remove the bid on a piece of media */ function removeBidFromApp(uint256 tokenId, address sender) external; function removeLazyBidFromApp(uint256 dropId, string memory name, address sender) external; function acceptBidFromApp(uint256 tokenId, IMarket.Bid memory bid, address sender) external; function acceptLazyBidFromApp(uint256 dropId, IDrop.TokenType memory tokenType, ILux.Token memory token, IMarket.Bid memory bid) external; function mintToken(address owner, ILux.Token memory tokenID) external returns (ILux.Token memory); function burnToken(address owner, uint256 tokenID) external; function tokenExists(uint256 tokenID) external returns (bool); function tokenCreator(uint256 tokenID) external returns (address); function previousTokenOwner(uint256 tokenID) external returns (address); function setLazyBidFromApp( uint256 dropId, IDrop.TokenType memory tokenType, IMarket.Bid memory bid, address spender ) external; }
// SPDX-License-Identifier: GPL-3.0 // Forked from https://github.com/ourzora/core @ 450cd154bfbb70f62e94050cc3f1560d58e0506a pragma solidity >=0.8.4; pragma experimental ABIEncoderV2; import { Decimal } from '../Decimal.sol'; import { IDrop } from './IDrop.sol'; import { ILux } from './ILux.sol'; /** * @title Interface for Zoo Protocol's Market */ interface IMarket { struct Bid { // Amount of the currency being bid uint256 amount; // Address to the ERC20 token being used to bid address currency; // Address of the bidder address bidder; // Address of the recipient address recipient; // % of the next sale to award the current owner Decimal.D256 sellOnShare; // Flag bid as offline for OTC sale bool offline; } struct Ask { // Amount of the currency being asked uint256 amount; // Address to the ERC20 token being asked address currency; // Flag ask as offline for OTC sale bool offline; } struct BidShares { // % of sale value that goes to the _previous_ owner of the nft Decimal.D256 prevOwner; // % of sale value that goes to the original creator of the nft Decimal.D256 creator; // % of sale value that goes to the seller (current owner) of the nft Decimal.D256 owner; } event BidCreated(uint256 indexed tokenId, Bid bid); event BidRemoved(uint256 indexed tokenId, Bid bid); event BidFinalized(uint256 indexed tokenId, Bid bid); event AskCreated(uint256 indexed tokenId, Ask ask); event AskRemoved(uint256 indexed tokenId, Ask ask); event BidShareUpdated(uint256 indexed tokenId, BidShares bidShares); event LazyBidFinalized(uint256 dropId, string name, uint256 indexed tokenId, Bid bid); event LazyBidCreated(uint256 dropId, string name, Bid bid); event LazyBidRemoved(uint256 dropId, string name, Bid bid); function bidForTokenBidder(uint256 tokenId, address bidder) external view returns (Bid memory); function lazyBidForTokenBidder(uint256 dropId, string memory name, address bidder) external view returns (Bid memory); function currentAskForToken(uint256 tokenId) external view returns (Ask memory); function bidSharesForToken(uint256 tokenId) external view returns (BidShares memory); function isValidBid(uint256 tokenId, uint256 bidAmount) external view returns (bool); function isValidBidShares(BidShares calldata bidShares) external pure returns (bool); function splitShare(Decimal.D256 calldata sharePercentage, uint256 amount) external pure returns (uint256); function configure(address mediaContractAddress) external; function setBidShares(uint256 tokenId, BidShares calldata bidShares) external; function setAsk(uint256 tokenId, Ask calldata ask) external; function removeAsk(uint256 tokenId) external; function setBid( uint256 tokenId, Bid calldata bid, address spender ) external; function setLazyBidFromApp( uint256 dropId, IDrop.TokenType memory tokenType, Bid memory bid, address spender ) external; function removeBid(uint256 tokenId, address bidder) external; function removeLazyBidFromApp(uint256 dropId, string memory name, address sender) external; function acceptBid(uint256 tokenId, Bid calldata expectedBid) external; function acceptLazyBidFromApp(uint256 dropId, IDrop.TokenType memory tokenType, ILux.Token memory token, Bid calldata expectedBid) external; function isOfflineBidder(address bidder) external returns (bool); function setOfflineBidder(address bidder, bool authorized) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import { ILux } from './ILux.sol'; import { IMarket } from './IMarket.sol'; import { IMedia } from './IMedia.sol'; interface IDrop { struct TokenType { ILux.Type kind; string name; IMarket.Ask ask; uint256 supply; uint256 timestamp; // time created uint256 minted; // amount minted IMedia.MediaData data; IMarket.BidShares bidShares; } function title() external view returns (string memory); function tokenTypeAsk(string memory name) external view returns (IMarket.Ask memory); function totalMinted(string memory name) external view returns (uint256); function tokenSupply(string memory name) external view returns (uint256); function newNFT(string memory name) external returns (ILux.Token memory); function getTokenType(string memory name) external view returns (TokenType memory); }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import { IMedia } from './IMedia.sol'; import { IMarket } from './IMarket.sol'; interface ILux { enum Type { VALIDATOR, ATM, WALLET, CASH } struct Meta { uint256 tokenId; // originating egg uint256 dropId; // originating drop bool burned; // token has been burned } struct Token { Type kind; string name; uint256 id; // unique ID uint256 timestamp; // time created IMedia.MediaData data; IMarket.BidShares bidShares; Meta meta; } }
// 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; 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; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
// 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 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 "./EnumerableSet.sol"; /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { using EnumerableSet for EnumerableSet.Bytes32Set; // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct Map { // Storage of keys EnumerableSet.Bytes32Set _keys; mapping(bytes32 => bytes32) _values; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set( Map storage map, bytes32 key, bytes32 value ) private returns (bool) { map._values[key] = value; return map._keys.add(key); } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { delete map._values[key]; return map._keys.remove(key); } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._keys.contains(key); } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._keys.length(); } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { bytes32 key = map._keys.at(index); return (key, map._values[key]); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. */ function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) { bytes32 value = map._values[key]; if (value == bytes32(0)) { return (_contains(map, key), bytes32(0)); } else { return (true, value); } } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key"); return value; } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {_tryGet}. */ function _get( Map storage map, bytes32 key, string memory errorMessage ) private view returns (bytes32) { bytes32 value = map._values[key]; require(value != 0 || _contains(map, key), errorMessage); return value; } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set( UintToAddressMap storage map, uint256 key, address value ) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint160(uint256(value)))); } /** * @dev Tries to returns the value associated with `key`. O(1). * Does not revert if `key` is not in the map. * * _Available since v3.4._ */ function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key)); return (success, address(uint160(uint256(value)))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key))))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryGet}. */ function get( UintToAddressMap storage map, uint256 key, string memory errorMessage ) internal view returns (address) { return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.8.4; pragma experimental ABIEncoderV2; import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; /// @title Math /// Library for non-standard Math functions /// NOTE: This file is a clone of the dydx protocol's Decimal.sol contract. /// It was forked from https://github.com/dydxprotocol/solo at commit /// 2d8454e02702fe5bc455b848556660629c3cad36. It has not been modified other than to use a /// newer solidity in the pragma to match the rest of the contract suite of this project. library Math { using SafeMath for uint256; // ============ Library Functions ============ /* * Return target * (numerator / denominator). */ function getPartial( uint256 target, uint256 numerator, uint256 denominator ) internal pure returns (uint256) { return target.mul(numerator).div(denominator); } /* * Return target * (numerator / denominator), but rounded up. */ function getPartialRoundUp( uint256 target, uint256 numerator, uint256 denominator ) internal pure returns (uint256) { if (target == 0 || numerator == 0) { // SafeMath will check for zero denominator return SafeMath.div(0, denominator); } return target.mul(numerator).sub(1).div(denominator).add(1); } function to128(uint256 number) internal pure returns (uint128) { uint128 result = uint128(number); require(result == number, "Math: Unsafe cast to uint128"); return result; } function to96(uint256 number) internal pure returns (uint96) { uint96 result = uint96(number); require(result == number, "Math: Unsafe cast to uint96"); return result; } function to32(uint256 number) internal pure returns (uint32) { uint32 result = uint32(number); require(result == number, "Math: Unsafe cast to uint32"); return result; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } }
{ "optimizer": { "enabled": true, "runs": 20 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "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":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"string","name":"_uri","type":"string"}],"name":"TokenMetadataURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"string","name":"_uri","type":"string"}],"name":"TokenURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MINT_WITH_SIG_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"sellOnShare","type":"tuple"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Bid","name":"bid","type":"tuple"}],"name":"acceptBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"sellOnShare","type":"tuple"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Bid","name":"bid","type":"tuple"},{"internalType":"address","name":"sender","type":"address"}],"name":"acceptBidFromApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"components":[{"internalType":"enum ILux.Type","name":"kind","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Ask","name":"ask","type":"tuple"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"}],"internalType":"struct IDrop.TokenType","name":"tokenType","type":"tuple"},{"components":[{"internalType":"enum ILux.Type","name":"kind","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ILux.Meta","name":"meta","type":"tuple"}],"internalType":"struct ILux.Token","name":"token","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"sellOnShare","type":"tuple"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Bid","name":"bid","type":"tuple"}],"name":"acceptLazyBidFromApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"appContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"auctionTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"burnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"appContractAddr","type":"address"},{"internalType":"address","name":"marketContractAddr","type":"address"}],"name":"configure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"}],"name":"getRecentToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"components":[{"internalType":"enum ILux.Type","name":"kind","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ILux.Meta","name":"meta","type":"tuple"}],"internalType":"struct ILux.Token","name":"token","type":"tuple"}],"name":"mintToken","outputs":[{"components":[{"internalType":"enum ILux.Type","name":"kind","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"},{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ILux.Meta","name":"meta","type":"tuple"}],"internalType":"struct ILux.Token","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"creator","type":"address"},{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"},{"components":[{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct IMedia.EIP712Signature","name":"sig","type":"tuple"}],"name":"mintWithSig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintWithSigNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct IMedia.EIP712Signature","name":"sig","type":"tuple"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"permitNonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"previousTokenOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"previousTokenOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeAsk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"name":"removeBidFromApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"sender","type":"address"}],"name":"removeLazyBidFromApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"revokeApproval","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":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Ask","name":"ask","type":"tuple"}],"name":"setAsk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Ask","name":"ask","type":"tuple"}],"name":"setAskFromApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"sellOnShare","type":"tuple"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Bid","name":"bid","type":"tuple"}],"name":"setBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"sellOnShare","type":"tuple"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Bid","name":"bid","type":"tuple"},{"internalType":"address","name":"sender","type":"address"}],"name":"setBidFromApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropId","type":"uint256"},{"components":[{"internalType":"enum ILux.Type","name":"kind","type":"uint8"},{"internalType":"string","name":"name","type":"string"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Ask","name":"ask","type":"tuple"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"components":[{"internalType":"string","name":"tokenURI","type":"string"},{"internalType":"string","name":"metadataURI","type":"string"},{"internalType":"bytes32","name":"contentHash","type":"bytes32"},{"internalType":"bytes32","name":"metadataHash","type":"bytes32"}],"internalType":"struct IMedia.MediaData","name":"data","type":"tuple"},{"components":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"prevOwner","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"creator","type":"tuple"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"owner","type":"tuple"}],"internalType":"struct IMarket.BidShares","name":"bidShares","type":"tuple"}],"internalType":"struct IDrop.TokenType","name":"tokenType","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct Decimal.D256","name":"sellOnShare","type":"tuple"},{"internalType":"bool","name":"offline","type":"bool"}],"internalType":"struct IMarket.Bid","name":"bid","type":"tuple"},{"internalType":"address","name":"sender","type":"address"}],"name":"setLazyBidFromApp","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenContentHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"tokenCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenCreators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMetadataHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenMetadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"metadataURI","type":"string"}],"name":"updateTokenMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"updateTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200532b3803806200532b833981016040819052620000349162000303565b8151829082906200004d906007906020850190620001aa565b50805162000063906008906020840190620001aa565b50620000766380ac58cd60e01b620000cb565b6200008863780e9d6360e01b620000cb565b50506001600b556200009a336200014f565b620000ac632711173360e11b620000cb565b620000c36018620001a160201b620027881760201c565b5050620003bd565b6001600160e01b031980821614156200012a5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b828054620001b8906200036a565b90600052602060002090601f016020900481019282620001dc576000855562000227565b82601f10620001f757805160ff191683800117855562000227565b8280016001018555821562000227579182015b82811115620002275782518255916020019190600101906200020a565b506200023592915062000239565b5090565b5b808211156200023557600081556001016200023a565b600082601f83011262000261578081fd5b81516001600160401b03808211156200027e576200027e620003a7565b604051601f8301601f19908116603f01168101908282118183101715620002a957620002a9620003a7565b81604052838152602092508683858801011115620002c5578485fd5b8491505b83821015620002e85785820183015181830184015290820190620002c9565b83821115620002f957848385830101525b9695505050505050565b6000806040838503121562000316578182fd5b82516001600160401b03808211156200032d578384fd5b6200033b8683870162000250565b9350602085015191508082111562000351578283fd5b50620003608582860162000250565b9150509250929050565b600181811c908216806200037f57607f821691505b60208210811415620003a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614f5e80620003cd6000396000f3fe608060405234801561001057600080fd5b50600436106102b85760003560e01c806375682e791161017957806375682e791461053b5780637a05050a1461054e5780637a7a1202146105615780637f9f5987146105745780638da5cb5b1461058757806395d89b411461058f5780639ac26549146105975780639d8e7260146105aa5780639f079396146105d3578063a1794bcd146105e6578063a22cb465146105f9578063afcbbd2c1461060c578063b05270a71461061f578063b1e130fc14610632578063b320f45914610645578063b88d4fde14610658578063c87b56dd1461066b578063d1df306c1461067e578063de5236fb14610691578063debe86ed146106b8578063e0fd045f146106cb578063e470d5cf146106f4578063e796edeb14610707578063e985e9c514610730578063ea827ada14610743578063f2fde38b14610763578063f6b630f014610776578063f8ccd5de14610789578063fad32197146107b4578063fcff354a146107d457600080fd5b8062923f9e146102bd57806301ddc3b5146102e557806301ffc9a71461031357806306fdde0314610326578063081812fc1461033b578063095ea7b31461035b5780630bcd899b146103705780630e2a177814610390578063157c3df9146103a357806318160ddd146103b657806318e97fd1146103be5780631b000df3146103d15780632110f20d146103e457806323b872dd146103f757806326f88abe1461040a57806328220f351461041d5780632cca3237146104305780632f745c59146104435780632fc12ecf1461045657806330adf81f1461046957806340c1a0641461049057806342842e0e146104b957806342966c68146104cc578063430c2081146104df5780634f6ccce7146104f25780636352211e146105055780636c0360eb1461051857806370a0823114610520578063715018a614610533575b600080fd5b6102d06102cb3660046142c5565b6107e7565b60405190151581526020015b60405180910390f35b6103056102f33660046142c5565b60136020526000908152604090205481565b6040519081526020016102dc565b6102d061032136600461424a565b6107f8565b61032e610834565b6040516102dc919061486f565b61034e6103493660046142c5565b6108c6565b6040516102dc91906147c0565b61036e6103693660046141e5565b610953565b005b61030561037e366004614003565b60176020526000908152604090205481565b61036e61039e36600461420e565b610a98565b61032e6103b13660046142c5565b610d3b565b610305610e05565b61036e6103cc3660046142ff565b610e16565b61036e6103df366004614406565b610fc0565b6103056103f2366004614003565b61110d565b61036e61040536600461404f565b611169565b61036e6104183660046143e3565b61119a565b61036e61042b3660046142c5565b61127f565b61036e61043e366004614282565b611300565b6103056104513660046141e5565b611395565b61036e610464366004614406565b6113b7565b6103057f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b61034e61049e3660046142c5565b6000908152601060205260409020546001600160a01b031690565b61036e6104c736600461404f565b6114d0565b61036e6104da3660046142c5565b6114eb565b6102d06104ed3660046141e5565b6115f9565b6103056105003660046142c5565b611605565b61034e6105133660046142c5565b61161b565b61032e611643565b61030561052e366004614003565b611652565b61036e6116de565b61036e6105493660046142ff565b611719565b61036e61055c3660046143c0565b6118aa565b61036e61056f36600461412b565b611983565b61036e6105823660046143e3565b611bea565b61034e611c6c565b61032e611c7b565b61036e6105a53660046143c0565b611c8a565b61034e6105b83660046142c5565b600f602052600090815260409020546001600160a01b031681565b61036e6105e13660046142dd565b611d0c565b600d5461034e906001600160a01b031681565b61036e610607366004614102565b611de7565b61036e61061a36600461443a565b611ea8565b61036e61062d366004614375565b611f94565b61036e6106403660046142c5565b612049565b61036e6106533660046142c5565b6120f8565b61036e61066636600461408a565b6121b5565b61032e6106793660046142c5565b6121ed565b61036e61068c3660046141e5565b6122b7565b6103057f2952e482b8e2b192305f87374d7af45dc2eafafe4f50d26a0c02e90f2fdbe14b81565b600e5461034e906001600160a01b031681565b61034e6106d93660046142c5565b6010602052600090815260409020546001600160a01b031681565b61036e61070236600461401d565b612336565b61034e6107153660046142c5565b6000908152600f60205260409020546001600160a01b031690565b6102d061073e36600461401d565b61247d565b61075661075136600461419a565b6124ab565b6040516102dc9190614bf8565b61036e610771366004614003565b61257c565b61036e6107843660046142dd565b61261c565b6103056107973660046141e5565b601660209081526000928352604080842090915290825290205481565b6103056107c23660046142c5565b60126020526000908152604090205481565b61036e6107e2366004614497565b6126d1565b60006107f282612791565b92915050565b60006301ffc9a760e01b6001600160e01b0319831614806107f25750506001600160e01b03191660009081526020819052604090205460ff1690565b60606007805461084390614e1b565b80601f016020809104026020016040519081016040528092919081815260200182805461086f90614e1b565b80156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b5050505050905090565b60006108d182612791565b6109375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061095e8261161b565b905061098b604051806040016040528060098152602001682a34329037bbb732b960b91b8152508261279e565b806001600160a01b0316836001600160a01b031614156109f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161092e565b610a00336127e3565b336001600160a01b0382161480610a1c5750610a1c813361247d565b610a895760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161092e565b610a938383612826565b505050565b6002600b541415610abb5760405162461bcd60e51b815260040161092e90614b7b565b6002600b5581610aca81612791565b610ae65760405162461bcd60e51b815260040161092e90614b49565b81511580610af5575081514211155b610b395760405162461bcd60e51b81526020600482015260156024820152741359591a584e8814195c9b5a5d08195e1c1a5c9959605a1b604482015260640161092e565b6001600160a01b038416610b8e5760405162461bcd60e51b815260206004820152601c60248201527b04d656469613a207370656e6465722063616e6e6f74206265203078360241b604482015260640161092e565b6000610b98612894565b90506000817f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad8787601685610bcc8361161b565b6001600160a01b03168152602080820192909252604090810160009081208c82529092528120805491610bfe83614e50565b9091555088516040805160208101969096526001600160a01b03909416938501939093526060840191909152608083015260a082015260c00160405160208183030381529060405280519060200120604051602001610c5e9291906147a5565b604051602081830303815290604052805190602001209050600060018286602001518760400151886060015160405160008152602001604052604051610ca79493929190614851565b6020604051602081039080840390855afa158015610cc9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610d075750806001600160a01b0316610cfc8761161b565b6001600160a01b0316145b610d235760405162461bcd60e51b815260040161092e90614b17565b610d2d8787612826565b50506001600b555050505050565b60608180610d4860185490565b11610d655760405162461bcd60e51b815260040161092e9061492d565b60008381526014602052604090208054610d7e90614e1b565b80601f0160208091040260200160405190810160405280929190818152602001828054610daa90614e1b565b8015610df75780601f10610dcc57610100808354040283529160200191610df7565b820191906000526020600020905b815481529060010190602001808311610dda57829003601f168201915b505050505091505b50919050565b6000610e11600261295e565b905090565b6002600b541415610e395760405162461bcd60e51b815260040161092e90614b7b565b6002600b553383610e4a8282612969565b610e665760405162461bcd60e51b815260040161092e90614a5a565b6000858152601260205260409020548590610ede5760405162461bcd60e51b815260206004820152603260248201527f4d656469613a20746f6b656e20646f6573206e6f7420686176652068617368206044820152711bd98818dc99585d19590818dbdb9d195b9d60721b606482015260840161092e565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050825115159150610f3690505760405162461bcd60e51b815260040161092e90614bb2565b610f768787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a3392505050565b867f702fe2dc2dc0f68023540aa4a1e11811c0f29112f6ebf01e61b90538e4f29810338888604051610faa93929190614811565b60405180910390a250506001600b555050505050565b6002600b541415610fe35760405162461bcd60e51b815260040161092e90614b7b565b6002600b5582610ff281612791565b61100e5760405162461bcd60e51b815260040161092e90614b49565b600e546001600160a01b03163314806110315750600d546001600160a01b031633145b8061104b575033611040611c6c565b6001600160a01b0316145b6110675760405162461bcd60e51b815260040161092e90614975565b82604001516001600160a01b0316826001600160a01b03161461109c5760405162461bcd60e51b815260040161092e90614a19565b600d54604051638e3d633b60e01b81526001600160a01b0390911690638e3d633b906110d090879087908790600401614c8f565b600060405180830381600087803b1580156110ea57600080fd5b505af11580156110fe573d6000803e3d6000fd5b50506001600b55505050505050565b6001600160a01b0381166000908152601160205260408120819060019061113390612abc565b61113d9190614dd8565b6001600160a01b03841660009081526011602052604090209091506111629082612ac6565b9392505050565b6111733382612969565b61118f5760405162461bcd60e51b815260040161092e90614ac6565b610a93838383612ad2565b6002600b5414156111bd5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55816111cc81612791565b6111e85760405162461bcd60e51b815260040161092e90614b49565b81604001516001600160a01b0316336001600160a01b03161461121d5760405162461bcd60e51b815260040161092e90614a19565b600d54604051638e3d633b60e01b81526001600160a01b0390911690638e3d633b9061125190869086903390600401614c8f565b600060405180830381600087803b15801561126b57600080fd5b505af1158015610d2d573d6000803e3d6000fd5b6002600b5414156112a25760405162461bcd60e51b815260040161092e90614b7b565b6002600b5533816112b38282612969565b6112cf5760405162461bcd60e51b815260040161092e90614a5a565b600d546040516328220f3560e01b8152600481018590526001600160a01b03909116906328220f3590602401611251565b6002600b5414156113235760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b031633148061134b5750600d546001600160a01b031633145b8061136557503361135a611c6c565b6001600160a01b0316145b6113815760405162461bcd60e51b815260040161092e90614975565b61138c338383612b3b565b50506001600b55565b6001600160a01b03821660009081526001602052604081206111629083612ac6565b6002600b5414156113da5760405162461bcd60e51b815260040161092e90614b7b565b6002600b5580836113eb8282612969565b6114075760405162461bcd60e51b815260040161092e90614a5a565b600e546001600160a01b031633148061142a5750600d546001600160a01b031633145b80611444575033611439611c6c565b6001600160a01b0316145b6114605760405162461bcd60e51b815260040161092e90614975565b600d54604051637f9f598760e01b81526001600160a01b0390911690637f9f5987906114929088908890600401614c7b565b600060405180830381600087803b1580156114ac57600080fd5b505af11580156114c0573d6000803e3d6000fd5b50506001600b5550505050505050565b610a93838383604051806020016040528060008152506121b5565b6002600b54141561150e5760405162461bcd60e51b815260040161092e90614b7b565b6002600b558061151d81612791565b6115395760405162461bcd60e51b815260040161092e90614b49565b33826115458282612969565b6115615760405162461bcd60e51b815260040161092e90614a5a565b600061156c8561161b565b6000868152601060205260409020549091506001600160a01b038083169116146115e45760405162461bcd60e51b8152602060048201526024808201527f4d656469613a206f776e6572206973206e6f742063726561746f72206f66206d6044820152636564696160e01b606482015260840161092e565b6115ed85612d76565b50506001600b55505050565b60006111628383612969565b600080611613600284612e5f565b509392505050565b60006107f282604051806060016040528060298152602001614ee06029913960029190612e7b565b6060600a805461084390614e1b565b60006001600160a01b0382166116bd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161092e565b6001600160a01b03821660009081526001602052604090206107f290612abc565b336116e7611c6c565b6001600160a01b03161461170d5760405162461bcd60e51b815260040161092e90614a91565b6117176000612e88565b565b6002600b54141561173c5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55338361174d8282612969565b6117695760405162461bcd60e51b815260040161092e90614a5a565b60008581526013602052604090205485906117de5760405162461bcd60e51b815260206004820152602f60248201527f4d656469613a20746f6b656e20646f6573206e6f74206861766520686173682060448201526e6f6620697473206d6574616461746160881b606482015260840161092e565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505082511515915061183690505760405162461bcd60e51b815260040161092e90614bb2565b6118768787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612eda92505050565b867fe3df41127db820c79e5b8d541a63e40e3e97b9af96f7a50bded13091b70df9ae338888604051610faa93929190614811565b6002600b5414156118cd5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55816118dc81612791565b6118f85760405162461bcd60e51b815260040161092e90614b49565b600e546001600160a01b031633148061191b5750600d546001600160a01b031633145b8061193557503361192a611c6c565b6001600160a01b0316145b6119515760405162461bcd60e51b815260040161092e90614975565b600d54604051639ac2654960e01b81526001600160a01b0390911690639ac26549906112519086908690600401614c53565b6002600b5414156119a65760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b03163314806119ce5750600d546001600160a01b031633145b806119e85750336119dd611c6c565b6001600160a01b0316145b611a045760405162461bcd60e51b815260040161092e90614975565b80511580611a13575080514211155b611a5c5760405162461bcd60e51b815260206004820152601a6024820152791359591a584e881b5a5b9d15da5d1a14da59c8195e1c1a5c995960321b604482015260640161092e565b6000611a66612894565b6040808601516060870151602080880151516001600160a01b038b16600090815260179092529381208054959650909486947f2952e482b8e2b192305f87374d7af45dc2eafafe4f50d26a0c02e90f2fdbe14b94939290919087611ac983614e50565b9091555088516040805160208101979097528601949094526060850192909252608084015260a083015260c082015260e00160405160208183030381529060405280519060200120604051602001611b229291906147a5565b604051602081830303815290604052805190602001209050600060018285602001518660400151876060015160405160008152602001604052604051611b6b9493929190614851565b6020604051602081039080840390855afa158015611b8d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611bc35750806001600160a01b0316876001600160a01b0316145b611bdf5760405162461bcd60e51b815260040161092e90614b17565b610d2d818787612b3b565b6002600b541415611c0d5760405162461bcd60e51b815260040161092e90614b7b565b6002600b553382611c1e8282612969565b611c3a5760405162461bcd60e51b815260040161092e90614a5a565b600d54604051637f9f598760e01b81526001600160a01b0390911690637f9f5987906110d09087908790600401614c7b565b600c546001600160a01b031690565b60606008805461084390614e1b565b6002600b541415611cad5760405162461bcd60e51b815260040161092e90614b7b565b6002600b553382611cbe8282612969565b611cda5760405162461bcd60e51b815260040161092e90614a5a565b600d54604051639ac2654960e01b81526001600160a01b0390911690639ac26549906110d09087908790600401614c53565b6002600b541415611d2f5760405162461bcd60e51b815260040161092e90614b7b565b6002600b558180611d3f60185490565b11611d5c5760405162461bcd60e51b815260040161092e9061492d565b600e546001600160a01b0316331480611d7f5750600d546001600160a01b031633145b80611d99575033611d8e611c6c565b6001600160a01b0316145b611db55760405162461bcd60e51b815260040161092e90614975565b600d5460405163776a083560e01b81526001600160a01b039091169063776a0835906112519086908690600401614c0b565b6001600160a01b038216331415611e3c5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161092e565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600b541415611ecb5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b0316331480611ef35750600d546001600160a01b031633145b80611f0d575033611f02611c6c565b6001600160a01b0316145b611f295760405162461bcd60e51b815260040161092e90614975565b81604001516001600160a01b0316816001600160a01b031614611f5e5760405162461bcd60e51b815260040161092e90614a19565b600d54604051632bf2ef4b60e21b81526001600160a01b039091169063afcbbd2c906110d0908790879087908790600401614cbd565b6002600b541415611fb75760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b0316331480611fdf5750600d546001600160a01b031633145b80611ff9575033611fee611c6c565b6001600160a01b0316145b6120155760405162461bcd60e51b815260040161092e90614975565b600d5460405163b05270a760e01b81526001600160a01b039091169063b05270a79061125190869086908690600401614c22565b6002600b54141561206c5760405162461bcd60e51b815260040161092e90614b7b565b6002600b5561207a816108c6565b6001600160a01b0316336001600160a01b0316146120e55760405162461bcd60e51b815260206004820152602260248201527f4d656469613a2063616c6c6572206e6f7420617070726f766564206164647265604482015261737360f01b606482015260840161092e565b6120f0600082612826565b506001600b55565b6002600b54141561211b5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55808061212b60185490565b116121485760405162461bcd60e51b815260040161092e9061492d565b600d5460405163776a083560e01b81526001600160a01b039091169063776a08359061217a9085903390600401614c0b565b600060405180830381600087803b15801561219457600080fd5b505af11580156121a8573d6000803e3d6000fd5b50506001600b5550505050565b6121bf3383612969565b6121db5760405162461bcd60e51b815260040161092e90614ac6565b6121e784848484612f1f565b50505050565b606081806121fa60185490565b116122175760405162461bcd60e51b815260040161092e9061492d565b6000838152600960205260408120805461223090614e1b565b80601f016020809104026020016040519081016040528092919081815260200182805461225c90614e1b565b80156122a95780601f1061227e576101008083540402835291602001916122a9565b820191906000526020600020905b81548152906001019060200180831161228c57829003601f168201915b509398975050505050505050565b6002600b5414156122da5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55806122e981612791565b6123055760405162461bcd60e51b815260040161092e90614b49565b82826123118282612969565b61232d5760405162461bcd60e51b815260040161092e90614a5a565b6115ed84612d76565b3361233f611c6c565b6001600160a01b0316146123655760405162461bcd60e51b815260040161092e90614a91565b6001600160a01b0382166123d25760405162461bcd60e51b815260206004820152602e60248201527f4d656469613a2063616e6e6f74207365742061707020636f6e7472616374206160448201526d73207a65726f206164647265737360901b606482015260840161092e565b600e80546001600160a01b0319166001600160a01b0384811691909117909155811661245a5760405162461bcd60e51b815260206004820152603160248201527f4d656469613a2063616e6e6f7420736574206d61726b657420636f6e7472616360448201527074206173207a65726f206164647265737360781b606482015260840161092e565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6124b36139a7565b600e546001600160a01b03163314806124d65750600d546001600160a01b031633145b806124f05750336124e5611c6c565b6001600160a01b0316145b61250c5760405162461bcd60e51b815260040161092e90614975565b6125456040518060400160405280600981526020016836b4b73a2a37b5b2b760b91b815250848460200151856080015160000151612f52565b61254f8383612f9b565b91506125648383608001518460a00151612b3b565b600061256f8461110d565b6040840152509092915050565b33612585611c6c565b6001600160a01b0316146125ab5760405162461bcd60e51b815260040161092e90614a91565b6001600160a01b0381166126105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092e565b61261981612e88565b50565b600e546001600160a01b031633148061263f5750600d546001600160a01b031633145b8061265957503361264e611c6c565b6001600160a01b0316145b6126755760405162461bcd60e51b815260040161092e90614975565b61267e8261161b565b6000838152600f6020526040902080546001600160a01b0319166001600160a01b03929092169190911790556126cd6126b68361161b565b828460405180602001604052806000815250612f1f565b5050565b6002600b5414156126f45760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b031633148061271c5750600d546001600160a01b031633145b8061273657503361272b611c6c565b6001600160a01b0316145b6127525760405162461bcd60e51b815260040161092e90614975565b600d54604051637e7f9aa560e11b81526001600160a01b039091169063fcff354a906110d0908790879087908790600401614d02565b80546001019055565b60006107f2600283613059565b6126cd82826040516024016127b4929190614882565b60408051601f198184030181529190526020810180516001600160e01b031663319af33360e01b179052613065565b612619816040516024016127f791906147c0565b60408051601f198184030181529190526020810180516001600160e01b031663161765e160e11b179052613065565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061285b8261161b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805180820182526003815262098aab60eb1b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527fc5d52c00f18c583276f90165da62daa81ba4c859580e526e76cddea6fd312124818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b60006107f282613086565b600061297482612791565b6129d55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161092e565b60006129e08361161b565b9050806001600160a01b0316846001600160a01b03161480612a1b5750836001600160a01b0316612a10846108c6565b6001600160a01b0316145b80612a2b5750612a2b818561247d565b949350505050565b612a3c82612791565b612a9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161092e565b60008281526009602090815260409091208251610a9392840190613a35565b60006107f2825490565b60006111628383613091565b600d546040516328220f3560e01b8152600481018390526001600160a01b03909116906328220f3590602401600060405180830381600087803b158015612b1857600080fd5b505af1158015612b2c573d6000803e3d6000fd5b50505050610a938383836130c9565b81518051612b5b5760405162461bcd60e51b815260040161092e90614bb2565b60208301518051612b7e5760405162461bcd60e51b815260040161092e90614bb2565b6040840151612bdb5760405162461bcd60e51b8152602060048201526024808201527f4d656469613a20636f6e74656e742068617368206d757374206265206e6f6e2d6044820152637a65726f60e01b606482015260840161092e565b6060840151612c3a5760405162461bcd60e51b815260206004820152602560248201527f4d656469613a206d657461646174612068617368206d757374206265206e6f6e6044820152642d7a65726f60d81b606482015260840161092e565b6000612c4560185490565b9050612c518682613238565b612c5f601880546001019055565b612c6d818660400151613252565b612c7b81866060015161328b565b612c89818660200151612eda565b612c97818660000151612a33565b6001600160a01b0386166000908152601160205260409020612cb990826132c4565b50604080860151600090815260156020908152828220805460ff191660011790558382526010815282822080546001600160a01b03808c166001600160a01b03199283168117909355600f90935292849020805490931617909155600d5491516375aab41d60e11b815291169063eb55683a90612d3c9084908890600401614c67565b600060405180830381600087803b158015612d5657600080fd5b505af1158015612d6a573d6000803e3d6000fd5b50505050505050505050565b60008181526009602052604081208054612d8f90614e1b565b80601f0160208091040260200160405190810160405280929190818152602001828054612dbb90614e1b565b8015612e085780601f10612ddd57610100808354040283529160200191612e08565b820191906000526020600020905b815481529060010190602001808311612deb57829003601f168201915b50505050509050612e18826132d0565b805115612e405760008281526009602090815260409091208251612e3e92840190613a35565b505b506000908152600f6020526040902080546001600160a01b0319169055565b6000808080612e6e8686613378565b9097909650945050505050565b6000612a2b8484846133a3565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b81612ee481612791565b612f005760405162461bcd60e51b815260040161092e90614b49565b600083815260146020908152604090912083516121e792850190613a35565b612f2a848484612ad2565b612f36848484846133ef565b6121e75760405162461bcd60e51b815260040161092e906149c7565b6121e784848484604051602401612f6c94939291906148ac565b60408051601f198184030181529190526020810180516001600160e01b031663122cc37960e11b179052613065565b612fa36139a7565b612fe06040518060400160405280600a8152602001692fb430b9b42a37b5b2b760b11b8152508360800151600001518460800151602001516134c0565b608082015151604051612ffa919043908690602001614771565b60408051601f198184030181529181528151602092830120608085018051830191909152518201519051613032924391879101614771565b60408051808303601f19018152919052805160209091012060808301516060015250919050565b60006111628383613507565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b60006107f282612abc565b60008260000182815481106130b657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b826001600160a01b03166130dc8261161b565b6001600160a01b0316146131445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161092e565b6001600160a01b0382166131a65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161092e565b6131b1600082612826565b6001600160a01b03831660009081526001602052604090206131d39082613513565b506001600160a01b03821660009081526001602052604090206131f690826132c4565b506132036002828461351f565b5080826001600160a01b0316846001600160a01b0316600080516020614f0983398151915260405160405180910390a4505050565b6126cd828260405180602001604052806000815250613535565b8161325c81612791565b6132785760405162461bcd60e51b815260040161092e90614b49565b5060009182526012602052604090912055565b8161329581612791565b6132b15760405162461bcd60e51b815260040161092e90614b49565b5060009182526013602052604090912055565b60006111628383613568565b60006132db8261161b565b90506132e8600083612826565b6000828152600960205260409020805461330190614e1b565b15905061331f57600082815260096020526040812061331f91613ab9565b6001600160a01b03811660009081526001602052604090206133419083613513565b5061334d6002836135b7565b5060405182906000906001600160a01b03841690600080516020614f09833981519152908390a45050565b600080806133868585612ac6565b600081815260029690960160205260409095205494959350505050565b6000828152600284016020526040812054801515806133c757506133c78585613507565b83906133e65760405162461bcd60e51b815260040161092e919061486f565b50949350505050565b60006001600160a01b0384163b61340857506001612a2b565b6000613489630a85bd0160e11b3388878760405160240161342c94939291906147d4565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001614eae603291396001600160a01b03881691906135c3565b90506000818060200190518101906134a19190614266565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b610a938383836040516024016134d8939291906148f4565b60408051601f198184030181529190526020810180516001600160e01b0316632ced7cef60e01b179052613065565b600061116283836135d2565b600061116283836135ea565b6000612a2b84846001600160a01b038516613707565b61353f8383613724565b61354c60008484846133ef565b610a935760405162461bcd60e51b815260040161092e906149c7565b60008181526001830160205260408120546135af575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107f2565b5060006107f2565b60006111628383613829565b6060612a2b8484600085613846565b60008181526001830160205260408120541515611162565b600081815260018301602052604081205480156136fd57600061360e600183614dd8565b855490915060009061362290600190614dd8565b90508181146136a357600086600001828154811061365057634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061368157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806136c257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107f2565b60009150506107f2565b60008281526002840160205260408120829055612a2b84846132c4565b6001600160a01b03821661377a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161092e565b61378381612791565b156137cf5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161092e565b6001600160a01b03821660009081526001602052604090206137f190826132c4565b506137fe6002828461351f565b5060405181906001600160a01b03841690600090600080516020614f09833981519152908290a45050565b600081815260028301602052604081208190556111628383613513565b6060824710156138a75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161092e565b843b6138f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161092e565b600080866001600160a01b031685876040516139119190614755565b60006040518083038185875af1925050503d806000811461394e576040519150601f19603f3d011682016040523d82523d6000602084013e613953565b606091505b509150915061396382828661396e565b979650505050505050565b6060831561397d575081611162565b82511561398d5782518084602001fd5b8160405162461bcd60e51b815260040161092e919061486f565b6040805160e081019091528060008152602001606081526020016000815260200160008152602001613a006040518060800160405280606081526020016060815260200160008019168152602001600080191681525090565b8152602001613a0d613af3565b815260408051606081018252600080825260208281018290529282015291015290565b905290565b828054613a4190614e1b565b90600052602060002090601f016020900481019282613a635760008555613aa9565b82601f10613a7c57805160ff1916838001178555613aa9565b82800160010185558215613aa9579182015b82811115613aa9578251825591602001919060010190613a8e565b50613ab5929150613b20565b5090565b508054613ac590614e1b565b6000825580601f10613ad5575050565b601f0160209004906000526020600020908101906126199190613b20565b6040518060600160405280613b06613b35565b8152602001613b13613b35565b8152602001613a30613b35565b5b80821115613ab55760008155600101613b21565b6040518060200160405280600081525090565b60006001600160401b0380841115613b6257613b62614e81565b604051601f8501601f19908116603f01168101908282118183101715613b8a57613b8a614e81565b81604052809350858152868686011115613ba357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114613bd457600080fd5b919050565b80358015158114613bd457600080fd5b803560048110613bd457600080fd5b600082601f830112613c08578081fd5b61116283833560208501613b48565b600060608284031215613c28578081fd5b613c30614d49565b905081358152613c4260208301613bbd565b6020820152613c5360408301613bd9565b604082015292915050565b600060608284031215613c6f578081fd5b613c77614d49565b9050613c838383613d3e565b8152613c928360208401613d3e565b6020820152613c538360408401613d3e565b600060c08284031215613cb5578081fd5b60405160c081018181106001600160401b0382111715613cd757613cd7614e81565b60405282358152905080613ced60208401613bbd565b6020820152613cfe60408401613bbd565b6040820152613d0f60608401613bbd565b6060820152613d218460808501613d3e565b6080820152613d3260a08401613bd9565b60a08201525092915050565b600060208284031215613d4f578081fd5b604051602081018181106001600160401b0382111715613d7157613d71614e81565b6040529135825250919050565b600060808284031215613d8f578081fd5b613d97614d71565b905081358152602082013560ff81168114613db157600080fd5b80602083015250604082013560408201526060820135606082015292915050565b600060808284031215613de3578081fd5b613deb614d71565b905081356001600160401b0380821115613e0457600080fd5b613e1085838601613bf8565b83526020840135915080821115613e2657600080fd5b50613e3384828501613bf8565b602083015250604082013560408201526060820135606082015292915050565b600060608284031215613e64578081fd5b613e6c614d49565b90508135815260208201356020820152613c5360408301613bd9565b60006101808284031215613e9a578081fd5b613ea2614d93565b9050613ead82613be9565b815260208201356001600160401b0380821115613ec957600080fd5b613ed585838601613bf8565b6020840152613ee78560408601613c17565b604084015260a0840135606084015260c0840135608084015260e084013560a0840152610100840135915080821115613f1f57600080fd5b50613f2c84828501613dd2565b60c083015250613f40836101208401613c5e565b60e082015292915050565b60006101608284031215613f5d578081fd5b613f65614db6565b9050613f7082613be9565b815260208201356001600160401b0380821115613f8c57600080fd5b613f9885838601613bf8565b602084015260408401356040840152606084013560608401526080840135915080821115613fc557600080fd5b50613fd284828501613dd2565b608083015250613fe58360a08401613c5e565b60a0820152613ff8836101008401613e53565b60c082015292915050565b600060208284031215614014578081fd5b61116282613bbd565b6000806040838503121561402f578081fd5b61403883613bbd565b915061404660208401613bbd565b90509250929050565b600080600060608486031215614063578081fd5b61406c84613bbd565b925061407a60208501613bbd565b9150604084013590509250925092565b6000806000806080858703121561409f578182fd5b6140a885613bbd565b93506140b660208601613bbd565b92506040850135915060608501356001600160401b038111156140d7578182fd5b8501601f810187136140e7578182fd5b6140f687823560208401613b48565b91505092959194509250565b60008060408385031215614114578182fd5b61411d83613bbd565b915061404660208401613bd9565b6000806000806101208587031215614141578182fd5b61414a85613bbd565b935060208501356001600160401b03811115614164578283fd5b61417087828801613dd2565b9350506141808660408701613c5e565b915061418f8660a08701613d7e565b905092959194509250565b600080604083850312156141ac578182fd5b6141b583613bbd565b915060208301356001600160401b038111156141cf578182fd5b6141db85828601613f4b565b9150509250929050565b600080604083850312156141f7578182fd5b61420083613bbd565b946020939093013593505050565b600080600060c08486031215614222578081fd5b61422b84613bbd565b9250602084013591506142418560408601613d7e565b90509250925092565b60006020828403121561425b578081fd5b813561116281614e97565b600060208284031215614277578081fd5b815161116281614e97565b60008060808385031215614294578182fd5b82356001600160401b038111156142a9578283fd5b6142b585828601613dd2565b9250506140468460208501613c5e565b6000602082840312156142d6578081fd5b5035919050565b600080604083850312156142ef578182fd5b8235915061404660208401613bbd565b600080600060408486031215614313578081fd5b8335925060208401356001600160401b0380821115614330578283fd5b818601915086601f830112614343578283fd5b813581811115614351578384fd5b876020828501011115614362578384fd5b6020830194508093505050509250925092565b600080600060608486031215614389578081fd5b8335925060208401356001600160401b038111156143a5578182fd5b6143b186828701613bf8565b92505061424160408501613bbd565b600080608083850312156143d2578182fd5b823591506140468460208501613c17565b60008060e083850312156143f5578182fd5b823591506140468460208501613ca4565b6000806000610100848603121561441b578081fd5b8335925061442c8560208601613ca4565b915061424160e08501613bbd565b6000806000806101208587031215614450578182fd5b8435935060208501356001600160401b0381111561446c578283fd5b61447887828801613e88565b9350506144888660408701613ca4565b915061418f6101008601613bbd565b60008060008061012085870312156144ad578182fd5b8435935060208501356001600160401b03808211156144ca578384fd5b6144d688838901613e88565b945060408701359150808211156144eb578384fd5b506144f887828801613f4b565b92505061418f8660608701613ca4565b60008151808452614520816020860160208601614def565b601f01601f19169290920160200192915050565b6004811061455257634e487b7160e01b600052602160045260246000fd5b9052565b805182526020808201516001600160a01b0316908301526040908101511515910152565b8051518252602080820151519083015260409081015151910152565b80518252602081015160018060a01b0380821660208501528060408401511660408501528060608401511660608501525050608081015151608083015260a0810151151560a08301525050565b60008151608084526145f86080850182614508565b9050602083015184820360208601526146118282614508565b91505060408301516040850152606083015160608501528091505092915050565b6000610180614642848451614534565b602083015181602086015261465982860182614508565b915050604083015161466e6040860182614556565b50606083015160a0850152608083015160c085015260a083015160e085015260c08301518482036101008601526146a582826145e3565b91505060e083015161161361012086018261457a565b60006101606146cb848451614534565b60208301518160208601526146e282860182614508565b91505060408301516040850152606083015160608501526080830151848203608086015261471082826145e3565b91505060a083015161472560a086018261457a565b5060c092909201518051610100850152602081015161012085015260400151151561014090930192909252919050565b60008251614767818460208701614def565b9190910192915050565b60008451614783818460208901614def565b919091019283525060601b6001600160601b0319166020820152603401919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061480790830184614508565b9695505050505050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b93845260ff9290921660208401526040830152606082015260800190565b6020815260006111626020830184614508565b6040815260006148956040830185614508565b905060018060a01b03831660208301529392505050565b6080815260006148bf6080830187614508565b6001600160a01b038616602084015282810360408401526148e08186614508565b905082810360608401526139638185614508565b6060815260006149076060830186614508565b82810360208401526149198186614508565b905082810360408401526148078185614508565b60208082526028908201527f4d656469613a20746f6b656e2077697468207468617420696420646f6573206e6040820152671bdd08195e1a5cdd60c21b606082015260800190565b60208082526032908201527f4d656469613a204f6e6c792061707020636f6e74726163742c206d61726b65746040820152711031b7b73a3930b1ba1037b91037bbb732b960711b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526021908201527f4d61726b65743a20426964646572206d757374206265206d73672073656e64656040820152603960f91b606082015260800190565b6020808252601d908201527f4d656469613a204f6e6c7920617070726f766564206f72206f776e6572000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601890820152771359591a584e8814da59db985d1d5c99481a5b9d985b1a5960421b604082015260600190565b60208082526018908201527726b2b234b09d103737b732bc34b9ba32b73a103a37b5b2b760411b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526026908201527f4d656469613a2073706563696669656420757269206d757374206265206e6f6e6040820152652d656d70747960d01b606082015260800190565b60208152600061116260208301846146bb565b9182526001600160a01b0316602082015260400190565b838152606060208201526000614c3b6060830185614508565b905060018060a01b0383166040830152949350505050565b828152608081016111626020830184614556565b82815260808101611162602083018461457a565b82815260e081016111626020830184614596565b8381526101008101614ca46020830185614596565b6001600160a01b039290921660e0919091015292915050565b6000610120868352806020840152614cd781840187614632565b915050614ce76040830185614596565b6001600160a01b039290921661010091909101529392505050565b6000610120868352806020840152614d1c81840187614632565b90508281036040840152614d3081866146bb565b915050614d406060830184614596565b95945050505050565b604051606081016001600160401b0381118282101715614d6b57614d6b614e81565b60405290565b604051608081016001600160401b0381118282101715614d6b57614d6b614e81565b60405161010081016001600160401b0381118282101715614d6b57614d6b614e81565b60405160e081016001600160401b0381118282101715614d6b57614d6b614e81565b600082821015614dea57614dea614e6b565b500390565b60005b83811015614e0a578181015183820152602001614df2565b838111156121e75750506000910152565b600181811c90821680614e2f57607f821691505b60208210811415610dff57634e487b7160e01b600052602260045260246000fd5b6000600019821415614e6457614e64614e6b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461261957600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656eddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122061817e06b5edaf314bd545ba7d572db7218083f5bfe2d0b0b19efc2d7deb535d64736f6c634300080400330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000064c55584e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c55584e46540000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102b85760003560e01c806375682e791161017957806375682e791461053b5780637a05050a1461054e5780637a7a1202146105615780637f9f5987146105745780638da5cb5b1461058757806395d89b411461058f5780639ac26549146105975780639d8e7260146105aa5780639f079396146105d3578063a1794bcd146105e6578063a22cb465146105f9578063afcbbd2c1461060c578063b05270a71461061f578063b1e130fc14610632578063b320f45914610645578063b88d4fde14610658578063c87b56dd1461066b578063d1df306c1461067e578063de5236fb14610691578063debe86ed146106b8578063e0fd045f146106cb578063e470d5cf146106f4578063e796edeb14610707578063e985e9c514610730578063ea827ada14610743578063f2fde38b14610763578063f6b630f014610776578063f8ccd5de14610789578063fad32197146107b4578063fcff354a146107d457600080fd5b8062923f9e146102bd57806301ddc3b5146102e557806301ffc9a71461031357806306fdde0314610326578063081812fc1461033b578063095ea7b31461035b5780630bcd899b146103705780630e2a177814610390578063157c3df9146103a357806318160ddd146103b657806318e97fd1146103be5780631b000df3146103d15780632110f20d146103e457806323b872dd146103f757806326f88abe1461040a57806328220f351461041d5780632cca3237146104305780632f745c59146104435780632fc12ecf1461045657806330adf81f1461046957806340c1a0641461049057806342842e0e146104b957806342966c68146104cc578063430c2081146104df5780634f6ccce7146104f25780636352211e146105055780636c0360eb1461051857806370a0823114610520578063715018a614610533575b600080fd5b6102d06102cb3660046142c5565b6107e7565b60405190151581526020015b60405180910390f35b6103056102f33660046142c5565b60136020526000908152604090205481565b6040519081526020016102dc565b6102d061032136600461424a565b6107f8565b61032e610834565b6040516102dc919061486f565b61034e6103493660046142c5565b6108c6565b6040516102dc91906147c0565b61036e6103693660046141e5565b610953565b005b61030561037e366004614003565b60176020526000908152604090205481565b61036e61039e36600461420e565b610a98565b61032e6103b13660046142c5565b610d3b565b610305610e05565b61036e6103cc3660046142ff565b610e16565b61036e6103df366004614406565b610fc0565b6103056103f2366004614003565b61110d565b61036e61040536600461404f565b611169565b61036e6104183660046143e3565b61119a565b61036e61042b3660046142c5565b61127f565b61036e61043e366004614282565b611300565b6103056104513660046141e5565b611395565b61036e610464366004614406565b6113b7565b6103057f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b61034e61049e3660046142c5565b6000908152601060205260409020546001600160a01b031690565b61036e6104c736600461404f565b6114d0565b61036e6104da3660046142c5565b6114eb565b6102d06104ed3660046141e5565b6115f9565b6103056105003660046142c5565b611605565b61034e6105133660046142c5565b61161b565b61032e611643565b61030561052e366004614003565b611652565b61036e6116de565b61036e6105493660046142ff565b611719565b61036e61055c3660046143c0565b6118aa565b61036e61056f36600461412b565b611983565b61036e6105823660046143e3565b611bea565b61034e611c6c565b61032e611c7b565b61036e6105a53660046143c0565b611c8a565b61034e6105b83660046142c5565b600f602052600090815260409020546001600160a01b031681565b61036e6105e13660046142dd565b611d0c565b600d5461034e906001600160a01b031681565b61036e610607366004614102565b611de7565b61036e61061a36600461443a565b611ea8565b61036e61062d366004614375565b611f94565b61036e6106403660046142c5565b612049565b61036e6106533660046142c5565b6120f8565b61036e61066636600461408a565b6121b5565b61032e6106793660046142c5565b6121ed565b61036e61068c3660046141e5565b6122b7565b6103057f2952e482b8e2b192305f87374d7af45dc2eafafe4f50d26a0c02e90f2fdbe14b81565b600e5461034e906001600160a01b031681565b61034e6106d93660046142c5565b6010602052600090815260409020546001600160a01b031681565b61036e61070236600461401d565b612336565b61034e6107153660046142c5565b6000908152600f60205260409020546001600160a01b031690565b6102d061073e36600461401d565b61247d565b61075661075136600461419a565b6124ab565b6040516102dc9190614bf8565b61036e610771366004614003565b61257c565b61036e6107843660046142dd565b61261c565b6103056107973660046141e5565b601660209081526000928352604080842090915290825290205481565b6103056107c23660046142c5565b60126020526000908152604090205481565b61036e6107e2366004614497565b6126d1565b60006107f282612791565b92915050565b60006301ffc9a760e01b6001600160e01b0319831614806107f25750506001600160e01b03191660009081526020819052604090205460ff1690565b60606007805461084390614e1b565b80601f016020809104026020016040519081016040528092919081815260200182805461086f90614e1b565b80156108bc5780601f10610891576101008083540402835291602001916108bc565b820191906000526020600020905b81548152906001019060200180831161089f57829003601f168201915b5050505050905090565b60006108d182612791565b6109375760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061095e8261161b565b905061098b604051806040016040528060098152602001682a34329037bbb732b960b91b8152508261279e565b806001600160a01b0316836001600160a01b031614156109f75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161092e565b610a00336127e3565b336001600160a01b0382161480610a1c5750610a1c813361247d565b610a895760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161092e565b610a938383612826565b505050565b6002600b541415610abb5760405162461bcd60e51b815260040161092e90614b7b565b6002600b5581610aca81612791565b610ae65760405162461bcd60e51b815260040161092e90614b49565b81511580610af5575081514211155b610b395760405162461bcd60e51b81526020600482015260156024820152741359591a584e8814195c9b5a5d08195e1c1a5c9959605a1b604482015260640161092e565b6001600160a01b038416610b8e5760405162461bcd60e51b815260206004820152601c60248201527b04d656469613a207370656e6465722063616e6e6f74206265203078360241b604482015260640161092e565b6000610b98612894565b90506000817f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad8787601685610bcc8361161b565b6001600160a01b03168152602080820192909252604090810160009081208c82529092528120805491610bfe83614e50565b9091555088516040805160208101969096526001600160a01b03909416938501939093526060840191909152608083015260a082015260c00160405160208183030381529060405280519060200120604051602001610c5e9291906147a5565b604051602081830303815290604052805190602001209050600060018286602001518760400151886060015160405160008152602001604052604051610ca79493929190614851565b6020604051602081039080840390855afa158015610cc9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610d075750806001600160a01b0316610cfc8761161b565b6001600160a01b0316145b610d235760405162461bcd60e51b815260040161092e90614b17565b610d2d8787612826565b50506001600b555050505050565b60608180610d4860185490565b11610d655760405162461bcd60e51b815260040161092e9061492d565b60008381526014602052604090208054610d7e90614e1b565b80601f0160208091040260200160405190810160405280929190818152602001828054610daa90614e1b565b8015610df75780601f10610dcc57610100808354040283529160200191610df7565b820191906000526020600020905b815481529060010190602001808311610dda57829003601f168201915b505050505091505b50919050565b6000610e11600261295e565b905090565b6002600b541415610e395760405162461bcd60e51b815260040161092e90614b7b565b6002600b553383610e4a8282612969565b610e665760405162461bcd60e51b815260040161092e90614a5a565b6000858152601260205260409020548590610ede5760405162461bcd60e51b815260206004820152603260248201527f4d656469613a20746f6b656e20646f6573206e6f7420686176652068617368206044820152711bd98818dc99585d19590818dbdb9d195b9d60721b606482015260840161092e565b84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050825115159150610f3690505760405162461bcd60e51b815260040161092e90614bb2565b610f768787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612a3392505050565b867f702fe2dc2dc0f68023540aa4a1e11811c0f29112f6ebf01e61b90538e4f29810338888604051610faa93929190614811565b60405180910390a250506001600b555050505050565b6002600b541415610fe35760405162461bcd60e51b815260040161092e90614b7b565b6002600b5582610ff281612791565b61100e5760405162461bcd60e51b815260040161092e90614b49565b600e546001600160a01b03163314806110315750600d546001600160a01b031633145b8061104b575033611040611c6c565b6001600160a01b0316145b6110675760405162461bcd60e51b815260040161092e90614975565b82604001516001600160a01b0316826001600160a01b03161461109c5760405162461bcd60e51b815260040161092e90614a19565b600d54604051638e3d633b60e01b81526001600160a01b0390911690638e3d633b906110d090879087908790600401614c8f565b600060405180830381600087803b1580156110ea57600080fd5b505af11580156110fe573d6000803e3d6000fd5b50506001600b55505050505050565b6001600160a01b0381166000908152601160205260408120819060019061113390612abc565b61113d9190614dd8565b6001600160a01b03841660009081526011602052604090209091506111629082612ac6565b9392505050565b6111733382612969565b61118f5760405162461bcd60e51b815260040161092e90614ac6565b610a93838383612ad2565b6002600b5414156111bd5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55816111cc81612791565b6111e85760405162461bcd60e51b815260040161092e90614b49565b81604001516001600160a01b0316336001600160a01b03161461121d5760405162461bcd60e51b815260040161092e90614a19565b600d54604051638e3d633b60e01b81526001600160a01b0390911690638e3d633b9061125190869086903390600401614c8f565b600060405180830381600087803b15801561126b57600080fd5b505af1158015610d2d573d6000803e3d6000fd5b6002600b5414156112a25760405162461bcd60e51b815260040161092e90614b7b565b6002600b5533816112b38282612969565b6112cf5760405162461bcd60e51b815260040161092e90614a5a565b600d546040516328220f3560e01b8152600481018590526001600160a01b03909116906328220f3590602401611251565b6002600b5414156113235760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b031633148061134b5750600d546001600160a01b031633145b8061136557503361135a611c6c565b6001600160a01b0316145b6113815760405162461bcd60e51b815260040161092e90614975565b61138c338383612b3b565b50506001600b55565b6001600160a01b03821660009081526001602052604081206111629083612ac6565b6002600b5414156113da5760405162461bcd60e51b815260040161092e90614b7b565b6002600b5580836113eb8282612969565b6114075760405162461bcd60e51b815260040161092e90614a5a565b600e546001600160a01b031633148061142a5750600d546001600160a01b031633145b80611444575033611439611c6c565b6001600160a01b0316145b6114605760405162461bcd60e51b815260040161092e90614975565b600d54604051637f9f598760e01b81526001600160a01b0390911690637f9f5987906114929088908890600401614c7b565b600060405180830381600087803b1580156114ac57600080fd5b505af11580156114c0573d6000803e3d6000fd5b50506001600b5550505050505050565b610a93838383604051806020016040528060008152506121b5565b6002600b54141561150e5760405162461bcd60e51b815260040161092e90614b7b565b6002600b558061151d81612791565b6115395760405162461bcd60e51b815260040161092e90614b49565b33826115458282612969565b6115615760405162461bcd60e51b815260040161092e90614a5a565b600061156c8561161b565b6000868152601060205260409020549091506001600160a01b038083169116146115e45760405162461bcd60e51b8152602060048201526024808201527f4d656469613a206f776e6572206973206e6f742063726561746f72206f66206d6044820152636564696160e01b606482015260840161092e565b6115ed85612d76565b50506001600b55505050565b60006111628383612969565b600080611613600284612e5f565b509392505050565b60006107f282604051806060016040528060298152602001614ee06029913960029190612e7b565b6060600a805461084390614e1b565b60006001600160a01b0382166116bd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161092e565b6001600160a01b03821660009081526001602052604090206107f290612abc565b336116e7611c6c565b6001600160a01b03161461170d5760405162461bcd60e51b815260040161092e90614a91565b6117176000612e88565b565b6002600b54141561173c5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55338361174d8282612969565b6117695760405162461bcd60e51b815260040161092e90614a5a565b60008581526013602052604090205485906117de5760405162461bcd60e51b815260206004820152602f60248201527f4d656469613a20746f6b656e20646f6573206e6f74206861766520686173682060448201526e6f6620697473206d6574616461746160881b606482015260840161092e565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505082511515915061183690505760405162461bcd60e51b815260040161092e90614bb2565b6118768787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612eda92505050565b867fe3df41127db820c79e5b8d541a63e40e3e97b9af96f7a50bded13091b70df9ae338888604051610faa93929190614811565b6002600b5414156118cd5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55816118dc81612791565b6118f85760405162461bcd60e51b815260040161092e90614b49565b600e546001600160a01b031633148061191b5750600d546001600160a01b031633145b8061193557503361192a611c6c565b6001600160a01b0316145b6119515760405162461bcd60e51b815260040161092e90614975565b600d54604051639ac2654960e01b81526001600160a01b0390911690639ac26549906112519086908690600401614c53565b6002600b5414156119a65760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b03163314806119ce5750600d546001600160a01b031633145b806119e85750336119dd611c6c565b6001600160a01b0316145b611a045760405162461bcd60e51b815260040161092e90614975565b80511580611a13575080514211155b611a5c5760405162461bcd60e51b815260206004820152601a6024820152791359591a584e881b5a5b9d15da5d1a14da59c8195e1c1a5c995960321b604482015260640161092e565b6000611a66612894565b6040808601516060870151602080880151516001600160a01b038b16600090815260179092529381208054959650909486947f2952e482b8e2b192305f87374d7af45dc2eafafe4f50d26a0c02e90f2fdbe14b94939290919087611ac983614e50565b9091555088516040805160208101979097528601949094526060850192909252608084015260a083015260c082015260e00160405160208183030381529060405280519060200120604051602001611b229291906147a5565b604051602081830303815290604052805190602001209050600060018285602001518660400151876060015160405160008152602001604052604051611b6b9493929190614851565b6020604051602081039080840390855afa158015611b8d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590611bc35750806001600160a01b0316876001600160a01b0316145b611bdf5760405162461bcd60e51b815260040161092e90614b17565b610d2d818787612b3b565b6002600b541415611c0d5760405162461bcd60e51b815260040161092e90614b7b565b6002600b553382611c1e8282612969565b611c3a5760405162461bcd60e51b815260040161092e90614a5a565b600d54604051637f9f598760e01b81526001600160a01b0390911690637f9f5987906110d09087908790600401614c7b565b600c546001600160a01b031690565b60606008805461084390614e1b565b6002600b541415611cad5760405162461bcd60e51b815260040161092e90614b7b565b6002600b553382611cbe8282612969565b611cda5760405162461bcd60e51b815260040161092e90614a5a565b600d54604051639ac2654960e01b81526001600160a01b0390911690639ac26549906110d09087908790600401614c53565b6002600b541415611d2f5760405162461bcd60e51b815260040161092e90614b7b565b6002600b558180611d3f60185490565b11611d5c5760405162461bcd60e51b815260040161092e9061492d565b600e546001600160a01b0316331480611d7f5750600d546001600160a01b031633145b80611d99575033611d8e611c6c565b6001600160a01b0316145b611db55760405162461bcd60e51b815260040161092e90614975565b600d5460405163776a083560e01b81526001600160a01b039091169063776a0835906112519086908690600401614c0b565b6001600160a01b038216331415611e3c5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161092e565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600b541415611ecb5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b0316331480611ef35750600d546001600160a01b031633145b80611f0d575033611f02611c6c565b6001600160a01b0316145b611f295760405162461bcd60e51b815260040161092e90614975565b81604001516001600160a01b0316816001600160a01b031614611f5e5760405162461bcd60e51b815260040161092e90614a19565b600d54604051632bf2ef4b60e21b81526001600160a01b039091169063afcbbd2c906110d0908790879087908790600401614cbd565b6002600b541415611fb75760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b0316331480611fdf5750600d546001600160a01b031633145b80611ff9575033611fee611c6c565b6001600160a01b0316145b6120155760405162461bcd60e51b815260040161092e90614975565b600d5460405163b05270a760e01b81526001600160a01b039091169063b05270a79061125190869086908690600401614c22565b6002600b54141561206c5760405162461bcd60e51b815260040161092e90614b7b565b6002600b5561207a816108c6565b6001600160a01b0316336001600160a01b0316146120e55760405162461bcd60e51b815260206004820152602260248201527f4d656469613a2063616c6c6572206e6f7420617070726f766564206164647265604482015261737360f01b606482015260840161092e565b6120f0600082612826565b506001600b55565b6002600b54141561211b5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55808061212b60185490565b116121485760405162461bcd60e51b815260040161092e9061492d565b600d5460405163776a083560e01b81526001600160a01b039091169063776a08359061217a9085903390600401614c0b565b600060405180830381600087803b15801561219457600080fd5b505af11580156121a8573d6000803e3d6000fd5b50506001600b5550505050565b6121bf3383612969565b6121db5760405162461bcd60e51b815260040161092e90614ac6565b6121e784848484612f1f565b50505050565b606081806121fa60185490565b116122175760405162461bcd60e51b815260040161092e9061492d565b6000838152600960205260408120805461223090614e1b565b80601f016020809104026020016040519081016040528092919081815260200182805461225c90614e1b565b80156122a95780601f1061227e576101008083540402835291602001916122a9565b820191906000526020600020905b81548152906001019060200180831161228c57829003601f168201915b509398975050505050505050565b6002600b5414156122da5760405162461bcd60e51b815260040161092e90614b7b565b6002600b55806122e981612791565b6123055760405162461bcd60e51b815260040161092e90614b49565b82826123118282612969565b61232d5760405162461bcd60e51b815260040161092e90614a5a565b6115ed84612d76565b3361233f611c6c565b6001600160a01b0316146123655760405162461bcd60e51b815260040161092e90614a91565b6001600160a01b0382166123d25760405162461bcd60e51b815260206004820152602e60248201527f4d656469613a2063616e6e6f74207365742061707020636f6e7472616374206160448201526d73207a65726f206164647265737360901b606482015260840161092e565b600e80546001600160a01b0319166001600160a01b0384811691909117909155811661245a5760405162461bcd60e51b815260206004820152603160248201527f4d656469613a2063616e6e6f7420736574206d61726b657420636f6e7472616360448201527074206173207a65726f206164647265737360781b606482015260840161092e565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6124b36139a7565b600e546001600160a01b03163314806124d65750600d546001600160a01b031633145b806124f05750336124e5611c6c565b6001600160a01b0316145b61250c5760405162461bcd60e51b815260040161092e90614975565b6125456040518060400160405280600981526020016836b4b73a2a37b5b2b760b91b815250848460200151856080015160000151612f52565b61254f8383612f9b565b91506125648383608001518460a00151612b3b565b600061256f8461110d565b6040840152509092915050565b33612585611c6c565b6001600160a01b0316146125ab5760405162461bcd60e51b815260040161092e90614a91565b6001600160a01b0381166126105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161092e565b61261981612e88565b50565b600e546001600160a01b031633148061263f5750600d546001600160a01b031633145b8061265957503361264e611c6c565b6001600160a01b0316145b6126755760405162461bcd60e51b815260040161092e90614975565b61267e8261161b565b6000838152600f6020526040902080546001600160a01b0319166001600160a01b03929092169190911790556126cd6126b68361161b565b828460405180602001604052806000815250612f1f565b5050565b6002600b5414156126f45760405162461bcd60e51b815260040161092e90614b7b565b6002600b55600e546001600160a01b031633148061271c5750600d546001600160a01b031633145b8061273657503361272b611c6c565b6001600160a01b0316145b6127525760405162461bcd60e51b815260040161092e90614975565b600d54604051637e7f9aa560e11b81526001600160a01b039091169063fcff354a906110d0908790879087908790600401614d02565b80546001019055565b60006107f2600283613059565b6126cd82826040516024016127b4929190614882565b60408051601f198184030181529190526020810180516001600160e01b031663319af33360e01b179052613065565b612619816040516024016127f791906147c0565b60408051601f198184030181529190526020810180516001600160e01b031663161765e160e11b179052613065565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061285b8261161b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805180820182526003815262098aab60eb1b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527fc5d52c00f18c583276f90165da62daa81ba4c859580e526e76cddea6fd312124818401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b60006107f282613086565b600061297482612791565b6129d55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161092e565b60006129e08361161b565b9050806001600160a01b0316846001600160a01b03161480612a1b5750836001600160a01b0316612a10846108c6565b6001600160a01b0316145b80612a2b5750612a2b818561247d565b949350505050565b612a3c82612791565b612a9d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d657461646174613a2055524920736574206f66206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161092e565b60008281526009602090815260409091208251610a9392840190613a35565b60006107f2825490565b60006111628383613091565b600d546040516328220f3560e01b8152600481018390526001600160a01b03909116906328220f3590602401600060405180830381600087803b158015612b1857600080fd5b505af1158015612b2c573d6000803e3d6000fd5b50505050610a938383836130c9565b81518051612b5b5760405162461bcd60e51b815260040161092e90614bb2565b60208301518051612b7e5760405162461bcd60e51b815260040161092e90614bb2565b6040840151612bdb5760405162461bcd60e51b8152602060048201526024808201527f4d656469613a20636f6e74656e742068617368206d757374206265206e6f6e2d6044820152637a65726f60e01b606482015260840161092e565b6060840151612c3a5760405162461bcd60e51b815260206004820152602560248201527f4d656469613a206d657461646174612068617368206d757374206265206e6f6e6044820152642d7a65726f60d81b606482015260840161092e565b6000612c4560185490565b9050612c518682613238565b612c5f601880546001019055565b612c6d818660400151613252565b612c7b81866060015161328b565b612c89818660200151612eda565b612c97818660000151612a33565b6001600160a01b0386166000908152601160205260409020612cb990826132c4565b50604080860151600090815260156020908152828220805460ff191660011790558382526010815282822080546001600160a01b03808c166001600160a01b03199283168117909355600f90935292849020805490931617909155600d5491516375aab41d60e11b815291169063eb55683a90612d3c9084908890600401614c67565b600060405180830381600087803b158015612d5657600080fd5b505af1158015612d6a573d6000803e3d6000fd5b50505050505050505050565b60008181526009602052604081208054612d8f90614e1b565b80601f0160208091040260200160405190810160405280929190818152602001828054612dbb90614e1b565b8015612e085780601f10612ddd57610100808354040283529160200191612e08565b820191906000526020600020905b815481529060010190602001808311612deb57829003601f168201915b50505050509050612e18826132d0565b805115612e405760008281526009602090815260409091208251612e3e92840190613a35565b505b506000908152600f6020526040902080546001600160a01b0319169055565b6000808080612e6e8686613378565b9097909650945050505050565b6000612a2b8484846133a3565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b81612ee481612791565b612f005760405162461bcd60e51b815260040161092e90614b49565b600083815260146020908152604090912083516121e792850190613a35565b612f2a848484612ad2565b612f36848484846133ef565b6121e75760405162461bcd60e51b815260040161092e906149c7565b6121e784848484604051602401612f6c94939291906148ac565b60408051601f198184030181529190526020810180516001600160e01b031663122cc37960e11b179052613065565b612fa36139a7565b612fe06040518060400160405280600a8152602001692fb430b9b42a37b5b2b760b11b8152508360800151600001518460800151602001516134c0565b608082015151604051612ffa919043908690602001614771565b60408051601f198184030181529181528151602092830120608085018051830191909152518201519051613032924391879101614771565b60408051808303601f19018152919052805160209091012060808301516060015250919050565b60006111628383613507565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b60006107f282612abc565b60008260000182815481106130b657634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b826001600160a01b03166130dc8261161b565b6001600160a01b0316146131445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161092e565b6001600160a01b0382166131a65760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161092e565b6131b1600082612826565b6001600160a01b03831660009081526001602052604090206131d39082613513565b506001600160a01b03821660009081526001602052604090206131f690826132c4565b506132036002828461351f565b5080826001600160a01b0316846001600160a01b0316600080516020614f0983398151915260405160405180910390a4505050565b6126cd828260405180602001604052806000815250613535565b8161325c81612791565b6132785760405162461bcd60e51b815260040161092e90614b49565b5060009182526012602052604090912055565b8161329581612791565b6132b15760405162461bcd60e51b815260040161092e90614b49565b5060009182526013602052604090912055565b60006111628383613568565b60006132db8261161b565b90506132e8600083612826565b6000828152600960205260409020805461330190614e1b565b15905061331f57600082815260096020526040812061331f91613ab9565b6001600160a01b03811660009081526001602052604090206133419083613513565b5061334d6002836135b7565b5060405182906000906001600160a01b03841690600080516020614f09833981519152908390a45050565b600080806133868585612ac6565b600081815260029690960160205260409095205494959350505050565b6000828152600284016020526040812054801515806133c757506133c78585613507565b83906133e65760405162461bcd60e51b815260040161092e919061486f565b50949350505050565b60006001600160a01b0384163b61340857506001612a2b565b6000613489630a85bd0160e11b3388878760405160240161342c94939291906147d4565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001614eae603291396001600160a01b03881691906135c3565b90506000818060200190518101906134a19190614266565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b610a938383836040516024016134d8939291906148f4565b60408051601f198184030181529190526020810180516001600160e01b0316632ced7cef60e01b179052613065565b600061116283836135d2565b600061116283836135ea565b6000612a2b84846001600160a01b038516613707565b61353f8383613724565b61354c60008484846133ef565b610a935760405162461bcd60e51b815260040161092e906149c7565b60008181526001830160205260408120546135af575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556107f2565b5060006107f2565b60006111628383613829565b6060612a2b8484600085613846565b60008181526001830160205260408120541515611162565b600081815260018301602052604081205480156136fd57600061360e600183614dd8565b855490915060009061362290600190614dd8565b90508181146136a357600086600001828154811061365057634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061368157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806136c257634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506107f2565b60009150506107f2565b60008281526002840160205260408120829055612a2b84846132c4565b6001600160a01b03821661377a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161092e565b61378381612791565b156137cf5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161092e565b6001600160a01b03821660009081526001602052604090206137f190826132c4565b506137fe6002828461351f565b5060405181906001600160a01b03841690600090600080516020614f09833981519152908290a45050565b600081815260028301602052604081208190556111628383613513565b6060824710156138a75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161092e565b843b6138f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161092e565b600080866001600160a01b031685876040516139119190614755565b60006040518083038185875af1925050503d806000811461394e576040519150601f19603f3d011682016040523d82523d6000602084013e613953565b606091505b509150915061396382828661396e565b979650505050505050565b6060831561397d575081611162565b82511561398d5782518084602001fd5b8160405162461bcd60e51b815260040161092e919061486f565b6040805160e081019091528060008152602001606081526020016000815260200160008152602001613a006040518060800160405280606081526020016060815260200160008019168152602001600080191681525090565b8152602001613a0d613af3565b815260408051606081018252600080825260208281018290529282015291015290565b905290565b828054613a4190614e1b565b90600052602060002090601f016020900481019282613a635760008555613aa9565b82601f10613a7c57805160ff1916838001178555613aa9565b82800160010185558215613aa9579182015b82811115613aa9578251825591602001919060010190613a8e565b50613ab5929150613b20565b5090565b508054613ac590614e1b565b6000825580601f10613ad5575050565b601f0160209004906000526020600020908101906126199190613b20565b6040518060600160405280613b06613b35565b8152602001613b13613b35565b8152602001613a30613b35565b5b80821115613ab55760008155600101613b21565b6040518060200160405280600081525090565b60006001600160401b0380841115613b6257613b62614e81565b604051601f8501601f19908116603f01168101908282118183101715613b8a57613b8a614e81565b81604052809350858152868686011115613ba357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114613bd457600080fd5b919050565b80358015158114613bd457600080fd5b803560048110613bd457600080fd5b600082601f830112613c08578081fd5b61116283833560208501613b48565b600060608284031215613c28578081fd5b613c30614d49565b905081358152613c4260208301613bbd565b6020820152613c5360408301613bd9565b604082015292915050565b600060608284031215613c6f578081fd5b613c77614d49565b9050613c838383613d3e565b8152613c928360208401613d3e565b6020820152613c538360408401613d3e565b600060c08284031215613cb5578081fd5b60405160c081018181106001600160401b0382111715613cd757613cd7614e81565b60405282358152905080613ced60208401613bbd565b6020820152613cfe60408401613bbd565b6040820152613d0f60608401613bbd565b6060820152613d218460808501613d3e565b6080820152613d3260a08401613bd9565b60a08201525092915050565b600060208284031215613d4f578081fd5b604051602081018181106001600160401b0382111715613d7157613d71614e81565b6040529135825250919050565b600060808284031215613d8f578081fd5b613d97614d71565b905081358152602082013560ff81168114613db157600080fd5b80602083015250604082013560408201526060820135606082015292915050565b600060808284031215613de3578081fd5b613deb614d71565b905081356001600160401b0380821115613e0457600080fd5b613e1085838601613bf8565b83526020840135915080821115613e2657600080fd5b50613e3384828501613bf8565b602083015250604082013560408201526060820135606082015292915050565b600060608284031215613e64578081fd5b613e6c614d49565b90508135815260208201356020820152613c5360408301613bd9565b60006101808284031215613e9a578081fd5b613ea2614d93565b9050613ead82613be9565b815260208201356001600160401b0380821115613ec957600080fd5b613ed585838601613bf8565b6020840152613ee78560408601613c17565b604084015260a0840135606084015260c0840135608084015260e084013560a0840152610100840135915080821115613f1f57600080fd5b50613f2c84828501613dd2565b60c083015250613f40836101208401613c5e565b60e082015292915050565b60006101608284031215613f5d578081fd5b613f65614db6565b9050613f7082613be9565b815260208201356001600160401b0380821115613f8c57600080fd5b613f9885838601613bf8565b602084015260408401356040840152606084013560608401526080840135915080821115613fc557600080fd5b50613fd284828501613dd2565b608083015250613fe58360a08401613c5e565b60a0820152613ff8836101008401613e53565b60c082015292915050565b600060208284031215614014578081fd5b61116282613bbd565b6000806040838503121561402f578081fd5b61403883613bbd565b915061404660208401613bbd565b90509250929050565b600080600060608486031215614063578081fd5b61406c84613bbd565b925061407a60208501613bbd565b9150604084013590509250925092565b6000806000806080858703121561409f578182fd5b6140a885613bbd565b93506140b660208601613bbd565b92506040850135915060608501356001600160401b038111156140d7578182fd5b8501601f810187136140e7578182fd5b6140f687823560208401613b48565b91505092959194509250565b60008060408385031215614114578182fd5b61411d83613bbd565b915061404660208401613bd9565b6000806000806101208587031215614141578182fd5b61414a85613bbd565b935060208501356001600160401b03811115614164578283fd5b61417087828801613dd2565b9350506141808660408701613c5e565b915061418f8660a08701613d7e565b905092959194509250565b600080604083850312156141ac578182fd5b6141b583613bbd565b915060208301356001600160401b038111156141cf578182fd5b6141db85828601613f4b565b9150509250929050565b600080604083850312156141f7578182fd5b61420083613bbd565b946020939093013593505050565b600080600060c08486031215614222578081fd5b61422b84613bbd565b9250602084013591506142418560408601613d7e565b90509250925092565b60006020828403121561425b578081fd5b813561116281614e97565b600060208284031215614277578081fd5b815161116281614e97565b60008060808385031215614294578182fd5b82356001600160401b038111156142a9578283fd5b6142b585828601613dd2565b9250506140468460208501613c5e565b6000602082840312156142d6578081fd5b5035919050565b600080604083850312156142ef578182fd5b8235915061404660208401613bbd565b600080600060408486031215614313578081fd5b8335925060208401356001600160401b0380821115614330578283fd5b818601915086601f830112614343578283fd5b813581811115614351578384fd5b876020828501011115614362578384fd5b6020830194508093505050509250925092565b600080600060608486031215614389578081fd5b8335925060208401356001600160401b038111156143a5578182fd5b6143b186828701613bf8565b92505061424160408501613bbd565b600080608083850312156143d2578182fd5b823591506140468460208501613c17565b60008060e083850312156143f5578182fd5b823591506140468460208501613ca4565b6000806000610100848603121561441b578081fd5b8335925061442c8560208601613ca4565b915061424160e08501613bbd565b6000806000806101208587031215614450578182fd5b8435935060208501356001600160401b0381111561446c578283fd5b61447887828801613e88565b9350506144888660408701613ca4565b915061418f6101008601613bbd565b60008060008061012085870312156144ad578182fd5b8435935060208501356001600160401b03808211156144ca578384fd5b6144d688838901613e88565b945060408701359150808211156144eb578384fd5b506144f887828801613f4b565b92505061418f8660608701613ca4565b60008151808452614520816020860160208601614def565b601f01601f19169290920160200192915050565b6004811061455257634e487b7160e01b600052602160045260246000fd5b9052565b805182526020808201516001600160a01b0316908301526040908101511515910152565b8051518252602080820151519083015260409081015151910152565b80518252602081015160018060a01b0380821660208501528060408401511660408501528060608401511660608501525050608081015151608083015260a0810151151560a08301525050565b60008151608084526145f86080850182614508565b9050602083015184820360208601526146118282614508565b91505060408301516040850152606083015160608501528091505092915050565b6000610180614642848451614534565b602083015181602086015261465982860182614508565b915050604083015161466e6040860182614556565b50606083015160a0850152608083015160c085015260a083015160e085015260c08301518482036101008601526146a582826145e3565b91505060e083015161161361012086018261457a565b60006101606146cb848451614534565b60208301518160208601526146e282860182614508565b91505060408301516040850152606083015160608501526080830151848203608086015261471082826145e3565b91505060a083015161472560a086018261457a565b5060c092909201518051610100850152602081015161012085015260400151151561014090930192909252919050565b60008251614767818460208701614def565b9190910192915050565b60008451614783818460208901614def565b919091019283525060601b6001600160601b0319166020820152603401919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061480790830184614508565b9695505050505050565b6001600160a01b03841681526040602082018190528101829052818360608301376000818301606090810191909152601f909201601f1916010192915050565b93845260ff9290921660208401526040830152606082015260800190565b6020815260006111626020830184614508565b6040815260006148956040830185614508565b905060018060a01b03831660208301529392505050565b6080815260006148bf6080830187614508565b6001600160a01b038616602084015282810360408401526148e08186614508565b905082810360608401526139638185614508565b6060815260006149076060830186614508565b82810360208401526149198186614508565b905082810360408401526148078185614508565b60208082526028908201527f4d656469613a20746f6b656e2077697468207468617420696420646f6573206e6040820152671bdd08195e1a5cdd60c21b606082015260800190565b60208082526032908201527f4d656469613a204f6e6c792061707020636f6e74726163742c206d61726b65746040820152711031b7b73a3930b1ba1037b91037bbb732b960711b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526021908201527f4d61726b65743a20426964646572206d757374206265206d73672073656e64656040820152603960f91b606082015260800190565b6020808252601d908201527f4d656469613a204f6e6c7920617070726f766564206f72206f776e6572000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601890820152771359591a584e8814da59db985d1d5c99481a5b9d985b1a5960421b604082015260600190565b60208082526018908201527726b2b234b09d103737b732bc34b9ba32b73a103a37b5b2b760411b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526026908201527f4d656469613a2073706563696669656420757269206d757374206265206e6f6e6040820152652d656d70747960d01b606082015260800190565b60208152600061116260208301846146bb565b9182526001600160a01b0316602082015260400190565b838152606060208201526000614c3b6060830185614508565b905060018060a01b0383166040830152949350505050565b828152608081016111626020830184614556565b82815260808101611162602083018461457a565b82815260e081016111626020830184614596565b8381526101008101614ca46020830185614596565b6001600160a01b039290921660e0919091015292915050565b6000610120868352806020840152614cd781840187614632565b915050614ce76040830185614596565b6001600160a01b039290921661010091909101529392505050565b6000610120868352806020840152614d1c81840187614632565b90508281036040840152614d3081866146bb565b915050614d406060830184614596565b95945050505050565b604051606081016001600160401b0381118282101715614d6b57614d6b614e81565b60405290565b604051608081016001600160401b0381118282101715614d6b57614d6b614e81565b60405161010081016001600160401b0381118282101715614d6b57614d6b614e81565b60405160e081016001600160401b0381118282101715614d6b57614d6b614e81565b600082821015614dea57614dea614e6b565b500390565b60005b83811015614e0a578181015183820152602001614df2565b838111156121e75750506000910152565b600181811c90821680614e2f57607f821691505b60208210811415610dff57634e487b7160e01b600052602260045260246000fd5b6000600019821415614e6457614e64614e6b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461261957600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656eddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122061817e06b5edaf314bd545ba7d572db7218083f5bfe2d0b0b19efc2d7deb535d64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000064c55584e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064c55584e46540000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): LUXNFT
Arg [1] : symbol (string): LUXNFT
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 4c55584e46540000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 4c55584e46540000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.