Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 WorldCup
Holders
42
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 WorldCupLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WorldCup
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "hardhat/console.sol"; import "./Football.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract WorldCup is ERC721, Ownable { using Strings for uint; string private baseUri; bool public isPrize; uint private prizeTime; bool private isHandlingFeeWithdrawn; bytes32 private premintWhitelist; // whitelist merkle tree root hash bytes32 private superMintWhitelist; mapping(address => bool) public preminted; mapping(address => bool) public superMinted; mapping(address => uint[]) public holdingNft; // holding nft list by address mapping(address => address) public inviter; // inviter mapping(address => uint) public inviteCount; // invite count by address mapping (uint => bool) public exchanged; // exchanged nft mapping (uint => bool) private exchangedHost; // host exchanged uint private priceInWhitelist = 0.01 ether; uint private pool = 0 ether; bool public stopMint = false; uint public mintedCount = 0; uint public premintStartTime = 9999999999; uint public mintStartTime = 9999999999; uint public transferStartTime = 9999999999; uint constant maxTokenId = 10000; Football football; string public _contractURI = ""; enum PrizeType { GOLD, SILVER, BRONZE, OTHERS, HOST } struct matchResult { bytes32 gold; bytes32 silver; bytes32 bronze; bytes32 others; bytes32 host; // prize that each nft can earn uint goldPrize; uint silverPrize; uint bronzePrize; uint othersPrize; uint hostPrize; uint handlingFee; } matchResult private result; /** * Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_, string memory blindBoxBaseUri_, string memory contractURI_, address payable footballAddress_) ERC721(name_, symbol_) { _transferOwnership(msg.sender); baseUri = blindBoxBaseUri_; football = Football(footballAddress_); _contractURI = contractURI_; } /** * Support blind box. */ function setBaseUri(string memory baseUri_) public onlyOwner { baseUri = baseUri_; } function tokenURI(uint tokenId_) public view virtual override returns (string memory) { _requireMinted(tokenId_); string memory baseURI = _baseURI(); return string(abi.encodePacked(baseURI, tokenId_.toString())); } function _baseURI() internal view override returns (string memory) { return baseUri; } /** * Stop mint stage. */ function setStopMint(bool stopMint_) public onlyOwner { stopMint = stopMint_; } /** * Start prize exchange. */ function setIsPrize(bool enable_) public onlyOwner { isPrize = enable_; if (enable_) { prizeTime = block.timestamp; } } /** * Batch mint code snippet. */ function _batchMint(address addr_, uint amount_) private { uint totalPrice; uint totalAmount; uint i = 0; while (i < amount_) { uint price; uint amount; (price, amount) = _getTokenPriceAndFootballAmount(mintedCount+i+1); totalPrice += price; totalAmount += amount; i+=1; } require(msg.value == totalPrice, string.concat("value sent is invalid: ", Strings.toString(msg.value), " != ", Strings.toString(totalPrice))); // start mint i = 0; while (i < amount_) { uint tokenId = mintedCount + i + 1; _mint(msg.sender, tokenId); holdingNft[msg.sender].push(tokenId); i += 1; } football.mint(addr_, totalAmount); pool += msg.value; mintedCount += amount_; } /** * Buy blind box nft. */ function mint(uint amount_, address inviter_) public payable { require(!stopMint, "minting is stopped now"); require(block.timestamp > mintStartTime, "minting is not start now"); require(msg.value != 0, "value sent equals to 0"); _batchMint(msg.sender, amount_); // reward inviter if (inviter_ != address(0) && inviter[msg.sender] == address(0)) { inviter[msg.sender] = inviter_; inviteCount[inviter_] += 1; football.mint(inviter_, 1000); } } /** * Premint. */ function premint(uint amount_, bytes32[] memory proof_) public payable { require(!stopMint, "minting is stopped now"); require(block.timestamp > premintStartTime && block.timestamp < mintStartTime, "preminting stopped"); require(!preminted[msg.sender], "you already used the whitelist"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof_, premintWhitelist, leaf), "you are not in whitelist"); _batchMint(msg.sender, amount_); preminted[msg.sender] = true; } function superMint(bytes32[] memory proof_) public { require(!stopMint, "minting is stopped now"); require(block.timestamp > premintStartTime, "super mint not start"); require(!superMinted[msg.sender], "you already used the whitelist"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof_, superMintWhitelist, leaf), "you are not in whitelist"); uint tokenId = mintedCount + 1; uint price; uint amount; (price, amount) = _getTokenPriceAndFootballAmount(tokenId); _mint(msg.sender, tokenId); football.mint(msg.sender, amount); holdingNft[msg.sender].push(tokenId); mintedCount += 1; superMinted[msg.sender] = true; } /** * Get owned NFT ID Array by address. */ function _getOwnedNft(address user_, uint page_) private view returns (uint[100] memory) { uint[100] memory result_; uint start = (page_-1)*100; uint end = start+100; if (end > holdingNft[user_].length) { end = holdingNft[user_].length; } uint i = start; while (i < end) { result_[i-start] = holdingNft[user_][i]; i += 1; } return result_; } function getOwnedNft(address addr_, uint page_) public view returns (uint[100] memory) { return _getOwnedNft(addr_, page_); } /** * Set mint configration. */ function setMint(bytes32 premintWhitelist_, bytes32 superMintWhitelist_, uint premintStartTime_, uint mintStartTime_, uint transferStartTime_) public onlyOwner { premintWhitelist = premintWhitelist_; superMintWhitelist = superMintWhitelist_; premintStartTime = premintStartTime_; mintStartTime = mintStartTime_; transferStartTime = transferStartTime_; } /** * Get price by a specific tokenId. */ function getTokenIdPriceAndFootballAmount(uint tokenId_) public pure returns (uint, uint) { return _getTokenPriceAndFootballAmount(tokenId_); } function _getTokenPriceAndFootballAmount(uint tokenId_) pure internal returns (uint, uint) { require(tokenId_ <= maxTokenId, "token id must be less than 10000"); uint price = 0; uint tokenAmount = 0; if (tokenId_ <= 1000) { price = 0.015 ether; tokenAmount = 10000; } else if (tokenId_ <= 5000) { price = 0.01 ether + 0.01 ether * ((tokenId_-1) / 1000); tokenAmount = 10000 + 1000 * ((tokenId_-1) / 1000); } else if (tokenId_ <= 10000) { price = 0.06 ether + 0.01 ether * ((tokenId_-5001) / 500); tokenAmount = 15000 + 1000 * ((tokenId_-5001) / 500); } else { // protect price = 9999 ether; tokenAmount = 0; } return (price, tokenAmount); } /** * Set worldcup match result. */ function setMatchResult(bytes32[5] memory result_, uint[5] memory prizeNftCount_) public onlyOwner { result.gold = result_[0]; result.silver = result_[1]; result.bronze = result_[2]; result.others = result_[3]; result.host = result_[4]; result.goldPrize = pool / 100 * 30 / prizeNftCount_[0]; result.silverPrize = pool / 100 * 20 / prizeNftCount_[1]; result.bronzePrize = pool / 100 * 10 / prizeNftCount_[2]; result.othersPrize = pool / 100 * 15 / prizeNftCount_[3]; result.hostPrize = pool / 100 * 5 / prizeNftCount_[4]; result.handlingFee = pool / 100 * 20; } /** * Withdraw the rest balance in contract. */ function withdrawRestBalance(address payable to_) public onlyOwner{ require(isPrize == true, "no lottery yet"); // We can withdraw the rest balance 7 days after the lottery require((block.timestamp - prizeTime) > 604800, "can not withdraw now"); to_.transfer(address(this).balance); } /** * Withdraw 20% of the pool (handling fee) */ function withdrawHandlingFee(address payable to_) public onlyOwner{ require(isPrize, "no lottery yet"); require(isHandlingFeeWithdrawn == false, "you already withdrew"); isHandlingFeeWithdrawn = true; to_.transfer(result.handlingFee); } /** * Get prize by prize type. */ function getPrize() public view returns (uint[5] memory) { return [result.goldPrize, result.silverPrize, result.bronzePrize, result.othersPrize, result.hostPrize]; } /** * Batch exchange prize. */ function batchExchangePrize(uint[] memory tokenIdArray_, PrizeType[] memory prizeTypeArray_, bytes32[][] memory proofArray_) public { uint i = 0; uint totalPrize_ = 0; while (i < tokenIdArray_.length) { if ((prizeTypeArray_[i] == PrizeType.HOST) && (exchangedHost[tokenIdArray_[i]] == false)) { exchangedHost[tokenIdArray_[i]] = true; totalPrize_ += getPrizeByTokenId(tokenIdArray_[i], prizeTypeArray_[i], proofArray_[i]); } else if(exchanged[tokenIdArray_[i]] == false) { exchanged[tokenIdArray_[i]] = true; totalPrize_ += getPrizeByTokenId(tokenIdArray_[i], prizeTypeArray_[i], proofArray_[i]); } i += 1; } require(totalPrize_ > 0, "you have no prize to exchange"); payable(msg.sender).transfer(totalPrize_); } function getPrizeByTokenId(uint tokenId_, PrizeType prizeType_, bytes32[] memory proof_) private view returns (uint) { require(isPrize, "no lottery yet"); require(ownerOf(tokenId_) == msg.sender, "nft doesn't belong to you"); bytes32 leaf = keccak256(abi.encodePacked(Strings.toString(tokenId_))); bytes32 root_; uint prize_; if (prizeType_ == PrizeType.GOLD) { root_ = result.gold; prize_ = result.goldPrize; } else if (prizeType_ == PrizeType.SILVER) { root_ = result.silver; prize_ = result.silverPrize; } else if (prizeType_ == PrizeType.BRONZE) { root_ = result.bronze; prize_ = result.bronzePrize; } else if (prizeType_ == PrizeType.OTHERS) { root_ = result.others; prize_ = result.othersPrize; } else if (prizeType_ == PrizeType.HOST) { root_ = result.host; prize_ = result.hostPrize; } else { revert("invalid prize type"); } require(MerkleProof.verify(proof_, root_, leaf), "invalid prize"); return prize_; } /* ** Only can transfer after `transferStartTime` by overwriting `_transfer` function */ function _transfer( address from, address to, uint tokenId ) internal virtual override { require(block.timestamp > transferStartTime, "can not transfer yet"); super._transfer(from, to, tokenId); // Remove nft owned by `from` for (uint i = 0; i < holdingNft[from].length; i++) { if (holdingNft[from][i] == tokenId) { delete holdingNft[from][i]; break; } } // Add nft owned by `to` holdingNft[to].push(tokenId); } function _mint(address to, uint tokenId) internal override { require(tokenId <= maxTokenId); super._mint(to, tokenId); } function contractURI() public view returns (string memory) { return _contractURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract Football is Context, IERC20, IERC20Metadata, AccessControl { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; event FunctionNotFount(address indexed operator, bytes data); event ReturnDonate(address indexed operator, uint value); event MinterAdded(address indexed operator, address indexed user); /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(minter, msg.sender); } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev only minter can mint and transfer */ bytes32 public constant minter = keccak256("minter"); /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 0; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-minter}. * * Requirements: * * - the caller must have a balance of at least `amount`. */ function mint(address user, uint256 amount) public virtual onlyRole(minter) returns (bool) { _mint(user, amount); return true; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev User Manager Functions * * DEFAULT_ADMIN_ROLE is only the develop when the contract init * And he can set minter */ function addMinter(address to) public virtual onlyRole(DEFAULT_ADMIN_ROLE) returns (bool) { address owner = _msgSender(); _grantRole(minter, to); emit MinterAdded(owner, to); return true; } /** * @dev fallback Functions * if user send token to this contract, return it to the user */ fallback() external { emit FunctionNotFount(msg.sender, msg.data); } receive() external payable{ (bool success, ) = msg.sender.call{value: msg.value}(""); require(success, "call error"); emit ReturnDonate(msg.sender, msg.value); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); } function logUint(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint256 p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); } function log(uint256 p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); } function log(uint256 p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); } function log(uint256 p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); } function log(string memory p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint256 p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); } function log(uint256 p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); } function log(uint256 p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); } function log(uint256 p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); } function log(uint256 p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); } function log(uint256 p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); } function log(uint256 p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); } function log(uint256 p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); } function log(uint256 p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); } function log(uint256 p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); } function log(uint256 p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); } function log(uint256 p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); } function log(uint256 p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); } function log(string memory p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); } function log(string memory p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); } function log(string memory p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); } function log(string memory p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); } function log(bool p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); } function log(bool p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); } function log(bool p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); } function log(address p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); } function log(address p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); } function log(address p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// 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 // 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.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 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) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"blindBoxBaseUri_","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"},{"internalType":"address payable","name":"footballAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIdArray_","type":"uint256[]"},{"internalType":"enum WorldCup.PrizeType[]","name":"prizeTypeArray_","type":"uint8[]"},{"internalType":"bytes32[][]","name":"proofArray_","type":"bytes32[][]"}],"name":"batchExchangePrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"exchanged","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":"addr_","type":"address"},{"internalType":"uint256","name":"page_","type":"uint256"}],"name":"getOwnedNft","outputs":[{"internalType":"uint256[100]","name":"","type":"uint256[100]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrize","outputs":[{"internalType":"uint256[5]","name":"","type":"uint256[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"getTokenIdPriceAndFootballAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"holdingNft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inviteCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"inviter","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":"isPrize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"address","name":"inviter_","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"premint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"premintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preminted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri_","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enable_","type":"bool"}],"name":"setIsPrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[5]","name":"result_","type":"bytes32[5]"},{"internalType":"uint256[5]","name":"prizeNftCount_","type":"uint256[5]"}],"name":"setMatchResult","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"premintWhitelist_","type":"bytes32"},{"internalType":"bytes32","name":"superMintWhitelist_","type":"bytes32"},{"internalType":"uint256","name":"premintStartTime_","type":"uint256"},{"internalType":"uint256","name":"mintStartTime_","type":"uint256"},{"internalType":"uint256","name":"transferStartTime_","type":"uint256"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"stopMint_","type":"bool"}],"name":"setStopMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"superMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"superMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"transferStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to_","type":"address"}],"name":"withdrawHandlingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to_","type":"address"}],"name":"withdrawRestBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
662386f26fc10000601455600060158190556016805460ff1916905560178190556402540be3ff60188190556019819055601a5560a06040526080908152601c906200004c908262000203565b503480156200005a57600080fd5b50604051620039f3380380620039f38339810160408190526200007d916200037e565b848460006200008d838262000203565b5060016200009c828262000203565b505050620000b9620000b36200010860201b60201c565b6200010c565b620000c4336200010c565b6007620000d2848262000203565b50601b80546001600160a01b0319166001600160a01b038316179055601c620000fc838262000203565b5050505050506200045b565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018957607f821691505b602082108103620001aa57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001fe57600081815260208120601f850160051c81016020861015620001d95750805b601f850160051c820191505b81811015620001fa57828155600101620001e5565b5050505b505050565b81516001600160401b038111156200021f576200021f6200015e565b620002378162000230845462000174565b84620001b0565b602080601f8311600181146200026f5760008415620002565750858301515b600019600386901b1c1916600185901b178555620001fa565b600085815260208120601f198616915b82811015620002a0578886015182559484019460019091019084016200027f565b5085821015620002bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f830112620002e157600080fd5b81516001600160401b0380821115620002fe57620002fe6200015e565b604051601f8301601f19908116603f011681019082821181831017156200032957620003296200015e565b816040528381526020925086838588010111156200034657600080fd5b600091505b838210156200036a57858201830151818301840152908201906200034b565b600093810190920192909252949350505050565b600080600080600060a086880312156200039757600080fd5b85516001600160401b0380821115620003af57600080fd5b620003bd89838a01620002cf565b96506020880151915080821115620003d457600080fd5b620003e289838a01620002cf565b95506040880151915080821115620003f957600080fd5b6200040789838a01620002cf565b945060608801519150808211156200041e57600080fd5b506200042d88828901620002cf565b608088015190935090506001600160a01b03811681146200044d57600080fd5b809150509295509295909350565b613588806200046b6000396000f3fe6080604052600436106102675760003560e01c80639975905e11610144578063cf721b15116100b6578063e452b5c31161007a578063e452b5c31461075b578063e8a3d4851461077b578063e985e9c514610790578063ee8f0b7a146107d9578063ef15cf851461080f578063f2fde38b1461082f57600080fd5b8063cf721b15146106c3578063d5582965146106d9578063d96779d8146106f3578063dbb3cfb814610713578063df341adf1461074857600080fd5b8063b88d4fde11610108578063b88d4fde146105fc578063c0e727401461061c578063c34f6b0d14610631578063c87b56dd14610653578063c97fbcf014610673578063ccd682bc1461069357600080fd5b80639975905e146105495780639eac8f6b14610576578063a0bcfc7f146105a6578063a22cb465146105c6578063b14cfbfe146105e657600080fd5b806357b24e6b116101dd578063738e2a70116101a1578063738e2a70146104ad5780638da5cb5b146104cd578063931e2e49146104eb578063945918241461050157806394bf804d1461052157806395d89b411461053457600080fd5b806357b24e6b146104155780636352211e146104425780636e6d98fb1461046257806370a0823114610478578063715018a61461049857600080fd5b80632666014a1161022f5780632666014a1461033d5780633a7f1a031461035757806342842e0e1461037757806346c652bc146103975780634ee16436146103c75780634fae864a146103f557600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146102fb57806323b872dd1461031d575b600080fd5b34801561027857600080fd5b5061028c610287366004612982565b61084f565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b66108a1565b60405161029891906129ef565b3480156102cf57600080fd5b506102e36102de366004612a02565b610933565b6040516001600160a01b039091168152602001610298565b34801561030757600080fd5b5061031b610316366004612a30565b61095a565b005b34801561032957600080fd5b5061031b610338366004612a5c565b610a74565b34801561034957600080fd5b5060085461028c9060ff1681565b34801561036357600080fd5b5061031b610372366004612a9d565b610aa5565b34801561038357600080fd5b5061031b610392366004612a5c565b610b61565b3480156103a357600080fd5b5061028c6103b2366004612a9d565b600e6020526000908152604090205460ff1681565b3480156103d357600080fd5b506103e76103e2366004612a30565b610b7c565b604051908152602001610298565b34801561040157600080fd5b5061031b610410366004612ac8565b610bad565b34801561042157600080fd5b506103e7610430366004612a9d565b60116020526000908152604090205481565b34801561044e57600080fd5b506102e361045d366004612a02565b610bc8565b34801561046e57600080fd5b506103e7601a5481565b34801561048457600080fd5b506103e7610493366004612a9d565b610c28565b3480156104a457600080fd5b5061031b610cae565b3480156104b957600080fd5b5061031b6104c8366004612ac8565b610cc2565b3480156104d957600080fd5b506006546001600160a01b03166102e3565b3480156104f757600080fd5b506103e760195481565b34801561050d57600080fd5b5061031b61051c366004612cd9565b610ce9565b61031b61052f366004612db6565b610f4e565b34801561054057600080fd5b506102b661110d565b34801561055557600080fd5b50610569610564366004612a30565b61111c565b6040516102989190612de6565b34801561058257600080fd5b5061028c610591366004612a02565b60126020526000908152604090205460ff1681565b3480156105b257600080fd5b5061031b6105c1366004612e70565b611135565b3480156105d257600080fd5b5061031b6105e1366004612eb9565b611149565b3480156105f257600080fd5b506103e760185481565b34801561060857600080fd5b5061031b610617366004612ee7565b611154565b34801561062857600080fd5b506102b661118c565b34801561063d57600080fd5b5061064661121a565b6040516102989190612f67565b34801561065f57600080fd5b506102b661066e366004612a02565b611257565b34801561067f57600080fd5b5061031b61068e366004612f8f565b6112a0565b34801561069f57600080fd5b5061028c6106ae366004612a9d565b600d6020526000908152604090205460ff1681565b3480156106cf57600080fd5b506103e760175481565b3480156106e557600080fd5b5060165461028c9060ff1681565b3480156106ff57600080fd5b5061031b61070e366004612fc4565b6114fb565b34801561071f57600080fd5b5061073361072e366004612a02565b611622565b60408051928352602083019190915201610298565b61031b610756366004613074565b611637565b34801561076757600080fd5b5061031b6107763660046130bb565b6117c3565b34801561078757600080fd5b506102b66117e2565b34801561079c57600080fd5b5061028c6107ab3660046130f6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107e557600080fd5b506102e36107f4366004612a9d565b6010602052600090815260409020546001600160a01b031681565b34801561081b57600080fd5b5061031b61082a366004612a9d565b6117f1565b34801561083b57600080fd5b5061031b61084a366004612a9d565b6118ab565b60006001600160e01b031982166380ac58cd60e01b148061088057506001600160e01b03198216635b5e139f60e01b145b8061089b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546108b090613124565b80601f01602080910402602001604051908101604052809291908181526020018280546108dc90613124565b80156109295780601f106108fe57610100808354040283529160200191610929565b820191906000526020600020905b81548152906001019060200180831161090c57829003601f168201915b5050505050905090565b600061093e82611921565b506000908152600460205260409020546001600160a01b031690565b600061096582610bc8565b9050806001600160a01b0316836001600160a01b0316036109d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109f357506109f381336107ab565b610a655760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ce565b610a6f8383611980565b505050565b610a7e33826119ee565b610a9a5760405162461bcd60e51b81526004016109ce9061315e565b610a6f838383611a6d565b610aad611b9a565b60085460ff16610acf5760405162461bcd60e51b81526004016109ce906131ac565b600a5460ff1615610b195760405162461bcd60e51b8152602060048201526014602482015273796f7520616c726561647920776974686472657760601b60448201526064016109ce565b600a805460ff191660011790556027546040516001600160a01b0383169180156108fc02916000818181858888f19350505050158015610b5d573d6000803e3d6000fd5b5050565b610a6f83838360405180602001604052806000815250611154565b600f6020528160005260406000208181548110610b9857600080fd5b90600052602060002001600091509150505481565b610bb5611b9a565b6016805460ff1916911515919091179055565b6000818152600260205260408120546001600160a01b03168061089b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ce565b60006001600160a01b038216610c925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109ce565b506001600160a01b031660009081526003602052604090205490565b610cb6611b9a565b610cc06000611bf4565b565b610cca611b9a565b6008805460ff19168215801591909117909155610ce657426009555b50565b6000805b8451821015610ec9576004848381518110610d0a57610d0a6131ea565b60200260200101516004811115610d2357610d236131d4565b148015610d61575060136000868481518110610d4157610d416131ea565b60209081029190910181015182528101919091526040016000205460ff16155b15610e1257600160136000878581518110610d7e57610d7e6131ea565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610e01858381518110610dc057610dc06131ea565b6020026020010151858481518110610dda57610dda6131ea565b6020026020010151858581518110610df457610df46131ea565b6020026020010151611c46565b610e0b9082613216565b9050610eb7565b60126000868481518110610e2857610e286131ea565b602090810291909101810151825281019190915260400160009081205460ff1615159003610eb757600160126000878581518110610e6857610e686131ea565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610eaa858381518110610dc057610dc06131ea565b610eb49082613216565b90505b610ec2600183613216565b9150610ced565b60008111610f195760405162461bcd60e51b815260206004820152601d60248201527f796f752068617665206e6f207072697a6520746f2065786368616e676500000060448201526064016109ce565b604051339082156108fc029083906000818181858888f19350505050158015610f46573d6000803e3d6000fd5b505050505050565b60165460ff1615610f715760405162461bcd60e51b81526004016109ce90613229565b6019544211610fc25760405162461bcd60e51b815260206004820152601860248201527f6d696e74696e67206973206e6f74207374617274206e6f77000000000000000060448201526064016109ce565b3460000361100b5760405162461bcd60e51b8152602060048201526016602482015275076616c75652073656e7420657175616c7320746f20360541b60448201526064016109ce565b6110153383611e4e565b6001600160a01b038116158015906110435750336000908152601060205260409020546001600160a01b0316155b15610b5d5733600090815260106020908152604080832080546001600160a01b0319166001600160a01b038616908117909155835260119091528120805460019290611090908490613216565b9091555050601b546040516340c10f1960e01b81526001600160a01b0383811660048301526103e86024830152909116906340c10f19906044016020604051808303816000875af11580156110e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f9190613259565b6060600180546108b090613124565b61112461292f565b61112e838361201f565b9392505050565b61113d611b9a565b6007610b5d82826132bc565b610b5d338383612112565b61115e33836119ee565b61117a5760405162461bcd60e51b81526004016109ce9061315e565b611186848484846121e0565b50505050565b601c805461119990613124565b80601f01602080910402602001604051908101604052809291908181526020018280546111c590613124565b80156112125780601f106111e757610100808354040283529160200191611212565b820191906000526020600020905b8154815290600101906020018083116111f557829003601f168201915b505050505081565b61122261294e565b506040805160a08101825260225481526023546020820152602454918101919091526025546060820152602654608082015290565b606061126282611921565b600061126c612213565b90508061127884612222565b60405160200161128992919061337c565b604051602081830303815290604052915050919050565b60165460ff16156112c35760405162461bcd60e51b81526004016109ce90613229565b601854421161130b5760405162461bcd60e51b81526020600482015260146024820152731cdd5c195c881b5a5b9d081b9bdd081cdd185c9d60621b60448201526064016109ce565b336000908152600e602052604090205460ff161561136b5760405162461bcd60e51b815260206004820152601e60248201527f796f7520616c72656164792075736564207468652077686974656c697374000060448201526064016109ce565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506113b182600c5483612323565b6113f85760405162461bcd60e51b81526020600482015260186024820152771e5bdd48185c99481b9bdd081a5b881dda1a5d195b1a5cdd60421b60448201526064016109ce565b600060175460016114099190613216565b905060008061141783612339565b909250905061142633846124bb565b601b546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f19906044016020604051808303816000875af1158015611477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149b9190613259565b50336000908152600f60209081526040822080546001818101835591845291832090910185905560178054919290916114d5908490613216565b9091555050336000908152600e60205260409020805460ff191660011790555050505050565b611503611b9a565b8151601d55602080830151601e556040830151601f556060830151905560808201516021558051601554611539906064906133c1565b61154490601e6133d5565b61154e91906133c1565b6022556020810151601554611565906064906133c1565b6115709060146133d5565b61157a91906133c1565b6023556040810151601554611591906064906133c1565b61159c90600a6133d5565b6115a691906133c1565b60245560608101516015546115bd906064906133c1565b6115c890600f6133d5565b6115d291906133c1565b60255560808101516015546115e9906064906133c1565b6115f49060056133d5565b6115fe91906133c1565b602655601554611610906064906133c1565b61161b9060146133d5565b6027555050565b60008061162e83612339565b91509150915091565b60165460ff161561165a5760405162461bcd60e51b81526004016109ce90613229565b6018544211801561166c575060195442105b6116ad5760405162461bcd60e51b81526020600482015260126024820152711c1c995b5a5b9d1a5b99c81cdd1bdc1c195960721b60448201526064016109ce565b336000908152600d602052604090205460ff161561170d5760405162461bcd60e51b815260206004820152601e60248201527f796f7520616c72656164792075736564207468652077686974656c697374000060448201526064016109ce565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061175382600b5483612323565b61179a5760405162461bcd60e51b81526020600482015260186024820152771e5bdd48185c99481b9bdd081a5b881dda1a5d195b1a5cdd60421b60448201526064016109ce565b6117a43384611e4e565b5050336000908152600d60205260409020805460ff1916600117905550565b6117cb611b9a565b600b94909455600c92909255601855601955601a55565b6060601c80546108b090613124565b6117f9611b9a565b60085460ff1615156001146118205760405162461bcd60e51b81526004016109ce906131ac565b62093a806009544261183291906133ec565b116118765760405162461bcd60e51b815260206004820152601460248201527363616e206e6f74207769746864726177206e6f7760601b60448201526064016109ce565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610b5d573d6000803e3d6000fd5b6118b3611b9a565b6001600160a01b0381166119185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ce565b610ce681611bf4565b6000818152600260205260409020546001600160a01b0316610ce65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ce565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119b582610bc8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119fa83610bc8565b9050806001600160a01b0316846001600160a01b03161480611a4157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611a655750836001600160a01b0316611a5a84610933565b6001600160a01b0316145b949350505050565b601a544211611ab55760405162461bcd60e51b815260206004820152601460248201527318d85b881b9bdd081d1c985b9cd9995c881e595d60621b60448201526064016109ce565b611ac08383836124d4565b60005b6001600160a01b0384166000908152600f6020526040902054811015611b6c576001600160a01b0384166000908152600f60205260409020805483919083908110611b1057611b106131ea565b906000526020600020015403611b5a576001600160a01b0384166000908152600f60205260409020805482908110611b4a57611b4a6131ea565b6000918252602082200155611b6c565b80611b64816133ff565b915050611ac3565b506001600160a01b039091166000908152600f60209081526040822080546001810182559083529120015550565b6006546001600160a01b03163314610cc05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ce565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460009060ff16611c6b5760405162461bcd60e51b81526004016109ce906131ac565b33611c7585610bc8565b6001600160a01b031614611ccb5760405162461bcd60e51b815260206004820152601960248201527f6e667420646f65736e27742062656c6f6e6720746f20796f750000000000000060448201526064016109ce565b6000611cd685612222565b604051602001611ce69190613418565b60408051601f198184030181529190528051602090910120905060008080866004811115611d1657611d166131d4565b03611d28575050601d54602254611dfd565b6001866004811115611d3c57611d3c6131d4565b03611d4e575050601e54602354611dfd565b6002866004811115611d6257611d626131d4565b03611d74575050601f54602454611dfd565b6003866004811115611d8857611d886131d4565b03611d9a575050602054602554611dfd565b6004866004811115611dae57611dae6131d4565b03611dc0575050602154602654611dfd565b60405162461bcd60e51b8152602060048201526012602482015271696e76616c6964207072697a65207479706560701b60448201526064016109ce565b611e08858385612323565b611e445760405162461bcd60e51b815260206004820152600d60248201526c696e76616c6964207072697a6560981b60448201526064016109ce565b9695505050505050565b60008060005b83811015611eb157600080611e8083601754611e709190613216565b611e7b906001613216565b612339565b9092509050611e8f8286613216565b9450611e9b8185613216565b9350611ea8600184613216565b92505050611e54565b823414611ebd34612222565b611ec685612222565b604051602001611ed7929190613434565b60405160208183030381529060405290611f045760405162461bcd60e51b81526004016109ce91906129ef565b50600090505b83811015611f7057600081601754611f229190613216565b611f2d906001613216565b9050611f3933826124bb565b336000908152600f6020908152604082208054600181810183559184529190922001829055611f689083613216565b915050611f0a565b601b546040516340c10f1960e01b81526001600160a01b03878116600483015260248201859052909116906340c10f19906044016020604051808303816000875af1158015611fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe79190613259565b503460156000828254611ffa9190613216565b9250508190555083601760008282546120139190613216565b90915550505050505050565b61202761292f565b61202f61292f565b600061203c6001856133ec565b6120479060646133d5565b90506000612056826064613216565b6001600160a01b0387166000908152600f602052604090205490915081111561209457506001600160a01b0385166000908152600f60205260409020545b815b81811015612107576001600160a01b0387166000908152600f602052604090208054829081106120c8576120c86131ea565b90600052602060002001548484836120e091906133ec565b606481106120f0576120f06131ea565b6020020152612100600182613216565b9050612096565b509195945050505050565b816001600160a01b0316836001600160a01b0316036121735760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ce565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6121eb848484611a6d565b6121f784848484612670565b6111865760405162461bcd60e51b81526004016109ce9061349c565b6060600780546108b090613124565b6060816000036122495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612273578061225d816133ff565b915061226c9050600a836133c1565b915061224d565b60008167ffffffffffffffff81111561228e5761228e612ae5565b6040519080825280601f01601f1916602001820160405280156122b8576020820181803683370190505b5090505b8415611a65576122cd6001836133ec565b91506122da600a866134ee565b6122e5906030613216565b60f81b8183815181106122fa576122fa6131ea565b60200101906001600160f81b031916908160001a90535061231c600a866133c1565b94506122bc565b6000826123308584612771565b14949350505050565b60008061271083111561238e5760405162461bcd60e51b815260206004820181905260248201527f746f6b656e206964206d757374206265206c657373207468616e20313030303060448201526064016109ce565b6000806103e885116123ad575066354a6ba7a1800090506127106124b1565b6113888511612429576103e86123c46001876133ec565b6123ce91906133c1565b6123df90662386f26fc100006133d5565b6123f090662386f26fc10000613216565b91506103e86124006001876133ec565b61240a91906133c1565b612416906103e86133d5565b61242290612710613216565b90506124b1565b61271085116124a0576101f4612441611389876133ec565b61244b91906133c1565b61245c90662386f26fc100006133d5565b61246d9066d529ae9e860000613216565b91506101f461247e611389876133ec565b61248891906133c1565b612494906103e86133d5565b61242290613a98613216565b5069021e0c0013070adc0000905060005b9094909350915050565b6127108111156124ca57600080fd5b610b5d82826127be565b826001600160a01b03166124e782610bc8565b6001600160a01b03161461254b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109ce565b6001600160a01b0382166125ad5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109ce565b6125b8600082611980565b6001600160a01b03831660009081526003602052604081208054600192906125e19084906133ec565b90915550506001600160a01b038216600090815260036020526040812080546001929061260f908490613216565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561276657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126b4903390899088908890600401613502565b6020604051808303816000875af19250505080156126ef575060408051601f3d908101601f191682019092526126ec91810190613535565b60015b61274c573d80801561271d576040519150601f19603f3d011682016040523d82523d6000602084013e612722565b606091505b5080516000036127445760405162461bcd60e51b81526004016109ce9061349c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a65565b506001949350505050565b600081815b84518110156127b6576127a282868381518110612795576127956131ea565b6020026020010151612900565b9150806127ae816133ff565b915050612776565b509392505050565b6001600160a01b0382166128145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ce565b6000818152600260205260409020546001600160a01b0316156128795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ce565b6001600160a01b03821660009081526003602052604081208054600192906128a2908490613216565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081831061291c57600082815260208490526040902061112e565b600083815260208390526040902061112e565b60405180610c8001604052806064906020820280368337509192915050565b6040518060a001604052806005906020820280368337509192915050565b6001600160e01b031981168114610ce657600080fd5b60006020828403121561299457600080fd5b813561112e8161296c565b60005b838110156129ba5781810151838201526020016129a2565b50506000910152565b600081518084526129db81602086016020860161299f565b601f01601f19169290920160200192915050565b60208152600061112e60208301846129c3565b600060208284031215612a1457600080fd5b5035919050565b6001600160a01b0381168114610ce657600080fd5b60008060408385031215612a4357600080fd5b8235612a4e81612a1b565b946020939093013593505050565b600080600060608486031215612a7157600080fd5b8335612a7c81612a1b565b92506020840135612a8c81612a1b565b929592945050506040919091013590565b600060208284031215612aaf57600080fd5b813561112e81612a1b565b8015158114610ce657600080fd5b600060208284031215612ada57600080fd5b813561112e81612aba565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715612b1e57612b1e612ae5565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612b4d57612b4d612ae5565b604052919050565b600067ffffffffffffffff821115612b6f57612b6f612ae5565b5060051b60200190565b600082601f830112612b8a57600080fd5b81356020612b9f612b9a83612b55565b612b24565b828152600592831b8501820192828201919087851115612bbe57600080fd5b8387015b85811015612be6578035828110612bd95760008081fd5b8452928401928401612bc2565b5090979650505050505050565b600082601f830112612c0457600080fd5b81356020612c14612b9a83612b55565b82815260059290921b84018101918181019086841115612c3357600080fd5b8286015b84811015612c4e5780358352918301918301612c37565b509695505050505050565b600082601f830112612c6a57600080fd5b81356020612c7a612b9a83612b55565b82815260059290921b84018101918181019086841115612c9957600080fd5b8286015b84811015612c4e57803567ffffffffffffffff811115612cbd5760008081fd5b612ccb8986838b0101612bf3565b845250918301918301612c9d565b600080600060608486031215612cee57600080fd5b833567ffffffffffffffff80821115612d0657600080fd5b818601915086601f830112612d1a57600080fd5b81356020612d2a612b9a83612b55565b82815260059290921b8401810191818101908a841115612d4957600080fd5b948201945b83861015612d6757853582529482019490820190612d4e565b97505087013592505080821115612d7d57600080fd5b612d8987838801612b79565b93506040860135915080821115612d9f57600080fd5b50612dac86828701612c59565b9150509250925092565b60008060408385031215612dc957600080fd5b823591506020830135612ddb81612a1b565b809150509250929050565b610c808101818360005b6064811015612e0f578151835260209283019290910190600101612df0565b50505092915050565b600067ffffffffffffffff831115612e3257612e32612ae5565b612e45601f8401601f1916602001612b24565b9050828152838383011115612e5957600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e8257600080fd5b813567ffffffffffffffff811115612e9957600080fd5b8201601f81018413612eaa57600080fd5b611a6584823560208401612e18565b60008060408385031215612ecc57600080fd5b8235612ed781612a1b565b91506020830135612ddb81612aba565b60008060008060808587031215612efd57600080fd5b8435612f0881612a1b565b93506020850135612f1881612a1b565b925060408501359150606085013567ffffffffffffffff811115612f3b57600080fd5b8501601f81018713612f4c57600080fd5b612f5b87823560208401612e18565b91505092959194509250565b60a08101818360005b6005811015612e0f578151835260209283019290910190600101612f70565b600060208284031215612fa157600080fd5b813567ffffffffffffffff811115612fb857600080fd5b611a6584828501612bf3565b600080610140808486031215612fd957600080fd5b84601f850112612fe857600080fd5b612ff0612afb565b8060a086018781111561300257600080fd5b865b8181101561301c578035845260209384019301613004565b508195508760bf88011261302f57600080fd5b613037612afb565b9387019392508291508784111561304d57600080fd5b5b8381101561306657803583526020928301920161304e565b508093505050509250929050565b6000806040838503121561308757600080fd5b82359150602083013567ffffffffffffffff8111156130a557600080fd5b6130b185828601612bf3565b9150509250929050565b600080600080600060a086880312156130d357600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000806040838503121561310957600080fd5b823561311481612a1b565b91506020830135612ddb81612a1b565b600181811c9082168061313857607f821691505b60208210810361315857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252600e908201526d1b9bc81b1bdd1d195c9e481e595d60921b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561089b5761089b613200565b6020808252601690820152756d696e74696e672069732073746f70706564206e6f7760501b604082015260600190565b60006020828403121561326b57600080fd5b815161112e81612aba565b601f821115610a6f57600081815260208120601f850160051c8101602086101561329d5750805b601f850160051c820191505b81811015610f46578281556001016132a9565b815167ffffffffffffffff8111156132d6576132d6612ae5565b6132ea816132e48454613124565b84613276565b602080601f83116001811461331f57600084156133075750858301515b600019600386901b1c1916600185901b178555610f46565b600085815260208120601f198616915b8281101561334e5788860151825594840194600190910190840161332f565b508582101561336c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161338e81846020880161299f565b8351908301906133a281836020880161299f565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826133d0576133d06133ab565b500490565b808202811582820484141761089b5761089b613200565b8181038181111561089b5761089b613200565b60006001820161341157613411613200565b5060010190565b6000825161342a81846020870161299f565b9190910192915050565b7f76616c75652073656e7420697320696e76616c69643a2000000000000000000081526000835161346c81601785016020880161299f565b63010109e960e51b601791840191820152835161349081601b84016020880161299f565b01601b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826134fd576134fd6133ab565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e44908301846129c3565b60006020828403121561354757600080fd5b815161112e8161296c56fea2646970667358221220c041bfc69b9f76c7064f61bbecca4c34d8e8d2f39335e9c68a3dfee091e17ee564736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000036012d9c8385b2dd2411a3227efae9af76e18f50000000000000000000000000000000000000000000000000000000000000008576f726c644375700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008576f726c64437570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f62616679626569623732777573366d346267356e67763575686476373462716d6d626e7a3478346f67617a777368636178747933686673656c71712f00000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f6261666b72656966347063706b696973687773637065756d78736a6177636d7162637433626d67667a76716135356d7273766d6e66666f736b746d0000000000000000
Deployed Bytecode
0x6080604052600436106102675760003560e01c80639975905e11610144578063cf721b15116100b6578063e452b5c31161007a578063e452b5c31461075b578063e8a3d4851461077b578063e985e9c514610790578063ee8f0b7a146107d9578063ef15cf851461080f578063f2fde38b1461082f57600080fd5b8063cf721b15146106c3578063d5582965146106d9578063d96779d8146106f3578063dbb3cfb814610713578063df341adf1461074857600080fd5b8063b88d4fde11610108578063b88d4fde146105fc578063c0e727401461061c578063c34f6b0d14610631578063c87b56dd14610653578063c97fbcf014610673578063ccd682bc1461069357600080fd5b80639975905e146105495780639eac8f6b14610576578063a0bcfc7f146105a6578063a22cb465146105c6578063b14cfbfe146105e657600080fd5b806357b24e6b116101dd578063738e2a70116101a1578063738e2a70146104ad5780638da5cb5b146104cd578063931e2e49146104eb578063945918241461050157806394bf804d1461052157806395d89b411461053457600080fd5b806357b24e6b146104155780636352211e146104425780636e6d98fb1461046257806370a0823114610478578063715018a61461049857600080fd5b80632666014a1161022f5780632666014a1461033d5780633a7f1a031461035757806342842e0e1461037757806346c652bc146103975780634ee16436146103c75780634fae864a146103f557600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146102fb57806323b872dd1461031d575b600080fd5b34801561027857600080fd5b5061028c610287366004612982565b61084f565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b66108a1565b60405161029891906129ef565b3480156102cf57600080fd5b506102e36102de366004612a02565b610933565b6040516001600160a01b039091168152602001610298565b34801561030757600080fd5b5061031b610316366004612a30565b61095a565b005b34801561032957600080fd5b5061031b610338366004612a5c565b610a74565b34801561034957600080fd5b5060085461028c9060ff1681565b34801561036357600080fd5b5061031b610372366004612a9d565b610aa5565b34801561038357600080fd5b5061031b610392366004612a5c565b610b61565b3480156103a357600080fd5b5061028c6103b2366004612a9d565b600e6020526000908152604090205460ff1681565b3480156103d357600080fd5b506103e76103e2366004612a30565b610b7c565b604051908152602001610298565b34801561040157600080fd5b5061031b610410366004612ac8565b610bad565b34801561042157600080fd5b506103e7610430366004612a9d565b60116020526000908152604090205481565b34801561044e57600080fd5b506102e361045d366004612a02565b610bc8565b34801561046e57600080fd5b506103e7601a5481565b34801561048457600080fd5b506103e7610493366004612a9d565b610c28565b3480156104a457600080fd5b5061031b610cae565b3480156104b957600080fd5b5061031b6104c8366004612ac8565b610cc2565b3480156104d957600080fd5b506006546001600160a01b03166102e3565b3480156104f757600080fd5b506103e760195481565b34801561050d57600080fd5b5061031b61051c366004612cd9565b610ce9565b61031b61052f366004612db6565b610f4e565b34801561054057600080fd5b506102b661110d565b34801561055557600080fd5b50610569610564366004612a30565b61111c565b6040516102989190612de6565b34801561058257600080fd5b5061028c610591366004612a02565b60126020526000908152604090205460ff1681565b3480156105b257600080fd5b5061031b6105c1366004612e70565b611135565b3480156105d257600080fd5b5061031b6105e1366004612eb9565b611149565b3480156105f257600080fd5b506103e760185481565b34801561060857600080fd5b5061031b610617366004612ee7565b611154565b34801561062857600080fd5b506102b661118c565b34801561063d57600080fd5b5061064661121a565b6040516102989190612f67565b34801561065f57600080fd5b506102b661066e366004612a02565b611257565b34801561067f57600080fd5b5061031b61068e366004612f8f565b6112a0565b34801561069f57600080fd5b5061028c6106ae366004612a9d565b600d6020526000908152604090205460ff1681565b3480156106cf57600080fd5b506103e760175481565b3480156106e557600080fd5b5060165461028c9060ff1681565b3480156106ff57600080fd5b5061031b61070e366004612fc4565b6114fb565b34801561071f57600080fd5b5061073361072e366004612a02565b611622565b60408051928352602083019190915201610298565b61031b610756366004613074565b611637565b34801561076757600080fd5b5061031b6107763660046130bb565b6117c3565b34801561078757600080fd5b506102b66117e2565b34801561079c57600080fd5b5061028c6107ab3660046130f6565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156107e557600080fd5b506102e36107f4366004612a9d565b6010602052600090815260409020546001600160a01b031681565b34801561081b57600080fd5b5061031b61082a366004612a9d565b6117f1565b34801561083b57600080fd5b5061031b61084a366004612a9d565b6118ab565b60006001600160e01b031982166380ac58cd60e01b148061088057506001600160e01b03198216635b5e139f60e01b145b8061089b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546108b090613124565b80601f01602080910402602001604051908101604052809291908181526020018280546108dc90613124565b80156109295780601f106108fe57610100808354040283529160200191610929565b820191906000526020600020905b81548152906001019060200180831161090c57829003601f168201915b5050505050905090565b600061093e82611921565b506000908152600460205260409020546001600160a01b031690565b600061096582610bc8565b9050806001600160a01b0316836001600160a01b0316036109d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806109f357506109f381336107ab565b610a655760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016109ce565b610a6f8383611980565b505050565b610a7e33826119ee565b610a9a5760405162461bcd60e51b81526004016109ce9061315e565b610a6f838383611a6d565b610aad611b9a565b60085460ff16610acf5760405162461bcd60e51b81526004016109ce906131ac565b600a5460ff1615610b195760405162461bcd60e51b8152602060048201526014602482015273796f7520616c726561647920776974686472657760601b60448201526064016109ce565b600a805460ff191660011790556027546040516001600160a01b0383169180156108fc02916000818181858888f19350505050158015610b5d573d6000803e3d6000fd5b5050565b610a6f83838360405180602001604052806000815250611154565b600f6020528160005260406000208181548110610b9857600080fd5b90600052602060002001600091509150505481565b610bb5611b9a565b6016805460ff1916911515919091179055565b6000818152600260205260408120546001600160a01b03168061089b5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ce565b60006001600160a01b038216610c925760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016109ce565b506001600160a01b031660009081526003602052604090205490565b610cb6611b9a565b610cc06000611bf4565b565b610cca611b9a565b6008805460ff19168215801591909117909155610ce657426009555b50565b6000805b8451821015610ec9576004848381518110610d0a57610d0a6131ea565b60200260200101516004811115610d2357610d236131d4565b148015610d61575060136000868481518110610d4157610d416131ea565b60209081029190910181015182528101919091526040016000205460ff16155b15610e1257600160136000878581518110610d7e57610d7e6131ea565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610e01858381518110610dc057610dc06131ea565b6020026020010151858481518110610dda57610dda6131ea565b6020026020010151858581518110610df457610df46131ea565b6020026020010151611c46565b610e0b9082613216565b9050610eb7565b60126000868481518110610e2857610e286131ea565b602090810291909101810151825281019190915260400160009081205460ff1615159003610eb757600160126000878581518110610e6857610e686131ea565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550610eaa858381518110610dc057610dc06131ea565b610eb49082613216565b90505b610ec2600183613216565b9150610ced565b60008111610f195760405162461bcd60e51b815260206004820152601d60248201527f796f752068617665206e6f207072697a6520746f2065786368616e676500000060448201526064016109ce565b604051339082156108fc029083906000818181858888f19350505050158015610f46573d6000803e3d6000fd5b505050505050565b60165460ff1615610f715760405162461bcd60e51b81526004016109ce90613229565b6019544211610fc25760405162461bcd60e51b815260206004820152601860248201527f6d696e74696e67206973206e6f74207374617274206e6f77000000000000000060448201526064016109ce565b3460000361100b5760405162461bcd60e51b8152602060048201526016602482015275076616c75652073656e7420657175616c7320746f20360541b60448201526064016109ce565b6110153383611e4e565b6001600160a01b038116158015906110435750336000908152601060205260409020546001600160a01b0316155b15610b5d5733600090815260106020908152604080832080546001600160a01b0319166001600160a01b038616908117909155835260119091528120805460019290611090908490613216565b9091555050601b546040516340c10f1960e01b81526001600160a01b0383811660048301526103e86024830152909116906340c10f19906044016020604051808303816000875af11580156110e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6f9190613259565b6060600180546108b090613124565b61112461292f565b61112e838361201f565b9392505050565b61113d611b9a565b6007610b5d82826132bc565b610b5d338383612112565b61115e33836119ee565b61117a5760405162461bcd60e51b81526004016109ce9061315e565b611186848484846121e0565b50505050565b601c805461119990613124565b80601f01602080910402602001604051908101604052809291908181526020018280546111c590613124565b80156112125780601f106111e757610100808354040283529160200191611212565b820191906000526020600020905b8154815290600101906020018083116111f557829003601f168201915b505050505081565b61122261294e565b506040805160a08101825260225481526023546020820152602454918101919091526025546060820152602654608082015290565b606061126282611921565b600061126c612213565b90508061127884612222565b60405160200161128992919061337c565b604051602081830303815290604052915050919050565b60165460ff16156112c35760405162461bcd60e51b81526004016109ce90613229565b601854421161130b5760405162461bcd60e51b81526020600482015260146024820152731cdd5c195c881b5a5b9d081b9bdd081cdd185c9d60621b60448201526064016109ce565b336000908152600e602052604090205460ff161561136b5760405162461bcd60e51b815260206004820152601e60248201527f796f7520616c72656164792075736564207468652077686974656c697374000060448201526064016109ce565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506113b182600c5483612323565b6113f85760405162461bcd60e51b81526020600482015260186024820152771e5bdd48185c99481b9bdd081a5b881dda1a5d195b1a5cdd60421b60448201526064016109ce565b600060175460016114099190613216565b905060008061141783612339565b909250905061142633846124bb565b601b546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f19906044016020604051808303816000875af1158015611477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061149b9190613259565b50336000908152600f60209081526040822080546001818101835591845291832090910185905560178054919290916114d5908490613216565b9091555050336000908152600e60205260409020805460ff191660011790555050505050565b611503611b9a565b8151601d55602080830151601e556040830151601f556060830151905560808201516021558051601554611539906064906133c1565b61154490601e6133d5565b61154e91906133c1565b6022556020810151601554611565906064906133c1565b6115709060146133d5565b61157a91906133c1565b6023556040810151601554611591906064906133c1565b61159c90600a6133d5565b6115a691906133c1565b60245560608101516015546115bd906064906133c1565b6115c890600f6133d5565b6115d291906133c1565b60255560808101516015546115e9906064906133c1565b6115f49060056133d5565b6115fe91906133c1565b602655601554611610906064906133c1565b61161b9060146133d5565b6027555050565b60008061162e83612339565b91509150915091565b60165460ff161561165a5760405162461bcd60e51b81526004016109ce90613229565b6018544211801561166c575060195442105b6116ad5760405162461bcd60e51b81526020600482015260126024820152711c1c995b5a5b9d1a5b99c81cdd1bdc1c195960721b60448201526064016109ce565b336000908152600d602052604090205460ff161561170d5760405162461bcd60e51b815260206004820152601e60248201527f796f7520616c72656164792075736564207468652077686974656c697374000060448201526064016109ce565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061175382600b5483612323565b61179a5760405162461bcd60e51b81526020600482015260186024820152771e5bdd48185c99481b9bdd081a5b881dda1a5d195b1a5cdd60421b60448201526064016109ce565b6117a43384611e4e565b5050336000908152600d60205260409020805460ff1916600117905550565b6117cb611b9a565b600b94909455600c92909255601855601955601a55565b6060601c80546108b090613124565b6117f9611b9a565b60085460ff1615156001146118205760405162461bcd60e51b81526004016109ce906131ac565b62093a806009544261183291906133ec565b116118765760405162461bcd60e51b815260206004820152601460248201527363616e206e6f74207769746864726177206e6f7760601b60448201526064016109ce565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015610b5d573d6000803e3d6000fd5b6118b3611b9a565b6001600160a01b0381166119185760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109ce565b610ce681611bf4565b6000818152600260205260409020546001600160a01b0316610ce65760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016109ce565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119b582610bc8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119fa83610bc8565b9050806001600160a01b0316846001600160a01b03161480611a4157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611a655750836001600160a01b0316611a5a84610933565b6001600160a01b0316145b949350505050565b601a544211611ab55760405162461bcd60e51b815260206004820152601460248201527318d85b881b9bdd081d1c985b9cd9995c881e595d60621b60448201526064016109ce565b611ac08383836124d4565b60005b6001600160a01b0384166000908152600f6020526040902054811015611b6c576001600160a01b0384166000908152600f60205260409020805483919083908110611b1057611b106131ea565b906000526020600020015403611b5a576001600160a01b0384166000908152600f60205260409020805482908110611b4a57611b4a6131ea565b6000918252602082200155611b6c565b80611b64816133ff565b915050611ac3565b506001600160a01b039091166000908152600f60209081526040822080546001810182559083529120015550565b6006546001600160a01b03163314610cc05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109ce565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60085460009060ff16611c6b5760405162461bcd60e51b81526004016109ce906131ac565b33611c7585610bc8565b6001600160a01b031614611ccb5760405162461bcd60e51b815260206004820152601960248201527f6e667420646f65736e27742062656c6f6e6720746f20796f750000000000000060448201526064016109ce565b6000611cd685612222565b604051602001611ce69190613418565b60408051601f198184030181529190528051602090910120905060008080866004811115611d1657611d166131d4565b03611d28575050601d54602254611dfd565b6001866004811115611d3c57611d3c6131d4565b03611d4e575050601e54602354611dfd565b6002866004811115611d6257611d626131d4565b03611d74575050601f54602454611dfd565b6003866004811115611d8857611d886131d4565b03611d9a575050602054602554611dfd565b6004866004811115611dae57611dae6131d4565b03611dc0575050602154602654611dfd565b60405162461bcd60e51b8152602060048201526012602482015271696e76616c6964207072697a65207479706560701b60448201526064016109ce565b611e08858385612323565b611e445760405162461bcd60e51b815260206004820152600d60248201526c696e76616c6964207072697a6560981b60448201526064016109ce565b9695505050505050565b60008060005b83811015611eb157600080611e8083601754611e709190613216565b611e7b906001613216565b612339565b9092509050611e8f8286613216565b9450611e9b8185613216565b9350611ea8600184613216565b92505050611e54565b823414611ebd34612222565b611ec685612222565b604051602001611ed7929190613434565b60405160208183030381529060405290611f045760405162461bcd60e51b81526004016109ce91906129ef565b50600090505b83811015611f7057600081601754611f229190613216565b611f2d906001613216565b9050611f3933826124bb565b336000908152600f6020908152604082208054600181810183559184529190922001829055611f689083613216565b915050611f0a565b601b546040516340c10f1960e01b81526001600160a01b03878116600483015260248201859052909116906340c10f19906044016020604051808303816000875af1158015611fc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe79190613259565b503460156000828254611ffa9190613216565b9250508190555083601760008282546120139190613216565b90915550505050505050565b61202761292f565b61202f61292f565b600061203c6001856133ec565b6120479060646133d5565b90506000612056826064613216565b6001600160a01b0387166000908152600f602052604090205490915081111561209457506001600160a01b0385166000908152600f60205260409020545b815b81811015612107576001600160a01b0387166000908152600f602052604090208054829081106120c8576120c86131ea565b90600052602060002001548484836120e091906133ec565b606481106120f0576120f06131ea565b6020020152612100600182613216565b9050612096565b509195945050505050565b816001600160a01b0316836001600160a01b0316036121735760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109ce565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6121eb848484611a6d565b6121f784848484612670565b6111865760405162461bcd60e51b81526004016109ce9061349c565b6060600780546108b090613124565b6060816000036122495750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612273578061225d816133ff565b915061226c9050600a836133c1565b915061224d565b60008167ffffffffffffffff81111561228e5761228e612ae5565b6040519080825280601f01601f1916602001820160405280156122b8576020820181803683370190505b5090505b8415611a65576122cd6001836133ec565b91506122da600a866134ee565b6122e5906030613216565b60f81b8183815181106122fa576122fa6131ea565b60200101906001600160f81b031916908160001a90535061231c600a866133c1565b94506122bc565b6000826123308584612771565b14949350505050565b60008061271083111561238e5760405162461bcd60e51b815260206004820181905260248201527f746f6b656e206964206d757374206265206c657373207468616e20313030303060448201526064016109ce565b6000806103e885116123ad575066354a6ba7a1800090506127106124b1565b6113888511612429576103e86123c46001876133ec565b6123ce91906133c1565b6123df90662386f26fc100006133d5565b6123f090662386f26fc10000613216565b91506103e86124006001876133ec565b61240a91906133c1565b612416906103e86133d5565b61242290612710613216565b90506124b1565b61271085116124a0576101f4612441611389876133ec565b61244b91906133c1565b61245c90662386f26fc100006133d5565b61246d9066d529ae9e860000613216565b91506101f461247e611389876133ec565b61248891906133c1565b612494906103e86133d5565b61242290613a98613216565b5069021e0c0013070adc0000905060005b9094909350915050565b6127108111156124ca57600080fd5b610b5d82826127be565b826001600160a01b03166124e782610bc8565b6001600160a01b03161461254b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016109ce565b6001600160a01b0382166125ad5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109ce565b6125b8600082611980565b6001600160a01b03831660009081526003602052604081208054600192906125e19084906133ec565b90915550506001600160a01b038216600090815260036020526040812080546001929061260f908490613216565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b1561276657604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906126b4903390899088908890600401613502565b6020604051808303816000875af19250505080156126ef575060408051601f3d908101601f191682019092526126ec91810190613535565b60015b61274c573d80801561271d576040519150601f19603f3d011682016040523d82523d6000602084013e612722565b606091505b5080516000036127445760405162461bcd60e51b81526004016109ce9061349c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a65565b506001949350505050565b600081815b84518110156127b6576127a282868381518110612795576127956131ea565b6020026020010151612900565b9150806127ae816133ff565b915050612776565b509392505050565b6001600160a01b0382166128145760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109ce565b6000818152600260205260409020546001600160a01b0316156128795760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109ce565b6001600160a01b03821660009081526003602052604081208054600192906128a2908490613216565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600081831061291c57600082815260208490526040902061112e565b600083815260208390526040902061112e565b60405180610c8001604052806064906020820280368337509192915050565b6040518060a001604052806005906020820280368337509192915050565b6001600160e01b031981168114610ce657600080fd5b60006020828403121561299457600080fd5b813561112e8161296c565b60005b838110156129ba5781810151838201526020016129a2565b50506000910152565b600081518084526129db81602086016020860161299f565b601f01601f19169290920160200192915050565b60208152600061112e60208301846129c3565b600060208284031215612a1457600080fd5b5035919050565b6001600160a01b0381168114610ce657600080fd5b60008060408385031215612a4357600080fd5b8235612a4e81612a1b565b946020939093013593505050565b600080600060608486031215612a7157600080fd5b8335612a7c81612a1b565b92506020840135612a8c81612a1b565b929592945050506040919091013590565b600060208284031215612aaf57600080fd5b813561112e81612a1b565b8015158114610ce657600080fd5b600060208284031215612ada57600080fd5b813561112e81612aba565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715612b1e57612b1e612ae5565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612b4d57612b4d612ae5565b604052919050565b600067ffffffffffffffff821115612b6f57612b6f612ae5565b5060051b60200190565b600082601f830112612b8a57600080fd5b81356020612b9f612b9a83612b55565b612b24565b828152600592831b8501820192828201919087851115612bbe57600080fd5b8387015b85811015612be6578035828110612bd95760008081fd5b8452928401928401612bc2565b5090979650505050505050565b600082601f830112612c0457600080fd5b81356020612c14612b9a83612b55565b82815260059290921b84018101918181019086841115612c3357600080fd5b8286015b84811015612c4e5780358352918301918301612c37565b509695505050505050565b600082601f830112612c6a57600080fd5b81356020612c7a612b9a83612b55565b82815260059290921b84018101918181019086841115612c9957600080fd5b8286015b84811015612c4e57803567ffffffffffffffff811115612cbd5760008081fd5b612ccb8986838b0101612bf3565b845250918301918301612c9d565b600080600060608486031215612cee57600080fd5b833567ffffffffffffffff80821115612d0657600080fd5b818601915086601f830112612d1a57600080fd5b81356020612d2a612b9a83612b55565b82815260059290921b8401810191818101908a841115612d4957600080fd5b948201945b83861015612d6757853582529482019490820190612d4e565b97505087013592505080821115612d7d57600080fd5b612d8987838801612b79565b93506040860135915080821115612d9f57600080fd5b50612dac86828701612c59565b9150509250925092565b60008060408385031215612dc957600080fd5b823591506020830135612ddb81612a1b565b809150509250929050565b610c808101818360005b6064811015612e0f578151835260209283019290910190600101612df0565b50505092915050565b600067ffffffffffffffff831115612e3257612e32612ae5565b612e45601f8401601f1916602001612b24565b9050828152838383011115612e5957600080fd5b828260208301376000602084830101529392505050565b600060208284031215612e8257600080fd5b813567ffffffffffffffff811115612e9957600080fd5b8201601f81018413612eaa57600080fd5b611a6584823560208401612e18565b60008060408385031215612ecc57600080fd5b8235612ed781612a1b565b91506020830135612ddb81612aba565b60008060008060808587031215612efd57600080fd5b8435612f0881612a1b565b93506020850135612f1881612a1b565b925060408501359150606085013567ffffffffffffffff811115612f3b57600080fd5b8501601f81018713612f4c57600080fd5b612f5b87823560208401612e18565b91505092959194509250565b60a08101818360005b6005811015612e0f578151835260209283019290910190600101612f70565b600060208284031215612fa157600080fd5b813567ffffffffffffffff811115612fb857600080fd5b611a6584828501612bf3565b600080610140808486031215612fd957600080fd5b84601f850112612fe857600080fd5b612ff0612afb565b8060a086018781111561300257600080fd5b865b8181101561301c578035845260209384019301613004565b508195508760bf88011261302f57600080fd5b613037612afb565b9387019392508291508784111561304d57600080fd5b5b8381101561306657803583526020928301920161304e565b508093505050509250929050565b6000806040838503121561308757600080fd5b82359150602083013567ffffffffffffffff8111156130a557600080fd5b6130b185828601612bf3565b9150509250929050565b600080600080600060a086880312156130d357600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000806040838503121561310957600080fd5b823561311481612a1b565b91506020830135612ddb81612a1b565b600181811c9082168061313857607f821691505b60208210810361315857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252600e908201526d1b9bc81b1bdd1d195c9e481e595d60921b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561089b5761089b613200565b6020808252601690820152756d696e74696e672069732073746f70706564206e6f7760501b604082015260600190565b60006020828403121561326b57600080fd5b815161112e81612aba565b601f821115610a6f57600081815260208120601f850160051c8101602086101561329d5750805b601f850160051c820191505b81811015610f46578281556001016132a9565b815167ffffffffffffffff8111156132d6576132d6612ae5565b6132ea816132e48454613124565b84613276565b602080601f83116001811461331f57600084156133075750858301515b600019600386901b1c1916600185901b178555610f46565b600085815260208120601f198616915b8281101561334e5788860151825594840194600190910190840161332f565b508582101561336c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000835161338e81846020880161299f565b8351908301906133a281836020880161299f565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826133d0576133d06133ab565b500490565b808202811582820484141761089b5761089b613200565b8181038181111561089b5761089b613200565b60006001820161341157613411613200565b5060010190565b6000825161342a81846020870161299f565b9190910192915050565b7f76616c75652073656e7420697320696e76616c69643a2000000000000000000081526000835161346c81601785016020880161299f565b63010109e960e51b601791840191820152835161349081601b84016020880161299f565b01601b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826134fd576134fd6133ab565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e44908301846129c3565b60006020828403121561354757600080fd5b815161112e8161296c56fea2646970667358221220c041bfc69b9f76c7064f61bbecca4c34d8e8d2f39335e9c68a3dfee091e17ee564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000036012d9c8385b2dd2411a3227efae9af76e18f50000000000000000000000000000000000000000000000000000000000000008576f726c644375700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008576f726c64437570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f62616679626569623732777573366d346267356e67763575686476373462716d6d626e7a3478346f67617a777368636178747933686673656c71712f00000000000000000000000000000000000000000000000000000000000000000000000000005868747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f6261666b72656966347063706b696973687773637065756d78736a6177636d7162637433626d67667a76716135356d7273766d6e66666f736b746d0000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): WorldCup
Arg [1] : symbol_ (string): WorldCup
Arg [2] : blindBoxBaseUri_ (string): https://nftstorage.link/ipfs/bafybeib72wus6m4bg5ngv5uhdv74bqmmbnz4x4ogazwshcaxty3hfselqq/
Arg [3] : contractURI_ (string): https://nftstorage.link/ipfs/bafkreif4pcpkiishwscpeumxsjawcmqbct3bmgfzvqa55mrsvmnffosktm
Arg [4] : footballAddress_ (address): 0x036012D9C8385b2dD2411a3227efAE9AF76e18F5
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 000000000000000000000000036012d9c8385b2dd2411a3227efae9af76e18f5
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 576f726c64437570000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 576f726c64437570000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [10] : 68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166
Arg [11] : 79626569623732777573366d346267356e67763575686476373462716d6d626e
Arg [12] : 7a3478346f67617a777368636178747933686673656c71712f00000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000058
Arg [14] : 68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166
Arg [15] : 6b72656966347063706b696973687773637065756d78736a6177636d71626374
Arg [16] : 33626d67667a76716135356d7273766d6e66666f736b746d0000000000000000
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.