Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
214 DEVCONNECT2022
Holders
213
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DEVCONNECT2022Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DevconMintableSTD
Compiler Version
v0.8.12+commit.f00d7308
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/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./library/VerifyAttestation.sol"; import "./library/ERC5169.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 DevconMintableSTD is ERC721Enumerable, VerifyAttestation, ERC5169 { using Address for address; using Strings for uint256; string private conferenceID = "55"; string constant JSON_FILE = ".json"; string constant __baseURI = "https://resources.smarttokenlabs.com/"; address _attestorKey; address _issuerKey; event ConferenceIDUpdated(string oldID, string newID); function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, ERC5169) returns (bool) { return ERC5169.supportsInterface(interfaceId) || ERC721Enumerable.supportsInterface(interfaceId); } /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor () ERC721("Devconnect 2022 Co-Work Ticket Stub", "DEVCONNECT2022") { _attestorKey = 0x538080305560986811c3c1A2c5BCb4F37670EF7e; _issuerKey = 0x09B6cC1cB661d523Db1F8E854cfbfE2A03100d95; } function contractURI() public view returns(string memory) { return string(abi.encodePacked(__baseURI, "contract/", symbol(), JSON_FILE)); } function updateAttestationKeys(address newattestorKey, address newIssuerKey) public onlyOwner { _attestorKey = newattestorKey; _issuerKey = newIssuerKey; } function updateConferenceID(string calldata newValue) public onlyOwner { emit ConferenceIDUpdated(conferenceID, newValue); conferenceID = newValue; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "DevconMintable: invalid token ID"); return string(abi.encodePacked(__baseURI, "token/" , block.chainid.toString(), "/", contractAddress(), "/", tokenId.toString(), JSON_FILE)); } function verify(bytes memory attestation) public view returns (address attestor, address ticketIssuer, address subject, bytes memory ticketId, bytes memory conferenceId, bool attestationValid){ ( attestor, ticketIssuer, subject, ticketId, conferenceId, attestationValid) = _verifyTicketAttestation(attestation); } function mintUsingAttestation(bytes memory attestation) public returns (uint256 tokenId) { address subject; bytes memory tokenBytes; bytes memory conferenceBytes; bool timeStampValid; (subject, tokenBytes, conferenceBytes, timeStampValid) = verifyTicketAttestation(attestation, _attestorKey, _issuerKey); tokenId = bytesToUint(tokenBytes); require(subject != address(0) && tokenId != 0 && timeStampValid && compareStrings(conferenceBytes, conferenceID), "Attestation not valid"); require(tokenBytes.length < 33, "TokenID overflow"); _mint(subject, tokenId); } function burn(uint256 tokenId) public { require(_exists(tokenId), "DevconMintable: invalid token ID"); require(_isApprovedOrOwner(_msgSender(), tokenId), "DevconMintable: caller is not token owner nor approved"); _burn(tokenId); } function contractAddress() internal view returns (string memory) { return Strings.toHexString(uint160(address(this)), 20); } function endContract() public payable onlyOwner { selfdestruct(payable(_msgSender())); } function compareStrings(bytes memory s1, string memory s2) private pure returns(bool) { return keccak256(abi.encodePacked(s1)) == keccak256(abi.encodePacked(s2)); } }
// 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) (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) (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); } }
/* Attestation decode and validation */ /* AlphaWallet 2021 - 2022 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; contract VerifyAttestation { bytes1 constant BOOLEAN_TAG = bytes1(0x01); bytes1 constant INTEGER_TAG = bytes1(0x02); bytes1 constant BIT_STRING_TAG = bytes1(0x03); bytes1 constant OCTET_STRING_TAG = bytes1(0x04); bytes1 constant NULL_TAG = bytes1(0x05); bytes1 constant OBJECT_IDENTIFIER_TAG = bytes1(0x06); bytes1 constant EXTERNAL_TAG = bytes1(0x08); bytes1 constant ENUMERATED_TAG = bytes1(0x0a); // decimal 10 bytes1 constant SEQUENCE_TAG = bytes1(0x10); // decimal 16 bytes1 constant SET_TAG = bytes1(0x11); // decimal 17 bytes1 constant SET_OF_TAG = bytes1(0x11); bytes1 constant NUMERIC_STRING_TAG = bytes1(0x12); // decimal 18 bytes1 constant PRINTABLE_STRING_TAG = bytes1(0x13); // decimal 19 bytes1 constant T61_STRING_TAG = bytes1(0x14); // decimal 20 bytes1 constant VIDEOTEX_STRING_TAG = bytes1(0x15); // decimal 21 bytes1 constant IA5_STRING_TAG = bytes1(0x16); // decimal 22 bytes1 constant UTC_TIME_TAG = bytes1(0x17); // decimal 23 bytes1 constant GENERALIZED_TIME_TAG = bytes1(0x18); // decimal 24 bytes1 constant GRAPHIC_STRING_TAG = bytes1(0x19); // decimal 25 bytes1 constant VISIBLE_STRING_TAG = bytes1(0x1a); // decimal 26 bytes1 constant GENERAL_STRING_TAG = bytes1(0x1b); // decimal 27 bytes1 constant UNIVERSAL_STRING_TAG = bytes1(0x1c); // decimal 28 bytes1 constant BMP_STRING_TAG = bytes1(0x1e); // decimal 30 bytes1 constant UTF8_STRING_TAG = bytes1(0x0c); // decimal 12 bytes1 constant CONSTRUCTED_TAG = bytes1(0x20); // decimal 28 bytes1 constant LENGTH_TAG = bytes1(0x30); bytes1 constant VERSION_TAG = bytes1(0xA0); bytes1 constant COMPOUND_TAG = bytes1(0xA3); uint constant TTL_GAP = 300;// 5 min uint256 constant IA5_CODE = uint256(bytes32("IA5")); //tags for disambiguating content uint256 constant DEROBJ_CODE = uint256(bytes32("OBJID")); uint256 constant public fieldSize = 21888242871839275222246405745257275088696311157297823662689037894645226208583; uint256 constant public curveOrder = 21888242871839275222246405745257275088548364400416034343698204186575808495617; event Value(uint256 indexed val); event RtnStr(bytes val); event RtnS(string val); uint256[2] private G = [ 21282764439311451829394129092047993080259557426320933158672611067687630484067, 3813889942691430704369624600187664845713336792511424430006907067499686345744 ]; uint256[2] private H = [ 10844896013696871595893151490650636250667003995871483372134187278207473369077, 9393217696329481319187854592386054938412168121447413803797200472841959383227 ]; uint256 constant curveOrderBitLength = 254; uint256 constant curveOrderBitShift = 256 - curveOrderBitLength; uint256 constant pointLength = 65; // We create byte arrays for these at construction time to save gas when we need to use them bytes constant GPoint = abi.encodePacked(uint8(0x04), uint256(21282764439311451829394129092047993080259557426320933158672611067687630484067), uint256(3813889942691430704369624600187664845713336792511424430006907067499686345744)); bytes constant HPoint = abi.encodePacked(uint8(0x04), uint256(10844896013696871595893151490650636250667003995871483372134187278207473369077), uint256(9393217696329481319187854592386054938412168121447413803797200472841959383227)); bytes constant emptyBytes = new bytes(0x00); struct FullProofOfExponent { bytes tPoint; uint256 challenge; bytes entropy; } struct Length { uint decodeIndex; uint length; } /** * Perform TicketAttestation verification * NOTE: This function DOES NOT VALIDATE whether the public key attested to is the same as the one who signed this transaction; you must perform validation of the subject from the calling function. **/ function verifyTicketAttestation(bytes memory attestation, address attestor, address ticketIssuer) public view returns(address subject, bytes memory ticketId, bytes memory conferenceId, bool attestationValid) { address recoveredAttestor; address recoveredIssuer; (recoveredAttestor, recoveredIssuer, subject, ticketId, conferenceId, attestationValid) = _verifyTicketAttestation(attestation); if (recoveredAttestor != attestor || recoveredIssuer != ticketIssuer || !attestationValid) { subject = address(0); ticketId = emptyBytes; conferenceId = emptyBytes; attestationValid = false; } } function verifyTicketAttestation(bytes memory attestation) public view returns(address attestor, address ticketIssuer, address subject, bytes memory ticketId, bytes memory conferenceId, bool attestationValid) //public pure returns(address payable subject, bytes memory ticketId, string memory identifier, address issuer, address attestor) { (attestor, ticketIssuer, subject, ticketId, conferenceId, attestationValid) = _verifyTicketAttestation(attestation); } function _verifyTicketAttestation(bytes memory attestation) public view returns(address attestor, address ticketIssuer, address subject, bytes memory ticketId, bytes memory conferenceId, bool attestationValid) //public pure returns(address payable subject, bytes memory ticketId, string memory identifier, address issuer, address attestor) { uint256 decodeIndex = 0; uint256 length = 0; FullProofOfExponent memory pok; // Commitment to user identifier in Attestation bytes memory commitment1; // Commitment to user identifier in Ticket bytes memory commitment2; (length, decodeIndex, ) = decodeLength(attestation, 0); //852 (total length, primary header) (ticketIssuer, ticketId, conferenceId, commitment2, decodeIndex) = recoverTicketSignatureAddress(attestation, decodeIndex); (attestor, subject, commitment1, decodeIndex, attestationValid) = recoverSignedIdentifierAddress(attestation, decodeIndex); //now pull ZK (Zero-Knowledge) POK (Proof Of Knowledge) data (pok, decodeIndex) = recoverPOK(attestation, decodeIndex); if (!attestationValid || !verifyPOK(commitment1, commitment2, pok)) { attestor = address(0); ticketIssuer = address(0); subject = address(0); ticketId = emptyBytes; conferenceId = emptyBytes; attestationValid = false; } } function verifyEqualityProof(bytes memory com1, bytes memory com2, bytes memory proof, bytes memory entropy) public view returns(bool result) { FullProofOfExponent memory pok; bytes memory attestationData; uint256 decodeIndex = 0; uint256 length = 0; (length, decodeIndex, ) = decodeLength(proof, 0); (, attestationData, decodeIndex,) = decodeElement(proof, decodeIndex); pok.challenge = bytesToUint(attestationData); (, pok.tPoint, decodeIndex,) = decodeElement(proof, decodeIndex); pok.entropy = entropy; return verifyPOK(com1, com2, pok); } ////////////////////////////////////////////////////////////// // DER Structure Decoding ////////////////////////////////////////////////////////////// function recoverSignedIdentifierAddress(bytes memory attestation, uint256 hashIndex) public view returns(address signer, address subject, bytes memory commitment1, uint256 resultIndex, bool timeStampValid) { bytes memory sigData; uint256 length ; uint256 decodeIndex ; uint256 headerIndex; (length, hashIndex, ) = decodeLength(attestation, hashIndex); //576 (SignedIdentifierAttestation) (length, headerIndex, ) = decodeLength(attestation, hashIndex); //493 (IdentifierAttestation) resultIndex = length + headerIndex; // (length + decodeIndex) - hashIndex); bytes memory preHash = copyDataBlock(attestation, hashIndex, (length + headerIndex) - hashIndex); decodeIndex = headerIndex + length; (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //Signature algorithm (length, sigData, resultIndex) = decodeElementOffset(attestation, decodeIndex + length, 1); // Signature //get signing address signer = recoverSigner(preHash, sigData); //Recover public key (length, decodeIndex, ) = decodeLength(attestation, headerIndex); //read Version (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Serial (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Signature type (9) 1.2.840.10045.2.1 (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Issuer Sequence (14) [[2.5.4.3, ALX]]], (Issuer: CN=ALX) (decodeIndex, timeStampValid) = decodeTimeBlock(attestation, decodeIndex + length); (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); // Smartcontract? (subject, decodeIndex) = addressFromPublicKey(attestation, decodeIndex + length); commitment1 = decodeCommitment(attestation, decodeIndex); } function decodeCommitment (bytes memory attestation, uint256 decodeIndex) internal virtual pure returns (bytes memory commitment) { uint256 length ; if (attestation[decodeIndex] != COMPOUND_TAG) { // its not commitment, but some other data. example: SEQUENCE (INTEGER 42, INTEGER 1337) (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); // some payload } (commitment, ) = recoverCommitment(attestation, decodeIndex + length); // Commitment 1, generated by // IdentifierAttestation constructor } function decodeTimeBlock(bytes memory attestation, uint256 decodeIndex) public view returns (uint256 index, bool valid) { bytes memory timeBlock; uint256 length; uint256 blockLength; bytes1 tag; (blockLength, index, ) = decodeLength(attestation, decodeIndex); //30 32 (length, decodeIndex, ) = decodeLength(attestation, index); //18 0f (length, timeBlock, decodeIndex, tag) = decodeElement(attestation, decodeIndex + length); //INTEGER_TAG if blockchain friendly time is used if (tag == INTEGER_TAG) { uint256 startTime = bytesToUint(timeBlock); (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //18 0F (, timeBlock, decodeIndex,) = decodeElement(attestation, decodeIndex + length); uint256 endTime = bytesToUint(timeBlock); valid = block.timestamp > (startTime - TTL_GAP) && block.timestamp < endTime; } else { valid = false; //fail attestation without blockchain friendly timestamps } index = index + blockLength; } function recoverCommitment(bytes memory attestation, uint256 decodeIndex) internal pure returns(bytes memory commitment, uint256 resultIndex) { uint256 length; (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); // Commitment tag (0x57) //pull Commitment commitment = copyDataBlock(attestation, decodeIndex + (length - 65), 65); resultIndex = decodeIndex + length; } function recoverTicketSignatureAddress(bytes memory attestation, uint256 hashIndex) public pure returns(address signer, bytes memory ticketId, bytes memory conferenceId, bytes memory commitment2, uint256 resultIndex) { uint256 length; uint256 decodeIndex; bytes memory sigData; (length, decodeIndex, ) = decodeLength(attestation, hashIndex); //163 Ticket Data (length, hashIndex, ) = decodeLength(attestation, decodeIndex); //5D bytes memory preHash = copyDataBlock(attestation, decodeIndex, (length + hashIndex) - decodeIndex); // ticket (length, conferenceId, decodeIndex, ) = decodeElement(attestation, hashIndex); //CONFERENCE_ID (length, ticketId, decodeIndex,) = decodeElement(attestation, decodeIndex); //TICKET_ID (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //Ticket Class (length, commitment2, decodeIndex,) = decodeElement(attestation, decodeIndex + length); // Commitment 2, generated by Ticket constructor // in class Ticket (length, sigData, resultIndex) = decodeElementOffset(attestation, decodeIndex, 1); // Signature //ecrecover signer = recoverSigner(preHash, sigData); } function recoverPOK(bytes memory attestation, uint256 decodeIndex) private pure returns(FullProofOfExponent memory pok, uint256 resultIndex) { bytes memory data; uint256 length; (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //68 POK data (length, data, decodeIndex,) = decodeElement(attestation, decodeIndex); pok.challenge = bytesToUint(data); (length, pok.tPoint, decodeIndex,) = decodeElement(attestation, decodeIndex); (length, pok.entropy, resultIndex,) = decodeElement(attestation, decodeIndex); } function getAttestationTimestamp(bytes memory attestation) public pure returns(string memory startTime, string memory endTime) { uint256 decodeIndex = 0; uint256 length = 0; (length, decodeIndex, ) = decodeLength(attestation, 0); //852 (total length, primary header) (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //Ticket (should be 163) (startTime, endTime) = getAttestationTimestamp(attestation, decodeIndex + length); } function getAttestationTimestamp(bytes memory attestation, uint256 decodeIndex) public pure returns(string memory startTime, string memory endTime) { uint256 length = 0; bytes memory timeData; (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //576 (SignedIdentifierAttestation) (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //493 (IdentifierAttestation) (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); //read Version (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Serial (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Signature type (9) 1.2.840.10045.2.1 (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Issuer Sequence (14) [[2.5.4.3, ALX]]], (Issuer: CN=ALX) (length, decodeIndex, ) = decodeLength(attestation, decodeIndex + length); // Validity time (length, timeData, decodeIndex, ) = decodeElement(attestation, decodeIndex); startTime = copyStringBlock(timeData); (length, timeData, decodeIndex, ) = decodeElement(attestation, decodeIndex); endTime = copyStringBlock(timeData); } function addressFromPublicKey(bytes memory attestation, uint256 decodeIndex) public pure returns(address keyAddress, uint256 resultIndex) { uint256 length; bytes memory publicKeyBytes; (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); // 307 key headerIndex (length, decodeIndex, ) = decodeLength(attestation, decodeIndex); // 236 header tag (length, publicKeyBytes, resultIndex) = decodeElementOffset(attestation, decodeIndex + length, 2); // public key keyAddress = publicKeyToAddress(publicKeyBytes); } ////////////////////////////////////////////////////////////// // Cryptography & Ethereum constructs ////////////////////////////////////////////////////////////// function getRiddle(bytes memory com1, bytes memory com2) public view returns(uint256[2] memory riddle) { uint256[2] memory lhs; uint256[2] memory rhs; (lhs[0], lhs[1]) = extractXYFromPoint(com1); (rhs[0], rhs[1]) = extractXYFromPoint(com2); rhs = ecInv(rhs); riddle = ecAdd(lhs, rhs); } /* Verify ZK (Zero-Knowledge) proof of equality of message in two Pedersen commitments by proving knowledge of the discrete log of their difference. This verifies that the message (identifier, such as email address) in both commitments are the same, and the one constructing the proof knows the secret of both these commitments. See: Commitment1: https://github.com/TokenScript/attestation/blob/main/src/main/java/org/tokenscript/attestation/IdentifierAttestation.java Commitment2: https://github.com/TokenScript/attestation/blob/main/src/main/java/org/devcon/ticket/Ticket.java Reference implementation: https://github.com/TokenScript/attestation/blob/main/src/main/java/org/tokenscript/attestation/core/AttestationCrypto.java */ function verifyPOK(bytes memory com1, bytes memory com2, FullProofOfExponent memory pok) private view returns(bool) { // Riddle is H*(r1-r2) with r1, r2 being the secret randomness of com1, respectively com2 uint256[2] memory riddle = getRiddle(com1, com2); // Compute challenge in a Fiat-Shamir style, based on context specific entropy to avoid reuse of proof bytes memory cArray = abi.encodePacked(HPoint, com1, com2, pok.tPoint, pok.entropy); uint256 c = mapToCurveMultiplier(cArray); uint256[2] memory lhs = ecMul(pok.challenge, H[0], H[1]); if (lhs[0] == 0 && lhs[1] == 0) { return false; } //early revert to avoid spending more gas //ECPoint riddle multiply by proof (component hash) uint256[2] memory rhs = ecMul(c, riddle[0], riddle[1]); if (rhs[0] == 0 && rhs[1] == 0) { return false; } //early revert to avoid spending more gas uint256[2] memory point; (point[0], point[1]) = extractXYFromPoint(pok.tPoint); rhs = ecAdd(rhs, point); return ecEquals(lhs, rhs); } function ecEquals(uint256[2] memory ecPoint1, uint256[2] memory ecPoint2) private pure returns(bool) { return (ecPoint1[0] == ecPoint2[0] && ecPoint1[1] == ecPoint2[1]); } function publicKeyToAddress(bytes memory publicKey) pure internal returns(address keyAddr) { bytes32 keyHash = keccak256(publicKey); bytes memory scratch = new bytes(32); assembly { mstore(add(scratch, 32), keyHash) mstore(add(scratch, 12), 0) keyAddr := mload(add(scratch, 32)) } } 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 ecMul(uint256 s, uint256 x, uint256 y) public view returns (uint256[2] memory retP) { bool success; // With a public key (x, y), this computes p = scalar * (x, y). uint256[3] memory i = [x, y, s]; assembly { // call ecmul precompile // inputs are: x, y, scalar success := staticcall (not(0), 0x07, i, 0x60, retP, 0x40) } if (!success) { retP[0] = 0; retP[1] = 0; } } function ecInv(uint256[2] memory point) private pure returns (uint256[2] memory invPoint) { invPoint[0] = point[0]; int256 n = int256(fieldSize) - int256(point[1]); n = n % int256(fieldSize); if (n < 0) { n += int256(fieldSize); } invPoint[1] = uint256(n); } function ecAdd(uint256[2] memory p1, uint256[2] memory p2) public view returns (uint256[2] memory retP) { bool success; uint256[4] memory i = [p1[0], p1[1], p2[0], p2[1]]; assembly { // call ecadd precompile // inputs are: x1, y1, x2, y2 success := staticcall (not(0), 0x06, i, 0x80, retP, 0x40) } if (!success) { retP[0] = 0; retP[1] = 0; } } function extractXYFromPoint(bytes memory data) public pure returns (uint256 x, uint256 y) { assembly { x := mload(add(data, 0x21)) //copy from 33rd byte because first 32 bytes are array length, then 1st byte of data is the 0x04; y := mload(add(data, 0x41)) //65th byte as x value is 32 bytes. } } function mapTo256BitInteger(bytes memory input) public pure returns(uint256 res) { bytes32 idHash = keccak256(input); res = uint256(idHash); } // Note, this will return 0 if the shifted hash > curveOrder, which will cause the equate to fail function mapToCurveMultiplier(bytes memory input) public pure returns(uint256 res) { bytes memory nextInput = input; bytes32 idHash = keccak256(nextInput); res = uint256(idHash) >> curveOrderBitShift; if (res >= curveOrder) { res = 0; } } //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, uint dIndex) internal pure returns(bytes memory data, uint256 index, uint256 length, bytes1 tag) { return decodeDERData(byteCode, dIndex, 0); } function copyDataBlock(bytes memory byteCode, uint dIndex, uint length) internal pure returns(bytes memory data) { uint256 blank = 0; uint256 index = dIndex; uint dStart = 0x20 + index; uint cycles = length / 0x20; uint 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, dStart) } 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) { uint offsetStart = 0x20 + length; assembly { let mc := add(data, offsetStart) mstore(mc, mload(add(blank, 0x20))) //now shrink the memory back mstore(data, length) } } } function copyStringBlock(bytes memory byteCode) internal pure returns(string memory stringData) { uint256 blank = 0; //blank 32 byte value uint256 length = byteCode.length; uint cycles = byteCode.length / 0x20; uint requiredAlloc = length; if (length % 0x20 > 0) //optimise copying the final part of the bytes - to avoid looping with single byte writes { cycles++; requiredAlloc += 0x20; //expand memory to allow end blank, so we don't smack the next stack entry } stringData = new string(requiredAlloc); //copy data in 32 byte blocks assembly { let cycle := 0 for { let mc := add(stringData, 0x20) //pointer into bytes we're writing to let cc := add(byteCode, 0x20) //pointer to where we're reading from } 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 (part of the optimisation to avoid looping adding blank bytes1) if (length % 0x20 > 0) { uint offsetStart = 0x20 + length; assembly { let mc := add(stringData, offsetStart) mstore(mc, mload(add(blank, 0x20))) //now shrink the memory back so the returned object is the correct size mstore(stringData, length) } } } function decodeDERData(bytes memory byteCode, uint dIndex, uint offset) internal pure returns(bytes memory data, uint256 index, uint256 length, bytes1 tag) { index = dIndex; (length, index, tag) = decodeLength(byteCode, index); if (offset <= length) { uint requiredLength = length - offset; uint dStart = index + offset; data = copyDataBlock(byteCode, dStart, requiredLength); } else { data = bytes(""); } index += length; } function decodeElement(bytes memory byteCode, uint 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, uint decodeIndex, uint offset) internal pure returns(uint256 length, bytes memory content, uint256 newIndex) { (content, newIndex, length, ) = decodeDERData(byteCode, decodeIndex, offset); } function decodeLength(bytes memory byteCode, uint decodeIndex) internal pure returns(uint256 length, uint256 newIndex, bytes1 tag) { uint codeLength = 1; length = 0; newIndex = decodeIndex; tag = bytes1(byteCode[newIndex++]); if ((byteCode[newIndex] & 0x80) == 0x80) { codeLength = uint8((byteCode[newIndex++] & 0x7f)); } for (uint i = 0; i < codeLength; i++) { length |= uint(uint8(byteCode[newIndex++] & 0xFF)) << ((codeLength - i - 1) * 8); } } function decodeIA5String(bytes memory byteCode, uint256[] memory objCodes, uint objCodeIndex, uint decodeIndex) internal pure returns(Status memory) { uint length = uint8(byteCode[decodeIndex++]); bytes32 store = 0; for (uint 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 { uint decodeIndex; uint objCodeIndex; } }
/* Attestation decode and validation */ /* AlphaWallet 2021 - 2022 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IERC5169.sol"; import "hardhat/console.sol"; contract ERC5169 is IERC5169, Ownable { string[] private _scriptURI; function scriptURI() external view override returns(string[] memory) { return _scriptURI; } function setScriptURI(string[] memory newScriptURI) external onlyOwner override { _scriptURI = newScriptURI; emit ScriptUpdate(newScriptURI); } function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC5169).interfaceId; } }
// 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.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 (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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); } }
/* 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 pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"oldID","type":"string"},{"indexed":false,"internalType":"string","name":"newID","type":"string"}],"name":"ConferenceIDUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"val","type":"string"}],"name":"RtnS","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"val","type":"bytes"}],"name":"RtnStr","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string[]","name":"","type":"string[]"}],"name":"ScriptUpdate","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":"uint256","name":"val","type":"uint256"}],"name":"Value","type":"event"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"}],"name":"_verifyTicketAttestation","outputs":[{"internalType":"address","name":"attestor","type":"address"},{"internalType":"address","name":"ticketIssuer","type":"address"},{"internalType":"address","name":"subject","type":"address"},{"internalType":"bytes","name":"ticketId","type":"bytes"},{"internalType":"bytes","name":"conferenceId","type":"bytes"},{"internalType":"bool","name":"attestationValid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"},{"internalType":"uint256","name":"decodeIndex","type":"uint256"}],"name":"addressFromPublicKey","outputs":[{"internalType":"address","name":"keyAddress","type":"address"},{"internalType":"uint256","name":"resultIndex","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"b","type":"bytes"}],"name":"bytesToUint","outputs":[{"internalType":"uint256","name":"conv","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveOrder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"},{"internalType":"uint256","name":"decodeIndex","type":"uint256"}],"name":"decodeTimeBlock","outputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"p1","type":"uint256[2]"},{"internalType":"uint256[2]","name":"p2","type":"uint256[2]"}],"name":"ecAdd","outputs":[{"internalType":"uint256[2]","name":"retP","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"s","type":"uint256"},{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"}],"name":"ecMul","outputs":[{"internalType":"uint256[2]","name":"retP","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"extractXYFromPoint","outputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"fieldSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"},{"internalType":"uint256","name":"decodeIndex","type":"uint256"}],"name":"getAttestationTimestamp","outputs":[{"internalType":"string","name":"startTime","type":"string"},{"internalType":"string","name":"endTime","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"}],"name":"getAttestationTimestamp","outputs":[{"internalType":"string","name":"startTime","type":"string"},{"internalType":"string","name":"endTime","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"com1","type":"bytes"},{"internalType":"bytes","name":"com2","type":"bytes"}],"name":"getRiddle","outputs":[{"internalType":"uint256[2]","name":"riddle","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"input","type":"bytes"}],"name":"mapTo256BitInteger","outputs":[{"internalType":"uint256","name":"res","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"input","type":"bytes"}],"name":"mapToCurveMultiplier","outputs":[{"internalType":"uint256","name":"res","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"}],"name":"mintUsingAttestation","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"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":[{"internalType":"bytes","name":"attestation","type":"bytes"},{"internalType":"uint256","name":"hashIndex","type":"uint256"}],"name":"recoverSignedIdentifierAddress","outputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"subject","type":"address"},{"internalType":"bytes","name":"commitment1","type":"bytes"},{"internalType":"uint256","name":"resultIndex","type":"uint256"},{"internalType":"bool","name":"timeStampValid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"},{"internalType":"uint256","name":"hashIndex","type":"uint256"}],"name":"recoverTicketSignatureAddress","outputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"ticketId","type":"bytes"},{"internalType":"bytes","name":"conferenceId","type":"bytes"},{"internalType":"bytes","name":"commitment2","type":"bytes"},{"internalType":"uint256","name":"resultIndex","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"newScriptURI","type":"string[]"}],"name":"setScriptURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","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":"newattestorKey","type":"address"},{"internalType":"address","name":"newIssuerKey","type":"address"}],"name":"updateAttestationKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newValue","type":"string"}],"name":"updateConferenceID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"}],"name":"verify","outputs":[{"internalType":"address","name":"attestor","type":"address"},{"internalType":"address","name":"ticketIssuer","type":"address"},{"internalType":"address","name":"subject","type":"address"},{"internalType":"bytes","name":"ticketId","type":"bytes"},{"internalType":"bytes","name":"conferenceId","type":"bytes"},{"internalType":"bool","name":"attestationValid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"com1","type":"bytes"},{"internalType":"bytes","name":"com2","type":"bytes"},{"internalType":"bytes","name":"proof","type":"bytes"},{"internalType":"bytes","name":"entropy","type":"bytes"}],"name":"verifyEqualityProof","outputs":[{"internalType":"bool","name":"result","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"}],"name":"verifyTicketAttestation","outputs":[{"internalType":"address","name":"attestor","type":"address"},{"internalType":"address","name":"ticketIssuer","type":"address"},{"internalType":"address","name":"subject","type":"address"},{"internalType":"bytes","name":"ticketId","type":"bytes"},{"internalType":"bytes","name":"conferenceId","type":"bytes"},{"internalType":"bool","name":"attestationValid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"attestation","type":"bytes"},{"internalType":"address","name":"attestor","type":"address"},{"internalType":"address","name":"ticketIssuer","type":"address"}],"name":"verifyTicketAttestation","outputs":[{"internalType":"address","name":"subject","type":"address"},{"internalType":"bytes","name":"ticketId","type":"bytes"},{"internalType":"bytes","name":"conferenceId","type":"bytes"},{"internalType":"bool","name":"attestationValid","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040527f2f0d9e279e878a050d91908a60a3e05f5984bded1df599647fe5aa78192f326360809081527f086e95d055b2ccbf23b8497a7a9d90bf062271cf10198fb3f27e6cb367333c1060a0526200005e90600a9060026200022d565b50604080518082019091527f17f9fe5df9c76e8ba869a388415efbaee6f8ab0c319042a8e353cfef90773ff581527f14c45f708a2a980f4b05f19abc4500adcccc13e2504aac6dcb0418b45b4e20bb6020820152620000c290600c9060026200022d565b5060408051808201909152600280825261353560f01b6020909201918252620000ee9160109162000270565b50348015620000fc57600080fd5b5060405180606001604052806023815260200162004559602391396040518060400160405280600e81526020016d2222ab21a7a72722a1aa1918191960911b81525081600090805190602001906200015692919062000270565b5080516200016c90600190602084019062000270565b5050506200018962000183620001d760201b60201c565b620001db565b601180546001600160a01b031990811673538080305560986811c3c1a2c5bcb4f37670ef7e17909155601280549091167309b6cc1cb661d523db1f8e854cfbfe2a03100d9517905562000340565b3390565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82600281019282156200025e579160200282015b828111156200025e57825182559160200191906001019062000241565b506200026c929150620002ec565b5090565b8280546200027e9062000303565b90600052602060002090601f016020900481019282620002a257600085556200025e565b82601f10620002bd57805160ff19168380011785556200025e565b828001600101855582156200025e57918201828111156200025e57825182559160200191906001019062000241565b5b808211156200026c5760008155600101620002ed565b600181811c908216806200031857607f821691505b602082108114156200033a57634e487b7160e01b600052602260045260246000fd5b50919050565b61420980620003506000396000f3fe6080604052600436106102885760003560e01c8063715018a61161015a578063a804c77d116100c1578063e34e582b1161007a578063e34e582b14610842578063e3d61eb314610862578063e8a3d48514610882578063e985e9c514610897578063f2fde38b146108e0578063f4ca85671461090057600080fd5b8063a804c77d1461079a578063a867d0ca146107ba578063b88d4fde146107da578063bb6e7de9146107fa578063c235fc1d14610802578063c87b56dd1461082257600080fd5b80638da5cb5b116101135780638da5cb5b146106e65780638e760afe146102f05780639287306f1461070457806395d89b41146107345780639f906c3914610749578063a22cb4651461077a57600080fd5b8063715018a6146105ef57806371afe9871461060457806378b8f3a614610632578063846fdeb91461066757806389781846146106875780638b57c115146106a757600080fd5b806323b872dd116101fe5780634bb30912116101b75780634bb309121461052b5780634cdbfeb31461054d5780634f6ccce71461056d578063594d157a1461058d5780636352211e146105af57806370a08231146105cf57600080fd5b806323b872dd1461044a5780632f745c591461046a578063307c08391461048a57806342842e0e146104be57806342966c68146104de578063429d426b146104fe57600080fd5b806306ca3dbf1161025057806306ca3dbf1461037957806306fdde031461039b578063081812fc146103bd578063095ea7b3146103f557806309e36a591461041557806318160ddd1461043557600080fd5b806301ffc9a71461028d57806302d06d05146102c257806303796667146102f05780630404c5351461032257806304f4927214610348575b600080fd5b34801561029957600080fd5b506102ad6102a83660046133c4565b61093f565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102e26102dd36600461349e565b61096a565b6040519081526020016102b9565b3480156102fc57600080fd5b5061031061030b36600461349e565b6109ce565b6040516102b99695949392919061352a565b34801561032e57600080fd5b506102e261033d36600461349e565b805160209091012090565b34801561035457600080fd5b50610368610363366004613586565b6109f5565b6040516102b99594939291906135ca565b34801561038557600080fd5b5061039961039436600461363e565b610ac4565b005b3480156103a757600080fd5b506103b0610afa565b6040516102b99190613671565b3480156103c957600080fd5b506103dd6103d8366004613684565b610b8c565b6040516001600160a01b0390911681526020016102b9565b34801561040157600080fd5b5061039961041036600461369d565b610bb3565b34801561042157600080fd5b506102e261043036600461349e565b610cce565b34801561044157600080fd5b506008546102e2565b34801561045657600080fd5b506103996104653660046136c7565b610d1f565b34801561047657600080fd5b506102e261048536600461369d565b610d51565b34801561049657600080fd5b506102e27f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181565b3480156104ca57600080fd5b506103996104d93660046136c7565b610de7565b3480156104ea57600080fd5b506103996104f9366004613684565b610e02565b34801561050a57600080fd5b5061051e610519366004613703565b610ee6565b6040516102b9919061375c565b34801561053757600080fd5b50610540610f3e565b6040516102b9919061378d565b34801561055957600080fd5b506102e261056836600461349e565b611017565b34801561057957600080fd5b506102e2610588366004613684565b6111ac565b34801561059957600080fd5b506102e26000805160206141b483398151915281565b3480156105bb57600080fd5b506103dd6105ca366004613684565b61123f565b3480156105db57600080fd5b506102e26105ea3660046137ef565b61129f565b3480156105fb57600080fd5b50610399611325565b34801561061057600080fd5b5061062461061f366004613586565b611339565b6040516102b992919061380a565b34801561063e57600080fd5b5061065261064d366004613586565b611401565b604080519283529015156020830152016102b9565b34801561067357600080fd5b5061062461068236600461349e565b6114d4565b34801561069357600080fd5b506103106106a236600461349e565b611513565b3480156106b357600080fd5b506106d16106c236600461349e565b60218101516041909101519091565b604080519283526020830191909152016102b9565b3480156106f257600080fd5b50600e546001600160a01b03166103dd565b34801561071057600080fd5b5061072461071f36600461382f565b6115e5565b6040516102b9949392919061388c565b34801561074057600080fd5b506103b061166d565b34801561075557600080fd5b50610769610764366004613586565b61167c565b6040516102b99594939291906138d6565b34801561078657600080fd5b5061039961079536600461391b565b6117a9565b3480156107a657600080fd5b5061051e6107b5366004613957565b6117b8565b3480156107c657600080fd5b5061051e6107d53660046139f2565b611803565b3480156107e657600080fd5b506103996107f5366004613a1e565b6118b2565b6103996118ea565b34801561080e57600080fd5b506102ad61081d366004613a85565b6118f5565b34801561082e57600080fd5b506103b061083d366004613684565b611978565b34801561084e57600080fd5b5061039961085d366004613b25565b611a5a565b34801561086e57600080fd5b5061039961087d366004613b96565b611aaa565b34801561088e57600080fd5b506103b0611b00565b3480156108a357600080fd5b506102ad6108b236600461363e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108ec57600080fd5b506103996108fb3660046137ef565b611b67565b34801561090c57600080fd5b5061092061091b366004613586565b611bdd565b604080516001600160a01b0390931683526020830191909152016102b9565b600063a86517a160e01b6001600160e01b031983161480610964575061096482611c32565b92915050565b60006020825110156109c2576040805160208082528183019092526000916020820181803683370190505090506000835160406109a79190613c83565b60208581015191840191909152919091015191506109c99050565b5060208101515b919050565b600080600060608060006109e187611513565b949c939b5091995097509550909350915050565b6000606080606060008060006060610a0d8a8a611c57565b509093509150610a1d8a83611c57565b50995092506000610a438b8480610a348e89613c9a565b610a3e9190613c83565b611d4b565b9050610a4f8b8b611e4a565b509098509094509250610a628b84611e4a565b509099509094509250610a758b84611c57565b509094509250610a8e8b610a898686613c9a565b611e4a565b509097509094509250610aa38b846001611e6b565b96509094509150610ab48183611e8a565b9850505050509295509295909350565b610acc611f19565b601180546001600160a01b039384166001600160a01b03199182161790915560128054929093169116179055565b606060008054610b0990613cb2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3590613cb2565b8015610b825780601f10610b5757610100808354040283529160200191610b82565b820191906000526020600020905b815481529060010190602001808311610b6557829003601f168201915b5050505050905090565b6000610b9782611f73565b506000908152600460205260409020546001600160a01b031690565b6000610bbe8261123f565b9050806001600160a01b0316836001600160a01b03161415610c315760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610c4d5750610c4d81336108b2565b610cbf5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610c28565b610cc98383611fd2565b505050565b805160208201206000908290610ce760fe610100613c83565b81901c92507f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018310610d1857600092505b5050919050565b610d2a335b82612040565b610d465760405162461bcd60e51b8152600401610c2890613ced565b610cc98383836120be565b6000610d5c8361129f565b8210610dbe5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c28565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610cc9838383604051806020016040528060008152506118b2565b6000818152600260205260409020546001600160a01b0316610e665760405162461bcd60e51b815260206004820181905260248201527f446576636f6e4d696e7461626c653a20696e76616c696420746f6b656e2049446044820152606401610c28565b610e6f33610d24565b610eda5760405162461bcd60e51b815260206004820152603660248201527f446576636f6e4d696e7461626c653a2063616c6c6572206973206e6f7420746f6044820152751ad95b881bdddb995c881b9bdc88185c1c1c9bdd995960521b6064820152608401610c28565b610ee381612265565b50565b610eee6131d3565b610ef66131d3565b610efe6131d3565b60218501516041860151602084015282526021840151604185015160208301528152610f298161230c565b9050610f358282611803565b95945050505050565b6060600f805480602002602001604051908101604052809291908181526020016000905b8282101561100e578382906000526020600020018054610f8190613cb2565b80601f0160208091040260200160405190810160405280929190818152602001828054610fad90613cb2565b8015610ffa5780601f10610fcf57610100808354040283529160200191610ffa565b820191906000526020600020905b815481529060010190602001808311610fdd57829003601f168201915b505050505081526020019060010190610f62565b50505050905090565b6011546012546000918291606091829184916110419188916001600160a01b0390811691166115e5565b929650909450925090506110548361096a565b94506001600160a01b0384161580159061106d57508415155b80156110765750805b80156111115750611111826010805461108e90613cb2565b80601f01602080910402602001604051908101604052809291908181526020018280546110ba90613cb2565b80156111075780601f106110dc57610100808354040283529160200191611107565b820191906000526020600020905b8154815290600101906020018083116110ea57829003601f168201915b5050505050612382565b6111555760405162461bcd60e51b8152602060048201526015602482015274105d1d195cdd185d1a5bdb881b9bdd081d985b1a59605a1b6044820152606401610c28565b60218351106111995760405162461bcd60e51b815260206004820152601060248201526f546f6b656e4944206f766572666c6f7760801b6044820152606401610c28565b6111a384866123db565b50505050919050565b60006111b760085490565b821061121a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c28565b6008828154811061122d5761122d613d3b565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806109645760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610c28565b60006001600160a01b0382166113095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610c28565b506001600160a01b031660009081526003602052604090205490565b61132d611f19565b6113376000612529565b565b6060806000606061134a8686611c57565b50955091506113598686611c57565b50955091506113688686611c57565b50955091506113808661137b8488613c9a565b611c57565b50955091506113938661137b8488613c9a565b50955091506113a68661137b8488613c9a565b50955091506113b98661137b8488613c9a565b50955091506113c88686611e4a565b50965090925090506113d98161257b565b93506113e58686611e4a565b50965090925090506113f68161257b565b925050509250929050565b600080606060008060006114158888611c57565b50965091506114248887611c57565b509750925061143788610a89858a613c9a565b90995090955090935090506001600160f81b03198116600160f91b14156114b85760006114638561096a565b905061146f8989611c57565b509850935061148289610a89868b613c9a565b5099509550600090506114948661096a565b90506114a261012c83613c83565b421180156114af57508042105b965050506114bd565b600094505b6114c78287613c9a565b9550505050509250929050565b6060806000806114e5856000611c57565b50925090506114f48583611c57565b50925090506115078561061f8385613c9a565b90969095509350505050565b600080600060608060008060009050600061154860405180606001604052806060815260200160008152602001606081525090565b6060806115568c6000611c57565b50955093506115658c866109f5565b939d50919a509850909550905061157c8c8661167c565b939e50919b50919750955091506115938c8661266b565b955092508515806115ac57506115aa8282856126f6565b155b156115d757604080516000808252602082018181528284019093529c508c9b508b9a50985096508895505b505050505091939550919395565b600060608060008060006115f889611513565b929a509098509650945090925090506001600160a01b038083169089161415806116345750866001600160a01b0316816001600160a01b031614155b8061163d575082155b1561166257604080516000808252602082018181528284019093529750955093508592505b505093509350935093565b606060018054610b0990613cb2565b6000806060600080606060008060006116958b8b611c57565b509a5092506116a48b8b611c57565b5090935090506116b48184613c9a565b955060006116c88c8c80610a348689613c9a565b90506116d48483613c9a565b92506116e08c84611c57565b5090945092506116fb8c6116f48686613c9a565b6001611e6b565b98509550935061170b8186611e8a565b99506117178c83611c57565b50909450925061172b8c61137b8686613c9a565b50909450925061173f8c61137b8686613c9a565b5090945092506117538c61137b8686613c9a565b5090945092506117678c61064d8686613c9a565b965092506117758c84611c57565b5090945092506117898c61091b8686613c9a565b90995092506117988c84612879565b975050505050509295509295909350565b6117b43383836128de565b5050565b6117c06131d3565b604080516060808201835285825260208201859052818301879052600092908490836007600019fa9150816117fa57600080845260208401525b50509392505050565b61180b6131d3565b60008060405180608001604052808660006002811061182c5761182c613d3b565b602002015181526020018660016002811061184957611849613d3b565b602002015181526020018560006002811061186657611866613d3b565b602002015181526020018560016002811061188357611883613d3b565b6020020151905290506040836080836006600019fa9150816118aa57600080845260208401525b505092915050565b6118bc3383612040565b6118d85760405162461bcd60e51b8152600401610c2890613ced565b6118e4848484846129ad565b50505050565b6118f2611f19565b33ff5b6040805160608082018352808252600060208301819052928201526060600080611920876000611c57565b509250905061192f8783611e4a565b50909450925061194090508361096a565b602085015261194f8783611e4a565b5090865260408601889052925061196990508989866126f6565b9450505050505b949350505050565b6000818152600260205260409020546060906001600160a01b03166119df5760405162461bcd60e51b815260206004820181905260248201527f446576636f6e4d696e7461626c653a20696e76616c696420746f6b656e2049446044820152606401610c28565b60405180606001604052806025815260200161418f60259139611a01466129e0565b611a09612add565b611a12856129e0565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611a44959493929190613d51565b6040516020818303038152906040529050919050565b611a62611f19565b7fb93699bb31c73037dd21bc86966aacc7f1b9e7269c666b3eda0c13ff85f1bfda60108383604051611a9693929190613e13565b60405180910390a1610cc9601083836131f1565b611ab2611f19565b8051611ac590600f906020840190613275565b507f9538911740e5519a40db77fb5f637de0d56cdd804318d81ae270cc24fbd8479e81604051611af5919061378d565b60405180910390a150565b606060405180606001604052806025815260200161418f60259139611b2361166d565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611b5393929190613ed1565b604051602081830303815290604052905090565b611b6f611f19565b6001600160a01b038116611bd45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c28565b610ee381612529565b60008060006060611bee8686611c57565b5095509150611bfd8686611c57565b5095509150611c1786611c108488613c9a565b6002611e6b565b94509092509050611c2781612aef565b935050509250929050565b60006001600160e01b0319821663780e9d6360e01b1480610964575061096482612b30565b6000818160018583611c6881613f2c565b945081518110611c7a57611c7a613d3b565b602001015160f81c60f81b9150858381518110611c9957611c99613d3b565b0160200151600160ff1b9081161415611cd8578583611cb781613f2c565b945081518110611cc957611cc9613d3b565b60209101015160f81c607f1690505b60005b81811015611d42576001611cef8284613c83565b611cf99190613c83565b611d04906008613f47565b8785611d0f81613f2c565b965081518110611d2157611d21613d3b565b016020015160f81c901b949094179380611d3a81613f2c565b915050611cdb565b50509250925092565b606060008381611d5c826020613c9a565b90506000611d6b602087613f7c565b9050856000611d7b602083613f90565b1115611d9d5781611d8b81613f2c565b9250611d9a9050602082613c9a565b90505b806001600160401b03811115611db557611db56133e1565b6040519080825280601f01601f191660200182016040528015611ddf576020820181803683370190505b509550602086016000848b015b84821015611e0b57805183526020928301926001929092019101611dec565b5050506000602088611e1d9190613f90565b1115611e3e576000611e30886020613c9a565b602087015190880152508686525b50505050509392505050565b60006060600080611e5b8686612b80565b9099929850909650945092505050565b600060606000611e7c868686612ba3565b509891975095509350505050565b600080600080611e9985612c1a565b9250925092506001868051906020012082858560405160008152602001604052604051611ee2949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015611f04573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b600e546001600160a01b031633146113375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c28565b6000818152600260205260409020546001600160a01b0316610ee35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610c28565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120078261123f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061204c8361123f565b9050806001600160a01b0316846001600160a01b0316148061209357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119705750836001600160a01b03166120ac84610b8c565b6001600160a01b031614949350505050565b826001600160a01b03166120d18261123f565b6001600160a01b0316146121355760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c28565b6001600160a01b0382166121975760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c28565b6121a2838383612c8e565b6121ad600082611fd2565b6001600160a01b03831660009081526003602052604081208054600192906121d6908490613c83565b90915550506001600160a01b0382166000908152600360205260408120805460019290612204908490613c9a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006122708261123f565b905061227e81600084612c8e565b612289600083611fd2565b6001600160a01b03811660009081526003602052604081208054600192906122b2908490613c83565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6123146131d3565b815181526020820151600090612338906000805160206141b4833981519152613fa4565b90506123526000805160206141b483398151915282613fe3565b90506000811215612378576123756000805160206141b483398151915282613ff7565b90505b6020820152919050565b6000816040516020016123959190614038565b60405160208183030381529060405280519060200120836040516020016123bc9190614038565b6040516020818303038152906040528051906020012014905092915050565b6001600160a01b0382166124315760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c28565b6000818152600260205260409020546001600160a01b0316156124965760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c28565b6124a260008383612c8e565b6001600160a01b03821660009081526003602052604081208054600192906124cb908490613c9a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516060906000908161258f602083613f7c565b905081600061259f602083613f90565b11156125c157816125af81613f2c565b92506125be9050602082613c9a565b90505b806001600160401b038111156125d9576125d96133e1565b6040519080825280601f01601f191660200182016040528015612603576020820181803683370190505b509450600060208601602088015b8483101561263057805182526001929092019160209182019101612611565b50505060006020846126429190613f90565b11156111a3576000612655846020613c9a565b6020860151908701525082855250505050919050565b61268f60405180606001604052806060815260200160008152602001606081525090565b60006060600061269f8686611c57565b50955090506126ae8686611e4a565b509650925090506126be8261096a565b60208501526126cd8686611e4a565b50908652955090506126df8686611e4a565b506040870191909152949794965093945050505050565b6000806127038585610ee6565b604051600160fa1b60208201527f17f9fe5df9c76e8ba869a388415efbaee6f8ab0c319042a8e353cfef90773ff560218201527f14c45f708a2a980f4b05f19abc4500adcccc13e2504aac6dcb0418b45b4e20bb604182015290915060009060610160408051601f1981840301815282825286519187015161278e9391928a928a9290602001614054565b604051602081830303815290604052905060006127aa82610cce565b905060006127d48660200151600c6000600281106127ca576127ca613d3b565b0154600d546117b8565b80519091501580156127e857506020810151155b156127fa576000945050505050612872565b83516020850151600091612810918591906117b8565b805190915015801561282457506020810151155b1561283757600095505050505050612872565b61283f6131d3565b875160218101516041909101516020830152815261285d8282611803565b91506128698383612d46565b96505050505050505b9392505050565b6060600060a360f81b6001600160f81b03191684848151811061289e5761289e613d3b565b01602001516001600160f81b031916146128c2576128bc8484611c57565b50935090505b6128d5846128d08386613c9a565b612d63565b50949350505050565b816001600160a01b0316836001600160a01b031614156129405760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c28565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129b88484846120be565b6129c484848484612dad565b6118e45760405162461bcd60e51b8152600401610c28906140bf565b606081612a045750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a2e5780612a1881613f2c565b9150612a279050600a83613f7c565b9150612a08565b6000816001600160401b03811115612a4857612a486133e1565b6040519080825280601f01601f191660200182016040528015612a72576020820181803683370190505b5090505b841561197057612a87600183613c83565b9150612a94600a86613f90565b612a9f906030613c9a565b60f81b818381518110612ab457612ab4613d3b565b60200101906001600160f81b031916908160001a905350612ad6600a86613f7c565b9450612a76565b6060612aea306014612ea8565b905090565b805160208083019190912060408051838152808201909152600092839190602082018180368337505050602081019283526000600c90910152505192915050565b60006001600160e01b031982166380ac58cd60e01b1480612b6157506001600160e01b03198216635b5e139f60e01b145b8061096457506301ffc9a760e01b6001600160e01b0319831614610964565b60606000806000612b9386866000612ba3565b9299919850965090945092505050565b606082600080612bb38784611c57565b9094509092509050818511612bf2576000612bce8684613c83565b90506000612bdc8786613c9a565b9050612be9898284611d4b565b95505050612c05565b6040518060200160405280600081525093505b612c0f8284613c9a565b925093509350935093565b60008060008351604114612c705760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610c28565b50505060208101516040820151606090920151909260009190911a90565b6001600160a01b038316612ce957612ce481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d0c565b816001600160a01b0316836001600160a01b031614612d0c57612d0c8382613043565b6001600160a01b038216612d2357610cc9816130e0565b826001600160a01b0316826001600160a01b031614610cc957610cc9828261318f565b805182516000911480156128725750506020908101519101511490565b6060600080612d728585611c57565b5094509050612d9785612d86604184613c83565b612d909087613c9a565b6041611d4b565b9250612da38185613c9a565b9150509250929050565b60006001600160a01b0384163b15612ea057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612df1903390899088908890600401614111565b6020604051808303816000875af1925050508015612e2c575060408051601f3d908101601f19168201909252612e2991810190614144565b60015b612e86573d808015612e5a576040519150601f19603f3d011682016040523d82523d6000602084013e612e5f565b606091505b508051612e7e5760405162461bcd60e51b8152600401610c28906140bf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611970565b506001611970565b60606000612eb7836002613f47565b612ec2906002613c9a565b6001600160401b03811115612ed957612ed96133e1565b6040519080825280601f01601f191660200182016040528015612f03576020820181803683370190505b509050600360fc1b81600081518110612f1e57612f1e613d3b565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612f4d57612f4d613d3b565b60200101906001600160f81b031916908160001a9053506000612f71846002613f47565b612f7c906001613c9a565b90505b6001811115612ff4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612fb057612fb0613d3b565b1a60f81b828281518110612fc657612fc6613d3b565b60200101906001600160f81b031916908160001a90535060049490941c93612fed81614161565b9050612f7f565b5083156128725760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c28565b600060016130508461129f565b61305a9190613c83565b6000838152600760205260409020549091508082146130ad576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130f290600190613c83565b6000838152600960205260408120546008805493945090928490811061311a5761311a613d3b565b90600052602060002001549050806008838154811061313b5761313b613d3b565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061317357613173614178565b6001900381819060005260206000200160009055905550505050565b600061319a8361129f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180604001604052806002906020820280368337509192915050565b8280546131fd90613cb2565b90600052602060002090601f01602090048101928261321f5760008555613265565b82601f106132385782800160ff19823516178555613265565b82800160010185558215613265579182015b8281111561326557823582559160200191906001019061324a565b506132719291506132ce565b5090565b8280548282559060005260206000209081019282156132c2579160200282015b828111156132c257825180516132b29184916020909101906132e3565b5091602001919060010190613295565b50613271929150613357565b5b8082111561327157600081556001016132cf565b8280546132ef90613cb2565b90600052602060002090601f0160209004810192826133115760008555613265565b82601f1061332a57805160ff1916838001178555613265565b82800160010185558215613265579182015b8281111561326557825182559160200191906001019061333c565b8082111561327157600061336b8282613374565b50600101613357565b50805461338090613cb2565b6000825580601f10613390575050565b601f016020900490600052602060002090810190610ee391906132ce565b6001600160e01b031981168114610ee357600080fd5b6000602082840312156133d657600080fd5b8135612872816133ae565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561341f5761341f6133e1565b604052919050565b60006001600160401b03831115613440576134406133e1565b613453601f8401601f19166020016133f7565b905082815283838301111561346757600080fd5b828260208301376000602084830101529392505050565b600082601f83011261348f57600080fd5b61287283833560208501613427565b6000602082840312156134b057600080fd5b81356001600160401b038111156134c657600080fd5b6119708482850161347e565b60005b838110156134ed5781810151838201526020016134d5565b838111156118e45750506000910152565b600081518084526135168160208601602086016134d2565b601f01601f19169290920160200192915050565b6001600160a01b03878116825286811660208301528516604082015260c06060820181905260009061355e908301866134fe565b828103608084015261357081866134fe565b91505082151560a0830152979650505050505050565b6000806040838503121561359957600080fd5b82356001600160401b038111156135af57600080fd5b6135bb8582860161347e565b95602094909401359450505050565b6001600160a01b038616815260a0602082018190526000906135ee908301876134fe565b828103604084015261360081876134fe565b9050828103606084015261361481866134fe565b9150508260808301529695505050505050565b80356001600160a01b03811681146109c957600080fd5b6000806040838503121561365157600080fd5b61365a83613627565b915061366860208401613627565b90509250929050565b60208152600061287260208301846134fe565b60006020828403121561369657600080fd5b5035919050565b600080604083850312156136b057600080fd5b6136b983613627565b946020939093013593505050565b6000806000606084860312156136dc57600080fd5b6136e584613627565b92506136f360208501613627565b9150604084013590509250925092565b6000806040838503121561371657600080fd5b82356001600160401b038082111561372d57600080fd5b6137398683870161347e565b9350602085013591508082111561374f57600080fd5b50612da38582860161347e565b60408101818360005b6002811015613784578151835260209283019290910190600101613765565b50505092915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156137e257603f198886030184526137d08583516134fe565b945092850192908501906001016137b4565b5092979650505050505050565b60006020828403121561380157600080fd5b61287282613627565b60408152600061381d60408301856134fe565b8281036020840152610f3581856134fe565b60008060006060848603121561384457600080fd5b83356001600160401b0381111561385a57600080fd5b6138668682870161347e565b93505061387560208501613627565b915061388360408501613627565b90509250925092565b6001600160a01b03851681526080602082018190526000906138b0908301866134fe565b82810360408401526138c281866134fe565b915050821515606083015295945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613902908301866134fe565b6060830194909452509015156080909101529392505050565b6000806040838503121561392e57600080fd5b61393783613627565b91506020830135801515811461394c57600080fd5b809150509250929050565b60008060006060848603121561396c57600080fd5b505081359360208301359350604090920135919050565b600082601f83011261399457600080fd5b604051604081018181106001600160401b03821117156139b6576139b66133e1565b80604052508060408401858111156139cd57600080fd5b845b818110156139e75780358352602092830192016139cf565b509195945050505050565b60008060808385031215613a0557600080fd5b613a0f8484613983565b91506136688460408501613983565b60008060008060808587031215613a3457600080fd5b613a3d85613627565b9350613a4b60208601613627565b92506040850135915060608501356001600160401b03811115613a6d57600080fd5b613a798782880161347e565b91505092959194509250565b60008060008060808587031215613a9b57600080fd5b84356001600160401b0380821115613ab257600080fd5b613abe8883890161347e565b95506020870135915080821115613ad457600080fd5b613ae08883890161347e565b94506040870135915080821115613af657600080fd5b613b028883890161347e565b93506060870135915080821115613b1857600080fd5b50613a798782880161347e565b60008060208385031215613b3857600080fd5b82356001600160401b0380821115613b4f57600080fd5b818501915085601f830112613b6357600080fd5b813581811115613b7257600080fd5b866020828501011115613b8457600080fd5b60209290920196919550909350505050565b60006020808385031215613ba957600080fd5b82356001600160401b0380821115613bc057600080fd5b818501915085601f830112613bd457600080fd5b813581811115613be657613be66133e1565b8060051b613bf58582016133f7565b9182528381018501918581019089841115613c0f57600080fd5b86860192505b83831015613c6057823585811115613c2d5760008081fd5b8601603f81018b13613c3f5760008081fd5b613c508b8983013560408401613427565b8352509186019190860190613c15565b9998505050505050505050565b634e487b7160e01b600052601160045260246000fd5b600082821015613c9557613c95613c6d565b500390565b60008219821115613cad57613cad613c6d565b500190565b600181811c90821680613cc657607f821691505b60208210811415613ce757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008651613d63818460208b016134d2565b65746f6b656e2f60d01b9083019081528651613d86816006840160208b016134d2565b808201915050602f60f81b8060068301528651613daa816007850160208b016134d2565b60079201918201528451613dc58160088401602089016134d2565b8451910190613ddb8160088401602088016134d2565b01600801979650505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408152600080855481600182811c915080831680613e3357607f831692505b6020808410821415613e5357634e487b7160e01b86526022600452602486fd5b6040880184905260608801828015613e725760018114613e8357613eae565b60ff19871682528282019750613eae565b60008d81526020902060005b87811015613ea857815484820152908601908401613e8f565b83019850505b5050878603818901525050505050613ec7818587613dea565b9695505050505050565b60008451613ee38184602089016134d2565b68636f6e74726163742f60b81b9083019081528451613f098160098401602089016134d2565b8451910190613f1f8160098401602088016134d2565b0160090195945050505050565b6000600019821415613f4057613f40613c6d565b5060010190565b6000816000190483118215151615613f6157613f61613c6d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613f8b57613f8b613f66565b500490565b600082613f9f57613f9f613f66565b500690565b60008083128015600160ff1b850184121615613fc257613fc2613c6d565b6001600160ff1b0384018313811615613fdd57613fdd613c6d565b50500390565b600082613ff257613ff2613f66565b500790565b600080821280156001600160ff1b038490038513161561401957614019613c6d565b600160ff1b839003841281161561403257614032613c6d565b50500190565b6000825161404a8184602087016134d2565b9190910192915050565b60008651614066818460208b016134d2565b86519083019061407a818360208b016134d2565b865191019061408d818360208a016134d2565b85519101906140a08183602089016134d2565b84519101906140b38183602088016134d2565b01979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ec7908301846134fe565b60006020828403121561415657600080fd5b8151612872816133ae565b60008161417057614170613c6d565b506000190190565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f7265736f75726365732e736d617274746f6b656e6c6162732e636f6d2f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47a264697066735822122019c603821e1d3054d1b6f46ea739f41751918f80b08626b1f4fa1f190e22804764736f6c634300080c0033446576636f6e6e656374203230323220436f2d576f726b205469636b65742053747562
Deployed Bytecode
0x6080604052600436106102885760003560e01c8063715018a61161015a578063a804c77d116100c1578063e34e582b1161007a578063e34e582b14610842578063e3d61eb314610862578063e8a3d48514610882578063e985e9c514610897578063f2fde38b146108e0578063f4ca85671461090057600080fd5b8063a804c77d1461079a578063a867d0ca146107ba578063b88d4fde146107da578063bb6e7de9146107fa578063c235fc1d14610802578063c87b56dd1461082257600080fd5b80638da5cb5b116101135780638da5cb5b146106e65780638e760afe146102f05780639287306f1461070457806395d89b41146107345780639f906c3914610749578063a22cb4651461077a57600080fd5b8063715018a6146105ef57806371afe9871461060457806378b8f3a614610632578063846fdeb91461066757806389781846146106875780638b57c115146106a757600080fd5b806323b872dd116101fe5780634bb30912116101b75780634bb309121461052b5780634cdbfeb31461054d5780634f6ccce71461056d578063594d157a1461058d5780636352211e146105af57806370a08231146105cf57600080fd5b806323b872dd1461044a5780632f745c591461046a578063307c08391461048a57806342842e0e146104be57806342966c68146104de578063429d426b146104fe57600080fd5b806306ca3dbf1161025057806306ca3dbf1461037957806306fdde031461039b578063081812fc146103bd578063095ea7b3146103f557806309e36a591461041557806318160ddd1461043557600080fd5b806301ffc9a71461028d57806302d06d05146102c257806303796667146102f05780630404c5351461032257806304f4927214610348575b600080fd5b34801561029957600080fd5b506102ad6102a83660046133c4565b61093f565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102e26102dd36600461349e565b61096a565b6040519081526020016102b9565b3480156102fc57600080fd5b5061031061030b36600461349e565b6109ce565b6040516102b99695949392919061352a565b34801561032e57600080fd5b506102e261033d36600461349e565b805160209091012090565b34801561035457600080fd5b50610368610363366004613586565b6109f5565b6040516102b99594939291906135ca565b34801561038557600080fd5b5061039961039436600461363e565b610ac4565b005b3480156103a757600080fd5b506103b0610afa565b6040516102b99190613671565b3480156103c957600080fd5b506103dd6103d8366004613684565b610b8c565b6040516001600160a01b0390911681526020016102b9565b34801561040157600080fd5b5061039961041036600461369d565b610bb3565b34801561042157600080fd5b506102e261043036600461349e565b610cce565b34801561044157600080fd5b506008546102e2565b34801561045657600080fd5b506103996104653660046136c7565b610d1f565b34801561047657600080fd5b506102e261048536600461369d565b610d51565b34801561049657600080fd5b506102e27f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181565b3480156104ca57600080fd5b506103996104d93660046136c7565b610de7565b3480156104ea57600080fd5b506103996104f9366004613684565b610e02565b34801561050a57600080fd5b5061051e610519366004613703565b610ee6565b6040516102b9919061375c565b34801561053757600080fd5b50610540610f3e565b6040516102b9919061378d565b34801561055957600080fd5b506102e261056836600461349e565b611017565b34801561057957600080fd5b506102e2610588366004613684565b6111ac565b34801561059957600080fd5b506102e26000805160206141b483398151915281565b3480156105bb57600080fd5b506103dd6105ca366004613684565b61123f565b3480156105db57600080fd5b506102e26105ea3660046137ef565b61129f565b3480156105fb57600080fd5b50610399611325565b34801561061057600080fd5b5061062461061f366004613586565b611339565b6040516102b992919061380a565b34801561063e57600080fd5b5061065261064d366004613586565b611401565b604080519283529015156020830152016102b9565b34801561067357600080fd5b5061062461068236600461349e565b6114d4565b34801561069357600080fd5b506103106106a236600461349e565b611513565b3480156106b357600080fd5b506106d16106c236600461349e565b60218101516041909101519091565b604080519283526020830191909152016102b9565b3480156106f257600080fd5b50600e546001600160a01b03166103dd565b34801561071057600080fd5b5061072461071f36600461382f565b6115e5565b6040516102b9949392919061388c565b34801561074057600080fd5b506103b061166d565b34801561075557600080fd5b50610769610764366004613586565b61167c565b6040516102b99594939291906138d6565b34801561078657600080fd5b5061039961079536600461391b565b6117a9565b3480156107a657600080fd5b5061051e6107b5366004613957565b6117b8565b3480156107c657600080fd5b5061051e6107d53660046139f2565b611803565b3480156107e657600080fd5b506103996107f5366004613a1e565b6118b2565b6103996118ea565b34801561080e57600080fd5b506102ad61081d366004613a85565b6118f5565b34801561082e57600080fd5b506103b061083d366004613684565b611978565b34801561084e57600080fd5b5061039961085d366004613b25565b611a5a565b34801561086e57600080fd5b5061039961087d366004613b96565b611aaa565b34801561088e57600080fd5b506103b0611b00565b3480156108a357600080fd5b506102ad6108b236600461363e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108ec57600080fd5b506103996108fb3660046137ef565b611b67565b34801561090c57600080fd5b5061092061091b366004613586565b611bdd565b604080516001600160a01b0390931683526020830191909152016102b9565b600063a86517a160e01b6001600160e01b031983161480610964575061096482611c32565b92915050565b60006020825110156109c2576040805160208082528183019092526000916020820181803683370190505090506000835160406109a79190613c83565b60208581015191840191909152919091015191506109c99050565b5060208101515b919050565b600080600060608060006109e187611513565b949c939b5091995097509550909350915050565b6000606080606060008060006060610a0d8a8a611c57565b509093509150610a1d8a83611c57565b50995092506000610a438b8480610a348e89613c9a565b610a3e9190613c83565b611d4b565b9050610a4f8b8b611e4a565b509098509094509250610a628b84611e4a565b509099509094509250610a758b84611c57565b509094509250610a8e8b610a898686613c9a565b611e4a565b509097509094509250610aa38b846001611e6b565b96509094509150610ab48183611e8a565b9850505050509295509295909350565b610acc611f19565b601180546001600160a01b039384166001600160a01b03199182161790915560128054929093169116179055565b606060008054610b0990613cb2565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3590613cb2565b8015610b825780601f10610b5757610100808354040283529160200191610b82565b820191906000526020600020905b815481529060010190602001808311610b6557829003601f168201915b5050505050905090565b6000610b9782611f73565b506000908152600460205260409020546001600160a01b031690565b6000610bbe8261123f565b9050806001600160a01b0316836001600160a01b03161415610c315760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610c4d5750610c4d81336108b2565b610cbf5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610c28565b610cc98383611fd2565b505050565b805160208201206000908290610ce760fe610100613c83565b81901c92507f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018310610d1857600092505b5050919050565b610d2a335b82612040565b610d465760405162461bcd60e51b8152600401610c2890613ced565b610cc98383836120be565b6000610d5c8361129f565b8210610dbe5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c28565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610cc9838383604051806020016040528060008152506118b2565b6000818152600260205260409020546001600160a01b0316610e665760405162461bcd60e51b815260206004820181905260248201527f446576636f6e4d696e7461626c653a20696e76616c696420746f6b656e2049446044820152606401610c28565b610e6f33610d24565b610eda5760405162461bcd60e51b815260206004820152603660248201527f446576636f6e4d696e7461626c653a2063616c6c6572206973206e6f7420746f6044820152751ad95b881bdddb995c881b9bdc88185c1c1c9bdd995960521b6064820152608401610c28565b610ee381612265565b50565b610eee6131d3565b610ef66131d3565b610efe6131d3565b60218501516041860151602084015282526021840151604185015160208301528152610f298161230c565b9050610f358282611803565b95945050505050565b6060600f805480602002602001604051908101604052809291908181526020016000905b8282101561100e578382906000526020600020018054610f8190613cb2565b80601f0160208091040260200160405190810160405280929190818152602001828054610fad90613cb2565b8015610ffa5780601f10610fcf57610100808354040283529160200191610ffa565b820191906000526020600020905b815481529060010190602001808311610fdd57829003601f168201915b505050505081526020019060010190610f62565b50505050905090565b6011546012546000918291606091829184916110419188916001600160a01b0390811691166115e5565b929650909450925090506110548361096a565b94506001600160a01b0384161580159061106d57508415155b80156110765750805b80156111115750611111826010805461108e90613cb2565b80601f01602080910402602001604051908101604052809291908181526020018280546110ba90613cb2565b80156111075780601f106110dc57610100808354040283529160200191611107565b820191906000526020600020905b8154815290600101906020018083116110ea57829003601f168201915b5050505050612382565b6111555760405162461bcd60e51b8152602060048201526015602482015274105d1d195cdd185d1a5bdb881b9bdd081d985b1a59605a1b6044820152606401610c28565b60218351106111995760405162461bcd60e51b815260206004820152601060248201526f546f6b656e4944206f766572666c6f7760801b6044820152606401610c28565b6111a384866123db565b50505050919050565b60006111b760085490565b821061121a5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c28565b6008828154811061122d5761122d613d3b565b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806109645760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610c28565b60006001600160a01b0382166113095760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610c28565b506001600160a01b031660009081526003602052604090205490565b61132d611f19565b6113376000612529565b565b6060806000606061134a8686611c57565b50955091506113598686611c57565b50955091506113688686611c57565b50955091506113808661137b8488613c9a565b611c57565b50955091506113938661137b8488613c9a565b50955091506113a68661137b8488613c9a565b50955091506113b98661137b8488613c9a565b50955091506113c88686611e4a565b50965090925090506113d98161257b565b93506113e58686611e4a565b50965090925090506113f68161257b565b925050509250929050565b600080606060008060006114158888611c57565b50965091506114248887611c57565b509750925061143788610a89858a613c9a565b90995090955090935090506001600160f81b03198116600160f91b14156114b85760006114638561096a565b905061146f8989611c57565b509850935061148289610a89868b613c9a565b5099509550600090506114948661096a565b90506114a261012c83613c83565b421180156114af57508042105b965050506114bd565b600094505b6114c78287613c9a565b9550505050509250929050565b6060806000806114e5856000611c57565b50925090506114f48583611c57565b50925090506115078561061f8385613c9a565b90969095509350505050565b600080600060608060008060009050600061154860405180606001604052806060815260200160008152602001606081525090565b6060806115568c6000611c57565b50955093506115658c866109f5565b939d50919a509850909550905061157c8c8661167c565b939e50919b50919750955091506115938c8661266b565b955092508515806115ac57506115aa8282856126f6565b155b156115d757604080516000808252602082018181528284019093529c508c9b508b9a50985096508895505b505050505091939550919395565b600060608060008060006115f889611513565b929a509098509650945090925090506001600160a01b038083169089161415806116345750866001600160a01b0316816001600160a01b031614155b8061163d575082155b1561166257604080516000808252602082018181528284019093529750955093508592505b505093509350935093565b606060018054610b0990613cb2565b6000806060600080606060008060006116958b8b611c57565b509a5092506116a48b8b611c57565b5090935090506116b48184613c9a565b955060006116c88c8c80610a348689613c9a565b90506116d48483613c9a565b92506116e08c84611c57565b5090945092506116fb8c6116f48686613c9a565b6001611e6b565b98509550935061170b8186611e8a565b99506117178c83611c57565b50909450925061172b8c61137b8686613c9a565b50909450925061173f8c61137b8686613c9a565b5090945092506117538c61137b8686613c9a565b5090945092506117678c61064d8686613c9a565b965092506117758c84611c57565b5090945092506117898c61091b8686613c9a565b90995092506117988c84612879565b975050505050509295509295909350565b6117b43383836128de565b5050565b6117c06131d3565b604080516060808201835285825260208201859052818301879052600092908490836007600019fa9150816117fa57600080845260208401525b50509392505050565b61180b6131d3565b60008060405180608001604052808660006002811061182c5761182c613d3b565b602002015181526020018660016002811061184957611849613d3b565b602002015181526020018560006002811061186657611866613d3b565b602002015181526020018560016002811061188357611883613d3b565b6020020151905290506040836080836006600019fa9150816118aa57600080845260208401525b505092915050565b6118bc3383612040565b6118d85760405162461bcd60e51b8152600401610c2890613ced565b6118e4848484846129ad565b50505050565b6118f2611f19565b33ff5b6040805160608082018352808252600060208301819052928201526060600080611920876000611c57565b509250905061192f8783611e4a565b50909450925061194090508361096a565b602085015261194f8783611e4a565b5090865260408601889052925061196990508989866126f6565b9450505050505b949350505050565b6000818152600260205260409020546060906001600160a01b03166119df5760405162461bcd60e51b815260206004820181905260248201527f446576636f6e4d696e7461626c653a20696e76616c696420746f6b656e2049446044820152606401610c28565b60405180606001604052806025815260200161418f60259139611a01466129e0565b611a09612add565b611a12856129e0565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611a44959493929190613d51565b6040516020818303038152906040529050919050565b611a62611f19565b7fb93699bb31c73037dd21bc86966aacc7f1b9e7269c666b3eda0c13ff85f1bfda60108383604051611a9693929190613e13565b60405180910390a1610cc9601083836131f1565b611ab2611f19565b8051611ac590600f906020840190613275565b507f9538911740e5519a40db77fb5f637de0d56cdd804318d81ae270cc24fbd8479e81604051611af5919061378d565b60405180910390a150565b606060405180606001604052806025815260200161418f60259139611b2361166d565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001611b5393929190613ed1565b604051602081830303815290604052905090565b611b6f611f19565b6001600160a01b038116611bd45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c28565b610ee381612529565b60008060006060611bee8686611c57565b5095509150611bfd8686611c57565b5095509150611c1786611c108488613c9a565b6002611e6b565b94509092509050611c2781612aef565b935050509250929050565b60006001600160e01b0319821663780e9d6360e01b1480610964575061096482612b30565b6000818160018583611c6881613f2c565b945081518110611c7a57611c7a613d3b565b602001015160f81c60f81b9150858381518110611c9957611c99613d3b565b0160200151600160ff1b9081161415611cd8578583611cb781613f2c565b945081518110611cc957611cc9613d3b565b60209101015160f81c607f1690505b60005b81811015611d42576001611cef8284613c83565b611cf99190613c83565b611d04906008613f47565b8785611d0f81613f2c565b965081518110611d2157611d21613d3b565b016020015160f81c901b949094179380611d3a81613f2c565b915050611cdb565b50509250925092565b606060008381611d5c826020613c9a565b90506000611d6b602087613f7c565b9050856000611d7b602083613f90565b1115611d9d5781611d8b81613f2c565b9250611d9a9050602082613c9a565b90505b806001600160401b03811115611db557611db56133e1565b6040519080825280601f01601f191660200182016040528015611ddf576020820181803683370190505b509550602086016000848b015b84821015611e0b57805183526020928301926001929092019101611dec565b5050506000602088611e1d9190613f90565b1115611e3e576000611e30886020613c9a565b602087015190880152508686525b50505050509392505050565b60006060600080611e5b8686612b80565b9099929850909650945092505050565b600060606000611e7c868686612ba3565b509891975095509350505050565b600080600080611e9985612c1a565b9250925092506001868051906020012082858560405160008152602001604052604051611ee2949392919093845260ff9290921660208401526040830152606082015260800190565b6020604051602081039080840390855afa158015611f04573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b600e546001600160a01b031633146113375760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c28565b6000818152600260205260409020546001600160a01b0316610ee35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610c28565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906120078261123f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061204c8361123f565b9050806001600160a01b0316846001600160a01b0316148061209357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806119705750836001600160a01b03166120ac84610b8c565b6001600160a01b031614949350505050565b826001600160a01b03166120d18261123f565b6001600160a01b0316146121355760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c28565b6001600160a01b0382166121975760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c28565b6121a2838383612c8e565b6121ad600082611fd2565b6001600160a01b03831660009081526003602052604081208054600192906121d6908490613c83565b90915550506001600160a01b0382166000908152600360205260408120805460019290612204908490613c9a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006122708261123f565b905061227e81600084612c8e565b612289600083611fd2565b6001600160a01b03811660009081526003602052604081208054600192906122b2908490613c83565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6123146131d3565b815181526020820151600090612338906000805160206141b4833981519152613fa4565b90506123526000805160206141b483398151915282613fe3565b90506000811215612378576123756000805160206141b483398151915282613ff7565b90505b6020820152919050565b6000816040516020016123959190614038565b60405160208183030381529060405280519060200120836040516020016123bc9190614038565b6040516020818303038152906040528051906020012014905092915050565b6001600160a01b0382166124315760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c28565b6000818152600260205260409020546001600160a01b0316156124965760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c28565b6124a260008383612c8e565b6001600160a01b03821660009081526003602052604081208054600192906124cb908490613c9a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600e80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516060906000908161258f602083613f7c565b905081600061259f602083613f90565b11156125c157816125af81613f2c565b92506125be9050602082613c9a565b90505b806001600160401b038111156125d9576125d96133e1565b6040519080825280601f01601f191660200182016040528015612603576020820181803683370190505b509450600060208601602088015b8483101561263057805182526001929092019160209182019101612611565b50505060006020846126429190613f90565b11156111a3576000612655846020613c9a565b6020860151908701525082855250505050919050565b61268f60405180606001604052806060815260200160008152602001606081525090565b60006060600061269f8686611c57565b50955090506126ae8686611e4a565b509650925090506126be8261096a565b60208501526126cd8686611e4a565b50908652955090506126df8686611e4a565b506040870191909152949794965093945050505050565b6000806127038585610ee6565b604051600160fa1b60208201527f17f9fe5df9c76e8ba869a388415efbaee6f8ab0c319042a8e353cfef90773ff560218201527f14c45f708a2a980f4b05f19abc4500adcccc13e2504aac6dcb0418b45b4e20bb604182015290915060009060610160408051601f1981840301815282825286519187015161278e9391928a928a9290602001614054565b604051602081830303815290604052905060006127aa82610cce565b905060006127d48660200151600c6000600281106127ca576127ca613d3b565b0154600d546117b8565b80519091501580156127e857506020810151155b156127fa576000945050505050612872565b83516020850151600091612810918591906117b8565b805190915015801561282457506020810151155b1561283757600095505050505050612872565b61283f6131d3565b875160218101516041909101516020830152815261285d8282611803565b91506128698383612d46565b96505050505050505b9392505050565b6060600060a360f81b6001600160f81b03191684848151811061289e5761289e613d3b565b01602001516001600160f81b031916146128c2576128bc8484611c57565b50935090505b6128d5846128d08386613c9a565b612d63565b50949350505050565b816001600160a01b0316836001600160a01b031614156129405760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c28565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6129b88484846120be565b6129c484848484612dad565b6118e45760405162461bcd60e51b8152600401610c28906140bf565b606081612a045750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a2e5780612a1881613f2c565b9150612a279050600a83613f7c565b9150612a08565b6000816001600160401b03811115612a4857612a486133e1565b6040519080825280601f01601f191660200182016040528015612a72576020820181803683370190505b5090505b841561197057612a87600183613c83565b9150612a94600a86613f90565b612a9f906030613c9a565b60f81b818381518110612ab457612ab4613d3b565b60200101906001600160f81b031916908160001a905350612ad6600a86613f7c565b9450612a76565b6060612aea306014612ea8565b905090565b805160208083019190912060408051838152808201909152600092839190602082018180368337505050602081019283526000600c90910152505192915050565b60006001600160e01b031982166380ac58cd60e01b1480612b6157506001600160e01b03198216635b5e139f60e01b145b8061096457506301ffc9a760e01b6001600160e01b0319831614610964565b60606000806000612b9386866000612ba3565b9299919850965090945092505050565b606082600080612bb38784611c57565b9094509092509050818511612bf2576000612bce8684613c83565b90506000612bdc8786613c9a565b9050612be9898284611d4b565b95505050612c05565b6040518060200160405280600081525093505b612c0f8284613c9a565b925093509350935093565b60008060008351604114612c705760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610c28565b50505060208101516040820151606090920151909260009190911a90565b6001600160a01b038316612ce957612ce481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d0c565b816001600160a01b0316836001600160a01b031614612d0c57612d0c8382613043565b6001600160a01b038216612d2357610cc9816130e0565b826001600160a01b0316826001600160a01b031614610cc957610cc9828261318f565b805182516000911480156128725750506020908101519101511490565b6060600080612d728585611c57565b5094509050612d9785612d86604184613c83565b612d909087613c9a565b6041611d4b565b9250612da38185613c9a565b9150509250929050565b60006001600160a01b0384163b15612ea057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612df1903390899088908890600401614111565b6020604051808303816000875af1925050508015612e2c575060408051601f3d908101601f19168201909252612e2991810190614144565b60015b612e86573d808015612e5a576040519150601f19603f3d011682016040523d82523d6000602084013e612e5f565b606091505b508051612e7e5760405162461bcd60e51b8152600401610c28906140bf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611970565b506001611970565b60606000612eb7836002613f47565b612ec2906002613c9a565b6001600160401b03811115612ed957612ed96133e1565b6040519080825280601f01601f191660200182016040528015612f03576020820181803683370190505b509050600360fc1b81600081518110612f1e57612f1e613d3b565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612f4d57612f4d613d3b565b60200101906001600160f81b031916908160001a9053506000612f71846002613f47565b612f7c906001613c9a565b90505b6001811115612ff4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612fb057612fb0613d3b565b1a60f81b828281518110612fc657612fc6613d3b565b60200101906001600160f81b031916908160001a90535060049490941c93612fed81614161565b9050612f7f565b5083156128725760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c28565b600060016130508461129f565b61305a9190613c83565b6000838152600760205260409020549091508082146130ad576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906130f290600190613c83565b6000838152600960205260408120546008805493945090928490811061311a5761311a613d3b565b90600052602060002001549050806008838154811061313b5761313b613d3b565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061317357613173614178565b6001900381819060005260206000200160009055905550505050565b600061319a8361129f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180604001604052806002906020820280368337509192915050565b8280546131fd90613cb2565b90600052602060002090601f01602090048101928261321f5760008555613265565b82601f106132385782800160ff19823516178555613265565b82800160010185558215613265579182015b8281111561326557823582559160200191906001019061324a565b506132719291506132ce565b5090565b8280548282559060005260206000209081019282156132c2579160200282015b828111156132c257825180516132b29184916020909101906132e3565b5091602001919060010190613295565b50613271929150613357565b5b8082111561327157600081556001016132cf565b8280546132ef90613cb2565b90600052602060002090601f0160209004810192826133115760008555613265565b82601f1061332a57805160ff1916838001178555613265565b82800160010185558215613265579182015b8281111561326557825182559160200191906001019061333c565b8082111561327157600061336b8282613374565b50600101613357565b50805461338090613cb2565b6000825580601f10613390575050565b601f016020900490600052602060002090810190610ee391906132ce565b6001600160e01b031981168114610ee357600080fd5b6000602082840312156133d657600080fd5b8135612872816133ae565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561341f5761341f6133e1565b604052919050565b60006001600160401b03831115613440576134406133e1565b613453601f8401601f19166020016133f7565b905082815283838301111561346757600080fd5b828260208301376000602084830101529392505050565b600082601f83011261348f57600080fd5b61287283833560208501613427565b6000602082840312156134b057600080fd5b81356001600160401b038111156134c657600080fd5b6119708482850161347e565b60005b838110156134ed5781810151838201526020016134d5565b838111156118e45750506000910152565b600081518084526135168160208601602086016134d2565b601f01601f19169290920160200192915050565b6001600160a01b03878116825286811660208301528516604082015260c06060820181905260009061355e908301866134fe565b828103608084015261357081866134fe565b91505082151560a0830152979650505050505050565b6000806040838503121561359957600080fd5b82356001600160401b038111156135af57600080fd5b6135bb8582860161347e565b95602094909401359450505050565b6001600160a01b038616815260a0602082018190526000906135ee908301876134fe565b828103604084015261360081876134fe565b9050828103606084015261361481866134fe565b9150508260808301529695505050505050565b80356001600160a01b03811681146109c957600080fd5b6000806040838503121561365157600080fd5b61365a83613627565b915061366860208401613627565b90509250929050565b60208152600061287260208301846134fe565b60006020828403121561369657600080fd5b5035919050565b600080604083850312156136b057600080fd5b6136b983613627565b946020939093013593505050565b6000806000606084860312156136dc57600080fd5b6136e584613627565b92506136f360208501613627565b9150604084013590509250925092565b6000806040838503121561371657600080fd5b82356001600160401b038082111561372d57600080fd5b6137398683870161347e565b9350602085013591508082111561374f57600080fd5b50612da38582860161347e565b60408101818360005b6002811015613784578151835260209283019290910190600101613765565b50505092915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156137e257603f198886030184526137d08583516134fe565b945092850192908501906001016137b4565b5092979650505050505050565b60006020828403121561380157600080fd5b61287282613627565b60408152600061381d60408301856134fe565b8281036020840152610f3581856134fe565b60008060006060848603121561384457600080fd5b83356001600160401b0381111561385a57600080fd5b6138668682870161347e565b93505061387560208501613627565b915061388360408501613627565b90509250925092565b6001600160a01b03851681526080602082018190526000906138b0908301866134fe565b82810360408401526138c281866134fe565b915050821515606083015295945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613902908301866134fe565b6060830194909452509015156080909101529392505050565b6000806040838503121561392e57600080fd5b61393783613627565b91506020830135801515811461394c57600080fd5b809150509250929050565b60008060006060848603121561396c57600080fd5b505081359360208301359350604090920135919050565b600082601f83011261399457600080fd5b604051604081018181106001600160401b03821117156139b6576139b66133e1565b80604052508060408401858111156139cd57600080fd5b845b818110156139e75780358352602092830192016139cf565b509195945050505050565b60008060808385031215613a0557600080fd5b613a0f8484613983565b91506136688460408501613983565b60008060008060808587031215613a3457600080fd5b613a3d85613627565b9350613a4b60208601613627565b92506040850135915060608501356001600160401b03811115613a6d57600080fd5b613a798782880161347e565b91505092959194509250565b60008060008060808587031215613a9b57600080fd5b84356001600160401b0380821115613ab257600080fd5b613abe8883890161347e565b95506020870135915080821115613ad457600080fd5b613ae08883890161347e565b94506040870135915080821115613af657600080fd5b613b028883890161347e565b93506060870135915080821115613b1857600080fd5b50613a798782880161347e565b60008060208385031215613b3857600080fd5b82356001600160401b0380821115613b4f57600080fd5b818501915085601f830112613b6357600080fd5b813581811115613b7257600080fd5b866020828501011115613b8457600080fd5b60209290920196919550909350505050565b60006020808385031215613ba957600080fd5b82356001600160401b0380821115613bc057600080fd5b818501915085601f830112613bd457600080fd5b813581811115613be657613be66133e1565b8060051b613bf58582016133f7565b9182528381018501918581019089841115613c0f57600080fd5b86860192505b83831015613c6057823585811115613c2d5760008081fd5b8601603f81018b13613c3f5760008081fd5b613c508b8983013560408401613427565b8352509186019190860190613c15565b9998505050505050505050565b634e487b7160e01b600052601160045260246000fd5b600082821015613c9557613c95613c6d565b500390565b60008219821115613cad57613cad613c6d565b500190565b600181811c90821680613cc657607f821691505b60208210811415613ce757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60008651613d63818460208b016134d2565b65746f6b656e2f60d01b9083019081528651613d86816006840160208b016134d2565b808201915050602f60f81b8060068301528651613daa816007850160208b016134d2565b60079201918201528451613dc58160088401602089016134d2565b8451910190613ddb8160088401602088016134d2565b01600801979650505050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408152600080855481600182811c915080831680613e3357607f831692505b6020808410821415613e5357634e487b7160e01b86526022600452602486fd5b6040880184905260608801828015613e725760018114613e8357613eae565b60ff19871682528282019750613eae565b60008d81526020902060005b87811015613ea857815484820152908601908401613e8f565b83019850505b5050878603818901525050505050613ec7818587613dea565b9695505050505050565b60008451613ee38184602089016134d2565b68636f6e74726163742f60b81b9083019081528451613f098160098401602089016134d2565b8451910190613f1f8160098401602088016134d2565b0160090195945050505050565b6000600019821415613f4057613f40613c6d565b5060010190565b6000816000190483118215151615613f6157613f61613c6d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613f8b57613f8b613f66565b500490565b600082613f9f57613f9f613f66565b500690565b60008083128015600160ff1b850184121615613fc257613fc2613c6d565b6001600160ff1b0384018313811615613fdd57613fdd613c6d565b50500390565b600082613ff257613ff2613f66565b500790565b600080821280156001600160ff1b038490038513161561401957614019613c6d565b600160ff1b839003841281161561403257614032613c6d565b50500190565b6000825161404a8184602087016134d2565b9190910192915050565b60008651614066818460208b016134d2565b86519083019061407a818360208b016134d2565b865191019061408d818360208a016134d2565b85519101906140a08183602089016134d2565b84519101906140b38183602088016134d2565b01979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613ec7908301846134fe565b60006020828403121561415657600080fd5b8151612872816133ae565b60008161417057614170613c6d565b506000190190565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f7265736f75726365732e736d617274746f6b656e6c6162732e636f6d2f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47a264697066735822122019c603821e1d3054d1b6f46ea739f41751918f80b08626b1f4fa1f190e22804764736f6c634300080c0033
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.