ERC-721
Overview
Max Total Supply
1,769 CRYPT3D
Holders
348
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
10 CRYPT3DLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Crypt3dpunks
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "hardhat/console.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import {DefaultOperatorFilterer} from "./DefaultOperatorFilterer.sol"; interface ERC1155NFT { function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) external; function balanceOf(address account, uint256 id) external view returns (uint256); } library Counters { struct Counter { uint256 _value; } function current(Counter storage counter) internal view returns (uint256) { return (counter._value + 495); } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } interface ERC20 { function transferFrom( address from, address to, uint256 amount) external returns (bool); function balanceOf(address owner) external returns (uint256); function decimals() external returns (uint8); function transfer(address to, uint256 amount) external returns (bool); } contract Crypt3dpunks is ERC721, Pausable, ERC721Burnable, AccessControl, ERC2981,DefaultOperatorFilterer { using Counters for Counters.Counter; Counters.Counter private _gloablId; uint256 public EtherPrice; uint256 public Discount; uint256 public Round; bytes32 public root; uint256 private NFTCount; address public constant ExistingERC1155 =0xa50c349912739A4fe4e50BaFD3d8689210642D88; address public constant burnAddress = 0x000000000000000000000000000000000000dEaD; bool public PresaleLive; bool public SaleLive; bool public AllowSwapExistingUsers; address[4] public SupportedCryptos; uint256[][] public priceCardInDollar = [ [100, 100, 100, 100, 100, 100], [140, 133, 126, 119, 112, 98], [147, 140, 133, 125, 118, 103], [155, 147, 139, 132, 124, 109], [163, 154, 145, 138, 130, 114], [171, 162, 153, 145, 137, 120], [179, 170, 160, 152, 143, 126], [188, 179, 169, 160, 151, 132], [197, 188, 178, 168, 158, 138], [207, 197, 187, 176, 166, 145], [218, 207, 196, 185, 174, 153] ]; uint256[11] public roundCap = [ 495, 845, 1345, 2095, 3136, 4280, 5424, 6568, 7712, 8856, 10000 ]; bool[5] public paymentPermitted = [true, true, true, true, true]; bool[11] public roundReveal = [ false, false, false, false, false, false, false, false, false, false, false ]; string public baseURI = "https://www.crypt3dpunksmint.io/api/crypt3dpunks/"; mapping(uint256 => bool) public stopTransfer; enum CurrentState { round0, round1, round2, round3, round4, round5, round6, round7, round8, round9, round10, pause, completed } CurrentState public currentState = CurrentState.round1; bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); bytes32 public constant UPDATER_ROLE = keccak256("UPDATER_ROLE"); constructor() ERC721("Cypt3dpunks", "CRYPT3D"){ _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(DEFAULT_ADMIN_ROLE, 0x03717989289c46a101A18b0A3e0Ca8DffB92a5a5); _grantRole(PAUSER_ROLE, msg.sender); _grantRole(UPDATER_ROLE, msg.sender); _grantRole(UPDATER_ROLE, 0x3943afed89b68060105a51285D548464B115aee0); setRoyaltyInfo(0x7c781885b5fEC8Fe40B3625cA54aA8688E4d6A9c, 500); SupportedCryptos[0]=0xdAC17F958D2ee523a2206206994597C13D831ec7; //USDT 6 decimals SupportedCryptos[1]=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; //USDC 6 decimals SupportedCryptos[2]=0x6B175474E89094C44Da98b954EedeAC495271d0F; //DAI 18 decimals SupportedCryptos[3]=0x4Fabb145d64652a948d72533023f6E7A623C7C53; //BUSD 18 decimals EtherPrice= 191000; Discount= 0; Round=1; } modifier mintable(uint token,uint _quantity,bool preSale) { if(preSale){ require(PresaleLive,"PreSale is not live yet"); } else{ require(SaleLive,"Sale is not live yet"); } require(token>=0 && token<=4,"Invalid input : token"); require(paymentPermitted[token], "Payment Stopped for this token"); require(_quantity == 1 || _quantity == 2 || _quantity == 3 || _quantity == 4 || _quantity == 5 || _quantity == 10,"Invalid input : quantity"); require((_gloablId.current() + _quantity) <= roundCap[Round],"quantity exceeded the limit for this round"); _; } function batchMint(uint256 _quantity, address _to) external payable whenNotPaused mintable(4,_quantity,false){ if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) { uint amount =_acceptEthers(_quantity,1000); require(msg.value >= amount, "Not enough ethers"); } _internalMint(_quantity,_to); } function batchMintWhiteList(uint256 _quantity, bytes32[] memory proof) external payable whenNotPaused mintable(4,_quantity,true){ require(isValid(proof, keccak256(abi.encodePacked(msg.sender))), "Not a part of Allowlist"); uint amount =_acceptEthers(_quantity,(1000-Discount)); require(msg.value >= amount, "Not enough ethers"); _internalMint(_quantity,msg.sender); } function batchMintUsingCryptoCurrency(uint8 token, uint256 _quantity, address _to) external whenNotPaused mintable(token,_quantity,false){ if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) { _acceptEthersCrypto(token,_quantity,1000); } _internalMint(_quantity,_to); } function batchMintWhiteListUsingCryptoCurrency(uint8 token, uint256 _quantity, bytes32[] memory proof) external whenNotPaused mintable(token,_quantity,true){ require(isValid(proof, keccak256(abi.encodePacked(msg.sender))), "Not a part of Allowlist"); _acceptEthersCrypto(token,_quantity,1000-Discount); _internalMint(_quantity,msg.sender); } function _acceptEthers(uint _quantity,uint _discount) internal view returns(uint){ uint amount; if(_quantity!=10){ uint temp =_quantity-1; amount= ((priceCardInDollar[Round][temp]*(10**20)*_discount)*_quantity)/(EtherPrice*1000); }else{ amount= ((priceCardInDollar[Round][5]*(10**20)*_discount)*_quantity)/(EtherPrice*1000); } return amount; } function _acceptEthersCrypto(uint token, uint _quantity,uint _discount) internal { uint8 decimal = ERC20(SupportedCryptos[token]).decimals(); uint amount; if(_quantity!=10){ uint temp =_quantity-1; amount = ((priceCardInDollar[Round][temp] * (10**decimal)) *_discount*_quantity)/1000; require(ERC20(SupportedCryptos[token]).balanceOf(msg.sender) >=amount,"Not enough Tokens"); ERC20(SupportedCryptos[token]).transferFrom(msg.sender,address(this),amount); }else{ amount = ((priceCardInDollar[Round][5] * (10**decimal)) *_discount*_quantity)/1000; require(ERC20(SupportedCryptos[token]).balanceOf(msg.sender) >=amount,"Not enough Tokens"); ERC20(SupportedCryptos[token]).transferFrom(msg.sender,address(this),amount); } } function _internalMint(uint _quantity, address _to) internal { for (uint256 i = 0; i < _quantity;) { uint256 tokenId = _gloablId.current(); _gloablId.increment(); _safeMint(_to, tokenId); unchecked { i++; } if (_gloablId.current() == roundCap[Round]) { currentState = CurrentState.pause; _pause(); } } NFTCount+=_quantity; } function batchSwapExistingUsers(uint256[] memory NFTs) external whenNotPaused{ require(AllowSwapExistingUsers==true,"Swap function is paused by the owner"); require((_gloablId.current() + NFTs.length) <= roundCap[Round],"Quantity exceeded the limit for this round"); for (uint256 i = 0; i < NFTs.length; i++) { require(ERC1155NFT(ExistingERC1155).balanceOf(msg.sender, NFTs[i]) >=1,"You don't own this NFT"); require(NFTs[i]<roundCap[0],"Swap NFT id can not be more that 494"); ERC1155NFT(ExistingERC1155).safeTransferFrom(msg.sender,burnAddress, NFTs[i], 1, "0x00"); _safeMint(msg.sender, NFTs[i]); uint256 tokenId = _gloablId.current(); _gloablId.increment(); _safeMint(msg.sender, tokenId); NFTCount+=2; } if (_gloablId.current() == roundCap[Round]) { currentState = CurrentState.pause; _pause(); } } function batchAirdrop(address[] calldata recipients) external onlyRole(DEFAULT_ADMIN_ROLE) { uint256 length = recipients.length; require((_gloablId.current() + length) <= roundCap[Round],"Quantity exceeded the limit for this round"); for (uint256 i = 0; i < length; ) { uint256 tokenId = _gloablId.current(); _gloablId.increment(); _safeMint(recipients[i], tokenId); NFTCount+=1; unchecked { i++; } } if (_gloablId.current() == roundCap[Round]) { currentState = CurrentState.pause; _pause(); } } function startPresale() external onlyRole(DEFAULT_ADMIN_ROLE){ require(PresaleLive==false,"Presale is already live"); PresaleLive=true; } function startSale() external onlyRole(DEFAULT_ADMIN_ROLE){ require(SaleLive==false,"Sale is already live"); SaleLive=true; } function endPresale() external onlyRole(DEFAULT_ADMIN_ROLE){ require(PresaleLive==true,"Presale has already ended"); PresaleLive=false; } function endSale() external onlyRole(DEFAULT_ADMIN_ROLE){ require(SaleLive==true,"Sale has already ended"); SaleLive=false; } function allowSwap() external onlyRole(DEFAULT_ADMIN_ROLE){ require(AllowSwapExistingUsers==false,"Swap is already live"); AllowSwapExistingUsers=true; } function stopSwap() external onlyRole(DEFAULT_ADMIN_ROLE){ require(AllowSwapExistingUsers==true,"Swap is already stopped"); AllowSwapExistingUsers=false; } function ADD_DEFAULT_ADMIN_ROLE(address account) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { grantRole(DEFAULT_ADMIN_ROLE, account); } function LEAVE_DEFAULT_ADMIN_ROLE() external virtual { renounceRole(DEFAULT_ADMIN_ROLE, msg.sender); } function ADD_PAUSER_ROLE(address account) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { grantRole(PAUSER_ROLE, account); } function LEAVE_PAUSER_ROLE() external virtual { renounceRole(PAUSER_ROLE, msg.sender); } function ADD_UPDATER_ROLE(address account) external virtual onlyRole(DEFAULT_ADMIN_ROLE) { grantRole(UPDATER_ROLE, account); } function LEAVE_UPDATER_ROLE() external virtual { renounceRole(UPDATER_ROLE, msg.sender); } function updateEtherPrice(uint price) external onlyRole(UPDATER_ROLE) { EtherPrice=price; } function setMerkleRoot(bytes32 _newRoot) external onlyRole(DEFAULT_ADMIN_ROLE) { root=_newRoot; } function isValid(bytes32[] memory proof, bytes32 leaf) public view returns (bool) { return MerkleProof.verify(proof, root, leaf); } function pauseUnpauseNFTsTransfer(uint256 _round, bool flip) external onlyRole(DEFAULT_ADMIN_ROLE){ require(_round >= 0 && _round <= 10); stopTransfer[_round] = flip; } function updatePriceCard(uint256 round, uint256[] memory updatedValues) external onlyRole(DEFAULT_ADMIN_ROLE) { require(round >= 1 && round <= 10); require(updatedValues.length == 6, "Invalid updatedValues array size"); for (uint256 i = 0; i < updatedValues.length; i++) { priceCardInDollar[round][i] = updatedValues[i]; } } // Token value 0 - USDT // Token value 1 - USDC // Token value 2 - DAI // Token value 3 - BUSD // Token value 4 - Ethers function AlterPayment(uint256 token) external onlyRole(DEFAULT_ADMIN_ROLE){ paymentPermitted[token] = !paymentPermitted[token]; } function reveal(uint256 _round) external onlyRole(DEFAULT_ADMIN_ROLE) { roundReveal[_round] = true; } function updateDiscountPercentage(uint _discountPercentage) external onlyRole(DEFAULT_ADMIN_ROLE){ require(_discountPercentage<1000,"Discount can not be more than 100%"); Discount=_discountPercentage; } function withdrawEthers(address to,uint amount) external onlyRole(DEFAULT_ADMIN_ROLE) { (bool success, ) = (to).call{value: amount}(""); require(success, "Failed to send ethers"); } function withdrawTokens(uint token, address to, uint amount) external onlyRole(DEFAULT_ADMIN_ROLE) { ERC20(SupportedCryptos[token]).transfer(to,amount); } function updateBaseUri(string memory _newbaseURI) onlyRole(DEFAULT_ADMIN_ROLE) external { baseURI = _newbaseURI; } function pause() external onlyRole(PAUSER_ROLE) { _pause(); } function _checkInRoundCap(uint256 _value) internal view returns (bool) { for (uint i = 0; i < roundCap.length; i++) { if (_value == roundCap[i]) { return true; } } return false; } function unpause(uint _etherPrice, uint _discountPercentage, bool _isRoundEnd) external onlyRole(PAUSER_ROLE) { require(_discountPercentage<1000,"Discount can not be more than 100%"); if(_isRoundEnd && _gloablId.current()!=10000){ require(_checkInRoundCap(_gloablId.current()),"Tier hasn't come to an end yet!"); uint8 current = uint8(currentState); currentState = CurrentState(current + 1); Round+=1; } EtherPrice =_etherPrice; Discount=_discountPercentage; _unpause(); } function _baseURI() internal view override returns (string memory) { return baseURI; } function getPriceForARound(bool isEther,uint256 decimal,uint256 round, uint256 discount) external view returns (uint256[] memory) { uint256[] memory prices = new uint256[](6); for (uint256 i = 0; i < 6; i++) { if (isEther) { if (i == 5) { uint256 amountinWei = (priceCardInDollar[round][i] *10 *(10**20)*(1000-discount)) / (EtherPrice*1000); prices[i] = amountinWei; } else { uint256 amountinWei = (priceCardInDollar[round][i] *(i + 1) *(10**20)*(1000-discount)) / (EtherPrice*1000); prices[i] = amountinWei; } } else { if (i == 5) { uint256 amount = (priceCardInDollar[round][i] *10 *(10**decimal)*(1000-discount))/1000; prices[i] = amount; } else { uint256 amount = (priceCardInDollar[round][i] *(i + 1) *(10**decimal)*(1000-discount))/1000; prices[i] = amount; } } } return prices; } function getNextTokenId() external view returns (uint256) { return _gloablId.current(); } function totalSupply() external view returns (uint256) { return NFTCount; } function contractBalance() external view returns (uint256) { return address(this).balance; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override { if(from != address(0) && to!= address(0)){ if (!stopTransfer[0] && (tokenId >= 0 && tokenId <= 494)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[1] && (tokenId >= 495 && tokenId <= 844)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[2] &&(tokenId >= 845 && tokenId <= 1344)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[3] &&(tokenId >= 1345 && tokenId <= 2094)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[4] && (tokenId >= 2095 && tokenId <= 3135)){ revert("Owner has paused the transfer for this round"); } if (!stopTransfer[5] && (tokenId >= 3136 && tokenId <= 4279)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[6] &&(tokenId >= 4280 && tokenId <= 5423)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[7] &&(tokenId >= 5424 && tokenId <= 6567)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[8] &&(tokenId >= 6568 && tokenId <= 7711)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[9] &&(tokenId >= 7712 && tokenId <= 8855)) { revert("Owner has paused the transfer for this round"); } if (!stopTransfer[10] &&(tokenId >= 8856 && tokenId <= 9999)) { revert("Owner has paused the transfer for this round"); } } super._beforeTokenTransfer(from, to, tokenId); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyRole(DEFAULT_ADMIN_ROLE) { _setDefaultRoyalty(_receiver, _royaltyFeesInBips); } function supportsInterface(bytes4 interfaceId) public view override(ERC721,AccessControl,ERC2981) returns (bool){ return interfaceId == 0x2a55205a || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// 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 (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.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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) (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 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 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 (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
{ "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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"ADD_DEFAULT_ADMIN_ROLE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"ADD_PAUSER_ROLE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"ADD_UPDATER_ROLE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"AllowSwapExistingUsers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"}],"name":"AlterPayment","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Discount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EtherPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ExistingERC1155","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEAVE_DEFAULT_ADMIN_ROLE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"LEAVE_PAUSER_ROLE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"LEAVE_UPDATER_ROLE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PresaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Round","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"SupportedCryptos","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"batchAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"token","type":"uint8"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"batchMintUsingCryptoCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"batchMintWhiteList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"token","type":"uint8"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"batchMintWhiteListUsingCryptoCurrency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"NFTs","type":"uint256[]"}],"name":"batchSwapExistingUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"enum Crypt3dpunks.CurrentState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"isEther","type":"bool"},{"internalType":"uint256","name":"decimal","type":"uint256"},{"internalType":"uint256","name":"round","type":"uint256"},{"internalType":"uint256","name":"discount","type":"uint256"}],"name":"getPriceForARound","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_round","type":"uint256"},{"internalType":"bool","name":"flip","type":"bool"}],"name":"pauseUnpauseNFTsTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paymentPermitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"priceCardInDollar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_round","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roundCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roundReveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stopTransfer","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_etherPrice","type":"uint256"},{"internalType":"uint256","name":"_discountPercentage","type":"uint256"},{"internalType":"bool","name":"_isRoundEnd","type":"bool"}],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newbaseURI","type":"string"}],"name":"updateBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_discountPercentage","type":"uint256"}],"name":"updateDiscountPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updateEtherPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"},{"internalType":"uint256[]","name":"updatedValues","type":"uint256[]"}],"name":"updatePriceCard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEthers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60646101e0818152610200829052610220829052610240829052610260829052610280919091526080908152608c6102a081815260856102c0819052607e6102e081905260776103005260706103205260626103405260a09283526093610360818152610380959095526103a092909252607d6103c05260766103e05260676104005260c093909352609b61042090815261044091909152608b610460526084610480819052607c6104a052606d6104c05260e09190915260a36104e0908152609a610500526091610520819052608a6105408190526082610560526072610580526101009290925260ab6105a090815260a26105c05260996105e08190526106008390526089610620526078610640526101209190915260b361066081815260aa610680526106a087905260986106c052608f6106e052610700979097526101409690965260bc6107208181526107409790975260a9610760526107809590955260976107a0526107c0939093526101609490945260c56107e08181526108009490945260b26108205260a861084052609e61086052610880919091526101809290925260cf6108a08181526108c09390935260bb6108e05260b06109005260a661092052610940939093526101a091909152610a2060405260da6109609081526109809290925260c46109a05260b96109c05260ae6109e052610a00526101c0526200021290601590600b62000ad2565b5060408051610160810182526101ef815261034d60208201526105419181019190915261082f6060820152610c4060808201526110b860a082015261153060c08201526119a860e0820152611e206101008201526122986101208201526127106101408201526200028890601690600b62000b30565b506040805160a081018252600180825260208201819052918101829052606081018290526080810191909152620002c490602190600562000b75565b506040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101919091526200032e90602290600b62000b75565b50604051806060016040528060318152602001620064dd6031913960239062000358908262000d48565b506025805460ff191660011790553480156200037357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a43797074336470756e6b7360a81b8152506040518060400160405280600781526020016610d49654150cd160ca1b8152508160009081620003e0919062000d48565b506001620003ef828262000d48565b50506006805460ff19169055506daaeb6d7670e522a718067333cd4e3b15620005415780156200048f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200047057600080fd5b505af115801562000485573d6000803e3d6000fd5b5050505062000541565b6001600160a01b03821615620004e05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000455565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200052757600080fd5b505af11580156200053c573d6000803e3d6000fd5b505050505b50620005519050600033620006a5565b6200057260007303717989289c46a101a18b0a3e0ca8dffb92a5a5620006a5565b6200059e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620006a5565b620005b9600080516020620064bd83398151915233620006a5565b620005e8600080516020620064bd833981519152733943afed89b68060105a51285d548464b115aee0620006a5565b6200060a737c781885b5fec8fe40b3625ca54aa8688e4d6a9c6101f462000730565b601180546001600160a01b031990811673dac17f958d2ee523a2206206994597c13d831ec71790915560128054821673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48179055601380548216736b175474e89094c44da98b954eedeac495271d0f17905560148054909116734fabb145d64652a948d72533023f6e7a623c7c531790556202ea18600b556000600c556001600d5562000f5e565b620006b182826200074e565b6200072c5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006eb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006200073d816200077b565b6200074983836200078a565b505050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b6200078781336200088f565b50565b6127106001600160601b0382161115620007fe5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620008565760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620007f5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6200089b82826200074e565b6200072c57620008c1816001600160a01b031660146200091260201b62002b191760201c565b620008d783602062002b1962000912821b17811c565b604051602001620008ea92919062000e50565b60408051601f198184030181529082905262461bcd60e51b8252620007f59160040162000ec9565b606060006200092383600262000f14565b6200093090600262000f2e565b6001600160401b038111156200094a576200094a62000ca4565b6040519080825280601f01601f19166020018201604052801562000975576020820181803683370190505b509050600360fc1b8160008151811062000993576200099362000e14565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110620009c557620009c562000e14565b60200101906001600160f81b031916908160001a9053506000620009eb84600262000f14565b620009f890600162000f2e565b90505b600181111562000a7a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000a305762000a3062000e14565b1a60f81b82828151811062000a495762000a4962000e14565b60200101906001600160f81b031916908160001a90535060049490941c9362000a728162000f44565b9050620009fb565b50831562000acb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401620007f5565b9392505050565b82805482825590600052602060002090810192821562000b1e579160200282015b8281111562000b1e57825162000b0d908390600662000c09565b509160200191906001019062000af3565b5062000b2c92915062000c4c565b5090565b82600b810192821562000b67579160200282015b8281111562000b67578251829061ffff1690559160200191906001019062000b44565b5062000b2c92915062000c6d565b60018301918390821562000b675791602002820160005b8382111562000bcb57835183826101000a81548160ff021916908315150217905550926020019260010160208160000104928301926001030262000b8c565b801562000bfa5782816101000a81549060ff021916905560010160208160000104928301926001030262000bcb565b505062000b2c92915062000c6d565b82805482825590600052602060002090810192821562000b67579160200282015b8281111562000b67578251829060ff1690559160200191906001019062000c2a565b8082111562000b2c57600062000c63828262000c84565b5060010162000c4c565b5b8082111562000b2c576000815560010162000c6e565b508054600082559060005260206000209081019062000787919062000c6d565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000ccf57607f821691505b60208210810362000cf057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200074957600081815260208120601f850160051c8101602086101562000d1f5750805b601f850160051c820191505b8181101562000d405782815560010162000d2b565b505050505050565b81516001600160401b0381111562000d645762000d6462000ca4565b62000d7c8162000d75845462000cba565b8462000cf6565b602080601f83116001811462000db4576000841562000d9b5750858301515b600019600386901b1c1916600185901b17855562000d40565b600085815260208120601f198616915b8281101562000de55788860151825594840194600190910190840162000dc4565b508582101562000e045787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b60005b8381101562000e4757818101518382015260200162000e2d565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000e8a81601785016020880162000e2a565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000ebd81602884016020880162000e2a565b01602801949350505050565b602081526000825180602084015262000eea81604085016020870162000e2a565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000775576200077562000efe565b8082018082111562000775576200077562000efe565b60008162000f565762000f5662000efe565b506000190190565b61554f8062000f6e6000396000f3fe60806040526004361061045d5760003560e01c806375f6fb9c1161023f578063b88d4fde11610139578063e0271e0f116100b6578063ebf0c7171161007a578063ebf0c71714610d48578063f8b6f79b14610d5e578063f94ecbf114610d7e578063fa4b5daf14610d9e578063fecf995914610dbe57600080fd5b8063e0271e0f14610c88578063e1594bc714610ca8578063e63ab1e914610cbd578063e985e9c514610cdf578063eac48f2214610d2857600080fd5b8063c63ccb3b116100fd578063c63ccb3b14610bfd578063c87b56dd14610c13578063caa0f92a14610c33578063cd48d88e14610c48578063d547741f14610c6857600080fd5b8063b88d4fde14610b6a578063b8a20ed014610b8a578063c2ca0ac514610baa578063c2f637dc14610bca578063c5ce2e2614610bdd57600080fd5b806391d14854116101c7578063a22cb4651161018b578063a22cb46514610aeb578063a43be57b14610b0b578063b49622c214610b20578063b633b36414610b40578063b66a0e5d14610b5557600080fd5b806391d1485414610a5457806395d89b4114610a745780639bd6ddb814610a895780639edfbec914610ab6578063a217fddf14610ad657600080fd5b80638045c3841161020e5780638045c384146109e15780638456cb59146109f65780638b7afe2e14610a0b5780638f7678e614610a1e578063916df92a14610a3e57600080fd5b806375f6fb9c1461097357806379886b9d1461098d5780637a57948c146109a25780637cb64759146109c157600080fd5b806336568abe1161035b5780635971009b116102d857806366e5cb501161029c57806366e5cb50146108e55780636c0360eb1461091557806370a082311461092a57806370d5ae051461094a578063744bf3ae1461096057600080fd5b80635971009b1461084d5780635c975abb1461086d5780636352211e1461088557806364d48c00146108a55780636679f298146108c557600080fd5b806342842e0e1161031f57806342842e0e146107ab57806342966c68146107cb57806347e63380146107eb5780634c9c51841461080d57806355cff1461461082d57600080fd5b806336568abe14610714578063380d831b1461073457806339f7e37f146107495780633cbef4e51461076957806341f434341461078957600080fd5b80630dcec63d116103e957806326c2108c116103ad57806326c2108c1461066057806329504e26146106805780632a55205a146106955780632f2ff15d146106d4578063354ebd25146106f457600080fd5b80630dcec63d146105bb57806311f33fa5146105db57806318160ddd146105fb57806323b872dd14610610578063248a9ca31461063057600080fd5b8063081812fc11610430578063081812fc146104f057806308d8e6321461052857806308e4fd9c14610550578063095ea7b3146105745780630c3f6acf1461059457600080fd5b806301ffc9a71461046257806302fa7c471461049757806304c98b2b146104b957806306fdde03146104ce575b600080fd5b34801561046e57600080fd5b5061048261047d3660046146da565b610dde565b60405190151581526020015b60405180910390f35b3480156104a357600080fd5b506104b76104b2366004614713565b610e09565b005b3480156104c557600080fd5b506104b7610e23565b3480156104da57600080fd5b506104e3610e96565b60405161048e91906147a6565b3480156104fc57600080fd5b5061051061050b3660046147b9565b610f28565b6040516001600160a01b03909116815260200161048e565b34801561053457600080fd5b5061051073a50c349912739a4fe4e50bafd3d8689210642d8881565b34801561055c57600080fd5b50610566600b5481565b60405190815260200161048e565b34801561058057600080fd5b506104b761058f3660046147d2565b610f4f565b3480156105a057600080fd5b506025546105ae9060ff1681565b60405161048e9190614812565b3480156105c757600080fd5b506104b76105d63660046147b9565b610f63565b3480156105e757600080fd5b506104b76105f6366004614848565b610f81565b34801561060757600080fd5b50600f54610566565b34801561061c57600080fd5b506104b761062b366004614881565b6110c3565b34801561063c57600080fd5b5061056661064b3660046147b9565b60009081526007602052604090206001015490565b34801561066c57600080fd5b506010546104829062010000900460ff1681565b34801561068c57600080fd5b506104b76110e8565b3480156106a157600080fd5b506106b56106b03660046148bd565b611102565b604080516001600160a01b03909316835260208301919091520161048e565b3480156106e057600080fd5b506104b76106ef3660046148df565b6111ae565b34801561070057600080fd5b506104b761070f3660046149df565b6111d3565b34801561072057600080fd5b506104b761072f3660046148df565b6113ea565b34801561074057600080fd5b506104b7611468565b34801561075557600080fd5b506104b7610764366004614a8e565b6114d7565b34801561077557600080fd5b506104b7610784366004614ad6565b6114ee565b34801561079557600080fd5b506105106daaeb6d7670e522a718067333cd4e81565b3480156107b757600080fd5b506104b76107c6366004614881565b611511565b3480156107d757600080fd5b506104b76107e63660046147b9565b611536565b3480156107f757600080fd5b506105666000805160206154da83398151915281565b34801561081957600080fd5b506104b76108283660046147b9565b611569565b34801561083957600080fd5b506105666108483660046148bd565b6115d4565b34801561085957600080fd5b506104b76108683660046147b9565b611611565b34801561087957600080fd5b5060065460ff16610482565b34801561089157600080fd5b506105106108a03660046147b9565b611643565b3480156108b157600080fd5b506104b76108c0366004614ad6565b6116a3565b3480156108d157600080fd5b506104b76108e0366004614ad6565b6116b9565b3480156108f157600080fd5b506104826109003660046147b9565b60246020526000908152604090205460ff1681565b34801561092157600080fd5b506104e36116dc565b34801561093657600080fd5b50610566610945366004614ad6565b61176a565b34801561095657600080fd5b5061051061dead81565b6104b761096e366004614af1565b6117f0565b34801561097f57600080fd5b506010546104829060ff1681565b34801561099957600080fd5b506104b7611a2a565b3480156109ae57600080fd5b5060105461048290610100900460ff1681565b3480156109cd57600080fd5b506104b76109dc3660046147b9565b611a99565b3480156109ed57600080fd5b506104b7611aaa565b348015610a0257600080fd5b506104b7611ac2565b348015610a1757600080fd5b5047610566565b348015610a2a57600080fd5b506104b7610a393660046147d2565b611ae2565b348015610a4a57600080fd5b50610566600d5481565b348015610a6057600080fd5b50610482610a6f3660046148df565b611b88565b348015610a8057600080fd5b506104e3611bb3565b348015610a9557600080fd5b50610aa9610aa4366004614b37565b611bc2565b60405161048e9190614b72565b348015610ac257600080fd5b506104b7610ad1366004614bb6565b611e58565b348015610ae257600080fd5b50610566600081565b348015610af757600080fd5b506104b7610b06366004614c2a565b611f64565b348015610b1757600080fd5b506104b7611f78565b348015610b2c57600080fd5b50610482610b3b3660046147b9565b611fe7565b348015610b4c57600080fd5b506104b7612011565b348015610b6157600080fd5b506104b7612088565b348015610b7657600080fd5b506104b7610b85366004614c56565b6120f4565b348015610b9657600080fd5b50610482610ba5366004614cd1565b612121565b348015610bb657600080fd5b506104b7610bc53660046147b9565b612137565b6104b7610bd83660046148df565b612157565b348015610be957600080fd5b50610510610bf83660046147b9565b612328565b348015610c0957600080fd5b50610566600c5481565b348015610c1f57600080fd5b506104e3610c2e3660046147b9565b612348565b348015610c3f57600080fd5b506105666123ae565b348015610c5457600080fd5b506104b7610c63366004614af1565b6123bf565b348015610c7457600080fd5b506104b7610c833660046148df565b6124a8565b348015610c9457600080fd5b50610566610ca33660046147b9565b6124cd565b348015610cb457600080fd5b506104b76124e4565b348015610cc957600080fd5b506105666000805160206154fa83398151915281565b348015610ceb57600080fd5b50610482610cfa366004614d15565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610d3457600080fd5b506104b7610d43366004614d3f565b6124ef565b348015610d5457600080fd5b50610566600e5481565b348015610d6a57600080fd5b506104b7610d79366004614d64565b612529565b348015610d8a57600080fd5b50610482610d993660046147b9565b6126b6565b348015610daa57600080fd5b506104b7610db9366004614da2565b6126c6565b348015610dca57600080fd5b506104b7610dd9366004614dd6565b612a85565b600063152a902d60e11b6001600160e01b031983161480610e035750610e0382612cb4565b92915050565b6000610e1481612cd9565b610e1e8383612ce3565b505050565b6000610e2e81612cd9565b60105460ff1615610e865760405162461bcd60e51b815260206004820152601760248201527f50726573616c6520697320616c7265616479206c69766500000000000000000060448201526064015b60405180910390fd5b506010805460ff19166001179055565b606060008054610ea590614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed190614dfb565b8015610f1e5780601f10610ef357610100808354040283529160200191610f1e565b820191906000526020600020905b815481529060010190602001808311610f0157829003601f168201915b5050505050905090565b6000610f3382612de0565b506000908152600460205260409020546001600160a01b031690565b81610f5981612e3f565b610e1e8383612ef8565b6000805160206154da833981519152610f7b81612cd9565b50600b55565b6000805160206154fa833981519152610f9981612cd9565b6103e88310610fba5760405162461bcd60e51b8152600401610e7d90614e35565b818015610fd25750610fcc600a613008565b61271014155b156110ab57610fe9610fe4600a613008565b613019565b6110355760405162461bcd60e51b815260206004820152601f60248201527f54696572206861736e277420636f6d6520746f20616e20656e642079657421006044820152606401610e7d565b60255460009060ff16600c81111561104f5761104f6147fc565b905061105c816001614e8d565b60ff16600c811115611070576110706147fc565b6025805460ff1916600183600c81111561108c5761108c6147fc565b02179055506001600d60008282546110a49190614ea6565b9091555050505b600b849055600c8390556110bd613065565b50505050565b826001600160a01b03811633146110dd576110dd33612e3f565b6110bd8484846130b7565b6111006000805160206154da833981519152336113ea565b565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111775750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611196906001600160601b031687614eb9565b6111a09190614ee6565b915196919550909350505050565b6000828152600760205260409020600101546111c981612cd9565b610e1e83836130e7565b6111db61316d565b60ff831682600160105460ff1661122e5760405162461bcd60e51b8152602060048201526017602482015276141c9954d85b19481a5cc81b9bdd081b1a5d99481e595d604a1b6044820152606401610e7d565b600483111561124f5760405162461bcd60e51b8152600401610e7d90614efa565b6021836005811061126257611262614f29565b602081049091015460ff601f9092166101000a9004166112945760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806112a35750816002145b806112ae5750816003145b806112b95750816004145b806112c45750816005145b806112cf575081600a145b6112eb5760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061130057611300614f29565b01548261130d600a613008565b6113179190614ea6565b11156113355760405162461bcd60e51b8152600401610e7d90614fad565b6040516bffffffffffffffffffffffff193360601b1660208201526113759085906034015b60405160208183030381529060405280519060200120612121565b6113bb5760405162461bcd60e51b8152602060048201526017602482015276139bdd0818481c185c9d081bd988105b1b1bdddb1a5cdd604a1b6044820152606401610e7d565b6113d88660ff1686600c546103e86113d39190614ff7565b6131b3565b6113e285336135ed565b505050505050565b6001600160a01b038116331461145a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e7d565b6114648282613682565b5050565b600061147381612cd9565b60105460ff6101009091041615156001146114c95760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b6044820152606401610e7d565b506010805461ff0019169055565b60006114e281612cd9565b6023610e1e8382615050565b60006114f981612cd9565b6114646000805160206154fa833981519152836111ae565b826001600160a01b038116331461152b5761152b33612e3f565b6110bd8484846136e9565b611541335b82613704565b61155d5760405162461bcd60e51b8152600401610e7d9061510f565b61156681613782565b50565b600061157481612cd9565b6021826005811061158757611587614f29565b602081049091015460ff601f9092166101000a90041615602183600581106115b1576115b1614f29565b602091828204019190066101000a81548160ff0219169083151502179055505050565b601582815481106115e457600080fd5b9060005260206000200181815481106115fc57600080fd5b90600052602060002001600091509150505481565b600061161c81612cd9565b6103e8821061163d5760405162461bcd60e51b8152600401610e7d90614e35565b50600c55565b6000818152600260205260408120546001600160a01b031680610e035760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e7d565b60006116ae81612cd9565b6114646000836111ae565b60006116c481612cd9565b6114646000805160206154da833981519152836111ae565b602380546116e990614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461171590614dfb565b80156117625780601f1061173757610100808354040283529160200191611762565b820191906000526020600020905b81548152906001019060200180831161174557829003601f168201915b505050505081565b60006001600160a01b0382166117d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610e7d565b506001600160a01b031660009081526003602052604090205490565b6117f861316d565b600482600160105460ff166118495760405162461bcd60e51b8152602060048201526017602482015276141c9954d85b19481a5cc81b9bdd081b1a5d99481e595d604a1b6044820152606401610e7d565b600483111561186a5760405162461bcd60e51b8152600401610e7d90614efa565b6021836005811061187d5761187d614f29565b602081049091015460ff601f9092166101000a9004166118af5760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806118be5750816002145b806118c95750816003145b806118d45750816004145b806118df5750816005145b806118ea575081600a145b6119065760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061191b5761191b614f29565b015482611928600a613008565b6119329190614ea6565b11156119505760405162461bcd60e51b8152600401610e7d90614fad565b6040516bffffffffffffffffffffffff193360601b16602082015261197990859060340161135a565b6119bf5760405162461bcd60e51b8152602060048201526017602482015276139bdd0818481c185c9d081bd988105b1b1bdddb1a5cdd604a1b6044820152606401610e7d565b60006119da86600c546103e86119d59190614ff7565b613829565b905080341015611a205760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682065746865727360781b6044820152606401610e7d565b6113e286336135ed565b6000611a3581612cd9565b60105462010000900460ff1615611a855760405162461bcd60e51b81526020600482015260146024820152735377617020697320616c7265616479206c69766560601b6044820152606401610e7d565b506010805462ff0000191662010000179055565b6000611aa481612cd9565b50600e55565b6111006000805160206154fa833981519152336113ea565b6000805160206154fa833981519152611ada81612cd9565b611566613949565b6000611aed81612cd9565b6000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114611b3a576040519150601f19603f3d011682016040523d82523d6000602084013e611b3f565b606091505b50509050806110bd5760405162461bcd60e51b81526020600482015260156024820152744661696c656420746f2073656e642065746865727360581b6044820152606401610e7d565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610ea590614dfb565b60408051600680825260e08201909252606091600091906020820160c08036833701905050905060005b6006811015611e4c578615611d205780600503611cb4576000600b546103e8611c159190614eb9565b611c21866103e8614ff7565b60158881548110611c3457611c34614f29565b906000526020600020018481548110611c4f57611c4f614f29565b9060005260206000200154600a611c669190614eb9565b611c799068056bc75e2d63100000614eb9565b611c839190614eb9565b611c8d9190614ee6565b905080838381518110611ca257611ca2614f29565b60200260200101818152505050611e3a565b6000600b546103e8611cc69190614eb9565b611cd2866103e8614ff7565b611cdd846001614ea6565b60158981548110611cf057611cf0614f29565b906000526020600020018581548110611d0b57611d0b614f29565b9060005260206000200154611c669190614eb9565b80600503611d915760006103e8611d378682614ff7565b611d4289600a615241565b60158981548110611d5557611d55614f29565b906000526020600020018581548110611d7057611d70614f29565b9060005260206000200154600a611d879190614eb9565b611c799190614eb9565b60006103e8611da08682614ff7565b611dab89600a615241565b611db6856001614ea6565b60158a81548110611dc957611dc9614f29565b906000526020600020018681548110611de457611de4614f29565b9060005260206000200154611df99190614eb9565b611e039190614eb9565b611e0d9190614eb9565b611e179190614ee6565b905080838381518110611e2c57611e2c614f29565b602002602001018181525050505b80611e448161524d565b915050611bec565b5090505b949350505050565b6000611e6381612cd9565b600d548290601690600b8110611e7b57611e7b614f29565b015481611e88600a613008565b611e929190614ea6565b1115611eb05760405162461bcd60e51b8152600401610e7d90615266565b60005b81811015611f28576000611ec7600a613008565b9050611ed7600a80546001019055565b611f07868684818110611eec57611eec614f29565b9050602002016020810190611f019190614ad6565b82613986565b6001600f6000828254611f1a9190614ea6565b909155505050600101611eb3565b506016600d54600b8110611f3e57611f3e614f29565b0154611f4a600a613008565b036110bd576025805460ff1916600b1790556110bd613949565b81611f6e81612e3f565b610e1e83836139a0565b6000611f8381612cd9565b60105460ff161515600114611fda5760405162461bcd60e51b815260206004820152601960248201527f50726573616c652068617320616c726561647920656e646564000000000000006044820152606401610e7d565b506010805460ff19169055565b602281600b8110611ff757600080fd5b60209182820401919006915054906101000a900460ff1681565b600061201c81612cd9565b60105462010000900460ff1615156001146120795760405162461bcd60e51b815260206004820152601760248201527f5377617020697320616c72656164792073746f707065640000000000000000006044820152606401610e7d565b506010805462ff000019169055565b600061209381612cd9565b601054610100900460ff16156120e25760405162461bcd60e51b815260206004820152601460248201527353616c6520697320616c7265616479206c69766560601b6044820152606401610e7d565b506010805461ff001916610100179055565b836001600160a01b038116331461210e5761210e33612e3f565b61211a858585856139ab565b5050505050565b600061213083600e54846139dd565b9392505050565b600061214281612cd9565b6001602283600b81106115b1576115b1614f29565b61215f61316d565b6004826000601054610100900460ff166121b25760405162461bcd60e51b815260206004820152601460248201527314d85b19481a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610e7d565b60048311156121d35760405162461bcd60e51b8152600401610e7d90614efa565b602183600581106121e6576121e6614f29565b602081049091015460ff601f9092166101000a9004166122185760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806122275750816002145b806122325750816003145b8061223d5750816004145b806122485750816005145b80612253575081600a145b61226f5760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061228457612284614f29565b015482612291600a613008565b61229b9190614ea6565b11156122b95760405162461bcd60e51b8152600401610e7d90614fad565b6122c4600033611b88565b61231e5760006122d6866103e8613829565b90508034101561231c5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682065746865727360781b6044820152606401610e7d565b505b61211a85856135ed565b6011816004811061233857600080fd5b01546001600160a01b0316905081565b606061235382612de0565b600061235d6139f3565b9050600081511161237d5760405180602001604052806000815250612130565b8061238784613a02565b6040516020016123989291906152b0565b6040516020818303038152906040529392505050565b60006123ba600a613008565b905090565b60006123ca81612cd9565b600183101580156123dc5750600a8311155b6123e557600080fd5b81516006146124365760405162461bcd60e51b815260206004820181905260248201527f496e76616c6964207570646174656456616c7565732061727261792073697a656044820152606401610e7d565b60005b82518110156110bd5782818151811061245457612454614f29565b60200260200101516015858154811061246f5761246f614f29565b90600052602060002001828154811061248a5761248a614f29565b600091825260209091200155806124a08161524d565b915050612439565b6000828152600760205260409020600101546124c381612cd9565b610e1e8383613682565b601681600b81106124dd57600080fd5b0154905081565b6111006000336113ea565b60006124fa81612cd9565b600a83111561250857600080fd5b50600091825260246020526040909120805460ff1916911515919091179055565b61253161316d565b60ff8316826000601054610100900460ff166125865760405162461bcd60e51b815260206004820152601460248201527314d85b19481a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610e7d565b60048311156125a75760405162461bcd60e51b8152600401610e7d90614efa565b602183600581106125ba576125ba614f29565b602081049091015460ff601f9092166101000a9004166125ec5760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806125fb5750816002145b806126065750816003145b806126115750816004145b8061261c5750816005145b80612627575081600a145b6126435760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061265857612658614f29565b015482612665600a613008565b61266f9190614ea6565b111561268d5760405162461bcd60e51b8152600401610e7d90614fad565b612698600033611b88565b6126ac576126ac8660ff16866103e86131b3565b6113e285856135ed565b60218160058110611ff757600080fd5b6126ce61316d565b60105462010000900460ff1615156001146127375760405162461bcd60e51b8152602060048201526024808201527f537761702066756e6374696f6e2069732070617573656420627920746865206f6044820152633bb732b960e11b6064820152608401610e7d565b6016600d54600b811061274c5761274c614f29565b0154815161275a600a613008565b6127649190614ea6565b11156127825760405162461bcd60e51b8152600401610e7d90615266565b60005b8151811015612a4957600173a50c349912739a4fe4e50bafd3d8689210642d886001600160a01b031662fdd58e338585815181106127c5576127c5614f29565b60200260200101516040518363ffffffff1660e01b81526004016127fe9291906001600160a01b03929092168252602082015260400190565b602060405180830381865afa15801561281b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283f91906152df565b10156128865760405162461bcd60e51b8152602060048201526016602482015275165bdd48191bdb89dd081bdddb881d1a1a5cc813919560521b6044820152606401610e7d565b60166000015482828151811061289e5761289e614f29565b6020026020010151106128ff5760405162461bcd60e51b8152602060048201526024808201527f53776170204e46542069642063616e206e6f74206265206d6f72652074686174604482015263080d0e4d60e21b6064820152608401610e7d565b73a50c349912739a4fe4e50bafd3d8689210642d886001600160a01b031663f242432a3361dead85858151811061293857612938614f29565b602002602001015160016040518563ffffffff1660e01b81526004016129a194939291906001600160a01b0394851681529290931660208301526040820152606081019190915260a060808201819052600490820152630307830360e41b60c082015260e00190565b600060405180830381600087803b1580156129bb57600080fd5b505af11580156129cf573d6000803e3d6000fd5b505050506129f6338383815181106129e9576129e9614f29565b6020026020010151613986565b6000612a02600a613008565b9050612a12600a80546001019055565b612a1c3382613986565b6002600f6000828254612a2f9190614ea6565b90915550829150612a4190508161524d565b915050612785565b506016600d54600b8110612a5f57612a5f614f29565b0154612a6b600a613008565b03611566576025805460ff1916600b179055611566613949565b6000612a9081612cd9565b60118460048110612aa357612aa3614f29565b015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af1158015612af5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211a91906152f8565b60606000612b28836002614eb9565b612b33906002614ea6565b6001600160401b03811115612b4a57612b4a61491a565b6040519080825280601f01601f191660200182016040528015612b74576020820181803683370190505b509050600360fc1b81600081518110612b8f57612b8f614f29565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612bbe57612bbe614f29565b60200101906001600160f81b031916908160001a9053506000612be2846002614eb9565b612bed906001614ea6565b90505b6001811115612c65576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c2157612c21614f29565b1a60f81b828281518110612c3757612c37614f29565b60200101906001600160f81b031916908160001a90535060049490941c93612c5e81615315565b9050612bf0565b5083156121305760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e7d565b60006001600160e01b0319821663152a902d60e11b1480610e035750610e0382613b02565b6115668133613b27565b6127106001600160601b0382161115612d515760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610e7d565b6001600160a01b038216612da75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610e7d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6000818152600260205260409020546001600160a01b03166115665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e7d565b6daaeb6d7670e522a718067333cd4e3b1561156657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed091906152f8565b61156657604051633b79c77360e21b81526001600160a01b0382166004820152602401610e7d565b6000612f0382611643565b9050806001600160a01b0316836001600160a01b031603612f705760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e7d565b336001600160a01b0382161480612f8c5750612f8c8133610cfa565b612ffe5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610e7d565b610e1e8383613b8b565b8054600090610e03906101ef614ea6565b6000805b600b81101561305c57601681600b811061303957613039614f29565b0154830361304a5750600192915050565b806130548161524d565b91505061301d565b50600092915050565b61306d613bf9565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6130c03361153b565b6130dc5760405162461bcd60e51b8152600401610e7d9061510f565b610e1e838383613c42565b6130f18282611b88565b6114645760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556131293390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60065460ff16156111005760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e7d565b6000601184600481106131c8576131c8614f29565b0160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af115801561321c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613240919061532c565b9050600083600a14613427576000613259600186614ff7565b90506103e8858561326b86600a615349565b6015600d548154811061328057613280614f29565b90600052602060002001858154811061329b5761329b614f29565b90600052602060002001546132b09190614eb9565b6132ba9190614eb9565b6132c49190614eb9565b6132ce9190614ee6565b915081601187600481106132e4576132e4614f29565b01546040516370a0823160e01b81523360048201526001600160a01b03909116906370a08231906024016020604051808303816000875af115801561332d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061335191906152df565b10156133935760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820546f6b656e7360781b6044820152606401610e7d565b601186600481106133a6576133a6614f29565b01546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156133fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061342091906152f8565b505061211a565b6103e8848461343785600a615349565b6015600d548154811061344c5761344c614f29565b9060005260206000200160058154811061346857613468614f29565b906000526020600020015461347d9190614eb9565b6134879190614eb9565b6134919190614eb9565b61349b9190614ee6565b905080601186600481106134b1576134b1614f29565b01546040516370a0823160e01b81523360048201526001600160a01b03909116906370a08231906024016020604051808303816000875af11580156134fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351e91906152df565b10156135605760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820546f6b656e7360781b6044820152606401610e7d565b6011856004811061357357613573614f29565b01546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156135c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e291906152f8565b60005b82811015613666576000613604600a613008565b9050613614600a80546001019055565b61361e8382613986565b600d54600190920191601690600b811061363a5761363a614f29565b0154613646600a613008565b03613660576025805460ff1916600b179055613660613949565b506135f0565b5081600f60008282546136799190614ea6565b90915550505050565b61368c8282611b88565b156114645760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610e1e838383604051806020016040528060008152506120f4565b60008061371083611643565b9050806001600160a01b0316846001600160a01b0316148061375757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611e505750836001600160a01b031661377084610f28565b6001600160a01b031614949350505050565b600061378d82611643565b905061379b81600084613de9565b6137a6600083613b8b565b6001600160a01b03811660009081526003602052604081208054600192906137cf908490614ff7565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008083600a146138ca576000613841600186614ff7565b9050600b546103e86138539190614eb9565b85856015600d548154811061386a5761386a614f29565b90600052602060002001848154811061388557613885614f29565b906000526020600020015468056bc75e2d631000006138a49190614eb9565b6138ae9190614eb9565b6138b89190614eb9565b6138c29190614ee6565b915050612130565b600b546138d9906103e8614eb9565b84846015600d54815481106138f0576138f0614f29565b9060005260206000200160058154811061390c5761390c614f29565b906000526020600020015468056bc75e2d6310000061392b9190614eb9565b6139359190614eb9565b61393f9190614eb9565b611e509190614ee6565b61395161316d565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861309a3390565b611464828260405180602001604052806000815250614278565b6114643383836142ab565b6139b53383613704565b6139d15760405162461bcd60e51b8152600401610e7d9061510f565b6110bd84848484614379565b6000826139ea85846143ac565b14949350505050565b606060238054610ea590614dfb565b606081600003613a295750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a535780613a3d8161524d565b9150613a4c9050600a83614ee6565b9150613a2d565b6000816001600160401b03811115613a6d57613a6d61491a565b6040519080825280601f01601f191660200182016040528015613a97576020820181803683370190505b5090505b8415611e5057613aac600183614ff7565b9150613ab9600a86615358565b613ac4906030614ea6565b60f81b818381518110613ad957613ad9614f29565b60200101906001600160f81b031916908160001a905350613afb600a86614ee6565b9450613a9b565b60006001600160e01b03198216637965db0b60e01b1480610e035750610e03826143f9565b613b318282611b88565b61146457613b49816001600160a01b03166014612b19565b613b54836020612b19565b604051602001613b6592919061536c565b60408051601f198184030181529082905262461bcd60e51b8252610e7d916004016147a6565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613bc082611643565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60065460ff166111005760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e7d565b826001600160a01b0316613c5582611643565b6001600160a01b031614613cb95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610e7d565b6001600160a01b038216613d1b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e7d565b613d26838383613de9565b613d31600082613b8b565b6001600160a01b0383166000908152600360205260408120805460019290613d5a908490614ff7565b90915550506001600160a01b0382166000908152600360205260408120805460019290613d88908490614ea6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03831615801590613e0957506001600160a01b03821615155b15610e1e576000805260246020527fb7634ec2165a7280a285aac3ec10cf370eca86d8aa9d3243c90b2151434091ad5460ff16158015613e4b57506101ee8111155b15613e685760405162461bcd60e51b8152600401610e7d906153e1565b600160005260246020527fbbbb3b1da0cb0951f34c5e9db4606f934b7367b5284f29163e9e6fe67e1e97d65460ff16158015613eb357506101ef8110158015613eb3575061034c8111155b15613ed05760405162461bcd60e51b8152600401610e7d906153e1565b600260005260246020527f47bb5529a97e2b401b32950f6360fbc9e3f4e70b887dc0f9b9ad1f7402ca11da5460ff16158015613f1b575061034d8110158015613f1b57506105408111155b15613f385760405162461bcd60e51b8152600401610e7d906153e1565b600360005260246020527f8a6809e43cef135a96df89aa3c0800baae7c497913adf6156625c15a6f57cdf05460ff16158015613f8357506105418110158015613f83575061082e8111155b15613fa05760405162461bcd60e51b8152600401610e7d906153e1565b600460005260246020527fe0059098054d65c76a17a4d86f8572395c4d366a1d067b0643b918330bac9e155460ff16158015613feb575061082f8110158015613feb5750610c3f8111155b156140085760405162461bcd60e51b8152600401610e7d906153e1565b600560005260246020527ff737fbf41dafb4990088c527475c23d7ec8faec34b668fc96ba68bf83b8ad60b5460ff161580156140535750610c40811015801561405357506110b78111155b156140705760405162461bcd60e51b8152600401610e7d906153e1565b600660005260246020527f9aeda4bfc94a0967e92a3e3f48e3d01d74a39c4cff849e6ec9b6ae18b248bf445460ff161580156140bb57506110b881101580156140bb575061152f8111155b156140d85760405162461bcd60e51b8152600401610e7d906153e1565b600760005260246020527fc8063fc1c441a7c35622a029999f562fc3f4af6fb9445f9ed83a5a94f84407c25460ff161580156141235750611530811015801561412357506119a78111155b156141405760405162461bcd60e51b8152600401610e7d906153e1565b600860005260246020527f283ad1fa537f2bde05287a438aa5a837917793fc3ef421ca997bcba10fcd57b15460ff1615801561418b57506119a8811015801561418b5750611e1f8111155b156141a85760405162461bcd60e51b8152600401610e7d906153e1565b600960005260246020527fd15317c11e97357eac85a1b0ceb4d9eb990bb055e9d2fd4ec9602c7914b31ff65460ff161580156141f35750611e2081101580156141f357506122978111155b156142105760405162461bcd60e51b8152600401610e7d906153e1565b600a60005260246020527f58e3a833cb15d6f76c53a51c4f1055a3d0f1b35d372143cd8d886614508d45b15460ff1615801561425b5750612298811015801561425b575061270f8111155b15610e1e5760405162461bcd60e51b8152600401610e7d906153e1565b6142828383614449565b61428f6000848484614597565b610e1e5760405162461bcd60e51b8152600401610e7d9061542d565b816001600160a01b0316836001600160a01b03160361430c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e7d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614384848484613c42565b61439084848484614597565b6110bd5760405162461bcd60e51b8152600401610e7d9061542d565b600081815b84518110156143f1576143dd828683815181106143d0576143d0614f29565b6020026020010151614695565b9150806143e98161524d565b9150506143b1565b509392505050565b60006001600160e01b031982166380ac58cd60e01b148061442a57506001600160e01b03198216635b5e139f60e01b145b80610e0357506301ffc9a760e01b6001600160e01b0319831614610e03565b6001600160a01b03821661449f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e7d565b6000818152600260205260409020546001600160a01b0316156145045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e7d565b61451060008383613de9565b6001600160a01b0382166000908152600360205260408120805460019290614539908490614ea6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561468d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906145db90339089908890889060040161547f565b6020604051808303816000875af1925050508015614616575060408051601f3d908101601f19168201909252614613918101906154bc565b60015b614673573d808015614644576040519150601f19603f3d011682016040523d82523d6000602084013e614649565b606091505b50805160000361466b5760405162461bcd60e51b8152600401610e7d9061542d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e50565b506001611e50565b60008183106146b1576000828152602084905260409020612130565b6000838152602083905260409020612130565b6001600160e01b03198116811461156657600080fd5b6000602082840312156146ec57600080fd5b8135612130816146c4565b80356001600160a01b038116811461470e57600080fd5b919050565b6000806040838503121561472657600080fd5b61472f836146f7565b915060208301356001600160601b038116811461474b57600080fd5b809150509250929050565b60005b83811015614771578181015183820152602001614759565b50506000910152565b60008151808452614792816020860160208601614756565b601f01601f19169290920160200192915050565b602081526000612130602083018461477a565b6000602082840312156147cb57600080fd5b5035919050565b600080604083850312156147e557600080fd5b6147ee836146f7565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60208101600d831061483457634e487b7160e01b600052602160045260246000fd5b91905290565b801515811461156657600080fd5b60008060006060848603121561485d57600080fd5b833592506020840135915060408401356148768161483a565b809150509250925092565b60008060006060848603121561489657600080fd5b61489f846146f7565b92506148ad602085016146f7565b9150604084013590509250925092565b600080604083850312156148d057600080fd5b50508035926020909101359150565b600080604083850312156148f257600080fd5b82359150614902602084016146f7565b90509250929050565b60ff8116811461156657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156149585761495861491a565b604052919050565b600082601f83011261497157600080fd5b813560206001600160401b0382111561498c5761498c61491a565b8160051b61499b828201614930565b92835284810182019282810190878511156149b557600080fd5b83870192505b848310156149d4578235825291830191908301906149bb565b979650505050505050565b6000806000606084860312156149f457600080fd5b83356149ff8161490b565b92506020840135915060408401356001600160401b03811115614a2157600080fd5b614a2d86828701614960565b9150509250925092565b60006001600160401b03831115614a5057614a5061491a565b614a63601f8401601f1916602001614930565b9050828152838383011115614a7757600080fd5b828260208301376000602084830101529392505050565b600060208284031215614aa057600080fd5b81356001600160401b03811115614ab657600080fd5b8201601f81018413614ac757600080fd5b611e5084823560208401614a37565b600060208284031215614ae857600080fd5b612130826146f7565b60008060408385031215614b0457600080fd5b8235915060208301356001600160401b03811115614b2157600080fd5b614b2d85828601614960565b9150509250929050565b60008060008060808587031215614b4d57600080fd5b8435614b588161483a565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b81811015614baa57835183529284019291840191600101614b8e565b50909695505050505050565b60008060208385031215614bc957600080fd5b82356001600160401b0380821115614be057600080fd5b818501915085601f830112614bf457600080fd5b813581811115614c0357600080fd5b8660208260051b8501011115614c1857600080fd5b60209290920196919550909350505050565b60008060408385031215614c3d57600080fd5b614c46836146f7565b9150602083013561474b8161483a565b60008060008060808587031215614c6c57600080fd5b614c75856146f7565b9350614c83602086016146f7565b92506040850135915060608501356001600160401b03811115614ca557600080fd5b8501601f81018713614cb657600080fd5b614cc587823560208401614a37565b91505092959194509250565b60008060408385031215614ce457600080fd5b82356001600160401b03811115614cfa57600080fd5b614d0685828601614960565b95602094909401359450505050565b60008060408385031215614d2857600080fd5b614d31836146f7565b9150614902602084016146f7565b60008060408385031215614d5257600080fd5b82359150602083013561474b8161483a565b600080600060608486031215614d7957600080fd5b8335614d848161490b565b925060208401359150614d99604085016146f7565b90509250925092565b600060208284031215614db457600080fd5b81356001600160401b03811115614dca57600080fd5b611e5084828501614960565b600080600060608486031215614deb57600080fd5b833592506148ad602085016146f7565b600181811c90821680614e0f57607f821691505b602082108103614e2f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526022908201527f446973636f756e742063616e206e6f74206265206d6f7265207468616e203130604082015261302560f01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60ff8181168382160190811115610e0357610e03614e77565b80820180821115610e0357610e03614e77565b8082028115828204841417610e0357610e03614e77565b634e487b7160e01b600052601260045260246000fd5b600082614ef557614ef5614ed0565b500490565b60208082526015908201527424b73b30b634b21034b7383aba101d103a37b5b2b760591b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252601e908201527f5061796d656e742053746f7070656420666f72207468697320746f6b656e0000604082015260600190565b60208082526018908201527f496e76616c696420696e707574203a207175616e746974790000000000000000604082015260600190565b6020808252602a908201527f7175616e7469747920657863656564656420746865206c696d697420666f72206040820152691d1a1a5cc81c9bdd5b9960b21b606082015260800190565b81810381811115610e0357610e03614e77565b601f821115610e1e57600081815260208120601f850160051c810160208610156150315750805b601f850160051c820191505b818110156113e25782815560010161503d565b81516001600160401b038111156150695761506961491a565b61507d816150778454614dfb565b8461500a565b602080601f8311600181146150b2576000841561509a5750858301515b600019600386901b1c1916600185901b1785556113e2565b600085815260208120601f198616915b828110156150e1578886015182559484019460019091019084016150c2565b50858210156150ff5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600181815b8085111561519857816000190482111561517e5761517e614e77565b8085161561518b57918102915b93841c9390800290615162565b509250929050565b6000826151af57506001610e03565b816151bc57506000610e03565b81600181146151d257600281146151dc576151f8565b6001915050610e03565b60ff8411156151ed576151ed614e77565b50506001821b610e03565b5060208310610133831016604e8410600b841016171561521b575081810a610e03565b615225838361515d565b806000190482111561523957615239614e77565b029392505050565b600061213083836151a0565b60006001820161525f5761525f614e77565b5060010190565b6020808252602a908201527f5175616e7469747920657863656564656420746865206c696d697420666f72206040820152691d1a1a5cc81c9bdd5b9960b21b606082015260800190565b600083516152c2818460208801614756565b8351908301906152d6818360208801614756565b01949350505050565b6000602082840312156152f157600080fd5b5051919050565b60006020828403121561530a57600080fd5b81516121308161483a565b60008161532457615324614e77565b506000190190565b60006020828403121561533e57600080fd5b81516121308161490b565b600061213060ff8416836151a0565b60008261536757615367614ed0565b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516153a4816017850160208801614756565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516153d5816028840160208801614756565b01602801949350505050565b6020808252602c908201527f4f776e6572206861732070617573656420746865207472616e7366657220666f60408201526b1c881d1a1a5cc81c9bdd5b9960a21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154b29083018461477a565b9695505050505050565b6000602082840312156154ce57600080fd5b8151612130816146c456fe73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862aa2646970667358221220406d864e225546ed3e3931622d3bcc43dc835e1af2c54949aa6c498e007adbff64736f6c6343000812003373e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab68747470733a2f2f7777772e6372797074336470756e6b736d696e742e696f2f6170692f6372797074336470756e6b732f
Deployed Bytecode
0x60806040526004361061045d5760003560e01c806375f6fb9c1161023f578063b88d4fde11610139578063e0271e0f116100b6578063ebf0c7171161007a578063ebf0c71714610d48578063f8b6f79b14610d5e578063f94ecbf114610d7e578063fa4b5daf14610d9e578063fecf995914610dbe57600080fd5b8063e0271e0f14610c88578063e1594bc714610ca8578063e63ab1e914610cbd578063e985e9c514610cdf578063eac48f2214610d2857600080fd5b8063c63ccb3b116100fd578063c63ccb3b14610bfd578063c87b56dd14610c13578063caa0f92a14610c33578063cd48d88e14610c48578063d547741f14610c6857600080fd5b8063b88d4fde14610b6a578063b8a20ed014610b8a578063c2ca0ac514610baa578063c2f637dc14610bca578063c5ce2e2614610bdd57600080fd5b806391d14854116101c7578063a22cb4651161018b578063a22cb46514610aeb578063a43be57b14610b0b578063b49622c214610b20578063b633b36414610b40578063b66a0e5d14610b5557600080fd5b806391d1485414610a5457806395d89b4114610a745780639bd6ddb814610a895780639edfbec914610ab6578063a217fddf14610ad657600080fd5b80638045c3841161020e5780638045c384146109e15780638456cb59146109f65780638b7afe2e14610a0b5780638f7678e614610a1e578063916df92a14610a3e57600080fd5b806375f6fb9c1461097357806379886b9d1461098d5780637a57948c146109a25780637cb64759146109c157600080fd5b806336568abe1161035b5780635971009b116102d857806366e5cb501161029c57806366e5cb50146108e55780636c0360eb1461091557806370a082311461092a57806370d5ae051461094a578063744bf3ae1461096057600080fd5b80635971009b1461084d5780635c975abb1461086d5780636352211e1461088557806364d48c00146108a55780636679f298146108c557600080fd5b806342842e0e1161031f57806342842e0e146107ab57806342966c68146107cb57806347e63380146107eb5780634c9c51841461080d57806355cff1461461082d57600080fd5b806336568abe14610714578063380d831b1461073457806339f7e37f146107495780633cbef4e51461076957806341f434341461078957600080fd5b80630dcec63d116103e957806326c2108c116103ad57806326c2108c1461066057806329504e26146106805780632a55205a146106955780632f2ff15d146106d4578063354ebd25146106f457600080fd5b80630dcec63d146105bb57806311f33fa5146105db57806318160ddd146105fb57806323b872dd14610610578063248a9ca31461063057600080fd5b8063081812fc11610430578063081812fc146104f057806308d8e6321461052857806308e4fd9c14610550578063095ea7b3146105745780630c3f6acf1461059457600080fd5b806301ffc9a71461046257806302fa7c471461049757806304c98b2b146104b957806306fdde03146104ce575b600080fd5b34801561046e57600080fd5b5061048261047d3660046146da565b610dde565b60405190151581526020015b60405180910390f35b3480156104a357600080fd5b506104b76104b2366004614713565b610e09565b005b3480156104c557600080fd5b506104b7610e23565b3480156104da57600080fd5b506104e3610e96565b60405161048e91906147a6565b3480156104fc57600080fd5b5061051061050b3660046147b9565b610f28565b6040516001600160a01b03909116815260200161048e565b34801561053457600080fd5b5061051073a50c349912739a4fe4e50bafd3d8689210642d8881565b34801561055c57600080fd5b50610566600b5481565b60405190815260200161048e565b34801561058057600080fd5b506104b761058f3660046147d2565b610f4f565b3480156105a057600080fd5b506025546105ae9060ff1681565b60405161048e9190614812565b3480156105c757600080fd5b506104b76105d63660046147b9565b610f63565b3480156105e757600080fd5b506104b76105f6366004614848565b610f81565b34801561060757600080fd5b50600f54610566565b34801561061c57600080fd5b506104b761062b366004614881565b6110c3565b34801561063c57600080fd5b5061056661064b3660046147b9565b60009081526007602052604090206001015490565b34801561066c57600080fd5b506010546104829062010000900460ff1681565b34801561068c57600080fd5b506104b76110e8565b3480156106a157600080fd5b506106b56106b03660046148bd565b611102565b604080516001600160a01b03909316835260208301919091520161048e565b3480156106e057600080fd5b506104b76106ef3660046148df565b6111ae565b34801561070057600080fd5b506104b761070f3660046149df565b6111d3565b34801561072057600080fd5b506104b761072f3660046148df565b6113ea565b34801561074057600080fd5b506104b7611468565b34801561075557600080fd5b506104b7610764366004614a8e565b6114d7565b34801561077557600080fd5b506104b7610784366004614ad6565b6114ee565b34801561079557600080fd5b506105106daaeb6d7670e522a718067333cd4e81565b3480156107b757600080fd5b506104b76107c6366004614881565b611511565b3480156107d757600080fd5b506104b76107e63660046147b9565b611536565b3480156107f757600080fd5b506105666000805160206154da83398151915281565b34801561081957600080fd5b506104b76108283660046147b9565b611569565b34801561083957600080fd5b506105666108483660046148bd565b6115d4565b34801561085957600080fd5b506104b76108683660046147b9565b611611565b34801561087957600080fd5b5060065460ff16610482565b34801561089157600080fd5b506105106108a03660046147b9565b611643565b3480156108b157600080fd5b506104b76108c0366004614ad6565b6116a3565b3480156108d157600080fd5b506104b76108e0366004614ad6565b6116b9565b3480156108f157600080fd5b506104826109003660046147b9565b60246020526000908152604090205460ff1681565b34801561092157600080fd5b506104e36116dc565b34801561093657600080fd5b50610566610945366004614ad6565b61176a565b34801561095657600080fd5b5061051061dead81565b6104b761096e366004614af1565b6117f0565b34801561097f57600080fd5b506010546104829060ff1681565b34801561099957600080fd5b506104b7611a2a565b3480156109ae57600080fd5b5060105461048290610100900460ff1681565b3480156109cd57600080fd5b506104b76109dc3660046147b9565b611a99565b3480156109ed57600080fd5b506104b7611aaa565b348015610a0257600080fd5b506104b7611ac2565b348015610a1757600080fd5b5047610566565b348015610a2a57600080fd5b506104b7610a393660046147d2565b611ae2565b348015610a4a57600080fd5b50610566600d5481565b348015610a6057600080fd5b50610482610a6f3660046148df565b611b88565b348015610a8057600080fd5b506104e3611bb3565b348015610a9557600080fd5b50610aa9610aa4366004614b37565b611bc2565b60405161048e9190614b72565b348015610ac257600080fd5b506104b7610ad1366004614bb6565b611e58565b348015610ae257600080fd5b50610566600081565b348015610af757600080fd5b506104b7610b06366004614c2a565b611f64565b348015610b1757600080fd5b506104b7611f78565b348015610b2c57600080fd5b50610482610b3b3660046147b9565b611fe7565b348015610b4c57600080fd5b506104b7612011565b348015610b6157600080fd5b506104b7612088565b348015610b7657600080fd5b506104b7610b85366004614c56565b6120f4565b348015610b9657600080fd5b50610482610ba5366004614cd1565b612121565b348015610bb657600080fd5b506104b7610bc53660046147b9565b612137565b6104b7610bd83660046148df565b612157565b348015610be957600080fd5b50610510610bf83660046147b9565b612328565b348015610c0957600080fd5b50610566600c5481565b348015610c1f57600080fd5b506104e3610c2e3660046147b9565b612348565b348015610c3f57600080fd5b506105666123ae565b348015610c5457600080fd5b506104b7610c63366004614af1565b6123bf565b348015610c7457600080fd5b506104b7610c833660046148df565b6124a8565b348015610c9457600080fd5b50610566610ca33660046147b9565b6124cd565b348015610cb457600080fd5b506104b76124e4565b348015610cc957600080fd5b506105666000805160206154fa83398151915281565b348015610ceb57600080fd5b50610482610cfa366004614d15565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610d3457600080fd5b506104b7610d43366004614d3f565b6124ef565b348015610d5457600080fd5b50610566600e5481565b348015610d6a57600080fd5b506104b7610d79366004614d64565b612529565b348015610d8a57600080fd5b50610482610d993660046147b9565b6126b6565b348015610daa57600080fd5b506104b7610db9366004614da2565b6126c6565b348015610dca57600080fd5b506104b7610dd9366004614dd6565b612a85565b600063152a902d60e11b6001600160e01b031983161480610e035750610e0382612cb4565b92915050565b6000610e1481612cd9565b610e1e8383612ce3565b505050565b6000610e2e81612cd9565b60105460ff1615610e865760405162461bcd60e51b815260206004820152601760248201527f50726573616c6520697320616c7265616479206c69766500000000000000000060448201526064015b60405180910390fd5b506010805460ff19166001179055565b606060008054610ea590614dfb565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed190614dfb565b8015610f1e5780601f10610ef357610100808354040283529160200191610f1e565b820191906000526020600020905b815481529060010190602001808311610f0157829003601f168201915b5050505050905090565b6000610f3382612de0565b506000908152600460205260409020546001600160a01b031690565b81610f5981612e3f565b610e1e8383612ef8565b6000805160206154da833981519152610f7b81612cd9565b50600b55565b6000805160206154fa833981519152610f9981612cd9565b6103e88310610fba5760405162461bcd60e51b8152600401610e7d90614e35565b818015610fd25750610fcc600a613008565b61271014155b156110ab57610fe9610fe4600a613008565b613019565b6110355760405162461bcd60e51b815260206004820152601f60248201527f54696572206861736e277420636f6d6520746f20616e20656e642079657421006044820152606401610e7d565b60255460009060ff16600c81111561104f5761104f6147fc565b905061105c816001614e8d565b60ff16600c811115611070576110706147fc565b6025805460ff1916600183600c81111561108c5761108c6147fc565b02179055506001600d60008282546110a49190614ea6565b9091555050505b600b849055600c8390556110bd613065565b50505050565b826001600160a01b03811633146110dd576110dd33612e3f565b6110bd8484846130b7565b6111006000805160206154da833981519152336113ea565b565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111775750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611196906001600160601b031687614eb9565b6111a09190614ee6565b915196919550909350505050565b6000828152600760205260409020600101546111c981612cd9565b610e1e83836130e7565b6111db61316d565b60ff831682600160105460ff1661122e5760405162461bcd60e51b8152602060048201526017602482015276141c9954d85b19481a5cc81b9bdd081b1a5d99481e595d604a1b6044820152606401610e7d565b600483111561124f5760405162461bcd60e51b8152600401610e7d90614efa565b6021836005811061126257611262614f29565b602081049091015460ff601f9092166101000a9004166112945760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806112a35750816002145b806112ae5750816003145b806112b95750816004145b806112c45750816005145b806112cf575081600a145b6112eb5760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061130057611300614f29565b01548261130d600a613008565b6113179190614ea6565b11156113355760405162461bcd60e51b8152600401610e7d90614fad565b6040516bffffffffffffffffffffffff193360601b1660208201526113759085906034015b60405160208183030381529060405280519060200120612121565b6113bb5760405162461bcd60e51b8152602060048201526017602482015276139bdd0818481c185c9d081bd988105b1b1bdddb1a5cdd604a1b6044820152606401610e7d565b6113d88660ff1686600c546103e86113d39190614ff7565b6131b3565b6113e285336135ed565b505050505050565b6001600160a01b038116331461145a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e7d565b6114648282613682565b5050565b600061147381612cd9565b60105460ff6101009091041615156001146114c95760405162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b6044820152606401610e7d565b506010805461ff0019169055565b60006114e281612cd9565b6023610e1e8382615050565b60006114f981612cd9565b6114646000805160206154fa833981519152836111ae565b826001600160a01b038116331461152b5761152b33612e3f565b6110bd8484846136e9565b611541335b82613704565b61155d5760405162461bcd60e51b8152600401610e7d9061510f565b61156681613782565b50565b600061157481612cd9565b6021826005811061158757611587614f29565b602081049091015460ff601f9092166101000a90041615602183600581106115b1576115b1614f29565b602091828204019190066101000a81548160ff0219169083151502179055505050565b601582815481106115e457600080fd5b9060005260206000200181815481106115fc57600080fd5b90600052602060002001600091509150505481565b600061161c81612cd9565b6103e8821061163d5760405162461bcd60e51b8152600401610e7d90614e35565b50600c55565b6000818152600260205260408120546001600160a01b031680610e035760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e7d565b60006116ae81612cd9565b6114646000836111ae565b60006116c481612cd9565b6114646000805160206154da833981519152836111ae565b602380546116e990614dfb565b80601f016020809104026020016040519081016040528092919081815260200182805461171590614dfb565b80156117625780601f1061173757610100808354040283529160200191611762565b820191906000526020600020905b81548152906001019060200180831161174557829003601f168201915b505050505081565b60006001600160a01b0382166117d45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610e7d565b506001600160a01b031660009081526003602052604090205490565b6117f861316d565b600482600160105460ff166118495760405162461bcd60e51b8152602060048201526017602482015276141c9954d85b19481a5cc81b9bdd081b1a5d99481e595d604a1b6044820152606401610e7d565b600483111561186a5760405162461bcd60e51b8152600401610e7d90614efa565b6021836005811061187d5761187d614f29565b602081049091015460ff601f9092166101000a9004166118af5760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806118be5750816002145b806118c95750816003145b806118d45750816004145b806118df5750816005145b806118ea575081600a145b6119065760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061191b5761191b614f29565b015482611928600a613008565b6119329190614ea6565b11156119505760405162461bcd60e51b8152600401610e7d90614fad565b6040516bffffffffffffffffffffffff193360601b16602082015261197990859060340161135a565b6119bf5760405162461bcd60e51b8152602060048201526017602482015276139bdd0818481c185c9d081bd988105b1b1bdddb1a5cdd604a1b6044820152606401610e7d565b60006119da86600c546103e86119d59190614ff7565b613829565b905080341015611a205760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682065746865727360781b6044820152606401610e7d565b6113e286336135ed565b6000611a3581612cd9565b60105462010000900460ff1615611a855760405162461bcd60e51b81526020600482015260146024820152735377617020697320616c7265616479206c69766560601b6044820152606401610e7d565b506010805462ff0000191662010000179055565b6000611aa481612cd9565b50600e55565b6111006000805160206154fa833981519152336113ea565b6000805160206154fa833981519152611ada81612cd9565b611566613949565b6000611aed81612cd9565b6000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114611b3a576040519150601f19603f3d011682016040523d82523d6000602084013e611b3f565b606091505b50509050806110bd5760405162461bcd60e51b81526020600482015260156024820152744661696c656420746f2073656e642065746865727360581b6044820152606401610e7d565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610ea590614dfb565b60408051600680825260e08201909252606091600091906020820160c08036833701905050905060005b6006811015611e4c578615611d205780600503611cb4576000600b546103e8611c159190614eb9565b611c21866103e8614ff7565b60158881548110611c3457611c34614f29565b906000526020600020018481548110611c4f57611c4f614f29565b9060005260206000200154600a611c669190614eb9565b611c799068056bc75e2d63100000614eb9565b611c839190614eb9565b611c8d9190614ee6565b905080838381518110611ca257611ca2614f29565b60200260200101818152505050611e3a565b6000600b546103e8611cc69190614eb9565b611cd2866103e8614ff7565b611cdd846001614ea6565b60158981548110611cf057611cf0614f29565b906000526020600020018581548110611d0b57611d0b614f29565b9060005260206000200154611c669190614eb9565b80600503611d915760006103e8611d378682614ff7565b611d4289600a615241565b60158981548110611d5557611d55614f29565b906000526020600020018581548110611d7057611d70614f29565b9060005260206000200154600a611d879190614eb9565b611c799190614eb9565b60006103e8611da08682614ff7565b611dab89600a615241565b611db6856001614ea6565b60158a81548110611dc957611dc9614f29565b906000526020600020018681548110611de457611de4614f29565b9060005260206000200154611df99190614eb9565b611e039190614eb9565b611e0d9190614eb9565b611e179190614ee6565b905080838381518110611e2c57611e2c614f29565b602002602001018181525050505b80611e448161524d565b915050611bec565b5090505b949350505050565b6000611e6381612cd9565b600d548290601690600b8110611e7b57611e7b614f29565b015481611e88600a613008565b611e929190614ea6565b1115611eb05760405162461bcd60e51b8152600401610e7d90615266565b60005b81811015611f28576000611ec7600a613008565b9050611ed7600a80546001019055565b611f07868684818110611eec57611eec614f29565b9050602002016020810190611f019190614ad6565b82613986565b6001600f6000828254611f1a9190614ea6565b909155505050600101611eb3565b506016600d54600b8110611f3e57611f3e614f29565b0154611f4a600a613008565b036110bd576025805460ff1916600b1790556110bd613949565b81611f6e81612e3f565b610e1e83836139a0565b6000611f8381612cd9565b60105460ff161515600114611fda5760405162461bcd60e51b815260206004820152601960248201527f50726573616c652068617320616c726561647920656e646564000000000000006044820152606401610e7d565b506010805460ff19169055565b602281600b8110611ff757600080fd5b60209182820401919006915054906101000a900460ff1681565b600061201c81612cd9565b60105462010000900460ff1615156001146120795760405162461bcd60e51b815260206004820152601760248201527f5377617020697320616c72656164792073746f707065640000000000000000006044820152606401610e7d565b506010805462ff000019169055565b600061209381612cd9565b601054610100900460ff16156120e25760405162461bcd60e51b815260206004820152601460248201527353616c6520697320616c7265616479206c69766560601b6044820152606401610e7d565b506010805461ff001916610100179055565b836001600160a01b038116331461210e5761210e33612e3f565b61211a858585856139ab565b5050505050565b600061213083600e54846139dd565b9392505050565b600061214281612cd9565b6001602283600b81106115b1576115b1614f29565b61215f61316d565b6004826000601054610100900460ff166121b25760405162461bcd60e51b815260206004820152601460248201527314d85b19481a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610e7d565b60048311156121d35760405162461bcd60e51b8152600401610e7d90614efa565b602183600581106121e6576121e6614f29565b602081049091015460ff601f9092166101000a9004166122185760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806122275750816002145b806122325750816003145b8061223d5750816004145b806122485750816005145b80612253575081600a145b61226f5760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061228457612284614f29565b015482612291600a613008565b61229b9190614ea6565b11156122b95760405162461bcd60e51b8152600401610e7d90614fad565b6122c4600033611b88565b61231e5760006122d6866103e8613829565b90508034101561231c5760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f7567682065746865727360781b6044820152606401610e7d565b505b61211a85856135ed565b6011816004811061233857600080fd5b01546001600160a01b0316905081565b606061235382612de0565b600061235d6139f3565b9050600081511161237d5760405180602001604052806000815250612130565b8061238784613a02565b6040516020016123989291906152b0565b6040516020818303038152906040529392505050565b60006123ba600a613008565b905090565b60006123ca81612cd9565b600183101580156123dc5750600a8311155b6123e557600080fd5b81516006146124365760405162461bcd60e51b815260206004820181905260248201527f496e76616c6964207570646174656456616c7565732061727261792073697a656044820152606401610e7d565b60005b82518110156110bd5782818151811061245457612454614f29565b60200260200101516015858154811061246f5761246f614f29565b90600052602060002001828154811061248a5761248a614f29565b600091825260209091200155806124a08161524d565b915050612439565b6000828152600760205260409020600101546124c381612cd9565b610e1e8383613682565b601681600b81106124dd57600080fd5b0154905081565b6111006000336113ea565b60006124fa81612cd9565b600a83111561250857600080fd5b50600091825260246020526040909120805460ff1916911515919091179055565b61253161316d565b60ff8316826000601054610100900460ff166125865760405162461bcd60e51b815260206004820152601460248201527314d85b19481a5cc81b9bdd081b1a5d99481e595d60621b6044820152606401610e7d565b60048311156125a75760405162461bcd60e51b8152600401610e7d90614efa565b602183600581106125ba576125ba614f29565b602081049091015460ff601f9092166101000a9004166125ec5760405162461bcd60e51b8152600401610e7d90614f3f565b81600114806125fb5750816002145b806126065750816003145b806126115750816004145b8061261c5750816005145b80612627575081600a145b6126435760405162461bcd60e51b8152600401610e7d90614f76565b6016600d54600b811061265857612658614f29565b015482612665600a613008565b61266f9190614ea6565b111561268d5760405162461bcd60e51b8152600401610e7d90614fad565b612698600033611b88565b6126ac576126ac8660ff16866103e86131b3565b6113e285856135ed565b60218160058110611ff757600080fd5b6126ce61316d565b60105462010000900460ff1615156001146127375760405162461bcd60e51b8152602060048201526024808201527f537761702066756e6374696f6e2069732070617573656420627920746865206f6044820152633bb732b960e11b6064820152608401610e7d565b6016600d54600b811061274c5761274c614f29565b0154815161275a600a613008565b6127649190614ea6565b11156127825760405162461bcd60e51b8152600401610e7d90615266565b60005b8151811015612a4957600173a50c349912739a4fe4e50bafd3d8689210642d886001600160a01b031662fdd58e338585815181106127c5576127c5614f29565b60200260200101516040518363ffffffff1660e01b81526004016127fe9291906001600160a01b03929092168252602082015260400190565b602060405180830381865afa15801561281b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283f91906152df565b10156128865760405162461bcd60e51b8152602060048201526016602482015275165bdd48191bdb89dd081bdddb881d1a1a5cc813919560521b6044820152606401610e7d565b60166000015482828151811061289e5761289e614f29565b6020026020010151106128ff5760405162461bcd60e51b8152602060048201526024808201527f53776170204e46542069642063616e206e6f74206265206d6f72652074686174604482015263080d0e4d60e21b6064820152608401610e7d565b73a50c349912739a4fe4e50bafd3d8689210642d886001600160a01b031663f242432a3361dead85858151811061293857612938614f29565b602002602001015160016040518563ffffffff1660e01b81526004016129a194939291906001600160a01b0394851681529290931660208301526040820152606081019190915260a060808201819052600490820152630307830360e41b60c082015260e00190565b600060405180830381600087803b1580156129bb57600080fd5b505af11580156129cf573d6000803e3d6000fd5b505050506129f6338383815181106129e9576129e9614f29565b6020026020010151613986565b6000612a02600a613008565b9050612a12600a80546001019055565b612a1c3382613986565b6002600f6000828254612a2f9190614ea6565b90915550829150612a4190508161524d565b915050612785565b506016600d54600b8110612a5f57612a5f614f29565b0154612a6b600a613008565b03611566576025805460ff1916600b179055611566613949565b6000612a9081612cd9565b60118460048110612aa357612aa3614f29565b015460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af1158015612af5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061211a91906152f8565b60606000612b28836002614eb9565b612b33906002614ea6565b6001600160401b03811115612b4a57612b4a61491a565b6040519080825280601f01601f191660200182016040528015612b74576020820181803683370190505b509050600360fc1b81600081518110612b8f57612b8f614f29565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612bbe57612bbe614f29565b60200101906001600160f81b031916908160001a9053506000612be2846002614eb9565b612bed906001614ea6565b90505b6001811115612c65576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c2157612c21614f29565b1a60f81b828281518110612c3757612c37614f29565b60200101906001600160f81b031916908160001a90535060049490941c93612c5e81615315565b9050612bf0565b5083156121305760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e7d565b60006001600160e01b0319821663152a902d60e11b1480610e035750610e0382613b02565b6115668133613b27565b6127106001600160601b0382161115612d515760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610e7d565b6001600160a01b038216612da75760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610e7d565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6000818152600260205260409020546001600160a01b03166115665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610e7d565b6daaeb6d7670e522a718067333cd4e3b1561156657604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed091906152f8565b61156657604051633b79c77360e21b81526001600160a01b0382166004820152602401610e7d565b6000612f0382611643565b9050806001600160a01b0316836001600160a01b031603612f705760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610e7d565b336001600160a01b0382161480612f8c5750612f8c8133610cfa565b612ffe5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610e7d565b610e1e8383613b8b565b8054600090610e03906101ef614ea6565b6000805b600b81101561305c57601681600b811061303957613039614f29565b0154830361304a5750600192915050565b806130548161524d565b91505061301d565b50600092915050565b61306d613bf9565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6130c03361153b565b6130dc5760405162461bcd60e51b8152600401610e7d9061510f565b610e1e838383613c42565b6130f18282611b88565b6114645760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556131293390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60065460ff16156111005760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e7d565b6000601184600481106131c8576131c8614f29565b0160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b81526004016020604051808303816000875af115801561321c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613240919061532c565b9050600083600a14613427576000613259600186614ff7565b90506103e8858561326b86600a615349565b6015600d548154811061328057613280614f29565b90600052602060002001858154811061329b5761329b614f29565b90600052602060002001546132b09190614eb9565b6132ba9190614eb9565b6132c49190614eb9565b6132ce9190614ee6565b915081601187600481106132e4576132e4614f29565b01546040516370a0823160e01b81523360048201526001600160a01b03909116906370a08231906024016020604051808303816000875af115801561332d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061335191906152df565b10156133935760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820546f6b656e7360781b6044820152606401610e7d565b601186600481106133a6576133a6614f29565b01546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156133fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061342091906152f8565b505061211a565b6103e8848461343785600a615349565b6015600d548154811061344c5761344c614f29565b9060005260206000200160058154811061346857613468614f29565b906000526020600020015461347d9190614eb9565b6134879190614eb9565b6134919190614eb9565b61349b9190614ee6565b905080601186600481106134b1576134b1614f29565b01546040516370a0823160e01b81523360048201526001600160a01b03909116906370a08231906024016020604051808303816000875af11580156134fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351e91906152df565b10156135605760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820546f6b656e7360781b6044820152606401610e7d565b6011856004811061357357613573614f29565b01546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156135c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e291906152f8565b60005b82811015613666576000613604600a613008565b9050613614600a80546001019055565b61361e8382613986565b600d54600190920191601690600b811061363a5761363a614f29565b0154613646600a613008565b03613660576025805460ff1916600b179055613660613949565b506135f0565b5081600f60008282546136799190614ea6565b90915550505050565b61368c8282611b88565b156114645760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610e1e838383604051806020016040528060008152506120f4565b60008061371083611643565b9050806001600160a01b0316846001600160a01b0316148061375757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80611e505750836001600160a01b031661377084610f28565b6001600160a01b031614949350505050565b600061378d82611643565b905061379b81600084613de9565b6137a6600083613b8b565b6001600160a01b03811660009081526003602052604081208054600192906137cf908490614ff7565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008083600a146138ca576000613841600186614ff7565b9050600b546103e86138539190614eb9565b85856015600d548154811061386a5761386a614f29565b90600052602060002001848154811061388557613885614f29565b906000526020600020015468056bc75e2d631000006138a49190614eb9565b6138ae9190614eb9565b6138b89190614eb9565b6138c29190614ee6565b915050612130565b600b546138d9906103e8614eb9565b84846015600d54815481106138f0576138f0614f29565b9060005260206000200160058154811061390c5761390c614f29565b906000526020600020015468056bc75e2d6310000061392b9190614eb9565b6139359190614eb9565b61393f9190614eb9565b611e509190614ee6565b61395161316d565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861309a3390565b611464828260405180602001604052806000815250614278565b6114643383836142ab565b6139b53383613704565b6139d15760405162461bcd60e51b8152600401610e7d9061510f565b6110bd84848484614379565b6000826139ea85846143ac565b14949350505050565b606060238054610ea590614dfb565b606081600003613a295750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a535780613a3d8161524d565b9150613a4c9050600a83614ee6565b9150613a2d565b6000816001600160401b03811115613a6d57613a6d61491a565b6040519080825280601f01601f191660200182016040528015613a97576020820181803683370190505b5090505b8415611e5057613aac600183614ff7565b9150613ab9600a86615358565b613ac4906030614ea6565b60f81b818381518110613ad957613ad9614f29565b60200101906001600160f81b031916908160001a905350613afb600a86614ee6565b9450613a9b565b60006001600160e01b03198216637965db0b60e01b1480610e035750610e03826143f9565b613b318282611b88565b61146457613b49816001600160a01b03166014612b19565b613b54836020612b19565b604051602001613b6592919061536c565b60408051601f198184030181529082905262461bcd60e51b8252610e7d916004016147a6565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613bc082611643565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60065460ff166111005760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e7d565b826001600160a01b0316613c5582611643565b6001600160a01b031614613cb95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610e7d565b6001600160a01b038216613d1b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610e7d565b613d26838383613de9565b613d31600082613b8b565b6001600160a01b0383166000908152600360205260408120805460019290613d5a908490614ff7565b90915550506001600160a01b0382166000908152600360205260408120805460019290613d88908490614ea6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03831615801590613e0957506001600160a01b03821615155b15610e1e576000805260246020527fb7634ec2165a7280a285aac3ec10cf370eca86d8aa9d3243c90b2151434091ad5460ff16158015613e4b57506101ee8111155b15613e685760405162461bcd60e51b8152600401610e7d906153e1565b600160005260246020527fbbbb3b1da0cb0951f34c5e9db4606f934b7367b5284f29163e9e6fe67e1e97d65460ff16158015613eb357506101ef8110158015613eb3575061034c8111155b15613ed05760405162461bcd60e51b8152600401610e7d906153e1565b600260005260246020527f47bb5529a97e2b401b32950f6360fbc9e3f4e70b887dc0f9b9ad1f7402ca11da5460ff16158015613f1b575061034d8110158015613f1b57506105408111155b15613f385760405162461bcd60e51b8152600401610e7d906153e1565b600360005260246020527f8a6809e43cef135a96df89aa3c0800baae7c497913adf6156625c15a6f57cdf05460ff16158015613f8357506105418110158015613f83575061082e8111155b15613fa05760405162461bcd60e51b8152600401610e7d906153e1565b600460005260246020527fe0059098054d65c76a17a4d86f8572395c4d366a1d067b0643b918330bac9e155460ff16158015613feb575061082f8110158015613feb5750610c3f8111155b156140085760405162461bcd60e51b8152600401610e7d906153e1565b600560005260246020527ff737fbf41dafb4990088c527475c23d7ec8faec34b668fc96ba68bf83b8ad60b5460ff161580156140535750610c40811015801561405357506110b78111155b156140705760405162461bcd60e51b8152600401610e7d906153e1565b600660005260246020527f9aeda4bfc94a0967e92a3e3f48e3d01d74a39c4cff849e6ec9b6ae18b248bf445460ff161580156140bb57506110b881101580156140bb575061152f8111155b156140d85760405162461bcd60e51b8152600401610e7d906153e1565b600760005260246020527fc8063fc1c441a7c35622a029999f562fc3f4af6fb9445f9ed83a5a94f84407c25460ff161580156141235750611530811015801561412357506119a78111155b156141405760405162461bcd60e51b8152600401610e7d906153e1565b600860005260246020527f283ad1fa537f2bde05287a438aa5a837917793fc3ef421ca997bcba10fcd57b15460ff1615801561418b57506119a8811015801561418b5750611e1f8111155b156141a85760405162461bcd60e51b8152600401610e7d906153e1565b600960005260246020527fd15317c11e97357eac85a1b0ceb4d9eb990bb055e9d2fd4ec9602c7914b31ff65460ff161580156141f35750611e2081101580156141f357506122978111155b156142105760405162461bcd60e51b8152600401610e7d906153e1565b600a60005260246020527f58e3a833cb15d6f76c53a51c4f1055a3d0f1b35d372143cd8d886614508d45b15460ff1615801561425b5750612298811015801561425b575061270f8111155b15610e1e5760405162461bcd60e51b8152600401610e7d906153e1565b6142828383614449565b61428f6000848484614597565b610e1e5760405162461bcd60e51b8152600401610e7d9061542d565b816001600160a01b0316836001600160a01b03160361430c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610e7d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614384848484613c42565b61439084848484614597565b6110bd5760405162461bcd60e51b8152600401610e7d9061542d565b600081815b84518110156143f1576143dd828683815181106143d0576143d0614f29565b6020026020010151614695565b9150806143e98161524d565b9150506143b1565b509392505050565b60006001600160e01b031982166380ac58cd60e01b148061442a57506001600160e01b03198216635b5e139f60e01b145b80610e0357506301ffc9a760e01b6001600160e01b0319831614610e03565b6001600160a01b03821661449f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610e7d565b6000818152600260205260409020546001600160a01b0316156145045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610e7d565b61451060008383613de9565b6001600160a01b0382166000908152600360205260408120805460019290614539908490614ea6565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561468d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906145db90339089908890889060040161547f565b6020604051808303816000875af1925050508015614616575060408051601f3d908101601f19168201909252614613918101906154bc565b60015b614673573d808015614644576040519150601f19603f3d011682016040523d82523d6000602084013e614649565b606091505b50805160000361466b5760405162461bcd60e51b8152600401610e7d9061542d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e50565b506001611e50565b60008183106146b1576000828152602084905260409020612130565b6000838152602083905260409020612130565b6001600160e01b03198116811461156657600080fd5b6000602082840312156146ec57600080fd5b8135612130816146c4565b80356001600160a01b038116811461470e57600080fd5b919050565b6000806040838503121561472657600080fd5b61472f836146f7565b915060208301356001600160601b038116811461474b57600080fd5b809150509250929050565b60005b83811015614771578181015183820152602001614759565b50506000910152565b60008151808452614792816020860160208601614756565b601f01601f19169290920160200192915050565b602081526000612130602083018461477a565b6000602082840312156147cb57600080fd5b5035919050565b600080604083850312156147e557600080fd5b6147ee836146f7565b946020939093013593505050565b634e487b7160e01b600052602160045260246000fd5b60208101600d831061483457634e487b7160e01b600052602160045260246000fd5b91905290565b801515811461156657600080fd5b60008060006060848603121561485d57600080fd5b833592506020840135915060408401356148768161483a565b809150509250925092565b60008060006060848603121561489657600080fd5b61489f846146f7565b92506148ad602085016146f7565b9150604084013590509250925092565b600080604083850312156148d057600080fd5b50508035926020909101359150565b600080604083850312156148f257600080fd5b82359150614902602084016146f7565b90509250929050565b60ff8116811461156657600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156149585761495861491a565b604052919050565b600082601f83011261497157600080fd5b813560206001600160401b0382111561498c5761498c61491a565b8160051b61499b828201614930565b92835284810182019282810190878511156149b557600080fd5b83870192505b848310156149d4578235825291830191908301906149bb565b979650505050505050565b6000806000606084860312156149f457600080fd5b83356149ff8161490b565b92506020840135915060408401356001600160401b03811115614a2157600080fd5b614a2d86828701614960565b9150509250925092565b60006001600160401b03831115614a5057614a5061491a565b614a63601f8401601f1916602001614930565b9050828152838383011115614a7757600080fd5b828260208301376000602084830101529392505050565b600060208284031215614aa057600080fd5b81356001600160401b03811115614ab657600080fd5b8201601f81018413614ac757600080fd5b611e5084823560208401614a37565b600060208284031215614ae857600080fd5b612130826146f7565b60008060408385031215614b0457600080fd5b8235915060208301356001600160401b03811115614b2157600080fd5b614b2d85828601614960565b9150509250929050565b60008060008060808587031215614b4d57600080fd5b8435614b588161483a565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b81811015614baa57835183529284019291840191600101614b8e565b50909695505050505050565b60008060208385031215614bc957600080fd5b82356001600160401b0380821115614be057600080fd5b818501915085601f830112614bf457600080fd5b813581811115614c0357600080fd5b8660208260051b8501011115614c1857600080fd5b60209290920196919550909350505050565b60008060408385031215614c3d57600080fd5b614c46836146f7565b9150602083013561474b8161483a565b60008060008060808587031215614c6c57600080fd5b614c75856146f7565b9350614c83602086016146f7565b92506040850135915060608501356001600160401b03811115614ca557600080fd5b8501601f81018713614cb657600080fd5b614cc587823560208401614a37565b91505092959194509250565b60008060408385031215614ce457600080fd5b82356001600160401b03811115614cfa57600080fd5b614d0685828601614960565b95602094909401359450505050565b60008060408385031215614d2857600080fd5b614d31836146f7565b9150614902602084016146f7565b60008060408385031215614d5257600080fd5b82359150602083013561474b8161483a565b600080600060608486031215614d7957600080fd5b8335614d848161490b565b925060208401359150614d99604085016146f7565b90509250925092565b600060208284031215614db457600080fd5b81356001600160401b03811115614dca57600080fd5b611e5084828501614960565b600080600060608486031215614deb57600080fd5b833592506148ad602085016146f7565b600181811c90821680614e0f57607f821691505b602082108103614e2f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526022908201527f446973636f756e742063616e206e6f74206265206d6f7265207468616e203130604082015261302560f01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60ff8181168382160190811115610e0357610e03614e77565b80820180821115610e0357610e03614e77565b8082028115828204841417610e0357610e03614e77565b634e487b7160e01b600052601260045260246000fd5b600082614ef557614ef5614ed0565b500490565b60208082526015908201527424b73b30b634b21034b7383aba101d103a37b5b2b760591b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6020808252601e908201527f5061796d656e742053746f7070656420666f72207468697320746f6b656e0000604082015260600190565b60208082526018908201527f496e76616c696420696e707574203a207175616e746974790000000000000000604082015260600190565b6020808252602a908201527f7175616e7469747920657863656564656420746865206c696d697420666f72206040820152691d1a1a5cc81c9bdd5b9960b21b606082015260800190565b81810381811115610e0357610e03614e77565b601f821115610e1e57600081815260208120601f850160051c810160208610156150315750805b601f850160051c820191505b818110156113e25782815560010161503d565b81516001600160401b038111156150695761506961491a565b61507d816150778454614dfb565b8461500a565b602080601f8311600181146150b2576000841561509a5750858301515b600019600386901b1c1916600185901b1785556113e2565b600085815260208120601f198616915b828110156150e1578886015182559484019460019091019084016150c2565b50858210156150ff5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600181815b8085111561519857816000190482111561517e5761517e614e77565b8085161561518b57918102915b93841c9390800290615162565b509250929050565b6000826151af57506001610e03565b816151bc57506000610e03565b81600181146151d257600281146151dc576151f8565b6001915050610e03565b60ff8411156151ed576151ed614e77565b50506001821b610e03565b5060208310610133831016604e8410600b841016171561521b575081810a610e03565b615225838361515d565b806000190482111561523957615239614e77565b029392505050565b600061213083836151a0565b60006001820161525f5761525f614e77565b5060010190565b6020808252602a908201527f5175616e7469747920657863656564656420746865206c696d697420666f72206040820152691d1a1a5cc81c9bdd5b9960b21b606082015260800190565b600083516152c2818460208801614756565b8351908301906152d6818360208801614756565b01949350505050565b6000602082840312156152f157600080fd5b5051919050565b60006020828403121561530a57600080fd5b81516121308161483a565b60008161532457615324614e77565b506000190190565b60006020828403121561533e57600080fd5b81516121308161490b565b600061213060ff8416836151a0565b60008261536757615367614ed0565b500690565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516153a4816017850160208801614756565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516153d5816028840160208801614756565b01602801949350505050565b6020808252602c908201527f4f776e6572206861732070617573656420746865207472616e7366657220666f60408201526b1c881d1a1a5cc81c9bdd5b9960a21b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154b29083018461477a565b9695505050505050565b6000602082840312156154ce57600080fd5b8151612130816146c456fe73e573f9566d61418a34d5de3ff49360f9c51fec37f7486551670290f6285dab65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862aa2646970667358221220406d864e225546ed3e3931622d3bcc43dc835e1af2c54949aa6c498e007adbff64736f6c63430008120033
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.