ERC-721
NFT
Overview
Max Total Supply
0 BAYC
Holders
2,091
Market
Volume (24H)
0.1563 ETH
Min Price (24H)
$27.51 @ 0.008100 ETH
Max Price (24H)
$67.92 @ 0.020000 ETH
Other Info
Token Contract
Balance
1 BAYCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BoredApeYogaClub
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity >=0.8.0 <0.9.0; pragma abicoder v2; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "hardhat/console.sol"; interface IWETH { function deposit() external payable; } contract BoredApeYogaClub is Pausable, ERC721, ReentrancyGuard, Ownable { using Strings for *; struct Auction { uint apeId; uint highestBidAmount; uint256 startTime; uint256 endTime; address highestBidder; } struct AuctionConfig { uint timeBuffer; uint reservePrice; uint minBidAmountIfCurrentBidZero; uint minBidIncrementPercentage; uint auctionDuration; } mapping(uint => uint) public reservePriceOverrides; struct ContractConfig { address wethContract; string externalURL; string imageURI; string baseTokenURI; string description; uint96 sellerFeeBasisPoints; address mikeAddress; address withdrawAddress; } Auction[10_000] public auctions; AuctionConfig public auctionConfig; ContractConfig public contractConfig; uint public ethAvailableToWithdraw; event AuctionStarted(uint indexed apeId, uint startTime, uint endTime); event AuctionBid(uint indexed apeId, address bidder, uint bidValue, bool auctionExtended); event AuctionExtended(uint indexed apeId, uint endTime); event AuctionSettled(uint indexed apeId, address winner, uint amount); event AuctionBatchBid(uint[] indexed apeIds, address bidder, bool anySuccesses, uint[] bidValues, bool[] successfulBids, uint refundAmount); event AuctionConfigUpdated(AuctionConfig newConfig); event ContractConfigUpdated(ContractConfig newConfig); event ReservePriceOverridesUpdated(uint[] apeIds, uint[] newReservePrices); event PreMint(uint[] apeIds); event Withdraw(uint indexed total); constructor( AuctionConfig memory _auctionConfig, ContractConfig memory _contractConfig ) ERC721("Bored Ape Yoga Club", "BAYC") { auctionConfig = _auctionConfig; contractConfig = _contractConfig; _pause(); } function preMintIds(uint[] calldata idsToPremint) external onlyOwner { for (uint i; i < idsToPremint.length; ++i) { Auction memory auction = auctions[idsToPremint[i]]; require(auction.startTime == 0, "Can't premint after auction has started"); _mint(contractConfig.mikeAddress, idsToPremint[i]); } emit PreMint(idsToPremint); } function exists(uint _apeId) public view returns (bool) { return _exists(_apeId); } function bidOnMultipleApes(uint[] calldata apeIds) external payable whenNotPaused nonReentrant { uint availableEth = msg.value; bool anySuccesses; uint[] memory bidValues = new uint[](apeIds.length); bool[] memory successfulBids = new bool[](apeIds.length); uint refundAmount; for (uint i; i < apeIds.length; i++) { (bool success, uint amountSpent) = bidOnApe(apeIds[i], availableEth, 0); if (success) { bidValues[i] = amountSpent; successfulBids[i] = true; availableEth -= amountSpent; anySuccesses = true; } } require(anySuccesses, "No apes were successfully bid on"); if (availableEth > 0) { refundAmount = availableEth; _safeTransferETHWithFallback(msg.sender, refundAmount); } emit AuctionBatchBid(apeIds, msg.sender, anySuccesses, bidValues, successfulBids, refundAmount); } function setReservePriceOverrides(uint[] calldata apeIds, uint[] calldata reserves) external onlyOwner { require(apeIds.length == reserves.length, "apeIds and reserves must be the same length"); for (uint i; i < apeIds.length; ++i) { reservePriceOverrides[apeIds[i]] = reserves[i]; } emit ReservePriceOverridesUpdated(apeIds, reserves); } function reservePrice(uint apeId) public view returns (uint) { return reservePriceOverrides[apeId] > 0 ? reservePriceOverrides[apeId] : auctionConfig.reservePrice; } function bidOnSingleApe(uint apeId) external payable whenNotPaused nonReentrant { (bool success,) = bidOnApe(apeId, msg.value, msg.value); require(success, "Bid failed"); } function bidOnApe(uint apeId, uint availableEth, uint forceBidAmount) internal returns (bool success, uint amountSpent) { Auction storage auction = auctions[apeId]; bool auctionStarted = auction.startTime > 0; uint minBidAmountIfCurrentBidPositive = auction.highestBidAmount + ((auction.highestBidAmount * auctionConfig.minBidIncrementPercentage) / 100); uint amountToBid; if (auctionStarted) { amountToBid = auction.highestBidAmount == 0 ? auctionConfig.minBidAmountIfCurrentBidZero : minBidAmountIfCurrentBidPositive; } else { amountToBid = reservePrice(apeId); } if (forceBidAmount > amountToBid) { amountToBid = forceBidAmount; } bool canBidOnApe = !_exists(apeId) && (auction.endTime == 0 || block.timestamp < auction.endTime) && (availableEth >= amountToBid); if (!canBidOnApe) { return (false, 0); } if (auction.startTime == 0) { auction.startTime = block.timestamp; auction.endTime = block.timestamp + auctionConfig.auctionDuration; emit AuctionStarted(apeId, auction.startTime, auction.endTime); } if (auction.highestBidder != address(0)) { _safeTransferETHWithFallback(auction.highestBidder, auction.highestBidAmount); } auction.highestBidAmount = amountToBid; auction.highestBidder = msg.sender; bool extendAuction = auction.endTime - block.timestamp < auctionConfig.timeBuffer; if (extendAuction) { auction.endTime = block.timestamp + auctionConfig.timeBuffer; emit AuctionExtended(apeId, auction.endTime); } emit AuctionBid(apeId, auction.highestBidder, auction.highestBidAmount, extendAuction); return (true, auction.highestBidAmount); } function settleAuction(uint apeId) external nonReentrant whenNotPaused { Auction memory auction = auctions[apeId]; require(!_exists(apeId), "Auction already settled"); require(auction.startTime != 0, "Auction hasn't begun"); require(block.timestamp >= auction.endTime, "Auction hasn't completed"); _mint(auction.highestBidder, apeId); ethAvailableToWithdraw += auction.highestBidAmount; emit AuctionSettled(apeId, auction.highestBidder, auction.highestBidAmount); } function tokenURI(uint tokenId) public view override returns (string memory) { return string.concat(contractConfig.baseTokenURI, tokenId.toString(), ".json"); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setAuctionConfig(AuctionConfig memory _auctionConfig) external onlyOwner { auctionConfig = _auctionConfig; emit AuctionConfigUpdated(auctionConfig); } function setContractConfig(ContractConfig memory _contractConfig) external onlyOwner { contractConfig = _contractConfig; emit ContractConfigUpdated(contractConfig); } function _safeTransferETHWithFallback(address to, uint256 amount) internal { if (!_safeTransferETH(to, amount)) { IWETH(contractConfig.wethContract).deposit{ value: amount }(); IERC20(contractConfig.wethContract).transfer(to, amount); } } function _safeTransferETH(address to, uint256 value) internal returns (bool) { (bool success, ) = payable(to).call{ value: value, gas: 30_000 }(new bytes(0)); return success; } function withdraw() external { require(msg.sender == tx.origin, "No contracts"); uint balance = ethAvailableToWithdraw; require(balance > 0, "Nothing to withdraw"); emit Withdraw(balance); ethAvailableToWithdraw = 0; _safeTransferETHWithFallback(contractConfig.withdrawAddress, balance); } fallback (bytes calldata _inputText) external payable returns (bytes memory _output) {} receive () external payable {} // function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { // return super.supportsInterface(interfaceId); // } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _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 an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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 (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"uint256","name":"timeBuffer","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"minBidAmountIfCurrentBidZero","type":"uint256"},{"internalType":"uint256","name":"minBidIncrementPercentage","type":"uint256"},{"internalType":"uint256","name":"auctionDuration","type":"uint256"}],"internalType":"struct BoredApeYogaClub.AuctionConfig","name":"_auctionConfig","type":"tuple"},{"components":[{"internalType":"address","name":"wethContract","type":"address"},{"internalType":"string","name":"externalURL","type":"string"},{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"uint96","name":"sellerFeeBasisPoints","type":"uint96"},{"internalType":"address","name":"mikeAddress","type":"address"},{"internalType":"address","name":"withdrawAddress","type":"address"}],"internalType":"struct BoredApeYogaClub.ContractConfig","name":"_contractConfig","type":"tuple"}],"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":"uint256[]","name":"apeIds","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"bool","name":"anySuccesses","type":"bool"},{"indexed":false,"internalType":"uint256[]","name":"bidValues","type":"uint256[]"},{"indexed":false,"internalType":"bool[]","name":"successfulBids","type":"bool[]"},{"indexed":false,"internalType":"uint256","name":"refundAmount","type":"uint256"}],"name":"AuctionBatchBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"apeId","type":"uint256"},{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bidValue","type":"uint256"},{"indexed":false,"internalType":"bool","name":"auctionExtended","type":"bool"}],"name":"AuctionBid","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"timeBuffer","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"minBidAmountIfCurrentBidZero","type":"uint256"},{"internalType":"uint256","name":"minBidIncrementPercentage","type":"uint256"},{"internalType":"uint256","name":"auctionDuration","type":"uint256"}],"indexed":false,"internalType":"struct BoredApeYogaClub.AuctionConfig","name":"newConfig","type":"tuple"}],"name":"AuctionConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"apeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"AuctionExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"apeId","type":"uint256"},{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"apeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"wethContract","type":"address"},{"internalType":"string","name":"externalURL","type":"string"},{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"uint96","name":"sellerFeeBasisPoints","type":"uint96"},{"internalType":"address","name":"mikeAddress","type":"address"},{"internalType":"address","name":"withdrawAddress","type":"address"}],"indexed":false,"internalType":"struct BoredApeYogaClub.ContractConfig","name":"newConfig","type":"tuple"}],"name":"ContractConfigUpdated","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":"uint256[]","name":"apeIds","type":"uint256[]"}],"name":"PreMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"apeIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newReservePrices","type":"uint256[]"}],"name":"ReservePriceOverridesUpdated","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"total","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionConfig","outputs":[{"internalType":"uint256","name":"timeBuffer","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"minBidAmountIfCurrentBidZero","type":"uint256"},{"internalType":"uint256","name":"minBidIncrementPercentage","type":"uint256"},{"internalType":"uint256","name":"auctionDuration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"auctions","outputs":[{"internalType":"uint256","name":"apeId","type":"uint256"},{"internalType":"uint256","name":"highestBidAmount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"highestBidder","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"apeIds","type":"uint256[]"}],"name":"bidOnMultipleApes","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"apeId","type":"uint256"}],"name":"bidOnSingleApe","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"contractConfig","outputs":[{"internalType":"address","name":"wethContract","type":"address"},{"internalType":"string","name":"externalURL","type":"string"},{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"uint96","name":"sellerFeeBasisPoints","type":"uint96"},{"internalType":"address","name":"mikeAddress","type":"address"},{"internalType":"address","name":"withdrawAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethAvailableToWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_apeId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"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":[{"internalType":"uint256[]","name":"idsToPremint","type":"uint256[]"}],"name":"preMintIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"apeId","type":"uint256"}],"name":"reservePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"reservePriceOverrides","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":"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":[{"components":[{"internalType":"uint256","name":"timeBuffer","type":"uint256"},{"internalType":"uint256","name":"reservePrice","type":"uint256"},{"internalType":"uint256","name":"minBidAmountIfCurrentBidZero","type":"uint256"},{"internalType":"uint256","name":"minBidIncrementPercentage","type":"uint256"},{"internalType":"uint256","name":"auctionDuration","type":"uint256"}],"internalType":"struct BoredApeYogaClub.AuctionConfig","name":"_auctionConfig","type":"tuple"}],"name":"setAuctionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"wethContract","type":"address"},{"internalType":"string","name":"externalURL","type":"string"},{"internalType":"string","name":"imageURI","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"uint96","name":"sellerFeeBasisPoints","type":"uint96"},{"internalType":"address","name":"mikeAddress","type":"address"},{"internalType":"address","name":"withdrawAddress","type":"address"}],"internalType":"struct BoredApeYogaClub.ContractConfig","name":"_contractConfig","type":"tuple"}],"name":"setContractConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"apeIds","type":"uint256[]"},{"internalType":"uint256[]","name":"reserves","type":"uint256[]"}],"name":"setReservePriceOverrides","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"apeId","type":"uint256"}],"name":"settleAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200400c3803806200400c83398101604081905262000034916200062d565b604080518082018252601381527f426f7265642041706520596f676120436c756200000000000000000000000000602080830191909152825180840190935260048352634241594360e01b908301526000805460ff191690559060016200009c838262000789565b506002620000ab828262000789565b5050600160075550620000be33620001cd565b815161c35a5560208083015161c35b55604083015161c35c55606083015161c35d55608083015161c35e55815161c35f80546001600160a01b0319166001600160a01b039092169190911781559082015182919061c3609062000122908262000789565b506040820151600282019062000139908262000789565b506060820151600382019062000150908262000789565b506080820151600482019062000167908262000789565b5060a082015160c08301516001600160601b039091166c010000000000000000000000006001600160a01b039283160217600583015560e090920151600690910180546001600160a01b03191691909216179055620001c56200021f565b5050620008a9565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200022962000278565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200025f3390565b6040516200026e91906200086a565b60405180910390a1565b60005460ff1615620002a75760405162461bcd60e51b81526004016200029e906200087a565b60405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715620002e757620002e7620002a9565b6040525050565b6000620002fa60405190565b9050620003088282620002bf565b919050565b805b81146200031b57600080fd5b50565b80516200032b816200030d565b92915050565b600060a08284031215620003485762000348600080fd5b6200035460a0620002ee565b905060006200036484846200031e565b825250602062000377848483016200031e565b60208301525060406200038d848285016200031e565b6040830152506060620003a3848285016200031e565b6060830152506080620003b9848285016200031e565b60808301525092915050565b60006001600160a01b0382166200032b565b6200030f81620003c5565b80516200032b81620003d7565b60006001600160401b038211156200040b576200040b620002a9565b601f19601f83011660200192915050565b60005b83811015620004395781810151838201526020016200041f565b8381111562000449576000848401525b50505050565b6000620004666200046084620003ef565b620002ee565b905082815260208101848484011115620004835762000483600080fd5b620004908482856200041c565b509392505050565b600082601f830112620004ae57620004ae600080fd5b8151620004c08482602086016200044f565b949350505050565b6001600160601b0381166200030f565b80516200032b81620004c8565b60006101008284031215620004fd57620004fd600080fd5b6200050a610100620002ee565b905060006200051a8484620003e2565b82525060208201516001600160401b038111156200053b576200053b600080fd5b620005498482850162000498565b60208301525060408201516001600160401b038111156200056d576200056d600080fd5b6200057b8482850162000498565b60408301525060608201516001600160401b038111156200059f576200059f600080fd5b620005ad8482850162000498565b60608301525060808201516001600160401b03811115620005d157620005d1600080fd5b620005df8482850162000498565b60808301525060a0620005f584828501620004d8565b60a08301525060c06200060b84828501620003e2565b60c08301525060e06200062184828501620003e2565b60e08301525092915050565b60008060c08385031215620006455762000645600080fd5b600062000653858562000331565b92505060a08301516001600160401b03811115620006745762000674600080fd5b6200068285828601620004e5565b9150509250929050565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620006b757607f821691505b602082108103620006cc57620006cc6200068c565b50919050565b60006200032b620006e08381565b90565b620006ee83620006d2565b81546008840282811b60001990911b908116901990911617825550505050565b60006200071d818484620006e3565b505050565b818110156200074157620007386000826200070e565b60010162000722565b5050565b601f8211156200071d576000818152602090206020601f850104810160208510156200076e5750805b620007826020601f86010483018262000722565b5050505050565b81516001600160401b03811115620007a557620007a5620002a9565b620007b18254620006a2565b620007be82828562000745565b6020601f831160018114620007f55760008415620007dc5750858201515b600019600886021c198116600286021786555062000851565b600085815260208120601f198616915b8281101562000827578885015182556020948501946001909201910162000805565b86831015620008445784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b6200086481620003c5565b82525050565b602081016200032b828462000859565b602080825281016200032b81601081526f14185d5cd8589b194e881c185d5cd95960821b602082015260400190565b61375380620008b96000396000f3fe6080604052600436106101fd5760003560e01c806370a082311161010d578063a9be1191116100a0578063cd1d894c1161006f578063cd1d894c146105a9578063e361c5a8146105d2578063e985e9c5146105f2578063f1adad3714610612578063f2fde38b1461063f57610204565b8063a9be11911461050c578063b88d4fde1461052c578063bb4061351461054c578063c87b56dd1461058957610204565b806391b6145b116100dc57806391b6145b146104a457806395d89b41146104c4578063998831e5146104d9578063a22cb465146104ec57610204565b806370a082311461043c578063715018a61461045c5780638456cb59146104715780638da5cb5b1461048657610204565b80633f4ba83a116101905780634f558e791161015f5780634f558e7914610393578063571a26a0146103b35780635c975abb146103e45780636352211e146103fc578063660d016d1461041c57610204565b80633f4ba83a1461031a578063402463c51461032f57806342842e0e1461035357806348f300fe1461037357610204565b8063095ea7b3116101cc578063095ea7b3146102a557806323b872dd146102c55780632e993611146102e55780633ccfd60b1461030557610204565b806301ffc9a71461020b57806305ea95191461024157806306fdde0314610256578063081812fc1461027857610204565b3661020457005b6060516080f35b34801561021757600080fd5b5061022b610226366004611feb565b61065f565b6040516102389190612016565b60405180910390f35b61025461024f366004612075565b6106b1565b005b34801561026257600080fd5b5061026b6108b2565b604051610238919061211a565b34801561028457600080fd5b50610298610293366004612143565b610944565b604051610238919061217e565b3480156102b157600080fd5b506102546102c03660046121a0565b61096b565b3480156102d157600080fd5b506102546102e03660046121dd565b6109f0565b3480156102f157600080fd5b50610254610300366004612143565b610a21565b34801561031157600080fd5b50610254610baf565b34801561032657600080fd5b50610254610c3a565b34801561033b57600080fd5b5061034661c3665481565b6040516102389190612233565b34801561035f57600080fd5b5061025461036e3660046121dd565b610c4c565b34801561037f57600080fd5b5061025461038e366004612075565b610c67565b34801561039f57600080fd5b5061022b6103ae366004612143565b610d95565b3480156103bf57600080fd5b506103d36103ce366004612143565b610db4565b604051610238959493929190612241565b3480156103f057600080fd5b5060005460ff1661022b565b34801561040857600080fd5b50610298610417366004612143565b610df3565b34801561042857600080fd5b506102546104373660046124cc565b610e28565b34801561044857600080fd5b50610346610457366004612506565b610f2f565b34801561046857600080fd5b50610254610f73565b34801561047d57600080fd5b50610254610f85565b34801561049257600080fd5b506008546001600160a01b0316610298565b3480156104b057600080fd5b506102546104bf366004612527565b610f95565b3480156104d057600080fd5b5061026b611064565b6102546104e7366004612143565b611073565b3480156104f857600080fd5b506102546105073660046125b1565b6110d8565b34801561051857600080fd5b5061025461052736600461266a565b6110e7565b34801561053857600080fd5b5061025461054736600461268b565b611148565b34801561055857600080fd5b5061c35a5461c35b5461c35c5461c35d5461c35e54610578949392919085565b604051610238959493929190612709565b34801561059557600080fd5b5061026b6105a4366004612143565b611180565b3480156105b557600080fd5b506105be6111b5565b60405161023898979695949392919061275a565b3480156105de57600080fd5b506103466105ed366004612143565b61142d565b3480156105fe57600080fd5b5061022b61060d3660046127ed565b61145c565b34801561061e57600080fd5b5061034661062d366004612143565b60096020526000908152604090205481565b34801561064b57600080fd5b5061025461065a366004612506565b61148a565b60006001600160e01b031982166380ac58cd60e01b148061069057506001600160e01b03198216635b5e139f60e01b145b806106ab57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106b96114c1565b6002600754036106e45760405162461bcd60e51b81526004016106db90612857565b60405180910390fd5b600260075534600080836001600160401b038111156107055761070561228d565b60405190808252806020026020018201604052801561072e578160200160208202803683370190505b5090506000846001600160401b0381111561074b5761074b61228d565b604051908082528060200260200182016040528015610774578160200160208202803683370190505b5090506000805b8681101561081d576000806107aa8a8a8581811061079b5761079b612867565b905060200201358960006114e4565b91509150811561080857808684815181106107c7576107c7612867565b60200260200101818152505060018584815181106107e7576107e7612867565b911515602092830291909101909101526108018189612893565b9750600196505b50508080610815906128aa565b91505061077b565b508361083b5760405162461bcd60e51b81526004016106db906128f6565b841561084d57508361084d3382611764565b868660405161085d92919061293a565b60405180910390207f3ba3d9ea69c4be52fff7dcc9e412493e9c455db8b11be018e43a4cfae592e1ad338686868660405161089c9594939291906129ee565b60405180910390a2505060016007555050505050565b6060600180546108c190612a54565b80601f01602080910402602001604051908101604052809291908181526020018280546108ed90612a54565b801561093a5780601f1061090f5761010080835404028352916020019161093a565b820191906000526020600020905b81548152906001019060200180831161091d57829003601f168201915b5050505050905090565b600061094f82611849565b506000908152600560205260409020546001600160a01b031690565b600061097682610df3565b9050806001600160a01b0316836001600160a01b0316036109a95760405162461bcd60e51b81526004016106db90612ac1565b336001600160a01b03821614806109c557506109c5813361145c565b6109e15760405162461bcd60e51b81526004016106db90612b2b565b6109eb838361187d565b505050565b6109fa33826118eb565b610a165760405162461bcd60e51b81526004016106db90612b86565b6109eb83838361194a565b600260075403610a435760405162461bcd60e51b81526004016106db90612857565b6002600755610a506114c1565b6000600a826127108110610a6657610a66612867565b6040805160a081018252600592909202929092018054825260018101546020830152600281015492820192909252600382015460608201526004909101546001600160a01b031660808201529050610ad5826000908152600360205260409020546001600160a01b0316151590565b15610af25760405162461bcd60e51b81526004016106db90612bca565b8060400151600003610b165760405162461bcd60e51b81526004016106db90612c05565b8060600151421015610b3a5760405162461bcd60e51b81526004016106db90612c49565b610b48816080015183611a6c565b806020015161c3666000828254610b5f9190612c59565b90915550506080810151602082015160405184927fc9f72b276a388619c6d185d146697036241880c36654b1a3ffdad07c24038d9992610b9e92612c71565b60405180910390a250506001600755565b333214610bce5760405162461bcd60e51b81526004016106db90612caf565b61c3665480610bef5760405162461bcd60e51b81526004016106db90612ce9565b60405181907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d90600090a2600061c3665561c36554610c37906001600160a01b031682611764565b50565b610c42611b4e565b610c4a611b78565b565b6109eb83838360405180602001604052806000815250611148565b610c6f611b4e565b60005b81811015610d57576000600a848484818110610c9057610c90612867565b905060200201356127108110610ca857610ca8612867565b6040805160a081018252600592909202929092018054825260018101546020830152600281015492820183905260038101546060830152600401546001600160a01b03166080820152915015610d105760405162461bcd60e51b81526004016106db90612d3d565b61c36454610d4690600160601b90046001600160a01b0316858585818110610d3a57610d3a612867565b90506020020135611a6c565b50610d50816128aa565b9050610c72565b507f7b16f64be99a1a47c78b173641ffddc2cc63f876ce9a92b8729f50a2278db3588282604051610d89929190612d5b565b60405180910390a15050565b6000818152600360205260408120546001600160a01b031615156106ab565b600a816127108110610dc557600080fd5b600502018054600182015460028301546003840154600490940154929450909290916001600160a01b031685565b6000818152600360205260408120546001600160a01b0316806106ab5760405162461bcd60e51b81526004016106db90612da1565b610e30611b4e565b805161c35f80546001600160a01b0319166001600160a01b03909216919091178155602082015182919061c36090610e689082612e51565b5060408201516002820190610e7d9082612e51565b5060608201516003820190610e929082612e51565b5060808201516004820190610ea79082612e51565b5060a082015160c08301516001600160601b03909116600160601b6001600160a01b039283160217600583015560e090920151600690910180546001600160a01b031916919092161790556040517f2c6901c7b493962ffdb272ccb86527cc394da96e239cd6870f23f5862fd682ca90610f249061c35f9061309f565b60405180910390a150565b60006001600160a01b038216610f575760405162461bcd60e51b81526004016106db906130f6565b506001600160a01b031660009081526004602052604090205490565b610f7b611b4e565b610c4a6000611bc4565b610f8d611b4e565b610c4a611c16565b610f9d611b4e565b828114610fbc5760405162461bcd60e51b81526004016106db9061314e565b60005b8381101561102057828282818110610fd957610fd9612867565b9050602002013560096000878785818110610ff657610ff6612867565b9050602002013581526020019081526020016000208190555080611019906128aa565b9050610fbf565b507f23e15395b68ee04e41e0d313e255368d965d11be18b2952e12b9187ea587b66f84848484604051611056949392919061315e565b60405180910390a150505050565b6060600280546108c190612a54565b61107b6114c1565b60026007540361109d5760405162461bcd60e51b81526004016106db90612857565b600260075560006110af8234806114e4565b509050806110cf5760405162461bcd60e51b81526004016106db906131a6565b50506001600755565b6110e3338383611c53565b5050565b6110ef611b4e565b805161c35a908155602082015161c35b5560408083015161c35c55606083015161c35d55608083015161c35e55517f6c3ea8254f9d138f31d4cefef64a7a3dbf19af953c7f4c5b8e962f967a2e97fa91610f249161324c565b61115233836118eb565b61116e5760405162461bcd60e51b81526004016106db90612b86565b61117a84848484611cf5565b50505050565b606061c36261118e83611d28565b60405160200161119f9291906132eb565b6040516020818303038152906040529050919050565b61c35f805461c36080546001600160a01b0390921692916111d590612a54565b80601f016020809104026020016040519081016040528092919081815260200182805461120190612a54565b801561124e5780601f106112235761010080835404028352916020019161124e565b820191906000526020600020905b81548152906001019060200180831161123157829003601f168201915b50505050509080600201805461126390612a54565b80601f016020809104026020016040519081016040528092919081815260200182805461128f90612a54565b80156112dc5780601f106112b1576101008083540402835291602001916112dc565b820191906000526020600020905b8154815290600101906020018083116112bf57829003601f168201915b5050505050908060030180546112f190612a54565b80601f016020809104026020016040519081016040528092919081815260200182805461131d90612a54565b801561136a5780601f1061133f5761010080835404028352916020019161136a565b820191906000526020600020905b81548152906001019060200180831161134d57829003601f168201915b50505050509080600401805461137f90612a54565b80601f01602080910402602001604051908101604052809291908181526020018280546113ab90612a54565b80156113f85780601f106113cd576101008083540402835291602001916113f8565b820191906000526020600020905b8154815290600101906020018083116113db57829003601f168201915b505050600584015460069094015492936001600160601b038116936001600160a01b03600160601b9092048216935016905088565b6000818152600960205260408120546114495761c35b546106ab565b5060009081526009602052604090205490565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b611492611b4e565b6001600160a01b0381166114b85760405162461bcd60e51b81526004016106db9061335c565b610c3781611bc4565b60005460ff1615610c4a5760405162461bcd60e51b81526004016106db90613393565b6000806000600a8661271081106114fd576114fd612867565b60050201905060008082600201541190506000606461c35a60030154846001015461152891906133a3565b61153291906133d8565b83600101546115419190612c59565b9050600082156115675760018401541561155b5781611560565b61c35c545b9050611573565b6115708961142d565b90505b8087111561157e5750855b6000898152600360205260408120546001600160a01b03161580156115b25750600385015415806115b25750846003015442105b80156115be5750818910155b9050806115d65760008096509650505050505061175c565b846002015460000361163f57426002860181905561c35e546115f791612c59565b6003860181905560028601546040518c927f44c53be110c6aa83aa83cd02e351ed172359268272ee1b5d31c0fe48db35c6c792611636929091906133ec565b60405180910390a25b60048501546001600160a01b03161561166f576004850154600186015461166f916001600160a01b031690611764565b600185018290556004850180546001600160a01b0319163317905561c35a546003860154600091906116a2904290612893565b10905080156116fa5761c35a546116b99042612c59565b600387018190556040518c917f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e916116f19190612233565b60405180910390a25b600486015460018701546040518d927f1159164c56f277e6fc99c11731bd380e0347deb969b75523398734c252706ea392611742926001600160a01b039092169186906133fa565b60405180910390a260018660010154975097505050505050505b935093915050565b61176e8282611e28565b6110e35761c35f5460408051630d0e30db60e41b815290516001600160a01b039092169163d0e30db0918491600480830192600092919082900301818588803b1580156117ba57600080fd5b505af11580156117ce573d6000803e3d6000fd5b505061c35f5460405163a9059cbb60e01b81526001600160a01b03909116935063a9059cbb9250611806915085908590600401612c71565b6020604051808303816000875af1158015611825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109eb919061342d565b6000818152600360205260409020546001600160a01b0316610c375760405162461bcd60e51b81526004016106db90612da1565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b282610df3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118f783610df3565b9050806001600160a01b0316846001600160a01b0316148061191e575061191e818561145c565b806119425750836001600160a01b031661193784610944565b6001600160a01b0316145b949350505050565b826001600160a01b031661195d82610df3565b6001600160a01b0316146119835760405162461bcd60e51b81526004016106db90613490565b6001600160a01b0382166119a95760405162461bcd60e51b81526004016106db906134e1565b6119b460008261187d565b6001600160a01b03831660009081526004602052604081208054600192906119dd908490612893565b90915550506001600160a01b0382166000908152600460205260408120805460019290611a0b908490612c59565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216611a925760405162461bcd60e51b81526004016106db90613523565b6000818152600360205260409020546001600160a01b031615611ac75760405162461bcd60e51b81526004016106db90613567565b6001600160a01b0382166000908152600460205260408120805460019290611af0908490612c59565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6008546001600160a01b03163314610c4a5760405162461bcd60e51b81526004016106db906135a9565b611b80611ea6565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051611bba919061217e565b60405180910390a1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611c1e6114c1565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bad3390565b816001600160a01b0316836001600160a01b031603611c845760405162461bcd60e51b81526004016106db906135ed565b6001600160a01b0383811660008181526006602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ce8908590612016565b60405180910390a3505050565b611d0084848461194a565b611d0c84848484611ec8565b61117a5760405162461bcd60e51b81526004016106db9061364c565b606081600003611d4f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d795780611d63816128aa565b9150611d729050600a836133d8565b9150611d53565b6000816001600160401b03811115611d9357611d9361228d565b6040519080825280601f01601f191660200182016040528015611dbd576020820181803683370190505b5090505b841561194257611dd2600183612893565b9150611ddf600a8661365c565b611dea906030612c59565b60f81b818381518110611dff57611dff612867565b60200101906001600160f81b031916908160001a905350611e21600a866133d8565b9450611dc1565b6040805160008082526020820190925281906001600160a01b03851690617530908590604051611e589190613670565b600060405180830381858888f193505050503d8060008114611e96576040519150601f19603f3d011682016040523d82523d6000602084013e611e9b565b606091505b509095945050505050565b60005460ff16610c4a5760405162461bcd60e51b81526004016106db906136a7565b60006001600160a01b0384163b15611fbe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f0c9033908990889088906004016136b7565b6020604051808303816000875af1925050508015611f47575060408051601f3d908101601f19168201909252611f44918101906136fc565b60015b611fa4573d808015611f75576040519150601f19603f3d011682016040523d82523d6000602084013e611f7a565b606091505b508051600003611f9c5760405162461bcd60e51b81526004016106db9061364c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611942565b506001949350505050565b6001600160e01b031981165b8114610c3757600080fd5b80356106ab81611fc9565b60006020828403121561200057612000600080fd5b60006119428484611fe0565b8015155b82525050565b602081016106ab828461200c565b60008083601f84011261203957612039600080fd5b5081356001600160401b0381111561205357612053600080fd5b60208301915083602082028301111561206e5761206e600080fd5b9250929050565b6000806020838503121561208b5761208b600080fd5b82356001600160401b038111156120a4576120a4600080fd5b6120b085828601612024565b92509250509250929050565b60005b838110156120d75781810151838201526020016120bf565b8381111561117a5750506000910152565b60006120f2825190565b8084526020840193506121098185602086016120bc565b601f01601f19169290920192915050565b6020808252810161212b81846120e8565b9392505050565b80611fd5565b80356106ab81612132565b60006020828403121561215857612158600080fd5b60006119428484612138565b60006001600160a01b0382166106ab565b61201081612164565b602081016106ab8284612175565b611fd581612164565b80356106ab8161218c565b600080604083850312156121b6576121b6600080fd5b60006121c28585612195565b92505060206121d385828601612138565b9150509250929050565b6000806000606084860312156121f5576121f5600080fd5b60006122018686612195565b935050602061221286828701612195565b925050604061222386828701612138565b9150509250925092565b80612010565b602081016106ab828461222d565b60a0810161224f828861222d565b61225c602083018761222d565b612269604083018661222d565b612276606083018561222d565b6122836080830184612175565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156122c8576122c861228d565b6040525050565b60006122da60405190565b90506122e682826122a3565b919050565b60006001600160401b038211156123045761230461228d565b601f19601f83011660200192915050565b82818337506000910152565b600061233461232f846122eb565b6122cf565b90508281526020810184848401111561234f5761234f600080fd5b61235a848285612315565b509392505050565b600082601f83011261237657612376600080fd5b8135611942848260208601612321565b6001600160601b038116611fd5565b80356106ab81612386565b600061010082840312156123b6576123b6600080fd5b6123c16101006122cf565b905060006123cf8484612195565b82525060208201356001600160401b038111156123ee576123ee600080fd5b6123fa84828501612362565b60208301525060408201356001600160401b0381111561241c5761241c600080fd5b61242884828501612362565b60408301525060608201356001600160401b0381111561244a5761244a600080fd5b61245684828501612362565b60608301525060808201356001600160401b0381111561247857612478600080fd5b61248484828501612362565b60808301525060a061249884828501612395565b60a08301525060c06124ac84828501612195565b60c08301525060e06124c084828501612195565b60e08301525092915050565b6000602082840312156124e1576124e1600080fd5b81356001600160401b038111156124fa576124fa600080fd5b611942848285016123a0565b60006020828403121561251b5761251b600080fd5b60006119428484612195565b6000806000806040858703121561254057612540600080fd5b84356001600160401b0381111561255957612559600080fd5b61256587828801612024565b945094505060208501356001600160401b0381111561258657612586600080fd5b61259287828801612024565b95989497509550505050565b801515611fd5565b80356106ab8161259e565b600080604083850312156125c7576125c7600080fd5b60006125d38585612195565b92505060206121d3858286016125a6565b600060a082840312156125f9576125f9600080fd5b61260360a06122cf565b905060006126118484612138565b825250602061262284848301612138565b602083015250604061263684828501612138565b604083015250606061264a84828501612138565b606083015250608061265e84828501612138565b60808301525092915050565b600060a0828403121561267f5761267f600080fd5b600061194284846125e4565b600080600080608085870312156126a4576126a4600080fd5b60006126b08787612195565b94505060206126c187828801612195565b93505060406126d287828801612138565b92505060608501356001600160401b038111156126f1576126f1600080fd5b6126fd87828801612362565b91505092959194509250565b60a08101612717828861222d565b612724602083018761222d565b612731604083018661222d565b61273e606083018561222d565b612283608083018461222d565b6001600160601b038116612010565b6101008101612769828b612175565b818103602083015261277b818a6120e8565b9050818103604083015261278f81896120e8565b905081810360608301526127a381886120e8565b905081810360808301526127b781876120e8565b90506127c660a083018661274b565b6127d360c0830185612175565b6127e060e0830184612175565b9998505050505050505050565b6000806040838503121561280357612803600080fd5b600061280f8585612195565b92505060206121d385828601612195565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b602080825281016106ab81612820565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156128a5576128a561287d565b500390565b600060001982036128bd576128bd61287d565b5060010190565b60208082527f4e6f20617065732077657265207375636365737366756c6c7920626964206f6e91019081526000612850565b602080825281016106ab816128c4565b6000835b93506001600160fb1b0383111561292357612923600080fd5b602083029250612934838584612315565b50500190565b6000611942828486612906565b6000612953838361222d565b505060200190565b6000612965825190565b80845260209384019383018060005b838110156129995781516129888882612947565b975060208301925050600101612974565b509495945050505050565b6000612953838361200c565b60006129ba825190565b80845260209384019383018060005b838110156129995781516129dd88826129a4565b9750602083019250506001016129c9565b60a081016129fc8288612175565b612a09602083018761200c565b8181036040830152612a1b818661295b565b90508181036060830152612a2f81856129b0565b9050612283608083018461222d565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612a6857607f821691505b602082108103612a7a57612a7a612a3e565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b602080825281016106ab81612a80565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060208201529150612aba565b602080825281016106ab81612ad1565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b60208201529150612aba565b602080825281016106ab81612b3b565b601781526000602082017f41756374696f6e20616c726561647920736574746c656400000000000000000081529150612850565b602080825281016106ab81612b96565b601481526000602082017320bab1ba34b7b7103430b9b713ba103132b3bab760611b81529150612850565b602080825281016106ab81612bda565b601881526000602082017f41756374696f6e206861736e277420636f6d706c65746564000000000000000081529150612850565b602080825281016106ab81612c15565b60008219821115612c6c57612c6c61287d565b500190565b60408101612c7f8285612175565b61212b602083018461222d565b600c81526000602082016b4e6f20636f6e74726163747360a01b81529150612850565b602080825281016106ab81612c8c565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b81529150612850565b602080825281016106ab81612cbf565b602781526000602082017f43616e2774207072656d696e742061667465722061756374696f6e20686173208152661cdd185c9d195960ca1b60208201529150612aba565b602080825281016106ab81612cf9565b81835260006020840161290a565b60208082528101611942818486612d4d565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150612850565b602080825281016106ab81612d6d565b60006106ab612dbd8381565b90565b612dc983612db1565b81546008840282811b60001990911b908116901990911617825550505050565b60006109eb818484612dc0565b818110156110e357612e09600082612de9565b600101612df6565b601f8211156109eb576000818152602090206020601f85010481016020851015612e385750805b612e4a6020601f860104830182612df6565b5050505050565b81516001600160401b03811115612e6a57612e6a61228d565b612e748254612a54565b612e7f828285612e11565b6020601f831160018114612eb35760008415612e9b5750858201515b600019600886021c1981166002860217865550612f0c565b600085815260208120601f198616915b82811015612ee35788850151825560209485019460019092019101612ec3565b86831015612eff5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60006106ab825b6001600160a01b031690565b60008154612f3481612a54565b808552602085019450600182168015612f545760018114612f6a57612f98565b60ff198316865260208215150286019350612f98565b60008581526020902060005b83811015612f9257815488820152600190910190602001612f76565b87019450505b50505092915050565b60006001600160601b0382166106ab565b60006106ab612f1b8360601c90565b8054600090610100840190612fd581612f14565b612fdf8682612175565b50600184018583036020870152612ff68382612f27565b92505060028401858303604087015261300f8382612f27565b9250506003840185830360608701526130288382612f27565b9250506004840185830360808701526130418382612f27565b9250506005840154905061305481612fa1565b61306160a087018261274b565b5061306b81612fb2565b61307860c0870182612175565b5050600683015461308881612f14565b61309560e0870182612175565b5090949350505050565b6020808252810161212b8184612fc1565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b60208201529150612aba565b602080825281016106ab816130b0565b602b81526000602082017f61706549647320616e64207265736572766573206d757374206265207468652081526a0e6c2daca40d8cadccee8d60ab1b60208201529150612aba565b602080825281016106ab81613106565b60408082528101613170818688612d4d565b90508181036020830152612283818486612d4d565b600a815260006020820169109a590819985a5b195960b21b81529150612850565b602080825281016106ab81613185565b6000816106ab565b805460a08301906131ce816131b6565b6131d8858261222d565b505060018201546131e8816131b6565b6131f5602086018261222d565b50506002820154613205816131b6565b613212604086018261222d565b50506003820154613222816131b6565b61322f606086018261222d565b5050600482015461323f816131b6565b612e4a608086018261222d565b60a081016106ab82846131be565b6000815461326781612a54565b60018216801561327e576001811461329357612f98565b60ff1983168652811515820286019350612f98565b60008581526020902060005b838110156132bb5781548882015260019091019060200161329f565b505050939093019392505050565b60006132d3825190565b6132e18185602086016120bc565b9290920192915050565b60006132f7828561325a565b915061330382846132c9565b64173539b7b760d91b8152600501949350505050565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612aba565b602080825281016106ab81613319565b601081526000602082016f14185d5cd8589b194e881c185d5cd95960821b81529150612850565b602080825281016106ab8161336c565b60008160001904831182151516156133bd576133bd61287d565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826133e7576133e76133c2565b500490565b60408101612c7f828561222d565b606081016134088286612175565b613415602083018561222d565b611942604083018461200c565b80516106ab8161259e565b60006020828403121561344257613442600080fd5b60006119428484613422565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150612aba565b602080825281016106ab8161344e565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612aba565b602080825281016106ab816134a0565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000612850565b602080825281016106ab816134f1565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150612850565b602080825281016106ab81613533565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612850565b602080825281016106ab81613577565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612850565b602080825281016106ab816135b9565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612aba565b602080825281016106ab816135fd565b60008261366b5761366b6133c2565b500690565b600061212b82846132c9565b601481526000602082017314185d5cd8589b194e881b9bdd081c185d5cd95960621b81529150612850565b602080825281016106ab8161367c565b608081016136c58287612175565b6136d26020830186612175565b6136df604083018561222d565b818103606083015261228381846120e8565b80516106ab81611fc9565b60006020828403121561371157613711600080fd5b600061194284846136f156fea264697066735822122052abcf0952c6f5bfe7e923a93a19ba372e3b4dabadff20d6dde88e535e22083c64736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000aa9bff236cf51518da774714d50ad07db5149479000000000000000000000000a99e9f568c32c7d5e10dcae5cefa66252140bab50000000000000000000000000000000000000000000000000000000000000016687474703a2f2f70726f746f636f6c2e7363686f6f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000016687474703a2f2f70726f746f636f6c2e7363686f6f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000016687474703a2f2f70726f746f636f6c2e7363686f6f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000013426f7265642041706520596f676120436c756200000000000000000000000000
Deployed Bytecode
0x6080604052600436106101fd5760003560e01c806370a082311161010d578063a9be1191116100a0578063cd1d894c1161006f578063cd1d894c146105a9578063e361c5a8146105d2578063e985e9c5146105f2578063f1adad3714610612578063f2fde38b1461063f57610204565b8063a9be11911461050c578063b88d4fde1461052c578063bb4061351461054c578063c87b56dd1461058957610204565b806391b6145b116100dc57806391b6145b146104a457806395d89b41146104c4578063998831e5146104d9578063a22cb465146104ec57610204565b806370a082311461043c578063715018a61461045c5780638456cb59146104715780638da5cb5b1461048657610204565b80633f4ba83a116101905780634f558e791161015f5780634f558e7914610393578063571a26a0146103b35780635c975abb146103e45780636352211e146103fc578063660d016d1461041c57610204565b80633f4ba83a1461031a578063402463c51461032f57806342842e0e1461035357806348f300fe1461037357610204565b8063095ea7b3116101cc578063095ea7b3146102a557806323b872dd146102c55780632e993611146102e55780633ccfd60b1461030557610204565b806301ffc9a71461020b57806305ea95191461024157806306fdde0314610256578063081812fc1461027857610204565b3661020457005b6060516080f35b34801561021757600080fd5b5061022b610226366004611feb565b61065f565b6040516102389190612016565b60405180910390f35b61025461024f366004612075565b6106b1565b005b34801561026257600080fd5b5061026b6108b2565b604051610238919061211a565b34801561028457600080fd5b50610298610293366004612143565b610944565b604051610238919061217e565b3480156102b157600080fd5b506102546102c03660046121a0565b61096b565b3480156102d157600080fd5b506102546102e03660046121dd565b6109f0565b3480156102f157600080fd5b50610254610300366004612143565b610a21565b34801561031157600080fd5b50610254610baf565b34801561032657600080fd5b50610254610c3a565b34801561033b57600080fd5b5061034661c3665481565b6040516102389190612233565b34801561035f57600080fd5b5061025461036e3660046121dd565b610c4c565b34801561037f57600080fd5b5061025461038e366004612075565b610c67565b34801561039f57600080fd5b5061022b6103ae366004612143565b610d95565b3480156103bf57600080fd5b506103d36103ce366004612143565b610db4565b604051610238959493929190612241565b3480156103f057600080fd5b5060005460ff1661022b565b34801561040857600080fd5b50610298610417366004612143565b610df3565b34801561042857600080fd5b506102546104373660046124cc565b610e28565b34801561044857600080fd5b50610346610457366004612506565b610f2f565b34801561046857600080fd5b50610254610f73565b34801561047d57600080fd5b50610254610f85565b34801561049257600080fd5b506008546001600160a01b0316610298565b3480156104b057600080fd5b506102546104bf366004612527565b610f95565b3480156104d057600080fd5b5061026b611064565b6102546104e7366004612143565b611073565b3480156104f857600080fd5b506102546105073660046125b1565b6110d8565b34801561051857600080fd5b5061025461052736600461266a565b6110e7565b34801561053857600080fd5b5061025461054736600461268b565b611148565b34801561055857600080fd5b5061c35a5461c35b5461c35c5461c35d5461c35e54610578949392919085565b604051610238959493929190612709565b34801561059557600080fd5b5061026b6105a4366004612143565b611180565b3480156105b557600080fd5b506105be6111b5565b60405161023898979695949392919061275a565b3480156105de57600080fd5b506103466105ed366004612143565b61142d565b3480156105fe57600080fd5b5061022b61060d3660046127ed565b61145c565b34801561061e57600080fd5b5061034661062d366004612143565b60096020526000908152604090205481565b34801561064b57600080fd5b5061025461065a366004612506565b61148a565b60006001600160e01b031982166380ac58cd60e01b148061069057506001600160e01b03198216635b5e139f60e01b145b806106ab57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106b96114c1565b6002600754036106e45760405162461bcd60e51b81526004016106db90612857565b60405180910390fd5b600260075534600080836001600160401b038111156107055761070561228d565b60405190808252806020026020018201604052801561072e578160200160208202803683370190505b5090506000846001600160401b0381111561074b5761074b61228d565b604051908082528060200260200182016040528015610774578160200160208202803683370190505b5090506000805b8681101561081d576000806107aa8a8a8581811061079b5761079b612867565b905060200201358960006114e4565b91509150811561080857808684815181106107c7576107c7612867565b60200260200101818152505060018584815181106107e7576107e7612867565b911515602092830291909101909101526108018189612893565b9750600196505b50508080610815906128aa565b91505061077b565b508361083b5760405162461bcd60e51b81526004016106db906128f6565b841561084d57508361084d3382611764565b868660405161085d92919061293a565b60405180910390207f3ba3d9ea69c4be52fff7dcc9e412493e9c455db8b11be018e43a4cfae592e1ad338686868660405161089c9594939291906129ee565b60405180910390a2505060016007555050505050565b6060600180546108c190612a54565b80601f01602080910402602001604051908101604052809291908181526020018280546108ed90612a54565b801561093a5780601f1061090f5761010080835404028352916020019161093a565b820191906000526020600020905b81548152906001019060200180831161091d57829003601f168201915b5050505050905090565b600061094f82611849565b506000908152600560205260409020546001600160a01b031690565b600061097682610df3565b9050806001600160a01b0316836001600160a01b0316036109a95760405162461bcd60e51b81526004016106db90612ac1565b336001600160a01b03821614806109c557506109c5813361145c565b6109e15760405162461bcd60e51b81526004016106db90612b2b565b6109eb838361187d565b505050565b6109fa33826118eb565b610a165760405162461bcd60e51b81526004016106db90612b86565b6109eb83838361194a565b600260075403610a435760405162461bcd60e51b81526004016106db90612857565b6002600755610a506114c1565b6000600a826127108110610a6657610a66612867565b6040805160a081018252600592909202929092018054825260018101546020830152600281015492820192909252600382015460608201526004909101546001600160a01b031660808201529050610ad5826000908152600360205260409020546001600160a01b0316151590565b15610af25760405162461bcd60e51b81526004016106db90612bca565b8060400151600003610b165760405162461bcd60e51b81526004016106db90612c05565b8060600151421015610b3a5760405162461bcd60e51b81526004016106db90612c49565b610b48816080015183611a6c565b806020015161c3666000828254610b5f9190612c59565b90915550506080810151602082015160405184927fc9f72b276a388619c6d185d146697036241880c36654b1a3ffdad07c24038d9992610b9e92612c71565b60405180910390a250506001600755565b333214610bce5760405162461bcd60e51b81526004016106db90612caf565b61c3665480610bef5760405162461bcd60e51b81526004016106db90612ce9565b60405181907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d90600090a2600061c3665561c36554610c37906001600160a01b031682611764565b50565b610c42611b4e565b610c4a611b78565b565b6109eb83838360405180602001604052806000815250611148565b610c6f611b4e565b60005b81811015610d57576000600a848484818110610c9057610c90612867565b905060200201356127108110610ca857610ca8612867565b6040805160a081018252600592909202929092018054825260018101546020830152600281015492820183905260038101546060830152600401546001600160a01b03166080820152915015610d105760405162461bcd60e51b81526004016106db90612d3d565b61c36454610d4690600160601b90046001600160a01b0316858585818110610d3a57610d3a612867565b90506020020135611a6c565b50610d50816128aa565b9050610c72565b507f7b16f64be99a1a47c78b173641ffddc2cc63f876ce9a92b8729f50a2278db3588282604051610d89929190612d5b565b60405180910390a15050565b6000818152600360205260408120546001600160a01b031615156106ab565b600a816127108110610dc557600080fd5b600502018054600182015460028301546003840154600490940154929450909290916001600160a01b031685565b6000818152600360205260408120546001600160a01b0316806106ab5760405162461bcd60e51b81526004016106db90612da1565b610e30611b4e565b805161c35f80546001600160a01b0319166001600160a01b03909216919091178155602082015182919061c36090610e689082612e51565b5060408201516002820190610e7d9082612e51565b5060608201516003820190610e929082612e51565b5060808201516004820190610ea79082612e51565b5060a082015160c08301516001600160601b03909116600160601b6001600160a01b039283160217600583015560e090920151600690910180546001600160a01b031916919092161790556040517f2c6901c7b493962ffdb272ccb86527cc394da96e239cd6870f23f5862fd682ca90610f249061c35f9061309f565b60405180910390a150565b60006001600160a01b038216610f575760405162461bcd60e51b81526004016106db906130f6565b506001600160a01b031660009081526004602052604090205490565b610f7b611b4e565b610c4a6000611bc4565b610f8d611b4e565b610c4a611c16565b610f9d611b4e565b828114610fbc5760405162461bcd60e51b81526004016106db9061314e565b60005b8381101561102057828282818110610fd957610fd9612867565b9050602002013560096000878785818110610ff657610ff6612867565b9050602002013581526020019081526020016000208190555080611019906128aa565b9050610fbf565b507f23e15395b68ee04e41e0d313e255368d965d11be18b2952e12b9187ea587b66f84848484604051611056949392919061315e565b60405180910390a150505050565b6060600280546108c190612a54565b61107b6114c1565b60026007540361109d5760405162461bcd60e51b81526004016106db90612857565b600260075560006110af8234806114e4565b509050806110cf5760405162461bcd60e51b81526004016106db906131a6565b50506001600755565b6110e3338383611c53565b5050565b6110ef611b4e565b805161c35a908155602082015161c35b5560408083015161c35c55606083015161c35d55608083015161c35e55517f6c3ea8254f9d138f31d4cefef64a7a3dbf19af953c7f4c5b8e962f967a2e97fa91610f249161324c565b61115233836118eb565b61116e5760405162461bcd60e51b81526004016106db90612b86565b61117a84848484611cf5565b50505050565b606061c36261118e83611d28565b60405160200161119f9291906132eb565b6040516020818303038152906040529050919050565b61c35f805461c36080546001600160a01b0390921692916111d590612a54565b80601f016020809104026020016040519081016040528092919081815260200182805461120190612a54565b801561124e5780601f106112235761010080835404028352916020019161124e565b820191906000526020600020905b81548152906001019060200180831161123157829003601f168201915b50505050509080600201805461126390612a54565b80601f016020809104026020016040519081016040528092919081815260200182805461128f90612a54565b80156112dc5780601f106112b1576101008083540402835291602001916112dc565b820191906000526020600020905b8154815290600101906020018083116112bf57829003601f168201915b5050505050908060030180546112f190612a54565b80601f016020809104026020016040519081016040528092919081815260200182805461131d90612a54565b801561136a5780601f1061133f5761010080835404028352916020019161136a565b820191906000526020600020905b81548152906001019060200180831161134d57829003601f168201915b50505050509080600401805461137f90612a54565b80601f01602080910402602001604051908101604052809291908181526020018280546113ab90612a54565b80156113f85780601f106113cd576101008083540402835291602001916113f8565b820191906000526020600020905b8154815290600101906020018083116113db57829003601f168201915b505050600584015460069094015492936001600160601b038116936001600160a01b03600160601b9092048216935016905088565b6000818152600960205260408120546114495761c35b546106ab565b5060009081526009602052604090205490565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b611492611b4e565b6001600160a01b0381166114b85760405162461bcd60e51b81526004016106db9061335c565b610c3781611bc4565b60005460ff1615610c4a5760405162461bcd60e51b81526004016106db90613393565b6000806000600a8661271081106114fd576114fd612867565b60050201905060008082600201541190506000606461c35a60030154846001015461152891906133a3565b61153291906133d8565b83600101546115419190612c59565b9050600082156115675760018401541561155b5781611560565b61c35c545b9050611573565b6115708961142d565b90505b8087111561157e5750855b6000898152600360205260408120546001600160a01b03161580156115b25750600385015415806115b25750846003015442105b80156115be5750818910155b9050806115d65760008096509650505050505061175c565b846002015460000361163f57426002860181905561c35e546115f791612c59565b6003860181905560028601546040518c927f44c53be110c6aa83aa83cd02e351ed172359268272ee1b5d31c0fe48db35c6c792611636929091906133ec565b60405180910390a25b60048501546001600160a01b03161561166f576004850154600186015461166f916001600160a01b031690611764565b600185018290556004850180546001600160a01b0319163317905561c35a546003860154600091906116a2904290612893565b10905080156116fa5761c35a546116b99042612c59565b600387018190556040518c917f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e916116f19190612233565b60405180910390a25b600486015460018701546040518d927f1159164c56f277e6fc99c11731bd380e0347deb969b75523398734c252706ea392611742926001600160a01b039092169186906133fa565b60405180910390a260018660010154975097505050505050505b935093915050565b61176e8282611e28565b6110e35761c35f5460408051630d0e30db60e41b815290516001600160a01b039092169163d0e30db0918491600480830192600092919082900301818588803b1580156117ba57600080fd5b505af11580156117ce573d6000803e3d6000fd5b505061c35f5460405163a9059cbb60e01b81526001600160a01b03909116935063a9059cbb9250611806915085908590600401612c71565b6020604051808303816000875af1158015611825573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109eb919061342d565b6000818152600360205260409020546001600160a01b0316610c375760405162461bcd60e51b81526004016106db90612da1565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118b282610df3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806118f783610df3565b9050806001600160a01b0316846001600160a01b0316148061191e575061191e818561145c565b806119425750836001600160a01b031661193784610944565b6001600160a01b0316145b949350505050565b826001600160a01b031661195d82610df3565b6001600160a01b0316146119835760405162461bcd60e51b81526004016106db90613490565b6001600160a01b0382166119a95760405162461bcd60e51b81526004016106db906134e1565b6119b460008261187d565b6001600160a01b03831660009081526004602052604081208054600192906119dd908490612893565b90915550506001600160a01b0382166000908152600460205260408120805460019290611a0b908490612c59565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b038216611a925760405162461bcd60e51b81526004016106db90613523565b6000818152600360205260409020546001600160a01b031615611ac75760405162461bcd60e51b81526004016106db90613567565b6001600160a01b0382166000908152600460205260408120805460019290611af0908490612c59565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6008546001600160a01b03163314610c4a5760405162461bcd60e51b81526004016106db906135a9565b611b80611ea6565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051611bba919061217e565b60405180910390a1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611c1e6114c1565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bad3390565b816001600160a01b0316836001600160a01b031603611c845760405162461bcd60e51b81526004016106db906135ed565b6001600160a01b0383811660008181526006602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ce8908590612016565b60405180910390a3505050565b611d0084848461194a565b611d0c84848484611ec8565b61117a5760405162461bcd60e51b81526004016106db9061364c565b606081600003611d4f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d795780611d63816128aa565b9150611d729050600a836133d8565b9150611d53565b6000816001600160401b03811115611d9357611d9361228d565b6040519080825280601f01601f191660200182016040528015611dbd576020820181803683370190505b5090505b841561194257611dd2600183612893565b9150611ddf600a8661365c565b611dea906030612c59565b60f81b818381518110611dff57611dff612867565b60200101906001600160f81b031916908160001a905350611e21600a866133d8565b9450611dc1565b6040805160008082526020820190925281906001600160a01b03851690617530908590604051611e589190613670565b600060405180830381858888f193505050503d8060008114611e96576040519150601f19603f3d011682016040523d82523d6000602084013e611e9b565b606091505b509095945050505050565b60005460ff16610c4a5760405162461bcd60e51b81526004016106db906136a7565b60006001600160a01b0384163b15611fbe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611f0c9033908990889088906004016136b7565b6020604051808303816000875af1925050508015611f47575060408051601f3d908101601f19168201909252611f44918101906136fc565b60015b611fa4573d808015611f75576040519150601f19603f3d011682016040523d82523d6000602084013e611f7a565b606091505b508051600003611f9c5760405162461bcd60e51b81526004016106db9061364c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611942565b506001949350505050565b6001600160e01b031981165b8114610c3757600080fd5b80356106ab81611fc9565b60006020828403121561200057612000600080fd5b60006119428484611fe0565b8015155b82525050565b602081016106ab828461200c565b60008083601f84011261203957612039600080fd5b5081356001600160401b0381111561205357612053600080fd5b60208301915083602082028301111561206e5761206e600080fd5b9250929050565b6000806020838503121561208b5761208b600080fd5b82356001600160401b038111156120a4576120a4600080fd5b6120b085828601612024565b92509250509250929050565b60005b838110156120d75781810151838201526020016120bf565b8381111561117a5750506000910152565b60006120f2825190565b8084526020840193506121098185602086016120bc565b601f01601f19169290920192915050565b6020808252810161212b81846120e8565b9392505050565b80611fd5565b80356106ab81612132565b60006020828403121561215857612158600080fd5b60006119428484612138565b60006001600160a01b0382166106ab565b61201081612164565b602081016106ab8284612175565b611fd581612164565b80356106ab8161218c565b600080604083850312156121b6576121b6600080fd5b60006121c28585612195565b92505060206121d385828601612138565b9150509250929050565b6000806000606084860312156121f5576121f5600080fd5b60006122018686612195565b935050602061221286828701612195565b925050604061222386828701612138565b9150509250925092565b80612010565b602081016106ab828461222d565b60a0810161224f828861222d565b61225c602083018761222d565b612269604083018661222d565b612276606083018561222d565b6122836080830184612175565b9695505050505050565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156122c8576122c861228d565b6040525050565b60006122da60405190565b90506122e682826122a3565b919050565b60006001600160401b038211156123045761230461228d565b601f19601f83011660200192915050565b82818337506000910152565b600061233461232f846122eb565b6122cf565b90508281526020810184848401111561234f5761234f600080fd5b61235a848285612315565b509392505050565b600082601f83011261237657612376600080fd5b8135611942848260208601612321565b6001600160601b038116611fd5565b80356106ab81612386565b600061010082840312156123b6576123b6600080fd5b6123c16101006122cf565b905060006123cf8484612195565b82525060208201356001600160401b038111156123ee576123ee600080fd5b6123fa84828501612362565b60208301525060408201356001600160401b0381111561241c5761241c600080fd5b61242884828501612362565b60408301525060608201356001600160401b0381111561244a5761244a600080fd5b61245684828501612362565b60608301525060808201356001600160401b0381111561247857612478600080fd5b61248484828501612362565b60808301525060a061249884828501612395565b60a08301525060c06124ac84828501612195565b60c08301525060e06124c084828501612195565b60e08301525092915050565b6000602082840312156124e1576124e1600080fd5b81356001600160401b038111156124fa576124fa600080fd5b611942848285016123a0565b60006020828403121561251b5761251b600080fd5b60006119428484612195565b6000806000806040858703121561254057612540600080fd5b84356001600160401b0381111561255957612559600080fd5b61256587828801612024565b945094505060208501356001600160401b0381111561258657612586600080fd5b61259287828801612024565b95989497509550505050565b801515611fd5565b80356106ab8161259e565b600080604083850312156125c7576125c7600080fd5b60006125d38585612195565b92505060206121d3858286016125a6565b600060a082840312156125f9576125f9600080fd5b61260360a06122cf565b905060006126118484612138565b825250602061262284848301612138565b602083015250604061263684828501612138565b604083015250606061264a84828501612138565b606083015250608061265e84828501612138565b60808301525092915050565b600060a0828403121561267f5761267f600080fd5b600061194284846125e4565b600080600080608085870312156126a4576126a4600080fd5b60006126b08787612195565b94505060206126c187828801612195565b93505060406126d287828801612138565b92505060608501356001600160401b038111156126f1576126f1600080fd5b6126fd87828801612362565b91505092959194509250565b60a08101612717828861222d565b612724602083018761222d565b612731604083018661222d565b61273e606083018561222d565b612283608083018461222d565b6001600160601b038116612010565b6101008101612769828b612175565b818103602083015261277b818a6120e8565b9050818103604083015261278f81896120e8565b905081810360608301526127a381886120e8565b905081810360808301526127b781876120e8565b90506127c660a083018661274b565b6127d360c0830185612175565b6127e060e0830184612175565b9998505050505050505050565b6000806040838503121561280357612803600080fd5b600061280f8585612195565b92505060206121d385828601612195565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291505b5060200190565b602080825281016106ab81612820565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156128a5576128a561287d565b500390565b600060001982036128bd576128bd61287d565b5060010190565b60208082527f4e6f20617065732077657265207375636365737366756c6c7920626964206f6e91019081526000612850565b602080825281016106ab816128c4565b6000835b93506001600160fb1b0383111561292357612923600080fd5b602083029250612934838584612315565b50500190565b6000611942828486612906565b6000612953838361222d565b505060200190565b6000612965825190565b80845260209384019383018060005b838110156129995781516129888882612947565b975060208301925050600101612974565b509495945050505050565b6000612953838361200c565b60006129ba825190565b80845260209384019383018060005b838110156129995781516129dd88826129a4565b9750602083019250506001016129c9565b60a081016129fc8288612175565b612a09602083018761200c565b8181036040830152612a1b818661295b565b90508181036060830152612a2f81856129b0565b9050612283608083018461222d565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612a6857607f821691505b602082108103612a7a57612a7a612a3e565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b602080825281016106ab81612a80565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060208201529150612aba565b602080825281016106ab81612ad1565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b60208201529150612aba565b602080825281016106ab81612b3b565b601781526000602082017f41756374696f6e20616c726561647920736574746c656400000000000000000081529150612850565b602080825281016106ab81612b96565b601481526000602082017320bab1ba34b7b7103430b9b713ba103132b3bab760611b81529150612850565b602080825281016106ab81612bda565b601881526000602082017f41756374696f6e206861736e277420636f6d706c65746564000000000000000081529150612850565b602080825281016106ab81612c15565b60008219821115612c6c57612c6c61287d565b500190565b60408101612c7f8285612175565b61212b602083018461222d565b600c81526000602082016b4e6f20636f6e74726163747360a01b81529150612850565b602080825281016106ab81612c8c565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b81529150612850565b602080825281016106ab81612cbf565b602781526000602082017f43616e2774207072656d696e742061667465722061756374696f6e20686173208152661cdd185c9d195960ca1b60208201529150612aba565b602080825281016106ab81612cf9565b81835260006020840161290a565b60208082528101611942818486612d4d565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150612850565b602080825281016106ab81612d6d565b60006106ab612dbd8381565b90565b612dc983612db1565b81546008840282811b60001990911b908116901990911617825550505050565b60006109eb818484612dc0565b818110156110e357612e09600082612de9565b600101612df6565b601f8211156109eb576000818152602090206020601f85010481016020851015612e385750805b612e4a6020601f860104830182612df6565b5050505050565b81516001600160401b03811115612e6a57612e6a61228d565b612e748254612a54565b612e7f828285612e11565b6020601f831160018114612eb35760008415612e9b5750858201515b600019600886021c1981166002860217865550612f0c565b600085815260208120601f198616915b82811015612ee35788850151825560209485019460019092019101612ec3565b86831015612eff5784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60006106ab825b6001600160a01b031690565b60008154612f3481612a54565b808552602085019450600182168015612f545760018114612f6a57612f98565b60ff198316865260208215150286019350612f98565b60008581526020902060005b83811015612f9257815488820152600190910190602001612f76565b87019450505b50505092915050565b60006001600160601b0382166106ab565b60006106ab612f1b8360601c90565b8054600090610100840190612fd581612f14565b612fdf8682612175565b50600184018583036020870152612ff68382612f27565b92505060028401858303604087015261300f8382612f27565b9250506003840185830360608701526130288382612f27565b9250506004840185830360808701526130418382612f27565b9250506005840154905061305481612fa1565b61306160a087018261274b565b5061306b81612fb2565b61307860c0870182612175565b5050600683015461308881612f14565b61309560e0870182612175565b5090949350505050565b6020808252810161212b8184612fc1565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b60208201529150612aba565b602080825281016106ab816130b0565b602b81526000602082017f61706549647320616e64207265736572766573206d757374206265207468652081526a0e6c2daca40d8cadccee8d60ab1b60208201529150612aba565b602080825281016106ab81613106565b60408082528101613170818688612d4d565b90508181036020830152612283818486612d4d565b600a815260006020820169109a590819985a5b195960b21b81529150612850565b602080825281016106ab81613185565b6000816106ab565b805460a08301906131ce816131b6565b6131d8858261222d565b505060018201546131e8816131b6565b6131f5602086018261222d565b50506002820154613205816131b6565b613212604086018261222d565b50506003820154613222816131b6565b61322f606086018261222d565b5050600482015461323f816131b6565b612e4a608086018261222d565b60a081016106ab82846131be565b6000815461326781612a54565b60018216801561327e576001811461329357612f98565b60ff1983168652811515820286019350612f98565b60008581526020902060005b838110156132bb5781548882015260019091019060200161329f565b505050939093019392505050565b60006132d3825190565b6132e18185602086016120bc565b9290920192915050565b60006132f7828561325a565b915061330382846132c9565b64173539b7b760d91b8152600501949350505050565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612aba565b602080825281016106ab81613319565b601081526000602082016f14185d5cd8589b194e881c185d5cd95960821b81529150612850565b602080825281016106ab8161336c565b60008160001904831182151516156133bd576133bd61287d565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826133e7576133e76133c2565b500490565b60408101612c7f828561222d565b606081016134088286612175565b613415602083018561222d565b611942604083018461200c565b80516106ab8161259e565b60006020828403121561344257613442600080fd5b60006119428484613422565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b60208201529150612aba565b602080825281016106ab8161344e565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150612aba565b602080825281016106ab816134a0565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000612850565b602080825281016106ab816134f1565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150612850565b602080825281016106ab81613533565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612850565b602080825281016106ab81613577565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612850565b602080825281016106ab816135b9565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150612aba565b602080825281016106ab816135fd565b60008261366b5761366b6133c2565b500690565b600061212b82846132c9565b601481526000602082017314185d5cd8589b194e881b9bdd081c185d5cd95960621b81529150612850565b602080825281016106ab8161367c565b608081016136c58287612175565b6136d26020830186612175565b6136df604083018561222d565b818103606083015261228381846120e8565b80516106ab81611fc9565b60006020828403121561371157613711600080fd5b600061194284846136f156fea264697066735822122052abcf0952c6f5bfe7e923a93a19ba372e3b4dabadff20d6dde88e535e22083c64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000aa9bff236cf51518da774714d50ad07db5149479000000000000000000000000a99e9f568c32c7d5e10dcae5cefa66252140bab50000000000000000000000000000000000000000000000000000000000000016687474703a2f2f70726f746f636f6c2e7363686f6f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000016687474703a2f2f70726f746f636f6c2e7363686f6f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000016687474703a2f2f70726f746f636f6c2e7363686f6f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000013426f7265642041706520596f676120436c756200000000000000000000000000
-----Decoded View---------------
Arg [0] : _auctionConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [1] : _contractConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 00000000000000000000000000000000000000000000000000005af3107a4000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [6] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [10] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [12] : 000000000000000000000000aa9bff236cf51518da774714d50ad07db5149479
Arg [13] : 000000000000000000000000a99e9f568c32c7d5e10dcae5cefa66252140bab5
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [15] : 687474703a2f2f70726f746f636f6c2e7363686f6f6c00000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [17] : 687474703a2f2f70726f746f636f6c2e7363686f6f6c00000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [19] : 687474703a2f2f70726f746f636f6c2e7363686f6f6c00000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [21] : 426f7265642041706520596f676120436c756200000000000000000000000000
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.