ERC-721
Overview
Max Total Supply
3,000 WSPP
Holders
896
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 WSPPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WhiteSandsParcelPass
Compiler Version
v0.8.12+commit.f00d7308
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED // dP dP dP dP oo dP .d88888b dP // 88 88 88 88 88 88. "' 88 // 88 .8P .8P 88d888b. dP d8888P .d8888b. `Y88888b. .d8888b. 88d888b. .d888b88 .d8888b. // 88 d8' d8' 88' `88 88 88 88ooood8 `8b 88' `88 88' `88 88' `88 Y8ooooo. // 88.d8P8.d8P 88 88 88 88 88. ... d8' .8P 88. .88 88 88 88. .88 88 // 8888' Y88' dP dP dP dP `88888P' Y88888P `88888P8 dP dP `88888P8 `88888P' // ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo // // 888888ba dP 888888ba // 88 `8b 88 88 `8b // a88aaaa8P' .d8888b. 88d888b. .d8888b. .d8888b. 88 a88aaaa8P' .d8888b. .d8888b. .d8888b. // 88 88' `88 88' `88 88' `"" 88ooood8 88 88 88' `88 Y8ooooo. Y8ooooo. // 88 88. .88 88 88. ... 88. ... 88 88 88. .88 88 88 // dP `88888P8 dP `88888P' `88888P' dP dP `88888P8 `88888P' `88888P' pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "../common/DeveloperAccessControl.sol"; import "../common/IPresaleAccessControlHandler.sol"; import "../common/PresaleAccessControlHandler.sol"; import "../common/Sales.sol"; import "hardhat/console.sol"; /** * @title White Sands - Parcel Pass Contract * * @notice The White Sands Parcel Pass contract allows minting a time-limited presale controlled by * an access list, and then a public sale. The presale is limited by the number of tokens that can * be minted per wallet. The presale mint allocation also counts towards the public sale limit. */ contract WhiteSandsParcelPass is ERC721, DeveloperAccessControl, Pausable, ReentrancyGuard { using Sales for Sales.PreSale; using Counters for Counters.Counter; using Strings for uint256; using ERC165Checker for address; address constant PAYOUT_ADDRESS = address(0xe3dB823ce2eA1B9A545F4ea93886aEBeEC26fd75); bytes4 constant ACL_IID = type(IPresaleAccessControlHandler).interfaceId; uint8 constant DEFAULT_TX_LIMIT = 2; uint8 constant DEFAULT_WALLET_LIMIT = 2; uint32 constant DEFAULT_LIMIT = 3000; uint128 constant DEFAULT_PRICE = 0.5 ether; struct AppStorage { address payoutAddress; uint8 maxTokensPerTx; uint8 maxTokensPerWallet; uint32 supplyLimit; uint32 totalSupply; uint128 price; uint64 presaleStart; uint64 presaleEnd; bool revealed; IPresaleAccessControlHandler acl; string metadataIpfsCid; string placeholderCid; } AppStorage public state; event TokenMinted(address to, uint32 token); constructor( address owner, address acl, uint64 preSaleStart, string memory metadataIpfsCid ) DeveloperAccessControl(owner) ERC721("White Sands Parcel Pass", "WSPP") { state.payoutAddress = owner; state.maxTokensPerTx = DEFAULT_TX_LIMIT; state.maxTokensPerWallet = DEFAULT_WALLET_LIMIT; state.supplyLimit = DEFAULT_LIMIT; state.price = DEFAULT_PRICE; state.presaleStart = preSaleStart; state.presaleEnd = preSaleStart + 24 hours; require(acl.supportsInterface(ACL_IID), "ACL: wrong interface type for checker"); state.acl = IPresaleAccessControlHandler(acl); state.placeholderCid = metadataIpfsCid; state.revealed = false; } modifier onlyPresale() { require(block.timestamp >= state.presaleStart, "Presale not open yet"); require(block.timestamp < state.presaleEnd, "Presale has closed"); _; } modifier onlyPublicSale() { require(block.timestamp >= state.presaleEnd, "Sale not open yet"); _; } function pause() external onlyUnlocked { if (paused()) { _unpause(); } else { _pause(); } } /// Minting method for people on the access list that can mint before the public sale. /// /// The combination of the nonce and senders address is signed by the trusted signer wallet. function mintPresale( uint16 count, uint256 nonce, bytes calldata signature ) external payable onlyPresale nonReentrant { (bool canMint, bytes memory error) = state.acl.verifyCanMintPresaleTokens( _msgSender(), uint32(balanceOf(_msgSender())), state.presaleStart, state.presaleEnd, count, nonce, signature ); require(canMint, string(abi.encodePacked("ERROR: ", error))); _safeMintTokens(count); } /// Perform a regular mint with a limit per wallet on passes as well as a limit per transaction. function mint(uint16 count) external payable onlyPublicSale { _safeMintTokens(count); } function _safeMintTokens(uint16 count) internal { require(count <= state.maxTokensPerTx, "exceeded max per transaction"); require(balanceOf(_msgSender()) + count <= state.maxTokensPerWallet, "exceeded max per wallet"); require(state.totalSupply + count <= state.supplyLimit, "mint: not enough supply"); uint256 cost = count * state.price; require(msg.value >= cost, "Insufficient funds"); for (uint16 i = 0; i < count; i++) { uint32 token = nextTokenId(); _safeMint(_msgSender(), token); emit TokenMinted(_msgSender(), token); } if (msg.value > cost) { uint256 refund = msg.value - cost; (bool success,) = payable(_msgSender()).call{value : refund}(""); require(success, "Failed to refund additional value"); } } function setPresaleAccessController(address acl) external onlyUnlocked { require(acl.supportsInterface(ACL_IID), "ACL: wrong interface type for checker"); state.acl = IPresaleAccessControlHandler(acl); } function setPresaleDetails(uint64 startTime, uint64 durationInHours) external onlyUnlocked { state.presaleStart = startTime; state.presaleEnd = startTime + (durationInHours * 1 hours); } function getPresaleStart() public view returns (uint64) { return state.presaleStart; } function getSaleStart() public view returns (uint64) { return state.presaleEnd; } function setTokensPerTx(uint8 limit) external onlyUnlocked { state.maxTokensPerTx = limit; } function getTokensPerTx() external view returns (uint8) { return state.maxTokensPerTx; } function setTokensPerWallet(uint8 limit) external onlyUnlocked { state.maxTokensPerWallet = limit; } function getTokensPerWallet() external view returns (uint8) { return state.maxTokensPerWallet; } function setTokenSupplyLimit(uint32 limit) external onlyUnlocked { state.supplyLimit = limit; } function getTokenSupplyLimit() external view returns (uint32) { return state.supplyLimit; } function setMintPrice(uint128 _price) external onlyUnlocked { state.price = _price; } function price() external view returns (uint128) { return state.price; } function setMetadataIpfsCid(string calldata cid) external onlyUnlocked { state.metadataIpfsCid = cid; } function setPlaceholderIpfsCid(string calldata cid) external onlyUnlocked { state.placeholderCid = cid; } function reveal() external onlyUnlocked { state.revealed = true; } /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256) { return state.totalSupply; } /** * @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 pure returns (uint256) { return index; } function nextTokenId() internal returns (uint32) { state.totalSupply++; return state.totalSupply; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); if (state.revealed) { return string(abi.encodePacked("ipfs://", state.metadataIpfsCid, "/", tokenId.toString(), ".json")); } else { return string(abi.encodePacked("ipfs://", state.placeholderCid)); } } function recoverSignerAddress( uint256 nonce, address sender, bytes calldata signature ) internal pure returns (address) { bytes32 message = keccak256(abi.encode(nonce, sender)); bytes32 digest = ECDSA.toEthSignedMessageHash(message); return ECDSA.recover(digest, signature); } function _afterTokenTransfer( address /*from*/, address /*to*/, uint256 /*tokenId*/ ) internal virtual override { maybeLock(); } /** Fallback to be able to receive ETH payments (just in case!) */ receive() external payable {} function getPayoutAddress() external view returns (address) { return state.payoutAddress; } function setPayoutAddress(address payout) external onlyOwner { state.payoutAddress = payout; } function withdraw() external onlyOwner { require(payable(state.payoutAddress).send(address(this).balance), "withdraw: sending funds failed"); } function destroy() external onlyUnlocked { require(state.totalSupply == 0, "cannot destroy once minting has started"); selfdestruct(payable(PAYOUT_ADDRESS)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) 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 making 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 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165Checker.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @dev Contract module that allows children to implement developer access control until the contract is locked. * * Once the contract is locked, any method protected by the {onlyUnlocked} modifier will only be accessible by any * address with the {DEFAULT_ADMIN_ROLE} (by default the contract owner). */ abstract contract DeveloperAccessControl is Context, Ownable { /** @dev The address of the wallet with the developer role. */ address public developer; /** @dev If {locked} is {true}, only an address with the {DEFAULT_ADMIN_ROLE} can access protected methods. */ bool public locked = false; constructor(address owner) { transferOwnership(owner); developer = _msgSender(); } function setLocked() internal { locked = true; } function maybeLock() internal { if (!locked) { locked = true; } } modifier onlyUnlocked() { if (_msgSender() != owner()) { require(!locked, "DeveloperAccessControl: developer access is locked"); require(_msgSender() == developer, "DeveloperAccessControl: missing required access"); } _; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface IPresaleAccessControlHandler is IERC165 { /// @dev Returns [true] if [sender] is able to mint the requested number of presale tokens. function verifyCanMintPresaleTokens( address minter, uint32 balance, uint64 presaleStart, uint64 presaleEnd, uint32 count, uint256 nonce, bytes calldata signature ) external view returns (bool, bytes memory); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "./DeveloperAccessControl.sol"; import "./IPresaleAccessControlHandler.sol"; import "./Sales.sol"; /** * @title White Sands - Presale Mint Access Control Handler * * @notice This is a decoupled contract responsible for handling access control for presale minting. The main contract, * which will be running a presale mint, would defer to this contract to determine if the calling wallet is able to * participate in the presale and if they can mint the requested number of tokens. * * This contract is decoupled so that it can be replaced in the future for further presale events. */ contract PresaleAccessControlHandler is IPresaleAccessControlHandler, DeveloperAccessControl, Pausable, ERC165 { using ERC165Checker for address; address public trustedSigner; /// Defines the different phases of the sale. /// /// 1 token limit in phase 1 (priority presale) /// 2 token limit in phase 2 (reserve + priority presale) enum SalePhase { kNone, kPriorityPresale, kReservePresale, kPublicSale } constructor(address owner, address _trustedSigner) DeveloperAccessControl(owner) { trustedSigner = _trustedSigner; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IPresaleAccessControlHandler).interfaceId || super.supportsInterface(interfaceId); } function pause() external onlyUnlocked { if (paused()) { _unpause(); } else { _pause(); } } /// Minting method for people on the access list that can mint before the public sale. /// /// The combination of the nonce and senders address is signed by the trusted signer wallet. function verifyCanMintPresaleTokens( address minter, uint32 balance, uint64 presaleStart, uint64 /*_unused*/, uint32 count, uint256 nonce, bytes calldata signature ) external view virtual override returns (bool, bytes memory) { if (count != 1 || balance >= 1) { return (false, "wallet exceeded presale limit"); } uint64 timestamp = uint64(block.timestamp); uint64 priorityStart = presaleStart; uint64 reserveStart = priorityStart + 6 hours; uint64 publicStart = priorityStart + 24 hours; uint8 flags = uint8(nonce & 0xff); SalePhase phase; if (timestamp < priorityStart) { return (false, "Presale has not started"); } else if (timestamp >= priorityStart && timestamp < reserveStart) { phase = SalePhase.kPriorityPresale; } else if (timestamp >= reserveStart && timestamp < publicStart) { phase = SalePhase.kReservePresale; } else { return (false, "Presale has finished"); } if (flags < 1 || flags > 2) { return (false, "Invalid presale access modifier"); } if (flags > uint8(phase)) { return (false, "No access to current presale phase"); } address signer = recoverSignerAddress(nonce, minter, signature); if (signer != trustedSigner) { return (false, "could not verify minting wallet"); } return (true, bytes("")); } function recoverSignerAddress( uint256 nonce, address sender, bytes calldata signature ) internal pure returns (address) { bytes32 message = keccak256(abi.encode(nonce, sender)); bytes32 digest = ECDSA.toEthSignedMessageHash(message); return ECDSA.recover(digest, signature); } function setTrustedSigner(address signer) external onlyUnlocked { trustedSigner = signer; } function getTrustedSigner() external view returns (address) { return trustedSigner; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; library Sales { struct PreSale { uint64 _start; uint64 _end; } function setDetails( PreSale storage sale, uint64 preSaleStart, uint64 preSaleLength ) internal { sale._start = preSaleStart; sale._end = preSaleStart + preSaleLength; } // /// Returns the number of free passes claimed by a given wallet. // function claimed(address addr) external view returns (uint256) { // return LibAppStorage.appStorage().claimedByAddress[addr]; // } // // /// Returns the number of free passes claimed by a given wallet. // function presaleClaimed(address addr) external view returns (uint16, uint16) { // LibAppStorage.Presale memory presale = LibAppStorage.appStorage().presaleByAddress[addr]; // return (presale.free, presale.paid); // } // // /// Returns the number of free passes claimed by the caller. // function claimedByMe() external view returns (uint256) { // return LibAppStorage.appStorage().claimedByAddress[msg.sender]; // } function getStartTime(PreSale memory sale) internal pure returns (uint64) { return sale._start; } function getEndTime(PreSale memory sale) internal pure returns (uint64) { return sale._end; } function setSaleDuration(PreSale storage sale, uint64 duration) internal { sale._end = sale._start + duration; } function reset(PreSale storage sale) internal { sale._start = 0; sale._end = 0; } function hasStarted(PreSale memory sale) internal view returns (bool) { return block.timestamp >= sale._start; } function hasFinished(PreSale memory sale) internal view returns (bool) { return block.timestamp > sale._end; } function isActive(PreSale memory sale) internal view returns (bool) { return hasStarted(sale) && !hasFinished(sale); } }
// 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)); } }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"acl","type":"address"},{"internalType":"uint64","name":"preSaleStart","type":"uint64"},{"internalType":"string","name":"metadataIpfsCid","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint32","name":"token","type":"uint32"}],"name":"TokenMinted","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"destroy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"developer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresaleStart","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStart","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenSupplyLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensPerTx","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensPerWallet","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","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":"string","name":"cid","type":"string"}],"name":"setMetadataIpfsCid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"_price","type":"uint128"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payout","type":"address"}],"name":"setPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"cid","type":"string"}],"name":"setPlaceholderIpfsCid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"acl","type":"address"}],"name":"setPresaleAccessController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"startTime","type":"uint64"},{"internalType":"uint64","name":"durationInHours","type":"uint64"}],"name":"setPresaleDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"limit","type":"uint32"}],"name":"setTokenSupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"limit","type":"uint8"}],"name":"setTokensPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"limit","type":"uint8"}],"name":"setTokensPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"address","name":"payoutAddress","type":"address"},{"internalType":"uint8","name":"maxTokensPerTx","type":"uint8"},{"internalType":"uint8","name":"maxTokensPerWallet","type":"uint8"},{"internalType":"uint32","name":"supplyLimit","type":"uint32"},{"internalType":"uint32","name":"totalSupply","type":"uint32"},{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"presaleStart","type":"uint64"},{"internalType":"uint64","name":"presaleEnd","type":"uint64"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"contract IPresaleAccessControlHandler","name":"acl","type":"address"},{"internalType":"string","name":"metadataIpfsCid","type":"string"},{"internalType":"string","name":"placeholderCid","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60808060405234620001245762003d73803803809162000020828562000188565b833981016080828203126200011d576200003a82620001ac565b916020926200004b848301620001ac565b6040830151929091906001600160401b03908185168514156200010657606081015191821162000106570184601f8201121562000112578051906200009082620001c2565b95620000a0604051978862000188565b8287528783830101116200010657956000965b828810620000f0575081620000d19711620000e1575b5050620005d7565b604051613262908162000b118239f35b600091860101523880620000c9565b87810182015187890183015296810196620000b3565b50505050505050600080fd5b505050505050600080fd5b5050600080fd5b50600080fd5b50634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176200015d57604052565b620001676200012a565b604052565b606081019081106001600160401b038211176200015d57604052565b601f909101601f19168101906001600160401b038211908210176200015d57604052565b51906001600160a01b0382168214156200011d57565b6020906001600160401b038111620001e0575b601f01601f19160190565b620001ea6200012a565b620001d5565b6001600160401b031667fffffffffffeae7f81116200021157620151800190565b5050634e487b7160e01b600052601160045260246000fd5b156200023157565b5060405162461bcd60e51b815260206004820152602560248201527f41434c3a2077726f6e6720696e74657266616365207479706520666f7220636860448201526432b1b5b2b960d91b6064820152608490fd5b90600182811c92168015620002b9575b6020831014620002a157565b5050634e487b7160e01b600052602260045260246000fd5b91607f169162000295565b601f8111620002d1575050565b60009081805260208220906020601f850160051c8301941062000311575b601f0160051c01915b8281106200030557505050565b818155600101620002f8565b9092508290620002ef565b601f811162000329575050565b600090600d825260208220906020601f850160051c830194106200036a575b601f0160051c01915b8281106200035e57505050565b81815560010162000351565b909250829062000348565b90601f821162000383575050565b60019160009083825260208220906020601f850160051c83019410620003c6575b601f0160051c01915b828110620003bb5750505050565b8181558301620003ad565b9092508290620003a4565b80519091906001600160401b038111620004c5575b620003fe81620003f8600d5462000285565b6200031c565b602080601f83116001146200043d575081929360009262000431575b50508160011b916000199060031b1c191617600d55565b0151905038806200041a565b600d600052601f198316949091907fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5926000905b878210620004ac57505083600195961062000492575b505050811b01600d55565b015160001960f88460031b161c1916905538808062000487565b8060018596829496860151815501950193019062000471565b620004cf6200012a565b620003e6565b80519091906001600160401b038111620005c7575b6001906200050481620004fe845462000285565b62000375565b602080601f83116001146200054257508192939460009262000536575b5050600019600383901b1c191690821b179055565b01519050388062000521565b6001600052601f198316959091907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6926000905b888210620005af575050838596971062000595575b505050811b019055565b015160001960f88460031b161c191690553880806200058b565b80878596829496860151815501950193019062000576565b620005d16200012a565b620004ea565b919091604051620005e88162000141565b601781526020907f57686974652053616e64732050617263656c20506173730000000000000000008282015260405191620006238362000141565b60048352630575350560e41b818401528151906001600160401b03821162000892575b60009262000660836200065a865462000285565b620002c4565b81601f8411600114620007ea575094620006b26200078a958585620007c69a966200071696620007cc9e9d9b620007659a92620007de575b50508160011b916000199060031b1c1916179055620004d5565b620006bd3362000968565b6007805460ff60a01b19169055620006d581620008a2565b60078054600161ff0160a01b0319163360ff60a81b19161790556001600855600980546001600160a01b0319166001600160a01b0392909216919091179055565b6009805465ffffffffffff60a01b19166305dc010160a11b179055600a80546706f05b59d3b200006001600160c01b0319909116608084901b600160801b600160c01b031617179055620001f0565b600a80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b6200079f6200079982620009b6565b62000229565b600b8054610100600160a81b03191660089290921b610100600160a81b0316919091179055565b620003d1565b620007dc60ff19600b5416600b55565b565b01519050388062000698565b600080529190601f1984167f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639386905b828210620008795750509562000765956001866200071696620007cc9e9d9b96620006b296620007c69e9a6200078a9d106200085f575b505050811b019055620004d5565b015160001960f88460031b161c1916905538808062000851565b806001869782949787015181550196019401906200081a565b6200089c6200012a565b62000646565b6006546001600160a01b039081163314156200092157811615620008cb57620007dc9062000968565b505060405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b505050606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600680546001600160a01b039283166001600160a01b031982168117909255604051919216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3565b620009c18162000a12565b9081620009e2575b81620009d3575090565b620009df915062000ade565b90565b9050620009ef8162000aac565b1590620009c9565b908160209103126200011d57518015158114156200011d5790565b6000809160405160208101906301ffc9a760e01b80835260248201526024815262000a3d816200016c565b5191617530fa3d1562000aa4573d62000a5681620001c2565b9062000a66604051928362000188565b81523d6000602083013e5b80516020811062000a9c578262000a8757505090565b620009df9250602080918301019101620009f7565b505050600090565b606062000a71565b6000809160405160208101906301ffc9a760e01b825263ffffffff60e01b60248201526024815262000a3d816200016c565b6000809160405160208101906301ffc9a760e01b82526313be74fd60e01b60248201526024815262000a3d816200016c56fe604060808152600436101561001d575b50361561001b57600080fd5b005b600090813560e01c806301ffc9a7146107e357806303a63005146107b257806306fdde0314610796578063081812fc1461077a578063095ea7b31461076257806318160ddd1461073d57806319866517146107255780632138cba7146106f7578063216759a0146106df57806323b872dd146106c757806323cf0a22146106b557806325ddd14e1461068757806333ea51a8146106705780633ccfd60b1461065957806342842e0e146106415780634f6ccce71461062d5780635680aee7146106165780635c975abb146105e65780636352211e146105b157806367af871a1461059a57806370a082311461056f578063715018a61461055857806383197ef014610535578063843a1de81461051e5780638456cb591461050757806385043044146104f05780638a287422146104d95780638da5cb5b146104a9578063942244c01461047557806395d89b4114610459578063969235a41461042e5780639eeaf9a214610418578063a035b1fe146103e8578063a22cb465146103d0578063a475b5dd146103b9578063b88d4fde1461039e578063c19d93fb14610368578063c87b56dd14610341578063ca4b208b14610311578063cf309012146102e1578063e554d234146102b1578063e985e9c514610244578063f2fde38b1461022d5763f69cfae51461020f575b5061000f565b34610229576102266102203661096a565b90612b93565b51f35b5080fd5b50346102295761022661023f36610a20565b611117565b5034610229576102ad915061029c61029561027e61026136611040565b6001600160a01b0390911660009081526005602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b905190151581529081906020820190565b0390f35b5034610229576102ad91506102c536610845565b60095490516001600160a01b0390911681529081906020820190565b5034610229576102ad91506102f536610845565b600754905160a09190911c60ff16151581529081906020820190565b5034610229576102ad915061032536610845565b60075490516001600160a01b0390911681529081906020820190565b5034610229576102ad915061035d610358366108be565b612e0d565b9051918291826108ad565b5034610229576102ad915061037c36610845565b610384610e6d565b999c9a9b989098979197969296959395519c8d9c8d610f79565b5034610229576102266103b036610bc8565b92919091611616565b5034610229576103c836610845565b610226612c9e565b5034610229576102266103e236610af6565b906114bd565b5034610229576102ad91506103fc36610845565b600a5490516001600160801b0390911681529081906020820190565b5061022661042536610aa3565b92919091611e0e565b5034610229576102ad915061044236610845565b600a54905160c09190911c81529081906020820190565b5034610229576102ad915061046d36610845565b61035d610d50565b5034610229576102ad915061048936610845565b600a54905160809190911c6001600160401b031681529081906020820190565b5034610229576102ad91506104bd36610845565b60065490516001600160a01b0390911681529081906020820190565b5034610229576102266104eb36610a83565b61291f565b50346102295761022661050236610a43565b6128cc565b50346102295761051636610845565b610226611cfd565b50346102295761022661053036610a20565b612600565b505034610555575061054636610845565b61054e61312d565b3880610209565b80fd5b50346102295761056736610845565b6102266110bf565b5034610229576102ad915061058b61058636610a20565b61120f565b90519081529081906020820190565b5034610229576102266105ac36610a60565b612978565b5034610229576102ad91506105cd6105c8366108be565b611289565b90516001600160a01b0390911681529081906020820190565b5034610229576102ad91506105fa36610845565b600754905160a89190911c60ff16151581529081906020820190565b50346102295761022661062836610a43565b612879565b5034610229576102ad915061058b366108be565b503461022957610226610653366109cb565b916115fe565b50346102295761066836610845565b6102266130ad565b50346102295761022661068236610a20565b613078565b5034610229576102ad915061069b36610845565b600954905160a89190911c60ff1681529081906020820190565b506102266106c236610a02565b612143565b5034610229576102266106d9366109cb565b916115e1565b5034610229576102266106f136610998565b906127b5565b5034610229576102ad915061070b36610845565b600954905160a09190911c60ff1681529081906020820190565b5034610229576102266107373661096a565b906129ca565b5034610229576102ad915061075136610845565b60095460d01c63ffffffff1661058b565b50346102295761022661077436610905565b90611303565b5034610229576102ad91506105cd610791366108be565b611429565b5034610229576102ad91506107aa36610845565b61035d610c9a565b5034610229576102ad91506107c636610845565b600954905160b09190911c63ffffffff1681529081906020820190565b5050346105555750607f1961080c6108026107fd3661082a565b6111cb565b151560805260a090565b016080f35b6001600160e01b03198116141561082457565b50600080fd5b60209060031901126108245760043561084281610811565b90565b600090600319011261082457565b918091926000905b82821061087357501161086c575050565b6000910152565b9150806020918301518186015201829161085b565b906020916108a181518092818552858086019101610853565b601f01601f1916010190565b906020610842928181520190610888565b60209060031901126108245760043590565b600435906001600160a01b0382168214156108e757565b5050600080fd5b602435906001600160a01b0382168214156108e757565b6040906003190112610824576004356001600160a01b0381168114156108e7579060243590565b9181601f84011215610959578235916001600160401b038311610961576020838186019501011161095957565b505050600080fd5b50505050600080fd5b60206003198201126108e757600435906001600160401b038211610959576109949160040161092c565b9091565b6040906003190112610824576001600160401b039060043582811681141561095957916024359081168114156109595790565b6060906003190112610824576001600160a01b03906004358281168114156109595791602435908116811415610959579060443590565b60209060031901126108245760043561ffff81168114156108e75790565b6020906003190112610824576004356001600160a01b0381168114156108e75790565b60209060031901126108245760043560ff81168114156108e75790565b6020906003190112610824576004356001600160801b0381168114156108e75790565b60209060031901126108245760043563ffffffff81168114156108e75790565b60606003198201126108e75760043561ffff8116811415610959579160243591604435906001600160401b038211610ae1576109949160040161092c565b5050505050600080fd5b801515141561082457565b6040906003190112610824576004356001600160a01b0381168114156108e7579060243561084281610aeb565b50634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b03821117610b5557604052565b610b5d610b23565b604052565b606081019081106001600160401b03821117610b5557604052565b90601f801991011681019081106001600160401b03821117610b5557604052565b6020906001600160401b038111610bbb575b601f01601f19160190565b610bc3610b23565b610bb0565b9060806003198301126108e757610bdd6108d0565b91610be66108ee565b91604435916064356001600160401b038111610c535781602382011215610c5357806004013590610c1682610b9e565b92610c246040519485610b7d565b82845260248383010111610c475781600092602460209301838601378301015290565b50505050505050600080fd5b505050505050600080fd5b90600182811c92168015610c90575b6020831014610c7857565b5050634e487b7160e01b600052602260045260246000fd5b91607f1691610c6d565b60405190600082815491610cad83610c5e565b80835292600190818116908115610d335750600114610cd6575b50610cd492500383610b7d565b565b600080805291507f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b848310610d185750610cd4935050810160200138610cc7565b81935090816020925483858a01015201910190918592610cff565b94505050505060ff19166020830152610cd4826040810138610cc7565b60405190600082600191825492610d6684610c5e565b80845293818116908115610d335750600114610d895750610cd492500383610b7d565b600081815291507fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b848310610dcb5750610cd4935050810160200138610cc7565b81935090816020925483858a01015201910190918592610db2565b60405190600082600d5491610dfa83610c5e565b80835292600190818116908115610d335750600114610e205750610cd492500383610b7d565b600d600090815291506000805160206131ff8339815191525b848310610e525750610cd4935050810160200138610cc7565b81935090816020925483858a01015201910190918592610e39565b6009549060018060a01b038083169260ff8160a01c169260ff8260a81c169263ffffffff808460b01c169360d01c1691600a54906001600160801b038216926001600160401b038360801c169260c01c91600b549160ff83169260081c1690604051600081600c5491610edf83610c5e565b80835292600190818116908115610f5c5750600114610f0f575b50610f0692500382610b7d565b90610842610de6565b600c600090815291506000805160206131df8339815191525b848310610f415750610f06935050810160200138610ef9565b81935090816020925483858901015201910190918492610f28565b94505050505060ff19166020820152610f06816040810138610ef9565b9a979196610fe46108429d9b9760a08e610fd561100e9a6110319f9a63ffffffff9061101f9f6110049c60ff8092610ff49d6001808c1b03168952166020880152166040860152166060840152608083019063ffffffff169052565b01906001600160801b03169052565b6001600160401b031660c08c0152565b6001600160401b031660e08a0152565b1515610100880152565b6001600160a01b0316610120860152565b61018080610140860152840190610888565b91610160818403910152610888565b6040906003190112610824576001600160a01b039060043582811681141561095957916024359081168114156109595790565b1561107a57565b50606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6006546000906001600160a01b038116906110db338314611073565b6bffffffffffffffffffffffff60a01b166006557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e082604051a3565b600654906001600160a01b0380831691611132338414611073565b16918215611174576001600160a01b03191682176006556040517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3565b50505050608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b63ffffffff60e01b166380ac58cd60e01b81149081156111fe575b81156111f0575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b811491506111e6565b6001600160a01b0316801561122f57600052600360205260406000205490565b505060405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608490fd5b6000908152600260205260409020546001600160a01b031680156112aa5790565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608490fd5b9061130d81611289565b6001600160a01b0381811690841681146113d65733149081156113a8575b501561133a57610cd491611a2a565b505060405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260849150fd5b6001600160a01b0316600090815260056020526040902060ff91506113ce90339061027e565b54163861132b565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b6000818152600260205260409020546001600160a01b031615611461576000908152600460205260409020546001600160a01b031690565b505060405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b6001600160a01b0381169190338314611532573360009081526005602090815260408083206001600160a01b039094168352929052209015159060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b1561158157565b5060405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608490fd5b90610cd492916115f96115f484336116ba565b61157a565b611891565b9091610cd4926040519261161184610b3a565b600084525b91610cd4939161163d9361162d6115f484336116ba565b611638838383611891565b611bf4565b611695565b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b1561169c57565b5060405162461bcd60e51b8152806116b660048201611642565b0390fd5b6000828152600260205260409020546001600160a01b03161561174b576116e082611289565b6001600160a01b038281168282168114949091908515611733575b505050821561170957505090565b6001600160a01b0316600090815260056020526040902060ff925061172e919061027e565b541690565b6117409192939550611429565b1614913880806116fb565b505060405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260849150fd5b156117af57565b5060405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b50634e487b7160e01b600052601160045260246000fd5b60018110611828575b6000190190565b611830611801565b611821565b818110611840570390565b611848611801565b0390565b600190600119811161185c570190565b611864611801565b0190565b8019603011611878575b60300190565b611880611801565b611872565b8119811161185c570190565b9061189b83611289565b6001600160a01b03838116929091821683141561197c576118ea61194d928216946118c78615156117a8565b6118d0876119d4565b6001600160a01b0316600090815260036020526040902090565b6118f48154611818565b90556001600160a01b0381166000908152600360205260409020611918815461184c565b905561192e856000526002602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4610cd4613054565b505050505050608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152fd5b600081815260046020526040812080546001600160a01b03191690556001600160a01b03611a0183611289565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92582604051a4565b600082815260046020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611a6384611289565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b908160209103126108e7575161084281610811565b610842939260809260018060a01b031682526000602083015260408201528160608201520190610888565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261084292910190610888565b506040513d6000823e3d90fd5b3d15611b39573d90611b1f82610b9e565b91611b2d6040519384610b7d565b82523d6000602084013e565b606090565b909190803b15611bec57611b70602091600093604051948580948193630a85bd0160e11b998a84523360048501611aa5565b03926001600160a01b03165af160009181611bcc575b50611bbe57505050611b96611b0e565b80519081611bb957505060405162461bcd60e51b8152806116b660048201611642565b602001fd5b6001600160e01b0319161490565b611be5919250611bdc3d82610b7d565b3d810190611a90565b9038611b86565b505050600190565b92909190823b15611c2757611b70926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611ad0565b50505050600190565b15611c3757565b5060405162461bcd60e51b815260206004820152603260248201527f446576656c6f706572416363657373436f6e74726f6c3a20646576656c6f70656044820152711c881858d8d95cdcc81a5cc81b1bd8dad95960721b6064820152608490fd5b15611c9f57565b5060405162461bcd60e51b815260206004820152602f60248201527f446576656c6f706572416363657373436f6e74726f6c3a206d697373696e672060448201526e72657175697265642061636365737360881b6064820152608490fd5b6006546001600160a01b03908116331415611de9575b5060075460ff8160a81c16600014611dab575060075460ff8160a81c1615611d6d5760ff60a81b19166007556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1565b505060405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b60ff60a81b1916600160a81b176007556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1565b611e0890600754611e0060ff8260a01c1615611c30565b163314611c98565b38611d13565b929190600a546001600160401b038160801c164210611e785760c01c421015611e3a57610cd493611eb9565b5050505050606460405162461bcd60e51b8152602060048201526012602482015271141c995cd85b19481a185cc818db1bdcd95960721b6044820152fd5b505050505050606460405162461bcd60e51b8152602060048201526014602482015273141c995cd85b19481b9bdd081bdc195b881e595d60621b6044820152fd5b91929092600260085414611fdf57611fa193600084611f9c94611f89946002600855611eff611ef3600b5460018060a01b039060081c1690565b6001600160a01b031690565b91611f4d611f18611f0f3361120f565b63ffffffff1690565b91600a5493604051988997889687966313be74fd60e01b88526001600160401b038260c01c9260801c16903360048a01612097565b03915afa8015611fd2575b6000918291611fab575b5060405166022a92927a91d160cd1b602082015292611f9791849190602783015b90612103565b03601f198101845283610b7d565b612116565b61236d565b610cd46001600855565b611fcb9150611f97923d90823e611fc23d82610b7d565b3d810190612028565b9091611f62565b611fda611b01565b611f58565b5050505050606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b919060408382031261095957825161203f81610aeb565b926020810151906001600160401b038211610ae1570181601f8201121561096157805161206b81610b9e565b926120796040519485610b7d565b81845260208284010111610ae1576108429160208085019101610853565b96979594929163ffffffff9061ffff959260018060a01b031689521660208801526001600160401b03809216604088015216606086015216608084015260a083015260e060c08301528060e08301528061010093848401376000828201840152601f01601f1916010190565b9061186460209282815194859201610853565b1561211e5750565b60405162461bcd60e51b815260206004820152915081906116b6906024830190610888565b600a5460c01c421061215857610cd49061236d565b505060405162461bcd60e51b815260206004820152601160248201527014d85b19481b9bdd081bdc195b881e595d607a1b6044820152606490fd5b1561219a57565b5060405162461bcd60e51b815260206004820152601c60248201527f6578636565646564206d617820706572207472616e73616374696f6e000000006044820152606490fd5b156121e757565b5060405162461bcd60e51b815260206004820152601760248201527f6578636565646564206d6178207065722077616c6c65740000000000000000006044820152606490fd5b9063ffffffff808093169116809203811161185c570190565b1561224d57565b5060405162461bcd60e51b815260206004820152601760248201527f6d696e743a206e6f7420656e6f75676820737570706c790000000000000000006044820152606490fd5b6001600160801b0391828092169182911692048211811515166122b4570290565b6122bc611801565b0290565b156122c757565b5060405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606490fd5b60019061ffff80911690811461185c570190565b1561231d57565b5060405162461bcd60e51b815260206004820152602160248201527f4661696c656420746f20726566756e64206164646974696f6e616c2076616c756044820152606560f81b6064820152608490fd5b6009549061ffff8091169161238a60ff8260a01c16841115612193565b6123ad61239f8461239a3361120f565b611885565b60ff8360a81c1610156121e0565b6123d563ffffffff9182806123c787828560d01c1661222d565b9260b01c1691161115612246565b6123ff6123f36123ed600a546001600160801b031690565b85612293565b6001600160801b031690565b9261240c843410156122c0565b60005b818482161061244c57505050508034116124265750565b60008080612437610cd49434611835565b60405190335af1612446611b0e565b50612316565b6124ad907f5185e8659eb58045f0d542a353bbfe461c088891bd11d602ca9c3820a18f5b496124a561247c612ce1565b612488878216336124b2565b6040805133815263ffffffff909216602083015290918291820190565b0390a1612302565b61240f565b906040516124bf81610b3a565b600081526001600160a01b0383169182156125b7576000818152600260205260409020546001600160a01b031661256e57838161163d94612515610cd49760018060a01b03166000526003602052604060002090565b61251f815461184c565b90556125398361192e846000526002602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4612569613054565b611b3e565b5050505050606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b5050505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b6006546001600160a01b039081163314156126ca575b61261f826126e6565b806126ba575b806126ab575b1561265557600b8054610100600160a81b0319169190921660081b610100600160a81b0316179055565b505060405162461bcd60e51b815260206004820152602560248201527f41434c3a2077726f6e6720696e74657266616365207479706520666f7220636860448201526432b1b5b2b960d91b606482015260849150fd5b506126b582612785565b61262b565b506126c482612755565b15612625565b6126e181600754611e0060ff8260a01c1615611c30565b612616565b6000809160405160208101906301ffc9a760e01b80835260248201526024815261270f81610b62565b5191617530fa61271d611b0e565b80516020811061274d578261273157505090565b81925090602091810103126108e7576020015161084281610aeb565b505050600090565b6000809160405160208101906301ffc9a760e01b825263ffffffff60e01b60248201526024815261270f81610b62565b6000809160405160208101906301ffc9a760e01b82526313be74fd60e01b60248201526024815261270f81610b62565b9060018060a01b03806006541633141561285c575b506001600160801b036001600160401b03808416908080600a54966001600160401b0360801b9060801b1695866001600160401b0360801b19891617600a5516610e109080830482118115151661284f575b02168091038211612842575b6001600160401b0360c01b910160c01b1692161717600a55565b61284a611801565b612828565b612857611801565b61281c565b61287390600754611e0060ff8260a01c1615611c30565b386127ca565b6006546001600160a01b039081163314156128af575b506009805460ff60a01b191660a09290921b60ff60a01b16919091179055565b6128c690600754611e0060ff8260a01c1615611c30565b3861288f565b6006546001600160a01b03908116331415612902575b506009805460ff60a81b191660a89290921b60ff60a81b16919091179055565b61291990600754611e0060ff8260a01c1615611c30565b386128e2565b6006546001600160a01b0390811633141561295b575b506009805463ffffffff60b01b191660b09290921b63ffffffff60b01b16919091179055565b61297290600754611e0060ff8260a01c1615611c30565b38612935565b6006546001600160801b0391906001600160a01b039081163314156129ad575b50166001600160801b0319600a541617600a55565b6129c490600754611e0060ff8260a01c1615611c30565b38612998565b919060018060a01b038060065416331415612ab8575b506001600160401b038111612aab575b612a04816129ff600c54610c5e565b612ad5565b6000601f8211600114612a3e57819293600092612a33575b50508160011b916000199060031b1c191617600c55565b013590503880612a1c565b600c600052601f198216936000805160206131df83398151915291805b868110612a935750836001959610612a79575b505050811b01600c55565b0135600019600384901b60f8161c19169055388080612a6e565b90926020600181928686013581550194019101612a5b565b612ab3610b23565b6129f0565b612acf90600754611e0060ff8260a01c1615611c30565b386129e0565b601f8111612ae1575050565b600090600c82526000805160206131df833981519152906020601f850160051c83019410612b2a575b601f0160051c01915b828110612b1f57505050565b818155600101612b13565b9092508290612b0a565b601f8111612b40575050565b600090600d82526000805160206131ff833981519152906020601f850160051c83019410612b89575b601f0160051c01915b828110612b7e57505050565b818155600101612b72565b9092508290612b69565b919060018060a01b038060065416331415612c81575b506001600160401b038111612c74575b612bcd81612bc8600d54610c5e565b612b34565b6000601f8211600114612c0757819293600092612bfc575b50508160011b916000199060031b1c191617600d55565b013590503880612be5565b600d600052601f198216936000805160206131ff83398151915291805b868110612c5c5750836001959610612c42575b505050811b01600d55565b0135600019600384901b60f8161c19169055388080612c37565b90926020600181928686013581550194019101612c24565b612c7c610b23565b612bb9565b612c9890600754611e0060ff8260a01c1615611c30565b38612ba9565b6006546001600160a01b03908116331415612cc4575b50600160ff19600b541617600b55565b612cdb90600754611e0060ff8260a01c1615611c30565b38612cb4565b60095463ffffffff90818160d01c16828114612d1f575b600163ffffffff60d01b910160d01b169063ffffffff60d01b1916178060095560d01c1690565b612d27611801565b612cf8565b600d5460009291612d3c82610c5e565b91600190818116908115612d965750600114612d5757505050565b9091929350600d6000526000805160206131ff833981519152906000915b848310612d83575050500190565b8181602092548587015201920191612d75565b60ff191683525050019150565b600c5460009291612db382610c5e565b91600190818116908115612d965750600114612dce57505050565b9091929350600c6000526000805160206131df833981519152906000915b848310612dfa575050500190565b8181602092548587015201920191612dec565b6000818152600260205260409020546001600160a01b031615612ec357600b5460ff1615612e9f57610842612e44612e8092612f7e565b612e91604051938492611f83612e73612e6e6020870160079066697066733a2f2f60c81b81520190565b612da3565b602f60f81b815260010190565b64173539b7b760d91b815260050190565b03601f198101835282610b7d565b5060405166697066733a2f2f60c81b602082015261084281612e9160278201612d2c565b505060405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608490fd5b90612f2c82610b9e565b612f396040519182610b7d565b8281528092612f4a601f1991610b9e565b0190602036910137565b908151811015612f65570160200190565b505050634e487b7160e01b600052603260045260246000fd5b8015613018576000818181805b612fee5750612f9981612f22565b935b612fa55750505090565b612fae90611818565b90600a90612fd9612fc9612fc3848406611868565b60ff1690565b60f81b6001600160f81b03191690565b841a612fe58487612f54565b53049081612f9b565b91506001600a91600019811461300b575b01910480849291612f8b565b613013611801565b612fff565b50604051604081018181106001600160401b03821117613047575b60405260018152600360fc1b602082015290565b61304f610b23565b613033565b60075460ff8160a01c16156130665750565b60ff60a01b1916600160a01b17600755565b6006546001600160a01b0391906130929083163314611073565b166bffffffffffffffffffffffff60a01b6009541617600955565b600080808060018060a01b036130c881600654163314611073565b600954164790828215613124575bf1156130de57565b5060405162461bcd60e51b815260206004820152601e60248201527f77697468647261773a2073656e64696e672066756e6473206661696c656400006044820152606490fd5b506108fc6130d6565b506006546001600160a01b039081163314156131c1575b5063ffffffff60095460d01c1661316c5773e3db823ce2ea1b9a545f4ea93886aebeec26fd75ff5b60405162461bcd60e51b815260206004820152602760248201527f63616e6e6f742064657374726f79206f6e6365206d696e74696e6720686173206044820152661cdd185c9d195960ca1b6064820152608490fd5b6131d890600754611e0060ff8260a01c1615611c30565b3861314456fedf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7d7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a3646970667358221220f24832aeac969d67ba6dabefbb530324e77ac9919172faa8c17870e40be3ee3a6c6578706572696d656e74616cf564736f6c634300080c0041000000000000000000000000814858ad31778589a2049b3399963fb3ba942c7600000000000000000000000097956964e3b6b2c88b2ce0ea678e25d17cb50a6f000000000000000000000000000000000000000000000000000000006256f3800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002e516d64546b5a59424e6147795a50323969324a485831547a45506e744b57576a4c454a7562636e7268715a36654a000000000000000000000000000000000000
Deployed Bytecode
0x604060808152600436101561001d575b50361561001b57600080fd5b005b600090813560e01c806301ffc9a7146107e357806303a63005146107b257806306fdde0314610796578063081812fc1461077a578063095ea7b31461076257806318160ddd1461073d57806319866517146107255780632138cba7146106f7578063216759a0146106df57806323b872dd146106c757806323cf0a22146106b557806325ddd14e1461068757806333ea51a8146106705780633ccfd60b1461065957806342842e0e146106415780634f6ccce71461062d5780635680aee7146106165780635c975abb146105e65780636352211e146105b157806367af871a1461059a57806370a082311461056f578063715018a61461055857806383197ef014610535578063843a1de81461051e5780638456cb591461050757806385043044146104f05780638a287422146104d95780638da5cb5b146104a9578063942244c01461047557806395d89b4114610459578063969235a41461042e5780639eeaf9a214610418578063a035b1fe146103e8578063a22cb465146103d0578063a475b5dd146103b9578063b88d4fde1461039e578063c19d93fb14610368578063c87b56dd14610341578063ca4b208b14610311578063cf309012146102e1578063e554d234146102b1578063e985e9c514610244578063f2fde38b1461022d5763f69cfae51461020f575b5061000f565b34610229576102266102203661096a565b90612b93565b51f35b5080fd5b50346102295761022661023f36610a20565b611117565b5034610229576102ad915061029c61029561027e61026136611040565b6001600160a01b0390911660009081526005602052604090209091565b9060018060a01b0316600052602052604060002090565b5460ff1690565b905190151581529081906020820190565b0390f35b5034610229576102ad91506102c536610845565b60095490516001600160a01b0390911681529081906020820190565b5034610229576102ad91506102f536610845565b600754905160a09190911c60ff16151581529081906020820190565b5034610229576102ad915061032536610845565b60075490516001600160a01b0390911681529081906020820190565b5034610229576102ad915061035d610358366108be565b612e0d565b9051918291826108ad565b5034610229576102ad915061037c36610845565b610384610e6d565b999c9a9b989098979197969296959395519c8d9c8d610f79565b5034610229576102266103b036610bc8565b92919091611616565b5034610229576103c836610845565b610226612c9e565b5034610229576102266103e236610af6565b906114bd565b5034610229576102ad91506103fc36610845565b600a5490516001600160801b0390911681529081906020820190565b5061022661042536610aa3565b92919091611e0e565b5034610229576102ad915061044236610845565b600a54905160c09190911c81529081906020820190565b5034610229576102ad915061046d36610845565b61035d610d50565b5034610229576102ad915061048936610845565b600a54905160809190911c6001600160401b031681529081906020820190565b5034610229576102ad91506104bd36610845565b60065490516001600160a01b0390911681529081906020820190565b5034610229576102266104eb36610a83565b61291f565b50346102295761022661050236610a43565b6128cc565b50346102295761051636610845565b610226611cfd565b50346102295761022661053036610a20565b612600565b505034610555575061054636610845565b61054e61312d565b3880610209565b80fd5b50346102295761056736610845565b6102266110bf565b5034610229576102ad915061058b61058636610a20565b61120f565b90519081529081906020820190565b5034610229576102266105ac36610a60565b612978565b5034610229576102ad91506105cd6105c8366108be565b611289565b90516001600160a01b0390911681529081906020820190565b5034610229576102ad91506105fa36610845565b600754905160a89190911c60ff16151581529081906020820190565b50346102295761022661062836610a43565b612879565b5034610229576102ad915061058b366108be565b503461022957610226610653366109cb565b916115fe565b50346102295761066836610845565b6102266130ad565b50346102295761022661068236610a20565b613078565b5034610229576102ad915061069b36610845565b600954905160a89190911c60ff1681529081906020820190565b506102266106c236610a02565b612143565b5034610229576102266106d9366109cb565b916115e1565b5034610229576102266106f136610998565b906127b5565b5034610229576102ad915061070b36610845565b600954905160a09190911c60ff1681529081906020820190565b5034610229576102266107373661096a565b906129ca565b5034610229576102ad915061075136610845565b60095460d01c63ffffffff1661058b565b50346102295761022661077436610905565b90611303565b5034610229576102ad91506105cd610791366108be565b611429565b5034610229576102ad91506107aa36610845565b61035d610c9a565b5034610229576102ad91506107c636610845565b600954905160b09190911c63ffffffff1681529081906020820190565b5050346105555750607f1961080c6108026107fd3661082a565b6111cb565b151560805260a090565b016080f35b6001600160e01b03198116141561082457565b50600080fd5b60209060031901126108245760043561084281610811565b90565b600090600319011261082457565b918091926000905b82821061087357501161086c575050565b6000910152565b9150806020918301518186015201829161085b565b906020916108a181518092818552858086019101610853565b601f01601f1916010190565b906020610842928181520190610888565b60209060031901126108245760043590565b600435906001600160a01b0382168214156108e757565b5050600080fd5b602435906001600160a01b0382168214156108e757565b6040906003190112610824576004356001600160a01b0381168114156108e7579060243590565b9181601f84011215610959578235916001600160401b038311610961576020838186019501011161095957565b505050600080fd5b50505050600080fd5b60206003198201126108e757600435906001600160401b038211610959576109949160040161092c565b9091565b6040906003190112610824576001600160401b039060043582811681141561095957916024359081168114156109595790565b6060906003190112610824576001600160a01b03906004358281168114156109595791602435908116811415610959579060443590565b60209060031901126108245760043561ffff81168114156108e75790565b6020906003190112610824576004356001600160a01b0381168114156108e75790565b60209060031901126108245760043560ff81168114156108e75790565b6020906003190112610824576004356001600160801b0381168114156108e75790565b60209060031901126108245760043563ffffffff81168114156108e75790565b60606003198201126108e75760043561ffff8116811415610959579160243591604435906001600160401b038211610ae1576109949160040161092c565b5050505050600080fd5b801515141561082457565b6040906003190112610824576004356001600160a01b0381168114156108e7579060243561084281610aeb565b50634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b03821117610b5557604052565b610b5d610b23565b604052565b606081019081106001600160401b03821117610b5557604052565b90601f801991011681019081106001600160401b03821117610b5557604052565b6020906001600160401b038111610bbb575b601f01601f19160190565b610bc3610b23565b610bb0565b9060806003198301126108e757610bdd6108d0565b91610be66108ee565b91604435916064356001600160401b038111610c535781602382011215610c5357806004013590610c1682610b9e565b92610c246040519485610b7d565b82845260248383010111610c475781600092602460209301838601378301015290565b50505050505050600080fd5b505050505050600080fd5b90600182811c92168015610c90575b6020831014610c7857565b5050634e487b7160e01b600052602260045260246000fd5b91607f1691610c6d565b60405190600082815491610cad83610c5e565b80835292600190818116908115610d335750600114610cd6575b50610cd492500383610b7d565b565b600080805291507f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b848310610d185750610cd4935050810160200138610cc7565b81935090816020925483858a01015201910190918592610cff565b94505050505060ff19166020830152610cd4826040810138610cc7565b60405190600082600191825492610d6684610c5e565b80845293818116908115610d335750600114610d895750610cd492500383610b7d565b600081815291507fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b848310610dcb5750610cd4935050810160200138610cc7565b81935090816020925483858a01015201910190918592610db2565b60405190600082600d5491610dfa83610c5e565b80835292600190818116908115610d335750600114610e205750610cd492500383610b7d565b600d600090815291506000805160206131ff8339815191525b848310610e525750610cd4935050810160200138610cc7565b81935090816020925483858a01015201910190918592610e39565b6009549060018060a01b038083169260ff8160a01c169260ff8260a81c169263ffffffff808460b01c169360d01c1691600a54906001600160801b038216926001600160401b038360801c169260c01c91600b549160ff83169260081c1690604051600081600c5491610edf83610c5e565b80835292600190818116908115610f5c5750600114610f0f575b50610f0692500382610b7d565b90610842610de6565b600c600090815291506000805160206131df8339815191525b848310610f415750610f06935050810160200138610ef9565b81935090816020925483858901015201910190918492610f28565b94505050505060ff19166020820152610f06816040810138610ef9565b9a979196610fe46108429d9b9760a08e610fd561100e9a6110319f9a63ffffffff9061101f9f6110049c60ff8092610ff49d6001808c1b03168952166020880152166040860152166060840152608083019063ffffffff169052565b01906001600160801b03169052565b6001600160401b031660c08c0152565b6001600160401b031660e08a0152565b1515610100880152565b6001600160a01b0316610120860152565b61018080610140860152840190610888565b91610160818403910152610888565b6040906003190112610824576001600160a01b039060043582811681141561095957916024359081168114156109595790565b1561107a57565b50606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6006546000906001600160a01b038116906110db338314611073565b6bffffffffffffffffffffffff60a01b166006557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e082604051a3565b600654906001600160a01b0380831691611132338414611073565b16918215611174576001600160a01b03191682176006556040517f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3565b50505050608460405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b63ffffffff60e01b166380ac58cd60e01b81149081156111fe575b81156111f0575090565b6301ffc9a760e01b14919050565b635b5e139f60e01b811491506111e6565b6001600160a01b0316801561122f57600052600360205260406000205490565b505060405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608490fd5b6000908152600260205260409020546001600160a01b031680156112aa5790565b505060405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608490fd5b9061130d81611289565b6001600160a01b0381811690841681146113d65733149081156113a8575b501561133a57610cd491611a2a565b505060405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260849150fd5b6001600160a01b0316600090815260056020526040902060ff91506113ce90339061027e565b54163861132b565b5050505050608460405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152fd5b6000818152600260205260409020546001600160a01b031615611461576000908152600460205260409020546001600160a01b031690565b505060405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b6001600160a01b0381169190338314611532573360009081526005602090815260408083206001600160a01b039094168352929052209015159060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3565b50505050606460405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152fd5b1561158157565b5060405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608490fd5b90610cd492916115f96115f484336116ba565b61157a565b611891565b9091610cd4926040519261161184610b3a565b600084525b91610cd4939161163d9361162d6115f484336116ba565b611638838383611891565b611bf4565b611695565b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b1561169c57565b5060405162461bcd60e51b8152806116b660048201611642565b0390fd5b6000828152600260205260409020546001600160a01b03161561174b576116e082611289565b6001600160a01b038281168282168114949091908515611733575b505050821561170957505090565b6001600160a01b0316600090815260056020526040902060ff925061172e919061027e565b541690565b6117409192939550611429565b1614913880806116fb565b505060405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260849150fd5b156117af57565b5060405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b50634e487b7160e01b600052601160045260246000fd5b60018110611828575b6000190190565b611830611801565b611821565b818110611840570390565b611848611801565b0390565b600190600119811161185c570190565b611864611801565b0190565b8019603011611878575b60300190565b611880611801565b611872565b8119811161185c570190565b9061189b83611289565b6001600160a01b03838116929091821683141561197c576118ea61194d928216946118c78615156117a8565b6118d0876119d4565b6001600160a01b0316600090815260036020526040902090565b6118f48154611818565b90556001600160a01b0381166000908152600360205260409020611918815461184c565b905561192e856000526002602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6000604051a4610cd4613054565b505050505050608460405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152fd5b600081815260046020526040812080546001600160a01b03191690556001600160a01b03611a0183611289565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92582604051a4565b600082815260046020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b0380611a6384611289565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256000604051a4565b908160209103126108e7575161084281610811565b610842939260809260018060a01b031682526000602083015260408201528160608201520190610888565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261084292910190610888565b506040513d6000823e3d90fd5b3d15611b39573d90611b1f82610b9e565b91611b2d6040519384610b7d565b82523d6000602084013e565b606090565b909190803b15611bec57611b70602091600093604051948580948193630a85bd0160e11b998a84523360048501611aa5565b03926001600160a01b03165af160009181611bcc575b50611bbe57505050611b96611b0e565b80519081611bb957505060405162461bcd60e51b8152806116b660048201611642565b602001fd5b6001600160e01b0319161490565b611be5919250611bdc3d82610b7d565b3d810190611a90565b9038611b86565b505050600190565b92909190823b15611c2757611b70926020926000604051809681958294630a85bd0160e11b9a8b85523360048601611ad0565b50505050600190565b15611c3757565b5060405162461bcd60e51b815260206004820152603260248201527f446576656c6f706572416363657373436f6e74726f6c3a20646576656c6f70656044820152711c881858d8d95cdcc81a5cc81b1bd8dad95960721b6064820152608490fd5b15611c9f57565b5060405162461bcd60e51b815260206004820152602f60248201527f446576656c6f706572416363657373436f6e74726f6c3a206d697373696e672060448201526e72657175697265642061636365737360881b6064820152608490fd5b6006546001600160a01b03908116331415611de9575b5060075460ff8160a81c16600014611dab575060075460ff8160a81c1615611d6d5760ff60a81b19166007556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa90602090a1565b505060405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606490fd5b60ff60a81b1916600160a81b176007556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a1565b611e0890600754611e0060ff8260a01c1615611c30565b163314611c98565b38611d13565b929190600a546001600160401b038160801c164210611e785760c01c421015611e3a57610cd493611eb9565b5050505050606460405162461bcd60e51b8152602060048201526012602482015271141c995cd85b19481a185cc818db1bdcd95960721b6044820152fd5b505050505050606460405162461bcd60e51b8152602060048201526014602482015273141c995cd85b19481b9bdd081bdc195b881e595d60621b6044820152fd5b91929092600260085414611fdf57611fa193600084611f9c94611f89946002600855611eff611ef3600b5460018060a01b039060081c1690565b6001600160a01b031690565b91611f4d611f18611f0f3361120f565b63ffffffff1690565b91600a5493604051988997889687966313be74fd60e01b88526001600160401b038260c01c9260801c16903360048a01612097565b03915afa8015611fd2575b6000918291611fab575b5060405166022a92927a91d160cd1b602082015292611f9791849190602783015b90612103565b03601f198101845283610b7d565b612116565b61236d565b610cd46001600855565b611fcb9150611f97923d90823e611fc23d82610b7d565b3d810190612028565b9091611f62565b611fda611b01565b611f58565b5050505050606460405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152fd5b919060408382031261095957825161203f81610aeb565b926020810151906001600160401b038211610ae1570181601f8201121561096157805161206b81610b9e565b926120796040519485610b7d565b81845260208284010111610ae1576108429160208085019101610853565b96979594929163ffffffff9061ffff959260018060a01b031689521660208801526001600160401b03809216604088015216606086015216608084015260a083015260e060c08301528060e08301528061010093848401376000828201840152601f01601f1916010190565b9061186460209282815194859201610853565b1561211e5750565b60405162461bcd60e51b815260206004820152915081906116b6906024830190610888565b600a5460c01c421061215857610cd49061236d565b505060405162461bcd60e51b815260206004820152601160248201527014d85b19481b9bdd081bdc195b881e595d607a1b6044820152606490fd5b1561219a57565b5060405162461bcd60e51b815260206004820152601c60248201527f6578636565646564206d617820706572207472616e73616374696f6e000000006044820152606490fd5b156121e757565b5060405162461bcd60e51b815260206004820152601760248201527f6578636565646564206d6178207065722077616c6c65740000000000000000006044820152606490fd5b9063ffffffff808093169116809203811161185c570190565b1561224d57565b5060405162461bcd60e51b815260206004820152601760248201527f6d696e743a206e6f7420656e6f75676820737570706c790000000000000000006044820152606490fd5b6001600160801b0391828092169182911692048211811515166122b4570290565b6122bc611801565b0290565b156122c757565b5060405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606490fd5b60019061ffff80911690811461185c570190565b1561231d57565b5060405162461bcd60e51b815260206004820152602160248201527f4661696c656420746f20726566756e64206164646974696f6e616c2076616c756044820152606560f81b6064820152608490fd5b6009549061ffff8091169161238a60ff8260a01c16841115612193565b6123ad61239f8461239a3361120f565b611885565b60ff8360a81c1610156121e0565b6123d563ffffffff9182806123c787828560d01c1661222d565b9260b01c1691161115612246565b6123ff6123f36123ed600a546001600160801b031690565b85612293565b6001600160801b031690565b9261240c843410156122c0565b60005b818482161061244c57505050508034116124265750565b60008080612437610cd49434611835565b60405190335af1612446611b0e565b50612316565b6124ad907f5185e8659eb58045f0d542a353bbfe461c088891bd11d602ca9c3820a18f5b496124a561247c612ce1565b612488878216336124b2565b6040805133815263ffffffff909216602083015290918291820190565b0390a1612302565b61240f565b906040516124bf81610b3a565b600081526001600160a01b0383169182156125b7576000818152600260205260409020546001600160a01b031661256e57838161163d94612515610cd49760018060a01b03166000526003602052604060002090565b61251f815461184c565b90556125398361192e846000526002602052604060002090565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef81604051a4612569613054565b611b3e565b5050505050606460405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152fd5b5050505050606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b6006546001600160a01b039081163314156126ca575b61261f826126e6565b806126ba575b806126ab575b1561265557600b8054610100600160a81b0319169190921660081b610100600160a81b0316179055565b505060405162461bcd60e51b815260206004820152602560248201527f41434c3a2077726f6e6720696e74657266616365207479706520666f7220636860448201526432b1b5b2b960d91b606482015260849150fd5b506126b582612785565b61262b565b506126c482612755565b15612625565b6126e181600754611e0060ff8260a01c1615611c30565b612616565b6000809160405160208101906301ffc9a760e01b80835260248201526024815261270f81610b62565b5191617530fa61271d611b0e565b80516020811061274d578261273157505090565b81925090602091810103126108e7576020015161084281610aeb565b505050600090565b6000809160405160208101906301ffc9a760e01b825263ffffffff60e01b60248201526024815261270f81610b62565b6000809160405160208101906301ffc9a760e01b82526313be74fd60e01b60248201526024815261270f81610b62565b9060018060a01b03806006541633141561285c575b506001600160801b036001600160401b03808416908080600a54966001600160401b0360801b9060801b1695866001600160401b0360801b19891617600a5516610e109080830482118115151661284f575b02168091038211612842575b6001600160401b0360c01b910160c01b1692161717600a55565b61284a611801565b612828565b612857611801565b61281c565b61287390600754611e0060ff8260a01c1615611c30565b386127ca565b6006546001600160a01b039081163314156128af575b506009805460ff60a01b191660a09290921b60ff60a01b16919091179055565b6128c690600754611e0060ff8260a01c1615611c30565b3861288f565b6006546001600160a01b03908116331415612902575b506009805460ff60a81b191660a89290921b60ff60a81b16919091179055565b61291990600754611e0060ff8260a01c1615611c30565b386128e2565b6006546001600160a01b0390811633141561295b575b506009805463ffffffff60b01b191660b09290921b63ffffffff60b01b16919091179055565b61297290600754611e0060ff8260a01c1615611c30565b38612935565b6006546001600160801b0391906001600160a01b039081163314156129ad575b50166001600160801b0319600a541617600a55565b6129c490600754611e0060ff8260a01c1615611c30565b38612998565b919060018060a01b038060065416331415612ab8575b506001600160401b038111612aab575b612a04816129ff600c54610c5e565b612ad5565b6000601f8211600114612a3e57819293600092612a33575b50508160011b916000199060031b1c191617600c55565b013590503880612a1c565b600c600052601f198216936000805160206131df83398151915291805b868110612a935750836001959610612a79575b505050811b01600c55565b0135600019600384901b60f8161c19169055388080612a6e565b90926020600181928686013581550194019101612a5b565b612ab3610b23565b6129f0565b612acf90600754611e0060ff8260a01c1615611c30565b386129e0565b601f8111612ae1575050565b600090600c82526000805160206131df833981519152906020601f850160051c83019410612b2a575b601f0160051c01915b828110612b1f57505050565b818155600101612b13565b9092508290612b0a565b601f8111612b40575050565b600090600d82526000805160206131ff833981519152906020601f850160051c83019410612b89575b601f0160051c01915b828110612b7e57505050565b818155600101612b72565b9092508290612b69565b919060018060a01b038060065416331415612c81575b506001600160401b038111612c74575b612bcd81612bc8600d54610c5e565b612b34565b6000601f8211600114612c0757819293600092612bfc575b50508160011b916000199060031b1c191617600d55565b013590503880612be5565b600d600052601f198216936000805160206131ff83398151915291805b868110612c5c5750836001959610612c42575b505050811b01600d55565b0135600019600384901b60f8161c19169055388080612c37565b90926020600181928686013581550194019101612c24565b612c7c610b23565b612bb9565b612c9890600754611e0060ff8260a01c1615611c30565b38612ba9565b6006546001600160a01b03908116331415612cc4575b50600160ff19600b541617600b55565b612cdb90600754611e0060ff8260a01c1615611c30565b38612cb4565b60095463ffffffff90818160d01c16828114612d1f575b600163ffffffff60d01b910160d01b169063ffffffff60d01b1916178060095560d01c1690565b612d27611801565b612cf8565b600d5460009291612d3c82610c5e565b91600190818116908115612d965750600114612d5757505050565b9091929350600d6000526000805160206131ff833981519152906000915b848310612d83575050500190565b8181602092548587015201920191612d75565b60ff191683525050019150565b600c5460009291612db382610c5e565b91600190818116908115612d965750600114612dce57505050565b9091929350600c6000526000805160206131df833981519152906000915b848310612dfa575050500190565b8181602092548587015201920191612dec565b6000818152600260205260409020546001600160a01b031615612ec357600b5460ff1615612e9f57610842612e44612e8092612f7e565b612e91604051938492611f83612e73612e6e6020870160079066697066733a2f2f60c81b81520190565b612da3565b602f60f81b815260010190565b64173539b7b760d91b815260050190565b03601f198101835282610b7d565b5060405166697066733a2f2f60c81b602082015261084281612e9160278201612d2c565b505060405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608490fd5b90612f2c82610b9e565b612f396040519182610b7d565b8281528092612f4a601f1991610b9e565b0190602036910137565b908151811015612f65570160200190565b505050634e487b7160e01b600052603260045260246000fd5b8015613018576000818181805b612fee5750612f9981612f22565b935b612fa55750505090565b612fae90611818565b90600a90612fd9612fc9612fc3848406611868565b60ff1690565b60f81b6001600160f81b03191690565b841a612fe58487612f54565b53049081612f9b565b91506001600a91600019811461300b575b01910480849291612f8b565b613013611801565b612fff565b50604051604081018181106001600160401b03821117613047575b60405260018152600360fc1b602082015290565b61304f610b23565b613033565b60075460ff8160a01c16156130665750565b60ff60a01b1916600160a01b17600755565b6006546001600160a01b0391906130929083163314611073565b166bffffffffffffffffffffffff60a01b6009541617600955565b600080808060018060a01b036130c881600654163314611073565b600954164790828215613124575bf1156130de57565b5060405162461bcd60e51b815260206004820152601e60248201527f77697468647261773a2073656e64696e672066756e6473206661696c656400006044820152606490fd5b506108fc6130d6565b506006546001600160a01b039081163314156131c1575b5063ffffffff60095460d01c1661316c5773e3db823ce2ea1b9a545f4ea93886aebeec26fd75ff5b60405162461bcd60e51b815260206004820152602760248201527f63616e6e6f742064657374726f79206f6e6365206d696e74696e6720686173206044820152661cdd185c9d195960ca1b6064820152608490fd5b6131d890600754611e0060ff8260a01c1615611c30565b3861314456fedf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7d7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5a3646970667358221220f24832aeac969d67ba6dabefbb530324e77ac9919172faa8c17870e40be3ee3a6c6578706572696d656e74616cf564736f6c634300080c0041
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000814858ad31778589a2049b3399963fb3ba942c7600000000000000000000000097956964e3b6b2c88b2ce0ea678e25d17cb50a6f000000000000000000000000000000000000000000000000000000006256f3800000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002e516d64546b5a59424e6147795a50323969324a485831547a45506e744b57576a4c454a7562636e7268715a36654a000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : owner (address): 0x814858Ad31778589a2049b3399963fB3ba942c76
Arg [1] : acl (address): 0x97956964E3b6b2c88b2CE0EA678e25d17CB50A6F
Arg [2] : preSaleStart (uint64): 1649865600
Arg [3] : metadataIpfsCid (string): QmdTkZYBNaGyZP29i2JHX1TzEPntKWWjLEJubcnrhqZ6eJ
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000814858ad31778589a2049b3399963fb3ba942c76
Arg [1] : 00000000000000000000000097956964e3b6b2c88b2ce0ea678e25d17cb50a6f
Arg [2] : 000000000000000000000000000000000000000000000000000000006256f380
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [5] : 516d64546b5a59424e6147795a50323969324a485831547a45506e744b57576a
Arg [6] : 4c454a7562636e7268715a36654a000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.