ERC-721
Overview
Max Total Supply
209 DCVI_SUP
Holders
207
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DCVI_SUPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BrandExtenderSuitUp
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "stl-contracts/royalty/DerivedERC2981Royalty.sol"; import "stl-contracts/ERC/ERC5169.sol"; import "./libs/VerifyLinkAttestation.sol"; import "./UriChanger.sol"; import "./VerifySignature.sol"; import "hardhat/console.sol"; contract BrandExtenderSuitUp is ERC5169, VerifySignature, IERC721Enumerable, ERC721Enumerable, ERC721URIStorage, UriChanger, DerivedERC2981Royalty { using Strings for uint256; using Address for address; struct ERC721s { address erc721; uint256 tokenId; } mapping(uint256 => ERC721s) internal _parents; // relation of combined contract_and_id to tokenIds, kind of Enumerable mapping(uint256 => uint256[]) internal _childrenArr; mapping(uint256 => uint256) internal _childrenIndex; mapping(uint256 => uint256) internal _childrenCounter; string constant _metadataURI = "https://resources.smarttokenlabs.com/"; address RoyaltyReceiver; address[] sharedTokenHolders; uint256 mintStartTimestamp; uint256 mintEndTimestamp; uint256 mintPrice; event BaseUriUpdated( string uri ); event MintStartUpdated( uint timestamp ); event MintEndUpdated( uint timestamp ); event RoyaltyContractUpdated( address indexed newAddress ); event PermanentURI(string _value, uint256 indexed _id); event ParentAdded(address indexed newERC721); event SharedTokenHoldersUpdated(address[] newAddresses); event MintPriceUpdated(uint prevPrice, uint newPrice); // emit MintedDerived(data[i].ERC721, data[i].tokenId, mintedID, data[i].tokenURI ); event MintedDerived(address indexed parentContract, uint indexed parentId, uint indexed mintedId, string tmpUri, uint currentOriginIndex); mapping(uint => address) private minter; function getMinter(uint tokenId) public view returns (address) { _requireMinted(tokenId); return minter[tokenId]; } function _authorizeSetScripts(string[] memory) internal override onlyOwner {} // Base URI string private __baseURI; using Strings for uint256; // save as array to be able to foreach parents address[] private allowedParentsArray; mapping(address => uint) private allowedParents; struct mintRequestData { address ERC721; uint256 tokenId; uint256 ticketId; bytes signature; string tokenURI; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable) { if (to == address(0) && from != address(0)){ delete minter[tokenId]; } super._beforeTokenTransfer(from, to, tokenId); } constructor(address _rr, address _newUriChanger) ERC721("Devcon VI Suit Up Collection", "DCVI_SUP") UriChanger(_newUriChanger){ updateUriChanger(_newUriChanger); _setRoyaltyContract(_rr); // TODO set correct roaylty amount _setRoyalty(600);// 100 = 1% } function setRoyalty(uint amount) external onlyOwner { _setRoyalty(amount); } function setMintPrice(uint newPrice) external onlyOwner { emit MintPriceUpdated(mintPrice, newPrice); mintPrice = newPrice; } // SharedTokenHolder - some STL address, which holds popular NFTs, // contract allowed to mint derived NFTs for NFTs, owned by this token function setSharedTokenHolders(address[] calldata newAddresses) external onlyOwner { emit SharedTokenHoldersUpdated(newAddresses); sharedTokenHolders = newAddresses; } // array of ERC721 contracts to be parents to mint derived NFT function getParents() public view virtual returns(address[] memory) { return allowedParentsArray; } function addParent(address newContract) public onlyUriChanger { require(newContract.isContract(), "Must be contract"); IERC721 c = IERC721(newContract); try c.supportsInterface(type(IERC721).interfaceId) returns (bool result) { if (!result){ revert("Must be ERC721 contract"); } } catch { // emit Log("external call failed"); revert("Must be ERC721 contract"); } // require(c.supportsInterface(type(IERC721).interfaceId), "Must be ERC721 contract"); require(allowedParents[newContract] == 0, "Already added"); allowedParentsArray.push(newContract); allowedParents[newContract] = allowedParentsArray.length; emit ParentAdded(newContract); } function validateMintRequest(mintRequestData calldata data) internal view returns(bool){ address erc721 = data.ERC721; require(allowedParents[data.ERC721] > 0, "Contract not supported"); bytes memory toSign = abi.encodePacked( address(this), msg.sender, erc721, data.tokenId, block.chainid, data.ticketId, data.tokenURI ); require(verifyEthHash(keccak256(toSign), data.signature) == uriChanger(), "Wrong metadata signer"); return true; } function mintDerived(mintRequestData[] calldata data) external virtual { uint i; for (i=0; i < data.length; i++) { require( validateMintRequest(data[i]), "Invalid mint request"); _mintDerivedMulti( data[i].ERC721, data[i].tokenId, msg.sender, data[i].ticketId); emit MintedDerived(data[i].ERC721, data[i].tokenId, data[i].ticketId, data[i].tokenURI, tokenOfOriginCounter(data[i].ERC721, data[i].tokenId) - 1 ); } } function _mintDerivedMulti(address erc721, uint256 tokenId, address to, uint256 ticket_id) internal { require(block.timestamp >= mintStartTimestamp, "Minting has not started"); if (mintEndTimestamp > 0){ require(block.timestamp <= mintEndTimestamp, "Minting finished"); } require( _isSharedHolderTokenOwner(erc721, tokenId), "Shared Holder not owner"); _parents[ticket_id] = ERC721s(erc721, tokenId); minter[ticket_id] = msg.sender; uint256 pointer = getPonter(erc721, tokenId); // Get unique 256 bit pointer to specific originating Token (masked address + tokenId) uint256 newTokenIndex = _childrenCounter[pointer]; // How many tokens are currently dervied from the specific originating Token _childrenIndex[ticket_id] = _childrenArr[pointer].length; _childrenArr[pointer].push(ticket_id); // create mapping of derived tokenIds for each originating Token _childrenCounter[pointer] = newTokenIndex + 1; _safeMint(to, ticket_id); } function contractURI() public pure returns (string memory) { return string(abi.encodePacked(_metadataURI, "contract/devcon_suitup.json")); } function contractAddress() internal view returns (string memory) { return Strings.toHexString(uint160(address(this)), 20); } function tokenURI(uint256 tokenId) public view virtual override(ERC721, ERC721URIStorage) returns (string memory) { _requireMinted(tokenId); string memory base = baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length > 0) { return string(abi.encodePacked(base, "/", tokenId.toString())); } else { return string(abi.encodePacked(_metadataURI, block.chainid.toString(), "/", contractAddress(), "/", tokenId.toString())); } } function baseURI() public view virtual returns (string memory) { return _baseURI(); } function _baseURI() internal view override returns (string memory) { return __baseURI; } function setBaseURI(string memory baseURI_) public onlyUriChanger { _setBaseURI(baseURI_); } function _setBaseURI(string memory baseURI_) internal virtual { emit BaseUriUpdated(baseURI_); __baseURI = baseURI_; } function setTokenURI(uint256 tokenId, string memory _tokenURI) external onlyUriChanger{ _setTokenURI(tokenId, _tokenURI); emit PermanentURI(_tokenURI, tokenId); } function setMintStartTime(uint256 timestamp) external onlyOwner { _setMintStartTime( timestamp ); } function _setMintStartTime(uint256 timestamp) internal { emit MintStartUpdated(timestamp); mintStartTimestamp = timestamp; } function getMintStartTime() external view returns (uint256) { return mintStartTimestamp ; } function setMintEndTime(uint256 timestamp) external onlyOwner { _setMintEndTime( timestamp ); } function _setMintEndTime(uint256 timestamp) internal { emit MintEndUpdated(timestamp); mintEndTimestamp = timestamp; } function getMintEndTime() external view returns (uint256) { return mintEndTimestamp ; } // Form combination of address & tokenId for unique pointer to NFT - Address is 160 bits (20*8) + TokenId 96 bits function getPonter(address c, uint256 tokenId) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(c, tokenId))); } function tokenOfOriginByIndex(address erc721, uint256 tokenId, uint256 index) public view returns (uint256) { uint256 pointer = getPonter(erc721, tokenId); require(index < _childrenArr[pointer].length, "Index out of bounds"); return _childrenArr[pointer][index]; } function tokenOfOriginCount(address erc721, uint256 tokenId) public view returns (uint256) { uint256 pointer = getPonter(erc721, tokenId); return _childrenArr[pointer].length; } function tokenOfOriginCounter(address erc721, uint256 tokenId) public view returns (uint256) { uint256 pointer = getPonter(erc721, tokenId); return _childrenCounter[pointer]; } // required to solve inheritance function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721URIStorage) { ERC721s memory parent = getParent(tokenId); uint256 pointer = getPonter(parent.erc721, parent.tokenId); uint256 tokenIndex = _childrenIndex[tokenId]; uint256 lastTokenIndex = _childrenArr[pointer].length - 1; //If required, swap the token to be burned and the token at the head of the stack //then use pop to remove the head of the _childrenArr stack mapping if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _childrenArr[pointer][lastTokenIndex]; _childrenArr[pointer][tokenIndex] = lastTokenId; _childrenIndex[lastTokenId] = tokenIndex; } _childrenArr[pointer].pop(); delete _childrenIndex[tokenId]; delete _parents[tokenId]; ERC721URIStorage._burn(tokenId); } function burn(uint256 tokenId) external { require (_isApprovedOrOwner(_msgSender(), tokenId), "Not approved and not owner"); _burn(tokenId); } // required to solve inheritance function supportsInterface(bytes4 interfaceId) public view virtual override(ERC5169, IERC165, ERC721, DerivedERC2981Royalty, ERC721Enumerable) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || ERC721.supportsInterface(interfaceId) || ERC5169.supportsInterface(interfaceId) || DerivedERC2981Royalty.supportsInterface(interfaceId); } function royaltyInfo(uint256 tokenId, uint256 salePrice) external virtual override view returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Token doesnt exist."); receiver = RoyaltyReceiver; royaltyAmount = (_getRoyalty() * salePrice) / 10000; } function setRoyaltyContract(address newAddress) external onlyOwner { _setRoyaltyContract( newAddress ); } function _setRoyaltyContract(address newAddress) internal { // require(newAddress.isContract(), "Only Contract allowed"); emit RoyaltyContractUpdated(newAddress); RoyaltyReceiver = newAddress; } function _isTokenOwner(address _contract, uint256 tokenId) internal view returns (bool) { ERC721 t = ERC721(_contract); return _msgSender() == t.ownerOf(tokenId); } function _isSharedHolderTokenOwner(address _contract, uint256 tokenId) internal view returns (bool) { ERC721 t = ERC721(_contract); address nftOwner = t.ownerOf(tokenId); uint length = sharedTokenHolders.length; for (uint i=0; i<length; i++){ console.log(sharedTokenHolders[i], nftOwner); if (sharedTokenHolders[i] == nftOwner){ return true; } } return false; } function getParent(uint256 tokenId) public view returns(ERC721s memory) { require(_exists(tokenId), "Non-existent token"); return _parents[tokenId]; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract UriChanger is Ownable { address private _uriChanger; event UriChangerUpdated(address indexed previousAddress, address indexed newAddress); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor(address _newUriChanger) { _updateUriChanger(_newUriChanger); } /** * @dev Returns the address of the current owner. */ function uriChanger() internal view returns (address) { return _uriChanger; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyUriChanger() { require(uriChanger() == _msgSender(), "UriChanger: caller is not allowed"); _; } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function updateUriChanger(address newAddress) public virtual onlyOwner { require(newAddress != address(0), "UriChanger: Address required"); _updateUriChanger(newAddress); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _updateUriChanger(address newAddress) internal virtual { address oldAddress = _uriChanger; _uriChanger = newAddress; emit UriChangerUpdated(oldAddress, newAddress); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Strings.sol"; contract VerifySignature { using Strings for uint256; // use this function to get the hash of any string function getHash(string memory str) public pure returns (bytes32) { return keccak256(abi.encodePacked(str)); } // take the keccak256 hashed message from the getHash function above and input into this function // this function prefixes the hash above with \x19Ethereum signed message:\n32 + hash // and produces a new hash signature function getEthSignedHash(bytes32 _messageHash) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash)); } function getEthMsgdHash(string memory message) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", bytes(message).length ,message)); } function getEthBytesHash(bytes memory data) public pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", data.length ,data)); } // input the getEthSignedHash results and the signature hash results // the output of this function will be the account number that signed the original message function verify(bytes32 _ethSignedMessageHash, bytes memory _signature) public pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function verifyStringSign(string memory _msg, bytes memory _signature) public pure returns (address) { bytes32 msgHash = keccak256(abi.encodePacked(_msg)); return verify(msgHash, _signature); } function splitSignature(bytes memory sig) public pure returns (bytes32 r, bytes32 s, uint8 v) { require(sig.length == 65, "invalid signature length"); assembly { /* First 32 bytes stores the length of the signature add(sig, 32) = pointer of sig + 32 effectively, skips first 32 bytes of signature mload(p) loads next 32 bytes starting at the memory address p into memory */ // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } // implicitly return (r, s, v) } // verify messages, signed by ethereum wallet function verifyEthString(string memory _msg, bytes memory _signature) public pure returns (address) { return verify(getEthMsgdHash(_msg), _signature); } function verifyEthHash(bytes32 _hash, bytes memory _signature) public pure returns (address) { return verify(getEthSignedHash(_hash), _signature); } function verifyEthBytes(bytes memory _data, bytes memory _signature) public pure returns (address) { return verify(getEthBytesHash(_data), _signature); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./SolRsaVerify.sol"; import "hardhat/console.sol"; library VerifyLinkAttestation { using ECDSA for bytes32; function verifyAddressAttestation(bytes memory attestation, address attestorAddr) internal view returns (address attestedAddress) { address linkedAddress; (attestedAddress, linkedAddress) = decodeAttestation(attestation, attestorAddr); if (msg.sender != linkedAddress){ revert("Linked address not eq sender"); } } function decodeAttestation(bytes memory attestation, address attestorAddr) internal view returns (address attestedAddress, address linkedAddress) { uint256 length; uint256 hashIndex; uint256 decodeIndex; bytes memory curBytes; bytes memory sigData; bytes memory pubKeyModulus; bytes memory pubKeyExponent; // Main header (Signed link attestation) // (length, hashIndex, ) = decodeLength(attestation, 0); // (total length, primary header) (, hashIndex, ) = decodeLength(attestation, 0); // (total length, primary header) // Link attestation structure (length, decodeIndex, ) = decodeLength(attestation, hashIndex); bytes memory linkEncoded = copyDataBlock(attestation, hashIndex, (length + decodeIndex) - hashIndex); // Encoded data for link attestation (length, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // linked ethereum address linkedAddress = bytesToAddress(curBytes); (, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // Linked attestation (attestedAddress, pubKeyModulus, pubKeyExponent) = decodeAddressAttestation(curBytes, attestorAddr); (, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // validity validateExpiry(curBytes); // TODO: Check for context field //(length, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // context (, decodeIndex, ) = decodeLength(attestation, decodeIndex); // object identifier (, , decodeIndex, ) = decodeElement(attestation, decodeIndex); (, sigData, decodeIndex) = decodeElementOffset(attestation, decodeIndex, 1); // Signature if (SolRsaVerify.pkcs1Sha256VerifyRaw(linkEncoded, sigData, pubKeyExponent, pubKeyModulus) != 0) { revert("RSA verification failed :-("); } } function decodeAddressAttestation(bytes memory attestation, address attestorAddr) internal view returns ( address attestedAddress, bytes memory pubKeyModulus, bytes memory pubKeyExponent ) { uint256 length; uint256 hashIndex; uint256 decodeIndex; bytes memory curBytes; bytes memory sigData; (, hashIndex, ) = decodeLength(attestation, 0); // (total length, primary header) // Address attestation structure (length, decodeIndex, ) = decodeLength(attestation, hashIndex); bytes memory addressEncoded = copyDataBlock(attestation, hashIndex, (length + decodeIndex) - hashIndex); // Encoded data for address attestation (, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // subject public key (public key of link attestation signature) (pubKeyModulus, pubKeyExponent) = decodeRsaPublicKey(curBytes); (, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // Attested ethereum address attestedAddress = bytesToAddress(curBytes); (, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // validity validateExpiry(curBytes); // TODO: Check for context field //(length, curBytes, decodeIndex, ) = decodeElement(attestation, decodeIndex); // context (, decodeIndex, ) = decodeLength(attestation, decodeIndex); // Algorithm info (, , decodeIndex, ) = decodeElement(attestation, decodeIndex); (, sigData, decodeIndex) = decodeElementOffset(attestation, decodeIndex, 1); // Signature address recoveredAddress = keccak256(addressEncoded).recover(sigData); if (recoveredAddress != attestorAddr) { revert("Wrong Attestor"); } } function validateExpiry(bytes memory validity) internal view { uint256 length = 0; uint256 decodeIndex = 0; bytes memory curBytes; (length, curBytes, decodeIndex,) = decodeElement(validity, decodeIndex); uint from = bytesToUint(curBytes); (length, curBytes, decodeIndex,) = decodeElement(validity, decodeIndex); uint to = bytesToUint(curBytes); require(block.timestamp > from, "Attestation not yet valid"); require(block.timestamp < to, "Attestation expired"); } function decodeRsaPublicKey(bytes memory asnEncoded) internal pure returns (bytes memory modulus, bytes memory exponent) { uint256 decodeIndex; bytes memory curBytes; // (length, curBytes, decodeIndex, ) = decodeElement(asnEncoded, decodeIndex); // Skip algorithm ID // (length, curBytes, decodeIndex) = decodeElementOffset(asnEncoded, decodeIndex, 1); (, , decodeIndex, ) = decodeElement(asnEncoded, decodeIndex); // Skip algorithm ID (, curBytes, decodeIndex) = decodeElementOffset(asnEncoded, decodeIndex, 1); decodeIndex = 0; // bytes memory parts = curBytes; // (length, decodeIndex, ) = decodeLength(parts, decodeIndex); (, decodeIndex, ) = decodeLength(curBytes, decodeIndex); // (length, modulus, decodeIndex) = decodeElementOffset(parts, decodeIndex, 1); (, modulus, decodeIndex) = decodeElementOffset(curBytes, decodeIndex, 1); // (length, exponent, decodeIndex, ) = decodeElement(parts, decodeIndex); (, exponent, , ) = decodeElement(curBytes, decodeIndex); } // TODO: Is this more gas efficient compared to using open-zeppelin EDCSA? /*function recoverSigner(bytes memory prehash, bytes memory signature) internal pure returns(address signer) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(signature); return ecrecover(keccak256(prehash), v, r, s); } function splitSignature(bytes memory sig) internal pure returns (bytes32 r, bytes32 s, uint8 v) { require(sig.length == 65, "invalid signature length"); assembly { // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } }*/ function bytesToAddress(bytes memory bys) private pure returns (address addr) { assembly { addr := mload(add(bys, 20)) } } //Truncates if input is greater than 32 bytes; we only handle 32 byte values. function bytesToUint(bytes memory b) public pure returns (uint256 conv) { if (b.length < 0x20) //if b is less than 32 bytes we need to pad to get correct value { bytes memory b2 = new bytes(32); uint startCopy = 0x20 + 0x20 - b.length; assembly { let bcc := add(b, 0x20) let bbc := add(b2, startCopy) mstore(bbc, mload(bcc)) conv := mload(add(b2, 32)) } } else { assembly { conv := mload(add(b, 32)) } } } ////////////////////////////////////////////////////////////// // DER Helper functions ////////////////////////////////////////////////////////////// function decodeDERData(bytes memory byteCode, uint256 dIndex) internal pure returns ( bytes memory data, uint256 index, uint256 length, bytes1 tag ) { return decodeDERData(byteCode, dIndex, 0); } function copyDataBlock( bytes memory byteCode, uint256 dIndex, uint256 length ) internal pure returns (bytes memory data) { // uint256 blank; // uint256 index = dIndex; // uint256 dStart = 0x20 + dIndex; uint256 cycles = length / 0x20; uint256 requiredAlloc = length; if (length % 0x20 > 0) //optimise copying the final part of the bytes - remove the looping { cycles++; requiredAlloc += 0x20; //expand memory to allow end blank } data = new bytes(requiredAlloc); assembly { let mc := add(data, 0x20) //offset into bytes we're writing into let cycle := 0 for { let cc := add(byteCode, add(0x20, dIndex)) } lt(cycle, cycles) { mc := add(mc, 0x20) cc := add(cc, 0x20) cycle := add(cycle, 0x01) } { mstore(mc, mload(cc)) } } //finally blank final bytes and shrink size if (length % 0x20 > 0) { uint256 offsetStart = 0x20 + length; assembly { let mc := add(data, offsetStart) // mstore(mc, mload(add(blank, 0x20))) mstore(mc, mload(0x20)) //now shrink the memory back mstore(data, length) } } } function decodeDERData( bytes memory byteCode, uint256 dIndex, uint256 offset ) internal pure returns ( bytes memory data, uint256 index, uint256 length, bytes1 tag ) { // index = dIndex; // (length, index, tag) = decodeLength(byteCode, index); (length, index, tag) = decodeLength(byteCode, dIndex); if (offset <= length) { // uint256 requiredLength = length - offset; // uint256 dStart = index + offset; // data = copyDataBlock(byteCode, dStart, requiredLength); data = copyDataBlock(byteCode, index + offset, length - offset); } else { data = bytes(""); } index += length; } function decodeElement(bytes memory byteCode, uint256 decodeIndex) internal pure returns ( uint256 length, bytes memory content, uint256 newIndex, bytes1 tag ) { (content, newIndex, length, tag) = decodeDERData(byteCode, decodeIndex); } function decodeElementOffset( bytes memory byteCode, uint256 decodeIndex, uint256 offset ) internal pure returns ( uint256 length, bytes memory content, uint256 newIndex ) { (content, newIndex, length, ) = decodeDERData(byteCode, decodeIndex, offset); } function decodeLength(bytes memory byteCode, uint256 decodeIndex) internal pure returns ( uint256 length, uint256 newIndex, bytes1 tag ) { uint256 codeLength = 1; // length = 0; newIndex = decodeIndex; tag = bytes1(byteCode[newIndex++]); if ((byteCode[newIndex] & 0x80) == 0x80) { codeLength = uint8((byteCode[newIndex++] & 0x7f)); } for (uint256 i = 0; i < codeLength; i++) { length |= uint256(uint8(byteCode[newIndex++] & 0xFF)) << ((codeLength - i - 1) * 8); } } function decodeIA5String( bytes memory byteCode, uint256[] memory objCodes, uint256 objCodeIndex, uint256 decodeIndex ) internal pure returns (Status memory) { uint256 length = uint8(byteCode[decodeIndex++]); bytes32 store = 0; for (uint256 j = 0; j < length; j++) store |= bytes32(byteCode[decodeIndex++] & 0xFF) >> (j * 8); objCodes[objCodeIndex++] = uint256(store); Status memory retVal; retVal.decodeIndex = decodeIndex; retVal.objCodeIndex = objCodeIndex; return retVal; } struct Status { uint256 decodeIndex; uint256 objCodeIndex; } }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int256)", p0)); } function logUint(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint256 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint256 p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1)); } function log(uint256 p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1)); } function log(uint256 p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1)); } function log(uint256 p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1)); } function log(string memory p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint256 p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint256 p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2)); } function log(uint256 p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2)); } function log(uint256 p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2)); } function log(uint256 p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2)); } function log(uint256 p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2)); } function log(uint256 p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2)); } function log(uint256 p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2)); } function log(uint256 p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2)); } function log(uint256 p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2)); } function log(uint256 p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2)); } function log(uint256 p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2)); } function log(uint256 p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2)); } function log(uint256 p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2)); } function log(string memory p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2)); } function log(string memory p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2)); } function log(string memory p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2)); } function log(string memory p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2)); } function log(bool p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2)); } function log(bool p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2)); } function log(bool p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint256 p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2)); } function log(address p0, uint256 p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2)); } function log(address p0, uint256 p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2)); } function log(address p0, uint256 p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint256 p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3)); } function log(uint256 p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint256 p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint256 p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint256 p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
/* Attestation decode and validation */ /* AlphaWallet 2021 - 2022 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC5169.sol"; abstract contract ERC5169 is IERC5169 { string[] private _scriptURI; function scriptURI() external view override returns(string[] memory) { return _scriptURI; } function setScriptURI(string[] memory newScriptURI) external override { _authorizeSetScripts(newScriptURI); _scriptURI = newScriptURI; emit ScriptUpdate(newScriptURI); } function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC5169).interfaceId; } /** * @dev Function that should revert when `msg.sender` is not authorized to set script URI. Called by * {setScriptURI}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeSetScripts(string[] memory) internal override onlyOwner {} * ``` */ function _authorizeSetScripts(string[] memory newScriptURI) internal virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; // Max royalty value is 10000 (100%) abstract contract DerivedERC2981Royalty is IERC2981 { event RoyaltyUpdated(uint256 value); uint256 private _royalty; function _setRoyalty(uint256 value ) internal { require(value <= 10000, "Royalty more that 100%" ); emit RoyaltyUpdated(value); _royalty = value; } function _getRoyalty() internal view returns(uint256){ return _royalty; } /// @dev Support for IERC-2981, royalties function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981).interfaceId; } }
// 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/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// 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 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 pragma solidity ^0.8.5; library SolRsaVerify { bytes19 constant sha256Prefix = 0x3031300d060960864801650304020105000420; function memcpy( uint256 _dest, uint256 _src, uint256 _len ) internal pure { // Copy word-length chunks while possible for (; _len >= 32; _len -= 32) { assembly { mstore(_dest, mload(_src)) } _dest += 32; _src += 32; } if (_len > 0) { uint256 mask = 256**(32 - _len) - 1; assembly { let srcpart := and(mload(_src), not(mask)) let destpart := and(mload(_dest), mask) mstore(_dest, or(destpart, srcpart)) } } } function join( bytes memory _s, bytes memory _e, bytes memory _m ) internal pure returns (bytes memory) { uint256 slen = _s.length; uint256 elen = _e.length; uint256 mlen = _m.length; uint256 sptr; uint256 eptr; uint256 mptr; uint256 inputPtr; bytes memory input = new bytes(0x60 + slen + elen + mlen); assembly { sptr := add(_s, 0x20) eptr := add(_e, 0x20) mptr := add(_m, 0x20) mstore(add(input, 0x20), slen) mstore(add(input, 0x40), elen) mstore(add(input, 0x60), mlen) inputPtr := add(input, 0x20) } memcpy(inputPtr + 0x60, sptr, slen); memcpy(inputPtr + 0x60 + slen, eptr, elen); memcpy(inputPtr + 0x60 + slen + elen, mptr, mlen); return input; } function sliceUint(bytes memory bs, uint start) internal pure returns (uint) { require(bs.length >= start + 32, "slicing out of range"); uint x; assembly { x := mload(add(bs, add(0x20, start))) } return x; } /** @dev Verifies a PKCSv1.5 SHA256 signature * @param _sha256 is the sha256 of the data * @param _s is the signature * @param _e is the exponent * @param _m is the modulus * @return 0 if success, >0 otherwise */ function pkcs1Sha256Verify( bytes32 _sha256, bytes memory _s, bytes memory _e, bytes memory _m ) internal view returns (uint256) { uint256 decipherlen = _m.length; require(decipherlen >= 62); // _m.length >= sha256Prefix.length + _sha256.length + 11 = 19 + 32 + 11 = 62 // decipher bytes memory input = join(_s, _e, _m); // // return 0; uint256 inputlen = input.length; bytes memory decipher = new bytes(decipherlen); // cp0; assembly { pop(staticcall(sub(gas(), 2000), 0x05, add(input, 0x20), inputlen, add(decipher, 0x20), decipherlen)) } // optimized for 1024 bytes if ( sliceUint(decipher, 0 ) != 0x0001ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff || uint(sliceUint(decipher, 13)) != 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff || uint(sliceUint(decipher, 13+32)) != 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00 ) { return 1; } // or uncomment for other than 1024 (start) // if (uint8(decipher[0]) != 0 || uint8(decipher[1]) != 1) { // return 1; // } // uint256 i; // for (i = 2; i < decipherlen - 52; i++) { // if (decipher[i] != 0xff) { // return 2; // } // } // if (decipher[decipherlen - 52] != 0) { // return 3; // } // or uncomment for other than 1024 (end) if (uint(bytes32(sha256Prefix)) != sliceUint(decipher, decipherlen - 51) & 0xffffffffffffffffffffffffffffffffffffff00000000000000000000000000){ return 4; } if (uint256(_sha256) != sliceUint(decipher,decipherlen - 32)){ return 5; } return 0; } /** @dev Verifies a PKCSv1.5 SHA256 signature * @param _data to verify * @param _s is the signature * @param _e is the exponent * @param _m is the modulus * @return 0 if success, >0 otherwise */ function pkcs1Sha256VerifyRaw( bytes memory _data, bytes memory _s, bytes memory _e, bytes memory _m ) internal view returns (uint256) { return pkcs1Sha256Verify(sha256(_data), _s, _e, _m); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
/* Attestation decode and validation */ /* AlphaWallet 2021 - 2022 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC5169 { /// @dev This event emits when the scriptURI is updated, /// so wallets implementing this interface can update a cached script event ScriptUpdate(string[]); /// @notice Get the scriptURI for the contract /// @return The scriptURI function scriptURI() external view returns(string[] memory); /// @notice Update the scriptURI /// emits event ScriptUpdate(scriptURI memory newScriptURI); function setScriptURI(string[] memory) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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.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 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rr","type":"address"},{"internalType":"address","name":"_newUriChanger","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"BaseUriUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MintEndUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"MintPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MintStartUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"parentContract","type":"address"},{"indexed":true,"internalType":"uint256","name":"parentId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"mintedId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tmpUri","type":"string"},{"indexed":false,"internalType":"uint256","name":"currentOriginIndex","type":"uint256"}],"name":"MintedDerived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newERC721","type":"address"}],"name":"ParentAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"RoyaltyContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"RoyaltyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string[]","name":"","type":"string[]"}],"name":"ScriptUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"newAddresses","type":"address[]"}],"name":"SharedTokenHoldersUpdated","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":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"UriChangerUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"newContract","type":"address"}],"name":"addParent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"getEthBytesHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"message","type":"string"}],"name":"getEthMsgdHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"getHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getParent","outputs":[{"components":[{"internalType":"address","name":"erc721","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct BrandExtenderSuitUp.ERC721s","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getParents","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"ERC721","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"tokenURI","type":"string"}],"internalType":"struct BrandExtenderSuitUp.mintRequestData[]","name":"data","type":"tuple[]"}],"name":"mintDerived","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":[],"name":"scriptURI","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setMintEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setMintStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setRoyaltyContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"newScriptURI","type":"string[]"}],"name":"setScriptURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"newAddresses","type":"address[]"}],"name":"setSharedTokenHolders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"erc721","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOriginByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"erc721","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenOfOriginCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"erc721","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenOfOriginCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUriChanger","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verifyEthBytes","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verifyEthHash","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_msg","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verifyEthString","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_msg","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"verifyStringSign","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200443c3803806200443c833981016040819052620000349162000379565b806040518060400160405280601c81526020017f446576636f6e205649205375697420557020436f6c6c656374696f6e00000000815250604051806040016040528060088152602001670444356495f5355560c41b81525081600190816200009d919062000456565b506002620000ac828262000456565b505050620000c9620000c36200010060201b60201c565b62000104565b620000d48162000156565b50620000e081620001a8565b620000eb826200021c565b620000f861025862000272565b505062000522565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f440b22f2c347b1fb7b850f182e7defb88ed393ebeb024d7b5e519d230c71e8f190600090a35050565b620001b2620002fe565b6001600160a01b0381166200020e5760405162461bcd60e51b815260206004820152601c60248201527f5572694368616e6765723a20416464726573732072657175697265640000000060448201526064015b60405180910390fd5b620002198162000156565b50565b6040516001600160a01b038216907f0b6f951a64dbce89dc77dd9afdc83f939b55287cdf239c09bd12d565ff4a20c790600090a2601380546001600160a01b0319166001600160a01b0392909216919091179055565b612710811115620002c65760405162461bcd60e51b815260206004820152601660248201527f526f79616c7479206d6f72652074686174203130302500000000000000000000604482015260640162000205565b6040518181527f244ea8d7627f5a08f4299862bd5a45752842c183aee5b0fb0d1e4887bfa605b39060200160405180910390a1600e55565b600c546001600160a01b031633146200035a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000205565b565b80516001600160a01b03811681146200037457600080fd5b919050565b600080604083850312156200038d57600080fd5b62000398836200035c565b9150620003a8602084016200035c565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003dc57607f821691505b602082108103620003fd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200045157600081815260208120601f850160051c810160208610156200042c5750805b601f850160051c820191505b818110156200044d5782815560010162000438565b5050505b505050565b81516001600160401b03811115620004725762000472620003b1565b6200048a81620004838454620003c7565b8462000403565b602080601f831160018114620004c25760008415620004a95750858301515b600019600386901b1c1916600185901b1785556200044d565b600085815260208120601f198616915b82811015620004f357888601518255948401946001909101908401620004d2565b5085821015620005125787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613f0a80620005326000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80636c0360eb116101b8578063b88d4fde11610104578063e02532c8116100a2578063e8a3d4851161007c578063e8a3d48514610733578063e985e9c51461073b578063f2fde38b14610777578063f4a0a5281461078a57600080fd5b8063e02532c8146105d5578063e21392001461066b578063e3d61eb31461072057600080fd5b8063d0f72a71116100de578063d0f72a71146106dd578063d5b3621b146106e5578063d9aa187c146106f8578063dd6133b51461070b57600080fd5b8063b88d4fde146106a4578063c87b56dd146106b7578063cde251d0146106ca57600080fd5b806395d89b4111610171578063acf36e531161014b578063acf36e5314610658578063b08000031461066b578063b5c8fd621461067e578063b7dccd491461069157600080fd5b806395d89b411461060c578063a22cb46514610614578063a7bb58031461062757600080fd5b80636c0360eb146105b257806370a08231146105ba578063715018a6146105cd5780637c7c644e146105d55780638065bcf1146105e85780638da5cb5b146105fb57600080fd5b80632b9fcb961161029257806342966c681161023057806355f804b31161020a57806355f804b3146105665780635b6beeb9146105795780635b7121f81461058c5780636352211e1461059f57600080fd5b806342966c681461052b5780634bb309121461053e5780634f6ccce71461055357600080fd5b806337b9db811161026c57806337b9db81146104bb578063414533de146104ce5780634209a2e11461050557806342842e0e1461051857600080fd5b80632b9fcb961461048d5780632f4ea5ea146104955780632f745c59146104a857600080fd5b8063162094c4116102ff57806323b872dd116102d957806323b872dd14610422578063258ae582146104355780632a55205a146104485780632b22d8111461047a57600080fd5b8063162094c4146103ea57806317f37495146103fd57806318160ddd1461041057600080fd5b806301ffc9a714610347578063057aee2b1461036f57806306fdde031461039a578063081812fc146103af578063095ea7b3146103c25780630a9d3ee6146103d7575b600080fd5b61035a610355366004613272565b61079d565b60405190151581526020015b60405180910390f35b61038261037d366004613344565b6107fe565b6040516001600160a01b039091168152602001610366565b6103a261083c565b60405161036691906133ff565b6103826103bd366004613412565b6108ce565b6103d56103d0366004613440565b6108f5565b005b6103d56103e536600461346c565b610a0f565b6103d56103f8366004613489565b610a79565b6103d561040b366004613412565b610ae9565b6009545b604051908152602001610366565b6103d56104303660046134c5565b610afa565b610382610443366004613489565b610b2c565b61045b610456366004613506565b610bab565b604080516001600160a01b039093168352602083019190915201610366565b6103d5610488366004613573565b610c3f565b601554610414565b6104146104a3366004613412565b610eb9565b6104146104b6366004613440565b610f0d565b6104146104c93660046135b4565b610fa3565b6104e16104dc366004613412565b61103b565b6040805182516001600160a01b031681526020928301519281019290925201610366565b6103d5610513366004613412565b6110db565b6103d56105263660046134c5565b6110ec565b6103d5610539366004613412565b611107565b610546611165565b60405161036691906135e9565b610414610561366004613412565b61123e565b6103d561057436600461364b565b6112d1565b61041461058736600461364b565b611304565b61038261059a366004613412565b611317565b6103826105ad366004613412565b61133e565b6103a261139e565b6104146105c836600461346c565b6113ad565b6103d5611433565b6104146105e336600461364b565b611447565b6104146105f6366004613440565b61145d565b600c546001600160a01b0316610382565b6103a2611481565b6103d561062236600461368d565b611490565b61063a61063536600461364b565b61149f565b60408051938452602084019290925260ff1690820152606001610366565b6103d561066636600461346c565b611513565b610382610679366004613344565b61175b565b61038261068c366004613489565b611776565b61041461069f366004613440565b611784565b6103d56106b23660046136c6565b6117a8565b6103a26106c5366004613412565b6117e0565b6103d56106d8366004613573565b61187d565b601654610414565b6103d56106f3366004613412565b6118ca565b6103d561070636600461346c565b6118db565b6107136118ec565b6040516103669190613731565b6103d561072e36600461377e565b61194d565b6103a26119a4565b61035a610749366004613840565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103d561078536600461346c565b6119e3565b6103d5610798366004613412565b611a59565b60006001600160e01b0319821663780e9d6360e01b14806107c257506107c282611aa2565b806107dd575063a86517a160e01b6001600160e01b03198316145b806107f8575063152a902d60e11b6001600160e01b03198316145b92915050565b60008083604051602001610812919061386e565b6040516020818303038152906040528051906020012090506108348184610b2c565b949350505050565b60606001805461084b9061388a565b80601f01602080910402602001604051908101604052809291908181526020018280546108779061388a565b80156108c45780601f10610899576101008083540402835291602001916108c4565b820191906000526020600020905b8154815290600101906020018083116108a757829003601f168201915b5050505050905090565b60006108d982611af2565b506000908152600560205260409020546001600160a01b031690565b60006109008261133e565b9050806001600160a01b0316836001600160a01b0316036109725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061098e575061098e8133610749565b610a005760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610969565b610a0a8383611b51565b505050565b610a17611bbf565b6001600160a01b038116610a6d5760405162461bcd60e51b815260206004820152601c60248201527f5572694368616e6765723a2041646472657373207265717569726564000000006044820152606401610969565b610a7681611c19565b50565b600d546001600160a01b03163314610aa35760405162461bcd60e51b8152600401610969906138be565b610aad8282611c6b565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720782604051610add91906133ff565b60405180910390a25050565b610af1611bbf565b610a7681611cfe565b610b05335b82611d36565b610b215760405162461bcd60e51b8152600401610969906138ff565b610a0a838383611db4565b600080600080610b3b8561149f565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015610b96573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b60008281526003602052604081205481906001600160a01b0316610c075760405162461bcd60e51b81526020600482015260136024820152722a37b5b2b7103237b2b9b73a1032bc34b9ba1760691b6044820152606401610969565b6013546001600160a01b0316915061271083610c22600e5490565b610c2c9190613963565b610c369190613998565b90509250929050565b60005b81811015610a0a57610c76838383818110610c5f57610c5f6139ac565b9050602002810190610c7191906139c2565b611f5b565b610cb95760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081b5a5b9d081c995c5d595cdd60621b6044820152606401610969565b610d44838383818110610cce57610cce6139ac565b9050602002810190610ce091906139c2565b610cee90602081019061346c565b848484818110610d0057610d006139ac565b9050602002810190610d1291906139c2565b6020013533868686818110610d2957610d296139ac565b9050602002810190610d3b91906139c2565b604001356120f3565b828282818110610d5657610d566139ac565b9050602002810190610d6891906139c2565b60400135838383818110610d7e57610d7e6139ac565b9050602002810190610d9091906139c2565b60200135848484818110610da657610da66139ac565b9050602002810190610db891906139c2565b610dc690602081019061346c565b6001600160a01b03167ff41cc26c17d32c8adb1c77f6fe82ea9f3a8ee73624917e5ccdbbb3a61ac864f7868686818110610e0257610e026139ac565b9050602002810190610e1491906139c2565b610e229060808101906139d8565b6001610e868a8a8a818110610e3957610e396139ac565b9050602002810190610e4b91906139c2565b610e5990602081019061346c565b8b8b8b818110610e6b57610e6b6139ac565b9050602002810190610e7d91906139c2565b6020013561145d565b610e909190613a1e565b604051610e9f93929190613a35565b60405180910390a480610eb181613a6e565b915050610c42565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c015b604051602081830303815290604052805190602001209050919050565b6000610f18836113ad565b8210610f7a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610969565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600080610fb085856122bb565b60008181526010602052604090205490915083106110065760405162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b6044820152606401610969565b6000818152601060205260409020805484908110611026576110266139ac565b90600052602060002001549150509392505050565b60408051808201909152600080825260208201526000828152600360205260409020546001600160a01b03166110a85760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610969565b506000908152600f6020908152604091829020825180840190935280546001600160a01b03168352600101549082015290565b6110e3611bbf565b610a7681612303565b610a0a838383604051806020016040528060008152506117a8565b61111033610aff565b61115c5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420617070726f76656420616e64206e6f74206f776e65720000000000006044820152606401610969565b610a7681612386565b60606000805480602002602001604051908101604052809291908181526020016000905b828210156112355783829060005260206000200180546111a89061388a565b80601f01602080910402602001604051908101604052809291908181526020018280546111d49061388a565b80156112215780601f106111f657610100808354040283529160200191611221565b820191906000526020600020905b81548152906001019060200180831161120457829003601f168201915b505050505081526020019060010190611189565b50505050905090565b600061124960095490565b82106112ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610969565b600982815481106112bf576112bf6139ac565b90600052602060002001549050919050565b600d546001600160a01b031633146112fb5760405162461bcd60e51b8152600401610969906138be565b610a76816124bf565b600081604051602001610ef0919061386e565b600061132282611af2565b506000908152601860205260409020546001600160a01b031690565b6000818152600360205260408120546001600160a01b0316806107f85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610969565b60606113a8612502565b905090565b60006001600160a01b0382166114175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610969565b506001600160a01b031660009081526004602052604090205490565b61143b611bbf565b6114456000612511565b565b6000815182604051602001610ef0929190613a87565b60008061146a84846122bb565b600090815260126020526040902054949350505050565b60606002805461084b9061388a565b61149b338383612563565b5050565b600080600083516041146114f55760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610969565b50505060208101516040820151606090920151909260009190911a90565b600d546001600160a01b0316331461153d5760405162461bcd60e51b8152600401610969906138be565b6001600160a01b0381163b6115875760405162461bcd60e51b815260206004820152601060248201526f135d5cdd0818994818dbdb9d1c9858dd60821b6044820152606401610969565b6040516301ffc9a760e01b81526380ac58cd60e01b600482015281906001600160a01b038216906301ffc9a790602401602060405180830381865afa9250505080156115f0575060408051601f3d908101601f191682019092526115ed91810190613ad3565b60015b6116365760405162461bcd60e51b8152602060048201526017602482015276135d5cdd08189948115490cdcc8c4818dbdb9d1c9858dd604a1b6044820152606401610969565b8061167d5760405162461bcd60e51b8152602060048201526017602482015276135d5cdd08189948115490cdcc8c4818dbdb9d1c9858dd604a1b6044820152606401610969565b506001600160a01b0382166000908152601b6020526040902054156116d45760405162461bcd60e51b815260206004820152600d60248201526c105b1c9958591e481859191959609a1b6044820152606401610969565b601a80546001810182557f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e0180546001600160a01b0319166001600160a01b03851690811790915590546000828152601b60205260408082209290925590517f52118c6bb52ae44b35c045b24d4f6c21333f82d0a999232082667024ec1770a09190a25050565b600061176f61176984611447565b83610b2c565b9392505050565b600061176f61176984610eb9565b60008061179184846122bb565b600090815260106020526040902054949350505050565b6117b23383611d36565b6117ce5760405162461bcd60e51b8152600401610969906138ff565b6117da84848484612631565b50505050565b60606117eb82611af2565b60006117f561139e565b805190915015611831578061180984612664565b60405160200161181a929190613af0565b604051602081830303815290604052915050919050565b604051806060016040528060258152602001613eb06025913961185346612664565b61185b612764565b61186486612664565b60405160200161181a9493929190613b2c565b50919050565b611885611bbf565b7fac678df45aee8a496378d894ad4870143c94225dad3bcc51e8de1b2d0ad5aa3f82826040516118b6929190613b9b565b60405180910390a1610a0a6014838361313f565b6118d2611bbf565b610a7681612771565b6118e3611bbf565b610a76816127a9565b6060601a8054806020026020016040519081016040528092919081815260200182805480156108c457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611926575050505050905090565b611956816127ff565b80516119699060009060208401906131a2565b507f9538911740e5519a40db77fb5f637de0d56cdd804318d81ae270cc24fbd8479e8160405161199991906135e9565b60405180910390a150565b6060604051806060016040528060258152602001613eb0602591396040516020016119cf9190613be9565b604051602081830303815290604052905090565b6119eb611bbf565b6001600160a01b038116611a505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610969565b610a7681612511565b611a61611bbf565b60175460408051918252602082018390527f2e1c9e000c6e8dda4d03536adb13b7cb6034ccff90d17f01de381e4d5097b525910160405180910390a1601755565b60006001600160e01b031982166380ac58cd60e01b1480611ad357506001600160e01b03198216635b5e139f60e01b145b806107f857506301ffc9a760e01b6001600160e01b03198316146107f8565b6000818152600360205260409020546001600160a01b0316610a765760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610969565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b868261133e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600c546001600160a01b031633146114455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610969565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f440b22f2c347b1fb7b850f182e7defb88ed393ebeb024d7b5e519d230c71e8f190600090a35050565b6000828152600360205260409020546001600160a01b0316611ce65760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610969565b6000828152600b60205260409020610a0a8282613c70565b6040518181527f485f8fbebe3467888e99da9cacbdbe8e8ff5b688b83c04afe9d61340e70d0ae19060200160405180910390a1601655565b600080611d428361133e565b9050806001600160a01b0316846001600160a01b03161480611d8957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806108345750836001600160a01b0316611da2846108ce565b6001600160a01b031614949350505050565b826001600160a01b0316611dc78261133e565b6001600160a01b031614611e2b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610969565b6001600160a01b038216611e8d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610969565b611e98838383612807565b611ea3600082611b51565b6001600160a01b0383166000908152600460205260408120805460019290611ecc908490613a1e565b90915550506001600160a01b0382166000908152600460205260408120805460019290611efa908490613d2f565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611f6b602084018461346c565b90506000601b81611f7f602087018761346c565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611fe65760405162461bcd60e51b815260206004820152601660248201527510dbdb9d1c9858dd081b9bdd081cdd5c1c1bdc9d195960521b6044820152606401610969565b6000303383602087013546604089013561200360808b018b6139d8565b60405160200161201a989796959493929190613d47565b604051602081830303815290604052905061203d600d546001600160a01b031690565b6001600160a01b031661209b828051906020012086806060019061206191906139d8565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061177692505050565b6001600160a01b0316146120e95760405162461bcd60e51b81526020600482015260156024820152742bb937b7339036b2ba30b230ba309039b4b3b732b960591b6044820152606401610969565b5060019392505050565b6015544210156121455760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e6720686173206e6f7420737461727465640000000000000000006044820152606401610969565b60165415612192576016544211156121925760405162461bcd60e51b815260206004820152601060248201526f135a5b9d1a5b99c8199a5b9a5cda195960821b6044820152606401610969565b61219c8484612853565b6121e85760405162461bcd60e51b815260206004820152601760248201527f53686172656420486f6c646572206e6f74206f776e65720000000000000000006044820152606401610969565b6040805180820182526001600160a01b03808716825260208083018781526000868152600f83528581209451855494166001600160a01b03199485161785559051600190940193909355601890529181208054909216331790915561224d85856122bb565b60008181526012602090815260408083205460108084528285208054898752601186529386208490559084526001808401825590855292909320018590559192509061229a908290613d2f565b6000838152601260205260409020556122b38484612968565b505050505050565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160408051601f1981840301815291905280516020909101209392505050565b61271081111561234e5760405162461bcd60e51b8152602060048201526016602482015275526f79616c7479206d6f72652074686174203130302560501b6044820152606401610969565b6040518181527f244ea8d7627f5a08f4299862bd5a45752842c183aee5b0fb0d1e4887bfa605b39060200160405180910390a1600e55565b60006123918261103b565b905060006123a7826000015183602001516122bb565b6000848152601160209081526040808320548484526010909252822054929350916123d490600190613a1e565b905080821461244f5760008381526010602052604081208054839081106123fd576123fd6139ac565b906000526020600020015490508060106000868152602001908152602001600020848154811061242f5761242f6139ac565b600091825260208083209091019290925591825260119052604090208290555b600083815260106020526040902080548061246c5761246c613da5565b600082815260208082208301600019908101839055909201909255868252601181526040808320839055600f909152812080546001600160a01b0319168155600101556124b885612982565b5050505050565b7f24a9152dc695ecc801ad580886331ee12d7aac0fa2ae341a5ae3c2ccae36cb4f816040516124ee91906133ff565b60405180910390a1601961149b8282613c70565b60606019805461084b9061388a565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036125c45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610969565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61263c848484611db4565b612648848484846129c2565b6117da5760405162461bcd60e51b815260040161096990613dbb565b60608160000361268b5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126b5578061269f81613a6e565b91506126ae9050600a83613998565b915061268f565b6000816001600160401b038111156126cf576126cf61328f565b6040519080825280601f01601f1916602001820160405280156126f9576020820181803683370190505b5090505b84156108345761270e600183613a1e565b915061271b600a86613e0d565b612726906030613d2f565b60f81b81838151811061273b5761273b6139ac565b60200101906001600160f81b031916908160001a90535061275d600a86613998565b94506126fd565b60606113a8306014612ac3565b6040518181527f516a468928449c9ae8efea976ba0c7ea3173cbab8e3033adc9354d531777dba09060200160405180910390a1601555565b6040516001600160a01b038216907f0b6f951a64dbce89dc77dd9afdc83f939b55287cdf239c09bd12d565ff4a20c790600090a2601380546001600160a01b0319166001600160a01b0392909216919091179055565b610a76611bbf565b6001600160a01b03821615801561282657506001600160a01b03831615155b1561284857600081815260186020526040902080546001600160a01b03191690555b610a0a838383612c5e565b6040516331a9108f60e11b815260048101829052600090839082906001600160a01b03831690636352211e90602401602060405180830381865afa15801561289f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c39190613e21565b60145490915060005b8181101561295b57612905601482815481106128ea576128ea6139ac565b6000918252602090912001546001600160a01b031684612d16565b826001600160a01b031660148281548110612922576129226139ac565b6000918252602090912001546001600160a01b0316036129495760019450505050506107f8565b8061295381613a6e565b9150506128cc565b5060009695505050505050565b61149b828260405180602001604052806000815250612d66565b61298b81612d99565b6000818152600b6020526040902080546129a49061388a565b159050610a76576000818152600b60205260408120610a76916131f4565b60006001600160a01b0384163b15612ab857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a06903390899088908890600401613e3e565b6020604051808303816000875af1925050508015612a41575060408051601f3d908101601f19168201909252612a3e91810190613e7b565b60015b612a9e573d808015612a6f576040519150601f19603f3d011682016040523d82523d6000602084013e612a74565b606091505b508051600003612a965760405162461bcd60e51b815260040161096990613dbb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610834565b506001949350505050565b60606000612ad2836002613963565b612add906002613d2f565b6001600160401b03811115612af457612af461328f565b6040519080825280601f01601f191660200182016040528015612b1e576020820181803683370190505b509050600360fc1b81600081518110612b3957612b396139ac565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b6857612b686139ac565b60200101906001600160f81b031916908160001a9053506000612b8c846002613963565b612b97906001613d2f565b90505b6001811115612c0f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612bcb57612bcb6139ac565b1a60f81b828281518110612be157612be16139ac565b60200101906001600160f81b031916908160001a90535060049490941c93612c0881613e98565b9050612b9a565b50831561176f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610969565b6001600160a01b038316612cb957612cb481600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612cdc565b816001600160a01b0316836001600160a01b031614612cdc57612cdc8382612e40565b6001600160a01b038216612cf357610a0a81612edd565b826001600160a01b0316826001600160a01b031614610a0a57610a0a8282612f8c565b6040516001600160a01b0380841660248301528216604482015261149b9060640160408051601f198184030181529190526020810180516001600160e01b0316636d786a5560e11b179052612fd0565b612d708383612ff1565b612d7d60008484846129c2565b610a0a5760405162461bcd60e51b815260040161096990613dbb565b6000612da48261133e565b9050612db281600084612807565b612dbd600083611b51565b6001600160a01b0381166000908152600460205260408120805460019290612de6908490613a1e565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001612e4d846113ad565b612e579190613a1e565b600083815260086020526040902054909150808214612eaa576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612eef90600190613a1e565b6000838152600a602052604081205460098054939450909284908110612f1757612f176139ac565b906000526020600020015490508060098381548110612f3857612f386139ac565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612f7057612f70613da5565b6001900381819060005260206000200160009055905550505050565b6000612f97836113ad565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b6001600160a01b0382166130475760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610969565b6000818152600360205260409020546001600160a01b0316156130ac5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610969565b6130b860008383612807565b6001600160a01b03821660009081526004602052604081208054600192906130e1908490613d2f565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054828255906000526020600020908101928215613192579160200282015b828111156131925781546001600160a01b0319166001600160a01b0384351617825560209092019160019091019061315f565b5061319e92915061322a565b5090565b8280548282559060005260206000209081019282156131e8579160200282015b828111156131e857825182906131d89082613c70565b50916020019190600101906131c2565b5061319e92915061323f565b5080546132009061388a565b6000825580601f10613210575050565b601f016020900490600052602060002090810190610a7691905b5b8082111561319e576000815560010161322b565b8082111561319e57600061325382826131f4565b5060010161323f565b6001600160e01b031981168114610a7657600080fd5b60006020828403121561328457600080fd5b813561176f8161325c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156132cd576132cd61328f565b604052919050565b600082601f8301126132e657600080fd5b81356001600160401b038111156132ff576132ff61328f565b613312601f8201601f19166020016132a5565b81815284602083860101111561332757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561335757600080fd5b82356001600160401b038082111561336e57600080fd5b61337a868387016132d5565b9350602085013591508082111561339057600080fd5b5061339d858286016132d5565b9150509250929050565b60005b838110156133c25781810151838201526020016133aa565b838111156117da5750506000910152565b600081518084526133eb8160208601602086016133a7565b601f01601f19169290920160200192915050565b60208152600061176f60208301846133d3565b60006020828403121561342457600080fd5b5035919050565b6001600160a01b0381168114610a7657600080fd5b6000806040838503121561345357600080fd5b823561345e8161342b565b946020939093013593505050565b60006020828403121561347e57600080fd5b813561176f8161342b565b6000806040838503121561349c57600080fd5b8235915060208301356001600160401b038111156134b957600080fd5b61339d858286016132d5565b6000806000606084860312156134da57600080fd5b83356134e58161342b565b925060208401356134f58161342b565b929592945050506040919091013590565b6000806040838503121561351957600080fd5b50508035926020909101359150565b60008083601f84011261353a57600080fd5b5081356001600160401b0381111561355157600080fd5b6020830191508360208260051b850101111561356c57600080fd5b9250929050565b6000806020838503121561358657600080fd5b82356001600160401b0381111561359c57600080fd5b6135a885828601613528565b90969095509350505050565b6000806000606084860312156135c957600080fd5b83356135d48161342b565b95602085013595506040909401359392505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561363e57603f1988860301845261362c8583516133d3565b94509285019290850190600101613610565b5092979650505050505050565b60006020828403121561365d57600080fd5b81356001600160401b0381111561367357600080fd5b610834848285016132d5565b8015158114610a7657600080fd5b600080604083850312156136a057600080fd5b82356136ab8161342b565b915060208301356136bb8161367f565b809150509250929050565b600080600080608085870312156136dc57600080fd5b84356136e78161342b565b935060208501356136f78161342b565b92506040850135915060608501356001600160401b0381111561371957600080fd5b613725878288016132d5565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156137725783516001600160a01b03168352928401929184019160010161374d565b50909695505050505050565b6000602080838503121561379157600080fd5b82356001600160401b03808211156137a857600080fd5b818501915085601f8301126137bc57600080fd5b8135818111156137ce576137ce61328f565b8060051b6137dd8582016132a5565b91825283810185019185810190898411156137f757600080fd5b86860192505b83831015613833578235858111156138155760008081fd5b6138238b89838a01016132d5565b83525091860191908601906137fd565b9998505050505050505050565b6000806040838503121561385357600080fd5b823561385e8161342b565b915060208301356136bb8161342b565b600082516138808184602087016133a7565b9190910192915050565b600181811c9082168061389e57607f821691505b60208210810361187757634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f5572694368616e6765723a2063616c6c6572206973206e6f7420616c6c6f77656040820152601960fa1b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561397d5761397d61394d565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139a7576139a7613982565b500490565b634e487b7160e01b600052603260045260246000fd5b60008235609e1983360301811261388057600080fd5b6000808335601e198436030181126139ef57600080fd5b8301803591506001600160401b03821115613a0957600080fd5b60200191503681900382131561356c57600080fd5b600082821015613a3057613a3061394d565b500390565b604081528260408201528284606083013760006060848301015260006060601f19601f8601168301019050826020830152949350505050565b600060018201613a8057613a8061394d565b5060010190565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815282601a82015260008251613ac581603a8501602087016133a7565b91909101603a019392505050565b600060208284031215613ae557600080fd5b815161176f8161367f565b60008351613b028184602088016133a7565b602f60f81b9083019081528351613b208160018401602088016133a7565b01600101949350505050565b60008551613b3e818460208a016133a7565b855190830190613b52818360208a016133a7565b602f60f81b91018181528551909190613b72816001850160208a016133a7565b60019201918201528351613b8d8160028401602088016133a7565b016002019695505050505050565b60208082528181018390526000908460408401835b86811015613bde578235613bc38161342b565b6001600160a01b031682529183019190830190600101613bb0565b509695505050505050565b60008251613bfb8184602087016133a7565b7f636f6e74726163742f646576636f6e5f7375697475702e6a736f6e0000000000920191825250601b01919050565b601f821115610a0a57600081815260208120601f850160051c81016020861015613c515750805b601f850160051c820191505b818110156122b357828155600101613c5d565b81516001600160401b03811115613c8957613c8961328f565b613c9d81613c97845461388a565b84613c2a565b602080601f831160018114613cd25760008415613cba5750858301515b600019600386901b1c1916600185901b1785556122b3565b600085815260208120601f198616915b82811015613d0157888601518255948401946001909101908401613ce2565b5085821015613d1f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115613d4257613d4261394d565b500190565b60006bffffffffffffffffffffffff19808b60601b168352808a60601b166014840152808960601b1660288401525086603c83015285605c83015284607c8301528284609c8401375060009101609c01908152979650505050505050565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613e1c57613e1c613982565b500690565b600060208284031215613e3357600080fd5b815161176f8161342b565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e71908301846133d3565b9695505050505050565b600060208284031215613e8d57600080fd5b815161176f8161325c565b600081613ea757613ea761394d565b50600019019056fe68747470733a2f2f7265736f75726365732e736d617274746f6b656e6c6162732e636f6d2fa2646970667358221220571d44ac0d910ac6d3569ba17108490589071fb63e524003cb02056b756de21864736f6c634300080f003300000000000000000000000084440b35f8a0e67acce7dbd66176b5191b18ed70000000000000000000000000851438ecb37fae596dcd49bde643d170f3aa225b
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103425760003560e01c80636c0360eb116101b8578063b88d4fde11610104578063e02532c8116100a2578063e8a3d4851161007c578063e8a3d48514610733578063e985e9c51461073b578063f2fde38b14610777578063f4a0a5281461078a57600080fd5b8063e02532c8146105d5578063e21392001461066b578063e3d61eb31461072057600080fd5b8063d0f72a71116100de578063d0f72a71146106dd578063d5b3621b146106e5578063d9aa187c146106f8578063dd6133b51461070b57600080fd5b8063b88d4fde146106a4578063c87b56dd146106b7578063cde251d0146106ca57600080fd5b806395d89b4111610171578063acf36e531161014b578063acf36e5314610658578063b08000031461066b578063b5c8fd621461067e578063b7dccd491461069157600080fd5b806395d89b411461060c578063a22cb46514610614578063a7bb58031461062757600080fd5b80636c0360eb146105b257806370a08231146105ba578063715018a6146105cd5780637c7c644e146105d55780638065bcf1146105e85780638da5cb5b146105fb57600080fd5b80632b9fcb961161029257806342966c681161023057806355f804b31161020a57806355f804b3146105665780635b6beeb9146105795780635b7121f81461058c5780636352211e1461059f57600080fd5b806342966c681461052b5780634bb309121461053e5780634f6ccce71461055357600080fd5b806337b9db811161026c57806337b9db81146104bb578063414533de146104ce5780634209a2e11461050557806342842e0e1461051857600080fd5b80632b9fcb961461048d5780632f4ea5ea146104955780632f745c59146104a857600080fd5b8063162094c4116102ff57806323b872dd116102d957806323b872dd14610422578063258ae582146104355780632a55205a146104485780632b22d8111461047a57600080fd5b8063162094c4146103ea57806317f37495146103fd57806318160ddd1461041057600080fd5b806301ffc9a714610347578063057aee2b1461036f57806306fdde031461039a578063081812fc146103af578063095ea7b3146103c25780630a9d3ee6146103d7575b600080fd5b61035a610355366004613272565b61079d565b60405190151581526020015b60405180910390f35b61038261037d366004613344565b6107fe565b6040516001600160a01b039091168152602001610366565b6103a261083c565b60405161036691906133ff565b6103826103bd366004613412565b6108ce565b6103d56103d0366004613440565b6108f5565b005b6103d56103e536600461346c565b610a0f565b6103d56103f8366004613489565b610a79565b6103d561040b366004613412565b610ae9565b6009545b604051908152602001610366565b6103d56104303660046134c5565b610afa565b610382610443366004613489565b610b2c565b61045b610456366004613506565b610bab565b604080516001600160a01b039093168352602083019190915201610366565b6103d5610488366004613573565b610c3f565b601554610414565b6104146104a3366004613412565b610eb9565b6104146104b6366004613440565b610f0d565b6104146104c93660046135b4565b610fa3565b6104e16104dc366004613412565b61103b565b6040805182516001600160a01b031681526020928301519281019290925201610366565b6103d5610513366004613412565b6110db565b6103d56105263660046134c5565b6110ec565b6103d5610539366004613412565b611107565b610546611165565b60405161036691906135e9565b610414610561366004613412565b61123e565b6103d561057436600461364b565b6112d1565b61041461058736600461364b565b611304565b61038261059a366004613412565b611317565b6103826105ad366004613412565b61133e565b6103a261139e565b6104146105c836600461346c565b6113ad565b6103d5611433565b6104146105e336600461364b565b611447565b6104146105f6366004613440565b61145d565b600c546001600160a01b0316610382565b6103a2611481565b6103d561062236600461368d565b611490565b61063a61063536600461364b565b61149f565b60408051938452602084019290925260ff1690820152606001610366565b6103d561066636600461346c565b611513565b610382610679366004613344565b61175b565b61038261068c366004613489565b611776565b61041461069f366004613440565b611784565b6103d56106b23660046136c6565b6117a8565b6103a26106c5366004613412565b6117e0565b6103d56106d8366004613573565b61187d565b601654610414565b6103d56106f3366004613412565b6118ca565b6103d561070636600461346c565b6118db565b6107136118ec565b6040516103669190613731565b6103d561072e36600461377e565b61194d565b6103a26119a4565b61035a610749366004613840565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6103d561078536600461346c565b6119e3565b6103d5610798366004613412565b611a59565b60006001600160e01b0319821663780e9d6360e01b14806107c257506107c282611aa2565b806107dd575063a86517a160e01b6001600160e01b03198316145b806107f8575063152a902d60e11b6001600160e01b03198316145b92915050565b60008083604051602001610812919061386e565b6040516020818303038152906040528051906020012090506108348184610b2c565b949350505050565b60606001805461084b9061388a565b80601f01602080910402602001604051908101604052809291908181526020018280546108779061388a565b80156108c45780601f10610899576101008083540402835291602001916108c4565b820191906000526020600020905b8154815290600101906020018083116108a757829003601f168201915b5050505050905090565b60006108d982611af2565b506000908152600560205260409020546001600160a01b031690565b60006109008261133e565b9050806001600160a01b0316836001600160a01b0316036109725760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061098e575061098e8133610749565b610a005760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610969565b610a0a8383611b51565b505050565b610a17611bbf565b6001600160a01b038116610a6d5760405162461bcd60e51b815260206004820152601c60248201527f5572694368616e6765723a2041646472657373207265717569726564000000006044820152606401610969565b610a7681611c19565b50565b600d546001600160a01b03163314610aa35760405162461bcd60e51b8152600401610969906138be565b610aad8282611c6b565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720782604051610add91906133ff565b60405180910390a25050565b610af1611bbf565b610a7681611cfe565b610b05335b82611d36565b610b215760405162461bcd60e51b8152600401610969906138ff565b610a0a838383611db4565b600080600080610b3b8561149f565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015610b96573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b60008281526003602052604081205481906001600160a01b0316610c075760405162461bcd60e51b81526020600482015260136024820152722a37b5b2b7103237b2b9b73a1032bc34b9ba1760691b6044820152606401610969565b6013546001600160a01b0316915061271083610c22600e5490565b610c2c9190613963565b610c369190613998565b90509250929050565b60005b81811015610a0a57610c76838383818110610c5f57610c5f6139ac565b9050602002810190610c7191906139c2565b611f5b565b610cb95760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081b5a5b9d081c995c5d595cdd60621b6044820152606401610969565b610d44838383818110610cce57610cce6139ac565b9050602002810190610ce091906139c2565b610cee90602081019061346c565b848484818110610d0057610d006139ac565b9050602002810190610d1291906139c2565b6020013533868686818110610d2957610d296139ac565b9050602002810190610d3b91906139c2565b604001356120f3565b828282818110610d5657610d566139ac565b9050602002810190610d6891906139c2565b60400135838383818110610d7e57610d7e6139ac565b9050602002810190610d9091906139c2565b60200135848484818110610da657610da66139ac565b9050602002810190610db891906139c2565b610dc690602081019061346c565b6001600160a01b03167ff41cc26c17d32c8adb1c77f6fe82ea9f3a8ee73624917e5ccdbbb3a61ac864f7868686818110610e0257610e026139ac565b9050602002810190610e1491906139c2565b610e229060808101906139d8565b6001610e868a8a8a818110610e3957610e396139ac565b9050602002810190610e4b91906139c2565b610e5990602081019061346c565b8b8b8b818110610e6b57610e6b6139ac565b9050602002810190610e7d91906139c2565b6020013561145d565b610e909190613a1e565b604051610e9f93929190613a35565b60405180910390a480610eb181613a6e565b915050610c42565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c015b604051602081830303815290604052805190602001209050919050565b6000610f18836113ad565b8210610f7a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610969565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b600080610fb085856122bb565b60008181526010602052604090205490915083106110065760405162461bcd60e51b8152602060048201526013602482015272496e646578206f7574206f6620626f756e647360681b6044820152606401610969565b6000818152601060205260409020805484908110611026576110266139ac565b90600052602060002001549150509392505050565b60408051808201909152600080825260208201526000828152600360205260409020546001600160a01b03166110a85760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610969565b506000908152600f6020908152604091829020825180840190935280546001600160a01b03168352600101549082015290565b6110e3611bbf565b610a7681612303565b610a0a838383604051806020016040528060008152506117a8565b61111033610aff565b61115c5760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420617070726f76656420616e64206e6f74206f776e65720000000000006044820152606401610969565b610a7681612386565b60606000805480602002602001604051908101604052809291908181526020016000905b828210156112355783829060005260206000200180546111a89061388a565b80601f01602080910402602001604051908101604052809291908181526020018280546111d49061388a565b80156112215780601f106111f657610100808354040283529160200191611221565b820191906000526020600020905b81548152906001019060200180831161120457829003601f168201915b505050505081526020019060010190611189565b50505050905090565b600061124960095490565b82106112ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610969565b600982815481106112bf576112bf6139ac565b90600052602060002001549050919050565b600d546001600160a01b031633146112fb5760405162461bcd60e51b8152600401610969906138be565b610a76816124bf565b600081604051602001610ef0919061386e565b600061132282611af2565b506000908152601860205260409020546001600160a01b031690565b6000818152600360205260408120546001600160a01b0316806107f85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610969565b60606113a8612502565b905090565b60006001600160a01b0382166114175760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610969565b506001600160a01b031660009081526004602052604090205490565b61143b611bbf565b6114456000612511565b565b6000815182604051602001610ef0929190613a87565b60008061146a84846122bb565b600090815260126020526040902054949350505050565b60606002805461084b9061388a565b61149b338383612563565b5050565b600080600083516041146114f55760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610969565b50505060208101516040820151606090920151909260009190911a90565b600d546001600160a01b0316331461153d5760405162461bcd60e51b8152600401610969906138be565b6001600160a01b0381163b6115875760405162461bcd60e51b815260206004820152601060248201526f135d5cdd0818994818dbdb9d1c9858dd60821b6044820152606401610969565b6040516301ffc9a760e01b81526380ac58cd60e01b600482015281906001600160a01b038216906301ffc9a790602401602060405180830381865afa9250505080156115f0575060408051601f3d908101601f191682019092526115ed91810190613ad3565b60015b6116365760405162461bcd60e51b8152602060048201526017602482015276135d5cdd08189948115490cdcc8c4818dbdb9d1c9858dd604a1b6044820152606401610969565b8061167d5760405162461bcd60e51b8152602060048201526017602482015276135d5cdd08189948115490cdcc8c4818dbdb9d1c9858dd604a1b6044820152606401610969565b506001600160a01b0382166000908152601b6020526040902054156116d45760405162461bcd60e51b815260206004820152600d60248201526c105b1c9958591e481859191959609a1b6044820152606401610969565b601a80546001810182557f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e0180546001600160a01b0319166001600160a01b03851690811790915590546000828152601b60205260408082209290925590517f52118c6bb52ae44b35c045b24d4f6c21333f82d0a999232082667024ec1770a09190a25050565b600061176f61176984611447565b83610b2c565b9392505050565b600061176f61176984610eb9565b60008061179184846122bb565b600090815260106020526040902054949350505050565b6117b23383611d36565b6117ce5760405162461bcd60e51b8152600401610969906138ff565b6117da84848484612631565b50505050565b60606117eb82611af2565b60006117f561139e565b805190915015611831578061180984612664565b60405160200161181a929190613af0565b604051602081830303815290604052915050919050565b604051806060016040528060258152602001613eb06025913961185346612664565b61185b612764565b61186486612664565b60405160200161181a9493929190613b2c565b50919050565b611885611bbf565b7fac678df45aee8a496378d894ad4870143c94225dad3bcc51e8de1b2d0ad5aa3f82826040516118b6929190613b9b565b60405180910390a1610a0a6014838361313f565b6118d2611bbf565b610a7681612771565b6118e3611bbf565b610a76816127a9565b6060601a8054806020026020016040519081016040528092919081815260200182805480156108c457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611926575050505050905090565b611956816127ff565b80516119699060009060208401906131a2565b507f9538911740e5519a40db77fb5f637de0d56cdd804318d81ae270cc24fbd8479e8160405161199991906135e9565b60405180910390a150565b6060604051806060016040528060258152602001613eb0602591396040516020016119cf9190613be9565b604051602081830303815290604052905090565b6119eb611bbf565b6001600160a01b038116611a505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610969565b610a7681612511565b611a61611bbf565b60175460408051918252602082018390527f2e1c9e000c6e8dda4d03536adb13b7cb6034ccff90d17f01de381e4d5097b525910160405180910390a1601755565b60006001600160e01b031982166380ac58cd60e01b1480611ad357506001600160e01b03198216635b5e139f60e01b145b806107f857506301ffc9a760e01b6001600160e01b03198316146107f8565b6000818152600360205260409020546001600160a01b0316610a765760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610969565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b868261133e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600c546001600160a01b031633146114455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610969565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f440b22f2c347b1fb7b850f182e7defb88ed393ebeb024d7b5e519d230c71e8f190600090a35050565b6000828152600360205260409020546001600160a01b0316611ce65760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610969565b6000828152600b60205260409020610a0a8282613c70565b6040518181527f485f8fbebe3467888e99da9cacbdbe8e8ff5b688b83c04afe9d61340e70d0ae19060200160405180910390a1601655565b600080611d428361133e565b9050806001600160a01b0316846001600160a01b03161480611d8957506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806108345750836001600160a01b0316611da2846108ce565b6001600160a01b031614949350505050565b826001600160a01b0316611dc78261133e565b6001600160a01b031614611e2b5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610969565b6001600160a01b038216611e8d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610969565b611e98838383612807565b611ea3600082611b51565b6001600160a01b0383166000908152600460205260408120805460019290611ecc908490613a1e565b90915550506001600160a01b0382166000908152600460205260408120805460019290611efa908490613d2f565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611f6b602084018461346c565b90506000601b81611f7f602087018761346c565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611fe65760405162461bcd60e51b815260206004820152601660248201527510dbdb9d1c9858dd081b9bdd081cdd5c1c1bdc9d195960521b6044820152606401610969565b6000303383602087013546604089013561200360808b018b6139d8565b60405160200161201a989796959493929190613d47565b604051602081830303815290604052905061203d600d546001600160a01b031690565b6001600160a01b031661209b828051906020012086806060019061206191906139d8565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061177692505050565b6001600160a01b0316146120e95760405162461bcd60e51b81526020600482015260156024820152742bb937b7339036b2ba30b230ba309039b4b3b732b960591b6044820152606401610969565b5060019392505050565b6015544210156121455760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e6720686173206e6f7420737461727465640000000000000000006044820152606401610969565b60165415612192576016544211156121925760405162461bcd60e51b815260206004820152601060248201526f135a5b9d1a5b99c8199a5b9a5cda195960821b6044820152606401610969565b61219c8484612853565b6121e85760405162461bcd60e51b815260206004820152601760248201527f53686172656420486f6c646572206e6f74206f776e65720000000000000000006044820152606401610969565b6040805180820182526001600160a01b03808716825260208083018781526000868152600f83528581209451855494166001600160a01b03199485161785559051600190940193909355601890529181208054909216331790915561224d85856122bb565b60008181526012602090815260408083205460108084528285208054898752601186529386208490559084526001808401825590855292909320018590559192509061229a908290613d2f565b6000838152601260205260409020556122b38484612968565b505050505050565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160408051601f1981840301815291905280516020909101209392505050565b61271081111561234e5760405162461bcd60e51b8152602060048201526016602482015275526f79616c7479206d6f72652074686174203130302560501b6044820152606401610969565b6040518181527f244ea8d7627f5a08f4299862bd5a45752842c183aee5b0fb0d1e4887bfa605b39060200160405180910390a1600e55565b60006123918261103b565b905060006123a7826000015183602001516122bb565b6000848152601160209081526040808320548484526010909252822054929350916123d490600190613a1e565b905080821461244f5760008381526010602052604081208054839081106123fd576123fd6139ac565b906000526020600020015490508060106000868152602001908152602001600020848154811061242f5761242f6139ac565b600091825260208083209091019290925591825260119052604090208290555b600083815260106020526040902080548061246c5761246c613da5565b600082815260208082208301600019908101839055909201909255868252601181526040808320839055600f909152812080546001600160a01b0319168155600101556124b885612982565b5050505050565b7f24a9152dc695ecc801ad580886331ee12d7aac0fa2ae341a5ae3c2ccae36cb4f816040516124ee91906133ff565b60405180910390a1601961149b8282613c70565b60606019805461084b9061388a565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036125c45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610969565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61263c848484611db4565b612648848484846129c2565b6117da5760405162461bcd60e51b815260040161096990613dbb565b60608160000361268b5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126b5578061269f81613a6e565b91506126ae9050600a83613998565b915061268f565b6000816001600160401b038111156126cf576126cf61328f565b6040519080825280601f01601f1916602001820160405280156126f9576020820181803683370190505b5090505b84156108345761270e600183613a1e565b915061271b600a86613e0d565b612726906030613d2f565b60f81b81838151811061273b5761273b6139ac565b60200101906001600160f81b031916908160001a90535061275d600a86613998565b94506126fd565b60606113a8306014612ac3565b6040518181527f516a468928449c9ae8efea976ba0c7ea3173cbab8e3033adc9354d531777dba09060200160405180910390a1601555565b6040516001600160a01b038216907f0b6f951a64dbce89dc77dd9afdc83f939b55287cdf239c09bd12d565ff4a20c790600090a2601380546001600160a01b0319166001600160a01b0392909216919091179055565b610a76611bbf565b6001600160a01b03821615801561282657506001600160a01b03831615155b1561284857600081815260186020526040902080546001600160a01b03191690555b610a0a838383612c5e565b6040516331a9108f60e11b815260048101829052600090839082906001600160a01b03831690636352211e90602401602060405180830381865afa15801561289f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c39190613e21565b60145490915060005b8181101561295b57612905601482815481106128ea576128ea6139ac565b6000918252602090912001546001600160a01b031684612d16565b826001600160a01b031660148281548110612922576129226139ac565b6000918252602090912001546001600160a01b0316036129495760019450505050506107f8565b8061295381613a6e565b9150506128cc565b5060009695505050505050565b61149b828260405180602001604052806000815250612d66565b61298b81612d99565b6000818152600b6020526040902080546129a49061388a565b159050610a76576000818152600b60205260408120610a76916131f4565b60006001600160a01b0384163b15612ab857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a06903390899088908890600401613e3e565b6020604051808303816000875af1925050508015612a41575060408051601f3d908101601f19168201909252612a3e91810190613e7b565b60015b612a9e573d808015612a6f576040519150601f19603f3d011682016040523d82523d6000602084013e612a74565b606091505b508051600003612a965760405162461bcd60e51b815260040161096990613dbb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610834565b506001949350505050565b60606000612ad2836002613963565b612add906002613d2f565b6001600160401b03811115612af457612af461328f565b6040519080825280601f01601f191660200182016040528015612b1e576020820181803683370190505b509050600360fc1b81600081518110612b3957612b396139ac565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b6857612b686139ac565b60200101906001600160f81b031916908160001a9053506000612b8c846002613963565b612b97906001613d2f565b90505b6001811115612c0f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612bcb57612bcb6139ac565b1a60f81b828281518110612be157612be16139ac565b60200101906001600160f81b031916908160001a90535060049490941c93612c0881613e98565b9050612b9a565b50831561176f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610969565b6001600160a01b038316612cb957612cb481600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b612cdc565b816001600160a01b0316836001600160a01b031614612cdc57612cdc8382612e40565b6001600160a01b038216612cf357610a0a81612edd565b826001600160a01b0316826001600160a01b031614610a0a57610a0a8282612f8c565b6040516001600160a01b0380841660248301528216604482015261149b9060640160408051601f198184030181529190526020810180516001600160e01b0316636d786a5560e11b179052612fd0565b612d708383612ff1565b612d7d60008484846129c2565b610a0a5760405162461bcd60e51b815260040161096990613dbb565b6000612da48261133e565b9050612db281600084612807565b612dbd600083611b51565b6001600160a01b0381166000908152600460205260408120805460019290612de6908490613a1e565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001612e4d846113ad565b612e579190613a1e565b600083815260086020526040902054909150808214612eaa576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090612eef90600190613a1e565b6000838152600a602052604081205460098054939450909284908110612f1757612f176139ac565b906000526020600020015490508060098381548110612f3857612f386139ac565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480612f7057612f70613da5565b6001900381819060005260206000200160009055905550505050565b6000612f97836113ad565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b6001600160a01b0382166130475760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610969565b6000818152600360205260409020546001600160a01b0316156130ac5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610969565b6130b860008383612807565b6001600160a01b03821660009081526004602052604081208054600192906130e1908490613d2f565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054828255906000526020600020908101928215613192579160200282015b828111156131925781546001600160a01b0319166001600160a01b0384351617825560209092019160019091019061315f565b5061319e92915061322a565b5090565b8280548282559060005260206000209081019282156131e8579160200282015b828111156131e857825182906131d89082613c70565b50916020019190600101906131c2565b5061319e92915061323f565b5080546132009061388a565b6000825580601f10613210575050565b601f016020900490600052602060002090810190610a7691905b5b8082111561319e576000815560010161322b565b8082111561319e57600061325382826131f4565b5060010161323f565b6001600160e01b031981168114610a7657600080fd5b60006020828403121561328457600080fd5b813561176f8161325c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156132cd576132cd61328f565b604052919050565b600082601f8301126132e657600080fd5b81356001600160401b038111156132ff576132ff61328f565b613312601f8201601f19166020016132a5565b81815284602083860101111561332757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806040838503121561335757600080fd5b82356001600160401b038082111561336e57600080fd5b61337a868387016132d5565b9350602085013591508082111561339057600080fd5b5061339d858286016132d5565b9150509250929050565b60005b838110156133c25781810151838201526020016133aa565b838111156117da5750506000910152565b600081518084526133eb8160208601602086016133a7565b601f01601f19169290920160200192915050565b60208152600061176f60208301846133d3565b60006020828403121561342457600080fd5b5035919050565b6001600160a01b0381168114610a7657600080fd5b6000806040838503121561345357600080fd5b823561345e8161342b565b946020939093013593505050565b60006020828403121561347e57600080fd5b813561176f8161342b565b6000806040838503121561349c57600080fd5b8235915060208301356001600160401b038111156134b957600080fd5b61339d858286016132d5565b6000806000606084860312156134da57600080fd5b83356134e58161342b565b925060208401356134f58161342b565b929592945050506040919091013590565b6000806040838503121561351957600080fd5b50508035926020909101359150565b60008083601f84011261353a57600080fd5b5081356001600160401b0381111561355157600080fd5b6020830191508360208260051b850101111561356c57600080fd5b9250929050565b6000806020838503121561358657600080fd5b82356001600160401b0381111561359c57600080fd5b6135a885828601613528565b90969095509350505050565b6000806000606084860312156135c957600080fd5b83356135d48161342b565b95602085013595506040909401359392505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561363e57603f1988860301845261362c8583516133d3565b94509285019290850190600101613610565b5092979650505050505050565b60006020828403121561365d57600080fd5b81356001600160401b0381111561367357600080fd5b610834848285016132d5565b8015158114610a7657600080fd5b600080604083850312156136a057600080fd5b82356136ab8161342b565b915060208301356136bb8161367f565b809150509250929050565b600080600080608085870312156136dc57600080fd5b84356136e78161342b565b935060208501356136f78161342b565b92506040850135915060608501356001600160401b0381111561371957600080fd5b613725878288016132d5565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b818110156137725783516001600160a01b03168352928401929184019160010161374d565b50909695505050505050565b6000602080838503121561379157600080fd5b82356001600160401b03808211156137a857600080fd5b818501915085601f8301126137bc57600080fd5b8135818111156137ce576137ce61328f565b8060051b6137dd8582016132a5565b91825283810185019185810190898411156137f757600080fd5b86860192505b83831015613833578235858111156138155760008081fd5b6138238b89838a01016132d5565b83525091860191908601906137fd565b9998505050505050505050565b6000806040838503121561385357600080fd5b823561385e8161342b565b915060208301356136bb8161342b565b600082516138808184602087016133a7565b9190910192915050565b600181811c9082168061389e57607f821691505b60208210810361187757634e487b7160e01b600052602260045260246000fd5b60208082526021908201527f5572694368616e6765723a2063616c6c6572206973206e6f7420616c6c6f77656040820152601960fa1b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561397d5761397d61394d565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139a7576139a7613982565b500490565b634e487b7160e01b600052603260045260246000fd5b60008235609e1983360301811261388057600080fd5b6000808335601e198436030181126139ef57600080fd5b8301803591506001600160401b03821115613a0957600080fd5b60200191503681900382131561356c57600080fd5b600082821015613a3057613a3061394d565b500390565b604081528260408201528284606083013760006060848301015260006060601f19601f8601168301019050826020830152949350505050565b600060018201613a8057613a8061394d565b5060010190565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815282601a82015260008251613ac581603a8501602087016133a7565b91909101603a019392505050565b600060208284031215613ae557600080fd5b815161176f8161367f565b60008351613b028184602088016133a7565b602f60f81b9083019081528351613b208160018401602088016133a7565b01600101949350505050565b60008551613b3e818460208a016133a7565b855190830190613b52818360208a016133a7565b602f60f81b91018181528551909190613b72816001850160208a016133a7565b60019201918201528351613b8d8160028401602088016133a7565b016002019695505050505050565b60208082528181018390526000908460408401835b86811015613bde578235613bc38161342b565b6001600160a01b031682529183019190830190600101613bb0565b509695505050505050565b60008251613bfb8184602087016133a7565b7f636f6e74726163742f646576636f6e5f7375697475702e6a736f6e0000000000920191825250601b01919050565b601f821115610a0a57600081815260208120601f850160051c81016020861015613c515750805b601f850160051c820191505b818110156122b357828155600101613c5d565b81516001600160401b03811115613c8957613c8961328f565b613c9d81613c97845461388a565b84613c2a565b602080601f831160018114613cd25760008415613cba5750858301515b600019600386901b1c1916600185901b1785556122b3565b600085815260208120601f198616915b82811015613d0157888601518255948401946001909101908401613ce2565b5085821015613d1f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115613d4257613d4261394d565b500190565b60006bffffffffffffffffffffffff19808b60601b168352808a60601b166014840152808960601b1660288401525086603c83015285605c83015284607c8301528284609c8401375060009101609c01908152979650505050505050565b634e487b7160e01b600052603160045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613e1c57613e1c613982565b500690565b600060208284031215613e3357600080fd5b815161176f8161342b565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e71908301846133d3565b9695505050505050565b600060208284031215613e8d57600080fd5b815161176f8161325c565b600081613ea757613ea761394d565b50600019019056fe68747470733a2f2f7265736f75726365732e736d617274746f6b656e6c6162732e636f6d2fa2646970667358221220571d44ac0d910ac6d3569ba17108490589071fb63e524003cb02056b756de21864736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000084440b35f8a0e67acce7dbd66176b5191b18ed70000000000000000000000000851438ecb37fae596dcd49bde643d170f3aa225b
-----Decoded View---------------
Arg [0] : _rr (address): 0x84440B35f8a0E67accE7DBD66176b5191b18Ed70
Arg [1] : _newUriChanger (address): 0x851438Ecb37FAe596DcD49bDe643D170F3aa225B
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000084440b35f8a0e67acce7dbd66176b5191b18ed70
Arg [1] : 000000000000000000000000851438ecb37fae596dcd49bde643d170f3aa225b
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.