ERC-721
NFT
Overview
Max Total Supply
8,888 SHEET
Holders
1,057
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SHEETLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SheetFighterToken
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-02-17 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.0; // Part: Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides a function for encoding some bytes in base64 /// @notice NOT BUILT BY SHEET FIGHTER TEAM. THANK YOU BRECHT DEVOS! /// @notice For any curious devs, this appears to be the same base64 encoding used by Ether Orcs and Anonymice library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and( input, 0x3F))))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } } // Part: IBridge /// @dev Interface for Bridge interface IBridge { function bridgeTokensCallback(address tokenOwner, uint256[] calldata tokenIds) external; } // Part: OpenZeppelin/[email protected]/Address /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // Part: OpenZeppelin/[email protected]/Context /* * @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; } } // Part: OpenZeppelin/[email protected]/ECDSA /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return recover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } // Part: OpenZeppelin/[email protected]/IERC165 /** * @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); } // Part: OpenZeppelin/[email protected]/IERC721Receiver /** * @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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // Part: OpenZeppelin/[email protected]/Strings /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } } // Part: SheetFighterUtilities /// @notice Utilities for Sheet Fighter library SheetFighterUtilities { /// @notice Substring string on range [_startIndex, _endIndex) /// @param _str String to substring /// @param _startIndex Start index, inclusive /// @param _endIndex End index, exclusive /// @return Substring from range [_startIndex, endIndex) function substring(string memory _str, uint256 _startIndex, uint256 _endIndex) internal pure returns(string memory) { bytes memory _strBytes = bytes(_str); bytes memory _substringBytes = new bytes(_endIndex - _startIndex); uint256 strIndex = 0; for(uint256 i = _startIndex; i < _endIndex; i++) { _substringBytes[strIndex] = _strBytes[i]; strIndex++; } return string(_substringBytes); } /// @notice Split a flavor text string, deliminated by a pipe ("|"), with four partitions /// @dev This function does NOT test for edge cases, like consecutive pipes, or strings ending with a pipe /// @param _str String to split, deliminated by a pipe: "|" /// @return A list of strings, resulting from spliting _str function splitFlavorTextString(string memory _str) internal pure returns(string[5] memory) { bytes memory str = bytes(_str); uint256 startIndex = 0; uint partitionIndex = 0; // Array to hold partitions string[5] memory strArr; for(uint256 i = 0; i < str.length; i++) { if(str[i] == "|") { // Save partition strArr[partitionIndex] = substring(_str, startIndex, i); // Continue to next partition startIndex = i + 1; partitionIndex += 1; } } // Save last partition strArr[4] = substring(_str, startIndex, str.length); return strArr; } /// @dev Get a bit mask /// @param _numBits Number of bits to use for the max /// @return A bit mask to be used with the bit-wise operator & function getBitMask(uint256 _numBits) internal pure returns(uint256) { return (2 << (_numBits + 1)) - 1; } /// @notice Get fighter stat /// @param _stats Stats for the fighter /// @param _shiftBits Number of bits to shift to get to the stat /// @param _min Min value for the stat /// @param _max Max value for the stat /// @return The stat, bounded by _min and _max function getFighterStat( uint256 _stats, uint8 _shiftBits, uint8 _min, uint8 _max ) internal pure returns(uint8) { uint256 bitMask = 0xFF; // Equivalent to 11111111 in binary uint256 rangeWidth = _max - _min; // Get the stat unnormalized (i.e. not bounded between _min and _max) uint8 statUnnormalized = uint8((_stats >> _shiftBits) & bitMask); // Get the stat normalized (i.e. bounded between _min and _max, inclusive) uint8 statNormalized = (uint8(statUnnormalized % (rangeWidth + 1))) + _min; return statNormalized; } } // Part: OpenZeppelin/[email protected]/ERC165 /** * @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; } } // Part: OpenZeppelin/[email protected]/IERC721 /** * @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`, 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 be 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; } // Part: OpenZeppelin/[email protected]/Ownable /** * @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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // Part: OpenZeppelin/[email protected]/IERC721Enumerable /** * @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 tokenId); /** * @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); } // Part: OpenZeppelin/[email protected]/IERC721Metadata /** * @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); } // Part: ERC721A /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } // File: SheetFighterToken.sol /// @title Contract creating non-fungible in-game utility tokens for the game Sheet Fighter, which represent players' fighters /// @author Overlord Paper Co /// @notice This defines the non-fungible in-game utility tokens for the game Sheet Fighter, which represent players' fighters contract SheetFighterToken is ERC721A, Ownable { /// @dev Contains a fighter's stats struct FighterStats { uint8 HP; uint8 critical; uint8 heal; uint8 defense; uint8 attack; SheetColor color; PaperStock stock; } /// @notice Defines possible colors for a Sheet enum SheetColor { BLUE, RED, GREEN, ORANGE, PINK, PURPLE } /// @notice Defines possible paper stock enum PaperStock { GLOSSY, MATTE, SATIN } /// @notice The maximum number of tokens that can be minted uint256 public constant MAX_TOKENS = 8_888; // 8,888 tokens can minted, max /// @notice The maximum number of mints allowed in a single mint transactions uint256 public constant MAX_MINTS_PER_TXN = 20; // 20 Sheet Fighters mint limit per transaction // Token stats variables uint8 internal constant MIN_HP = 1; uint8 internal constant MIN_CRITICAL = 1; uint8 internal constant MIN_HEAL = 1; uint8 internal constant MIN_DEFENSE = 1; uint8 internal constant MIN_ATTACK = 1; uint8 internal constant MAX_HP = 255; uint8 internal constant MAX_CRITICAL = 255; uint8 internal constant MAX_HEAL = 255; uint8 internal constant MAX_DEFENSE = 255; uint8 internal constant MAX_ATTACK = 255; uint256 internal constant RARE_MOVE_THRESHOLD = 95; // This is 95% /// @notice The price of minting a single Sheet Fighter uint256 public constant PRICE = 5 ether / 100; // 0.05 ETH price /// @dev A nonce for the seed uint256 internal seedNonce = 0; /// @notice Indicates whether or not the sale is open for minting bool public saleOpen = false; /// @notice Address of the GPT-3 signer address public mintSigner; /// @notice Flavor text of tokens mapping(uint256 => string) public flavorTexts; /// @notice Stats of tokens mapping(uint256 => FighterStats) public tokenStats; /// @notice Address of the Polygon bridge address public bridge; /// @notice Address of the ERC20 CellToken contract address public cellTokenAddress; mapping(bytes32 => bool) signatureHashUsed; /// @notice Construct Sheet Fighter in-game utility NFT /// @dev Call default ERC721 contructor with token name and symbol, and implicitly execute Ownable constructor /// @param _mintSigner Address that will be signing mint transactions constructor(address _mintSigner) ERC721A("Sheet Fighter", "SHEET", MAX_MINTS_PER_TXN) Ownable() { mintSigner = _mintSigner; } /// @notice Update the address of the CellToken contract /// @param _contractAddress Address of the CellToken contract function setCellTokenAddress(address _contractAddress) external onlyOwner { cellTokenAddress = _contractAddress; } /// @notice Update the address which signs the mint transactions /// @dev Used for ensuring GPT-3 values have not been altered /// @param _mintSigner New address for the mintSigner function setMintSigner(address _mintSigner) external onlyOwner { mintSigner = _mintSigner; } /// @notice Update the address of the bridge /// @dev Used for authorization /// @param _bridge New address for the bridge function setBridge(address _bridge) external onlyOwner { bridge = _bridge; } /// @dev Withdraw funds as owner function withdraw() external onlyOwner { uint balance = address(this).balance; payable(msg.sender).transfer(balance); } /// @notice Open or close the sale /// @param _saleOpen Whether or not the sale should be open function setSaleOpen(bool _saleOpen) external onlyOwner { saleOpen = _saleOpen; } /// @notice Mint up to 20 Sheet Fighters /// @dev This function uses that ERC721A _safeMint function /// @param numTokens Number of Sheet Fighter tokens to mint (1 to 20) /// @param _flavorTexts Array of strings with flavor texts concatonated with a pipe character /// @param signature Signature verifying flavorTexts are unmodified function mint( uint256 numTokens, string[] memory _flavorTexts, bytes memory signature ) external payable { require(numTokens > 0, "Invalid number of tokens"); require(saleOpen, "Minting is closed"); require(msg.value >= PRICE * numTokens, "Insufficient payment"); require(totalSupply() + numTokens <= MAX_TOKENS, "There aren't that many unminted tokens"); require(numTokens == _flavorTexts.length, "Invalid parameters"); // Check flavor text integrity require( ECDSA.recover( ECDSA.toEthSignedMessageHash(keccak256(abi.encode(_flavorTexts))), signature ) == mintSigner, "Invalid signature" ); // Prevent signature replay bytes32 signatureHash = keccak256(signature); require(!signatureHashUsed[signatureHash], "Signature has already been used"); signatureHashUsed[keccak256(signature)] = true; // Print values for(uint256 i = 0; i < numTokens; i++) { uint256 tokenId = totalSupply() + i; tokenStats[tokenId] = _generateTokenStats(tokenId); flavorTexts[tokenId] = _flavorTexts[i]; } // Mint tokens _safeMint(msg.sender, numTokens); } /// @notice Bridge the Sheets /// @dev Transfers Sheets to bridge /// @param tokenOwner Address of the tokenOwner who is bridging their tokens /// @param tokenIds Array of tokenIds that tokenOwner is bridging function bridgeSheets(address tokenOwner, uint256[] calldata tokenIds) external { require(bridge != address(0), "Bridge is not set"); require(msg.sender == bridge, "Only bridge can do this"); for(uint256 index = 0; index < tokenIds.length; index++) { transferFrom(tokenOwner, msg.sender, tokenIds[index]); } IBridge(msg.sender).bridgeTokensCallback(tokenOwner, tokenIds); } /// @notice Update the sheet to sync with actions that occured on otherside of bridge /// @param tokenId Id of the SheetFighter /// @param HP New HP value /// @param critical New critical value /// @param heal New heal value /// @param defense New defense value /// @param attack New attack value function syncBridgedSheet( uint256 tokenId, uint8 HP, uint8 critical, uint8 heal, uint8 defense, uint8 attack ) external { require(bridge != address(0), "Bridge is not set"); require(msg.sender == bridge, "Only bridge can do this"); require(ownerOf(tokenId) == bridge, "Sheet hasn't been bridged"); // Update stats tokenStats[tokenId].HP = HP; tokenStats[tokenId].critical = critical; tokenStats[tokenId].heal = heal; tokenStats[tokenId].defense = defense; tokenStats[tokenId].attack = attack; } /// @notice Returns the token metadata and SVG artwork /// @dev This generates a data URI, which contains the metadata json, encoded in base64 /// @param _tokenId The tokenId of the token whos metadata and SVG we want function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token doesn't exist"); FighterStats memory _stats = tokenStats[_tokenId]; string[5] memory _flavorTexts = SheetFighterUtilities.splitFlavorTextString(flavorTexts[_tokenId]); return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( string( abi.encodePacked( '{"name": "Sheet Fighter #', Strings.toString(_tokenId), ' - ', _flavorTexts[0], '", "description": "Sheet Fighter is a collection of 100% on-chain fighting spreadsheets, packed with unique and unpredictable GPT-3 generated personalities. Collect, stake, and battle to shred your competition.", "image": "data:image/svg+xml;base64,', Base64.encode( bytes(_getSVG(_tokenId, _stats, _flavorTexts)) ), '","attributes":', _getAttributes(_stats), "}" ) ) ) ) ) ); } /// @notice Determines if a stat is rare /// @param stat The stat /// @param min Minimum value the stat can have /// @param max Maximum value the stat can have /// @return true if stat is rare, otherwise false function isRareStat(uint8 stat, uint8 min, uint8 max) public view returns(bool) { return uint256(stat) * 100 >= (RARE_MOVE_THRESHOLD * (uint256(max) - uint256(min))) + (100 * uint256(min)); } /// @notice Generate random uint256 /// @param _tokenId Token id for which to generate random number /// @param _address Address for which to generate random number /// @return Random uint256 function _random(uint256 _tokenId, address _address) internal returns(uint256) { // Increment nonce seedNonce++; return uint256( keccak256( abi.encodePacked( block.timestamp, block.difficulty, _tokenId, _address, seedNonce ) ) ); } function _generateTokenStats(uint256 tokenId) internal returns(FighterStats memory) { uint256 _rand = _random(tokenId, msg.sender); // Get Sheet color uint8 _colorPredictor = SheetFighterUtilities.getFighterStat( _rand, 40, 0, 255 ); SheetColor color; if(_colorPredictor < 116) { color = SheetColor.BLUE; } else if(_colorPredictor < 193) { color = SheetColor.RED; } else if(_colorPredictor < 244) { color = SheetColor.GREEN; } else if(_colorPredictor < 252) { color = SheetColor.ORANGE; } else if(_colorPredictor < 255) { color = SheetColor.PINK; } else { color = SheetColor.PURPLE; } // Get paper stock uint8 _stockPredictor = SheetFighterUtilities.getFighterStat( _rand, 48, 0, 2 ); PaperStock stock; if(_stockPredictor == 0) { stock = PaperStock.GLOSSY; } else if(_stockPredictor == 1) { stock = PaperStock.MATTE; } else if(_stockPredictor == 2) { stock = PaperStock.SATIN; } return FighterStats( SheetFighterUtilities.getFighterStat( _rand, 0, MIN_HP, MAX_HP ), SheetFighterUtilities.getFighterStat( _rand, 8, MIN_CRITICAL, MAX_CRITICAL ), SheetFighterUtilities.getFighterStat( _rand, 16, MIN_HEAL, MAX_HEAL ), SheetFighterUtilities.getFighterStat( _rand, 24, MIN_DEFENSE, MAX_DEFENSE ), SheetFighterUtilities.getFighterStat( _rand, 32, MIN_ATTACK, MAX_ATTACK ), color, stock ); } /// @dev Get SVG for token -- SVG string construction must be done in multiple parts to avoid STACK TOO DEEP error /// @param _tokenId Token id /// @param _stats Fighter stats /// @param _flavorTexts static array of flavor texts -- order dictates which string is for which attribute /// @return String containing SVG Data URI function _getSVG( uint256 _tokenId, FighterStats memory _stats, string[5] memory _flavorTexts ) internal view returns(string memory) { // SVG initialization and styling bytes memory svgBytes = abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 501"><defs>', '<style>.d{font-size:27px;font-family:ArialMT,Arial}.h{fill:#999}.l{text-anchor:end}</style>', '</defs><path fill="#d6d6d6" d="M0 0h500v501H0z"/>' ); // Move cells // NOTE: Move stats are multiplied by 100, as part of avoiding working with decimals svgBytes = abi.encodePacked( svgBytes, '<path fill="#', isRareStat(_stats.attack, MIN_ATTACK, MAX_ATTACK) ? 'ff0': 'fff', '" d="M80.53 169.51H494.2v76.67H80.53z"/>', '<path fill="#', isRareStat(_stats.defense, MIN_DEFENSE, MAX_DEFENSE) ? 'ff0': 'fff', '" d="M80.93 252.06H494.6v76.67H80.93z"/>', '<path fill="#', isRareStat(_stats.critical, MIN_CRITICAL, MAX_CRITICAL) ? 'ff0': 'fff', '" d="M80.93 335.46H494.6v76.67H80.93z"/>', '<path fill="#', isRareStat(_stats.heal, MIN_HEAL, MAX_HEAL) ? 'ff0': 'fff', '" d="M80.93 418.15H494.6v76.67H80.93z"/>' ); // HP and misc. paths svgBytes = abi.encodePacked( svgBytes, '<path d="M6.02 418.15h68.94v76.67H6.02zm0-82.73h68.94v76.67H6.02zM6 252.19h68.94v76.67H6zm0-82.69h68.94v76.67H6z" fill="#efefef"/><path d="M5.79 84.33h333.75v78.33H5.79zm339.54 0H494.2v78.33H345.33z" fill="#fff"/>', '<text class="d" transform="translate(374.99 133.17)">', 'HP ', Strings.toString(_stats.HP), '</text>' ); // Move flavor texts svgBytes = abi.encodePacked( svgBytes, '<text class="d" transform="translate(90.82 217.51)">', _flavorTexts[1], '</text><text class="d" transform="translate(90.95 300.06)">', _flavorTexts[2], '</text><text class="d" transform="translate(90.22 383.47)">', _flavorTexts[3], '</text><text class="d" transform="translate(91.22 466.15)">', _flavorTexts[4], '</text>' ); // Move values svgBytes = abi.encodePacked( svgBytes, '<text class="d l" transform="translate(485 217.51)">', Strings.toString(_stats.attack), '</text><text class="d l" transform="translate(485 466.15)">', Strings.toString(_stats.heal), '</text><text class="d l" transform="translate(485 383.47)">', Strings.toString(_stats.critical), '</text><text class="d l" transform="translate(485 301.86)">', Strings.toString(_stats.defense), '</text>' ); // Shapes, name flavor text, token ID, and SVG ending string memory sheetColorCode; if(_stats.color == SheetColor.RED) { sheetColorCode = 'f00'; } else if(_stats.color == SheetColor.GREEN) { sheetColorCode = '3c3'; } else if(_stats.color == SheetColor.ORANGE) { sheetColorCode = 'f90'; } else if(_stats.color == SheetColor.PINK) { sheetColorCode = 'f6f'; } else if(_stats.color == SheetColor.PURPLE) { sheetColorCode = '63c'; } else { // Blue sheetColorCode = '00f'; } svgBytes = abi.encodePacked( svgBytes, '<path class="h" d="M322.52 112.5h-20a1 1 0 00-1 1v20a1 1 0 001 1h20a1 1 0 001-1v-20a1 1 0 00-1-1zm-4 9l-5.33 5.33a1 1 0 01-.71.3 1 1 0 01-.71-.3l-5.33-5.33a1 1 0 011.41-1.41l4.63 4.62 4.62-4.62a1 1 0 011.42 0 1 1 0 01.04 1.45zM38.65 215l-5.74-4.85-1.19 1.42a4.68 4.68 0 00-5.65.73l9.93 9.93a4.66 4.66 0 00.74-5.64z"/><path class="h" d="M51.55 210.92a4.59 4.59 0 00-2.32.63l-20-23.71h-8.76v8.74l23.71 20a4.68 4.68 0 00.74 5.63l9.94-9.94a4.66 4.66 0 00-3.31-1.35zM33 202l-8.36-8.37L26.3 192l8.37 8.36zm23.75 18.81l-3.54-3.55-3.32 3.32 3.55 3.54v3.72h7.03v-7.03h-3.72zm-29.02-3.55l-3.55 3.55h-3.71v7.03h7.03v-3.72l3.54-3.54-3.31-3.32z"/><path class="h" d="M51.72 187.84L42 199.36l6.31 7.48 12.16-10.25v-8.75zM47.93 202l-1.66-1.66 8.36-8.34 1.66 1.65zm-7.46 68.15l-17 5.14v12.83c0 8.34 6.89 17.4 17 22.77 10.11-5.37 17-14.43 17-22.77v-12.83zm0 37.81C31.78 302.94 26 295.1 26 288.12v-10.93l14.44-4.35zm-7 39.71c-2.69 14.61-4.87 16.79-19.47 19.48 14.61 2.69 16.79 4.87 19.48 19.48 2.69-14.61 4.87-16.79 19.47-19.48-14.61-2.69-16.79-4.87-19.48-19.48zm21.14 27.41c-1.71 9.29-3.1 10.67-12.39 12.38 9.29 1.71 10.68 3.1 12.39 12.39 1.71-9.29 3.09-10.68 12.38-12.39-9.29-1.71-10.67-3.09-12.38-12.38zM34.51 470l2.23 2 2.54 2.17a1.87 1.87 0 001.19.44 1.83 1.83 0 001.19-.44l2.57-2.17c5-4.39 8.82-7.75 11.56-11 3.19-3.83 4.68-7.3 4.68-10.9a11.6 11.6 0 00-11.79-11.7 12.84 12.84 0 00-8.19 3 12.81 12.81 0 00-8.18-3A11.6 11.6 0 0020.49 450c0 7.91 5.58 12.73 14.02 20zm-1.29-17.12h4.85v-4.78h4.85v4.78h4.85v4.77h-4.85v4.77h-4.85v-4.77h-4.85v-4.77z"/>', '<path fill="#', sheetColorCode, '" d="M0 0h500v84.33H0z"/>', '<text transform="translate(16.72 133.17)" font-family="Arial-BoldMT,Arial" font-weight="700" font-size="27">', _flavorTexts[0], '</text><text transform="translate(16.72 51.83)" font-family="Arial-BoldMT,Arial" font-weight="700" font-size="27" fill="#fff">', '#', Strings.toString(_tokenId), '</text></svg>' ); string memory svgString = string(svgBytes); return svgString; } /// @dev Get metadata attributes for provided stats -- string must be created in pieces to avoid STACK TOO DEEP error /// @param _stats The Sheet fighter's stats /// @return String containing a JSON array of attribute objects, following metadata standard function _getAttributes(FighterStats memory _stats) internal view returns(string memory) { // Openning list bracket string memory attributes = "["; // HP object attributes = string( abi.encodePacked( attributes, '{"trait_type":"HP",', '"value":', Strings.toString(_stats.HP), '},' ) ); // Attack object attributes = string( abi.encodePacked( attributes, '{"trait_type":"Attack",', '"value":', Strings.toString(_stats.attack), '},' ) ); // Defense object attributes = string( abi.encodePacked( attributes, '{"trait_type":"Defense",', '"value":', Strings.toString(_stats.defense), '},' ) ); // Critical object attributes = string( abi.encodePacked( attributes, '{"trait_type":"Critical",', '"value":', Strings.toString(_stats.critical), '},' ) ); // Heal object attributes = string( abi.encodePacked( attributes, '{"trait_type":"Heal",', '"value":', Strings.toString(_stats.heal), '},' ) ); // Number of highlighted cells uint8 numHighlightedCells = 0; if(isRareStat(_stats.attack, MIN_ATTACK, MAX_ATTACK)) numHighlightedCells++; if(isRareStat(_stats.defense, MIN_DEFENSE, MAX_DEFENSE)) numHighlightedCells++; if(isRareStat(_stats.critical, MIN_CRITICAL, MAX_CRITICAL)) numHighlightedCells++; if(isRareStat(_stats.heal, MIN_HEAL, MAX_HEAL)) numHighlightedCells++; attributes = string( abi.encodePacked( attributes, '{"trait_type": "Highlighted Cells",', '"value":', Strings.toString(numHighlightedCells), '},' ) ); // Job title string memory jobTitle; if(numHighlightedCells == 0) jobTitle = "Intern"; else if(numHighlightedCells == 1) jobTitle = "Associate"; else if(numHighlightedCells == 2) jobTitle = "Manager"; else if(numHighlightedCells == 3) jobTitle = "Director"; else if(numHighlightedCells == 4) jobTitle = "Vice President"; attributes = string( abi.encodePacked( attributes, '{"trait_type": "Job Title",', '"value":"', jobTitle, '"},' ) ); // Paper Stock string memory paperStock; if(_stats.stock == PaperStock.GLOSSY) paperStock = "Glossy"; else if(_stats.stock == PaperStock.MATTE) paperStock = "Matte"; else if(_stats.stock == PaperStock.SATIN) paperStock = "Satin"; attributes = string( abi.encodePacked( attributes, '{"trait_type": "Paper Stock",', '"value":"', paperStock, '"},' ) ); // Sheet color object string memory sheetColorString; if(_stats.color == SheetColor.RED) { sheetColorString = 'Red'; } else if(_stats.color == SheetColor.GREEN) { sheetColorString = 'Green'; } else if(_stats.color == SheetColor.ORANGE) { sheetColorString = 'Orange'; } else if(_stats.color == SheetColor.PINK) { sheetColorString = 'Pink'; } else if(_stats.color == SheetColor.PURPLE) { sheetColorString = 'Purple'; } else { sheetColorString = 'Blue'; } attributes = string( abi.encodePacked( attributes, '{"trait_type":"Color",', '"value":"', sheetColorString, '"},' ) ); // Paperstock attributes = string( abi.encodePacked( attributes, '{"trait_type": "Sheet Type",', '"value":"Genesis"}' ) ); // Closing bracket // NOTE: Make sure object ABOVE this closing bracket doesn't have a trailing comma attributes = string( abi.encodePacked( attributes, ']' ) ); return attributes; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_mintSigner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINTS_PER_TXN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOwner","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"bridgeSheets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cellTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"flavorTexts","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"stat","type":"uint8"},{"internalType":"uint8","name":"min","type":"uint8"},{"internalType":"uint8","name":"max","type":"uint8"}],"name":"isRareStat","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"string[]","name":"_flavorTexts","type":"string[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"saleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setCellTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mintSigner","type":"address"}],"name":"setMintSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleOpen","type":"bool"}],"name":"setSaleOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"HP","type":"uint8"},{"internalType":"uint8","name":"critical","type":"uint8"},{"internalType":"uint8","name":"heal","type":"uint8"},{"internalType":"uint8","name":"defense","type":"uint8"},{"internalType":"uint8","name":"attack","type":"uint8"}],"name":"syncBridgedSheet","outputs":[],"stateMutability":"nonpayable","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":"","type":"uint256"}],"name":"tokenStats","outputs":[{"internalType":"uint8","name":"HP","type":"uint8"},{"internalType":"uint8","name":"critical","type":"uint8"},{"internalType":"uint8","name":"heal","type":"uint8"},{"internalType":"uint8","name":"defense","type":"uint8"},{"internalType":"uint8","name":"attack","type":"uint8"},{"internalType":"enum SheetFighterToken.SheetColor","name":"color","type":"uint8"},{"internalType":"enum SheetFighterToken.PaperStock","name":"stock","type":"uint8"}],"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405260008080556007819055600955600a805460ff191690553480156200002857600080fd5b5060405162005f7138038062005f718339810160408190526200004b916200022b565b6040518060400160405280600d81526020016c29b432b2ba102334b3b43a32b960991b8152506040518060400160405280600581526020016414d211515560da1b815250601460008111620000bd5760405162461bcd60e51b8152600401620000b4906200025b565b60405180910390fd5b8251620000d290600190602086019062000185565b508151620000e890600290602085019062000185565b5060805250620001039050620000fd6200012f565b62000133565b600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055620002df565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019390620002a2565b90600052602060002090601f016020900481019282620001b7576000855562000202565b82601f10620001d257805160ff191683800117855562000202565b8280016001018555821562000202579182015b8281111562000202578251825591602001919060010190620001e5565b506200021092915062000214565b5090565b5b8082111562000210576000815560010162000215565b6000602082840312156200023d578081fd5b81516001600160a01b038116811462000254578182fd5b9392505050565b60208082526027908201527f455243373231413a206d61782062617463682073697a65206d757374206265206040820152666e6f6e7a65726f60c81b606082015260800190565b600281046001821680620002b757607f821691505b60208210811415620002d957634e487b7160e01b600052602260045260246000fd5b50919050565b608051615c686200030960003960008181611d6601528181611d900152612f820152615c686000f3fe6080604052600436106102255760003560e01c80638374231c11610123578063c87b56dd116100ab578063e926ca951161006f578063e926ca95146105f8578063e985e9c51461062b578063f17af48d1461064b578063f2fde38b14610660578063f47c84c51461068057610225565b8063c87b56dd14610579578063d7224ba014610599578063dfe93fa3146105ae578063e78cea92146105c3578063e84a9728146105d857610225565b806395d89b41116100f257806395d89b41146104ef57806399288dbb14610504578063a22cb46514610519578063af979f2514610539578063b88d4fde1461055957610225565b80638374231c146104855780638d859f3e146104a55780638da5cb5b146104ba5780638dd14802146104cf57610225565b806342842e0e116101b15780636352211e116101755780636352211e146103fb57806370a082311461041b578063715018a61461043b5780637189290c1461045057806379a2cad01461047057610225565b806342842e0e1461036857806346879b64146103885780634f6ccce7146103a857806353b0b6cb146103c85780635cbe7d49146103db57610225565b8063095ea7b3116101f8578063095ea7b3146102cf57806318160ddd146102f157806323b872dd146103135780632f745c59146103335780633ccfd60b1461035357610225565b806301ffc9a71461022a57806305130fdb1461026057806306fdde031461028d578063081812fc146102a2575b600080fd5b34801561023657600080fd5b5061024a61024536600461363f565b610695565b604051610257919061508f565b60405180910390f35b34801561026c57600080fd5b5061028061027b366004613677565b6106f8565b60405161025791906150b8565b34801561029957600080fd5b50610280610792565b3480156102ae57600080fd5b506102c26102bd366004613677565b610824565b6040516102579190614f9d565b3480156102db57600080fd5b506102ef6102ea3660046135fc565b610870565b005b3480156102fd57600080fd5b50610306610909565b6040516102579190615926565b34801561031f57600080fd5b506102ef61032e3660046134b4565b61090f565b34801561033f57600080fd5b5061030661034e3660046135fc565b61091a565b34801561035f57600080fd5b506102ef610a15565b34801561037457600080fd5b506102ef6103833660046134b4565b610a87565b34801561039457600080fd5b5061024a6103a33660046137db565b610aa2565b3480156103b457600080fd5b506103066103c3366004613677565b610aef565b6102ef6103d636600461368f565b610b1b565b3480156103e757600080fd5b506102ef6103f6366004613554565b610e61565b34801561040757600080fd5b506102c2610416366004613677565b610f60565b34801561042757600080fd5b50610306610436366004613468565b610f72565b34801561044757600080fd5b506102ef610fbf565b34801561045c57600080fd5b506102ef61046b36600461376f565b61100a565b34801561047c57600080fd5b506102c261110c565b34801561049157600080fd5b506102ef6104a0366004613468565b61111b565b3480156104b157600080fd5b5061030661117c565b3480156104c657600080fd5b506102c2611187565b3480156104db57600080fd5b506102ef6104ea366004613468565b611196565b3480156104fb57600080fd5b506102806111f7565b34801561051057600080fd5b5061024a611206565b34801561052557600080fd5b506102ef6105343660046135d3565b61120f565b34801561054557600080fd5b506102ef610554366004613625565b6112dd565b34801561056557600080fd5b506102ef6105743660046134ef565b61132f565b34801561058557600080fd5b50610280610594366004613677565b611362565b3480156105a557600080fd5b506103066115ac565b3480156105ba57600080fd5b506103066115b2565b3480156105cf57600080fd5b506102c26115b7565b3480156105e457600080fd5b506102ef6105f3366004613468565b6115c6565b34801561060457600080fd5b50610618610613366004613677565b61162d565b604051610257979695949392919061592f565b34801561063757600080fd5b5061024a610646366004613482565b611680565b34801561065757600080fd5b506102c26116ae565b34801561066c57600080fd5b506102ef61067b366004613468565b6116c2565b34801561068c57600080fd5b50610306611733565b60006001600160e01b031982166380ac58cd60e01b14806106c657506001600160e01b03198216635b5e139f60e01b145b806106e157506001600160e01b0319821663780e9d6360e01b145b806106f057506106f082611739565b90505b919050565b600b602052600090815260409020805461071190615afa565b80601f016020809104026020016040519081016040528092919081815260200182805461073d90615afa565b801561078a5780601f1061075f5761010080835404028352916020019161078a565b820191906000526020600020905b81548152906001019060200180831161076d57829003601f168201915b505050505081565b6060600180546107a190615afa565b80601f01602080910402602001604051908101604052809291908181526020018280546107cd90615afa565b801561081a5780601f106107ef5761010080835404028352916020019161081a565b820191906000526020600020905b8154815290600101906020018083116107fd57829003601f168201915b5050505050905090565b600061082f82611752565b6108545760405162461bcd60e51b815260040161084b90615897565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061087b82610f60565b9050806001600160a01b0316836001600160a01b031614156108af5760405162461bcd60e51b815260040161084b90615660565b806001600160a01b03166108c1611759565b6001600160a01b031614806108dd57506108dd81610646611759565b6108f95760405162461bcd60e51b815260040161084b90615364565b61090483838361175d565b505050565b60005490565b6109048383836117b9565b600061092583610f72565b82106109435760405162461bcd60e51b815260040161084b90615102565b600061094d610909565b905060008060005b838110156109f6576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156109a757805192505b876001600160a01b0316836001600160a01b031614156109e357868414156109d557509350610a0f92505050565b836109df81615b35565b9450505b50806109ee81615b35565b915050610955565b5060405162461bcd60e51b815260040161084b906157cf565b92915050565b610a1d611759565b6001600160a01b0316610a2e611187565b6001600160a01b031614610a545760405162461bcd60e51b815260040161084b9061556b565b6040514790339082156108fc029083906000818181858888f19350505050158015610a83573d6000803e3d6000fd5b5050565b6109048383836040518060200160405280600081525061132f565b6000610ab260ff84166064615a36565b610ac260ff808616908516615a7d565b610acd90605f615a36565b610ad791906159e5565b610ae560ff86166064615a36565b1015949350505050565b6000610af9610909565b8210610b175760405162461bcd60e51b815260040161084b90615238565b5090565b60008311610b3b5760405162461bcd60e51b815260040161084b906152c0565b600a5460ff16610b5d5760405162461bcd60e51b815260040161084b9061586c565b610b6e8366b1a2bc2ec50000615a36565b341015610b8d5760405162461bcd60e51b815260040161084b906154b1565b6122b883610b99610909565b610ba391906159e5565b1115610bc15760405162461bcd60e51b815260040161084b906154df565b81518314610be15760405162461bcd60e51b815260040161084b906153c1565b600a60019054906101000a90046001600160a01b03166001600160a01b0316610c38610c3284604051602001610c17919061502f565b60405160208183030381529060405280519060200120611acb565b83611afb565b6001600160a01b031614610c5e5760405162461bcd60e51b815260040161084b906152f7565b80516020808301919091206000818152600f90925260409091205460ff1615610c995760405162461bcd60e51b815260040161084b906156a2565b81516020808401919091206000908152600f90915260408120805460ff191660011790555b84811015610e5057600081610cd1610909565b610cdb91906159e5565b9050610ce681611b6f565b6000828152600c60209081526040918290208351815492850151938501516060860151608087015160ff1990951660ff9384161761ff001916610100968416969096029590951762ff0000191662010000918316919091021763ff00000019166301000000948216949094029390931764ff00000000191664010000000093909216929092021780825560a083015190829065ff0000000000191665010000000000836005811115610da857634e487b7160e01b600052602160045260246000fd5b021790555060c08201518154829066ff0000000000001916600160301b836002811115610de557634e487b7160e01b600052602160045260246000fd5b0217905550905050848281518110610e0d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600b60008381526020019081526020016000209080519060200190610e3b9291906132a4565b50508080610e4890615b35565b915050610cbe565b50610e5b3385611d1b565b50505050565b600d546001600160a01b0316610e895760405162461bcd60e51b815260040161084b90615763565b600d546001600160a01b03163314610eb35760405162461bcd60e51b815260040161084b9061547a565b60005b81811015610f0157610eef8433858585818110610ee357634e487b7160e01b600052603260045260246000fd5b9050602002013561090f565b80610ef981615b35565b915050610eb6565b50604051635b339c1760e01b81523390635b339c1790610f2990869086908690600401614fe4565b600060405180830381600087803b158015610f4357600080fd5b505af1158015610f57573d6000803e3d6000fd5b50505050505050565b6000610f6b82611d35565b5192915050565b60006001600160a01b038216610f9a5760405162461bcd60e51b815260040161084b906153ed565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b610fc7611759565b6001600160a01b0316610fd8611187565b6001600160a01b031614610ffe5760405162461bcd60e51b815260040161084b9061556b565b6110086000611e47565b565b600d546001600160a01b03166110325760405162461bcd60e51b815260040161084b90615763565b600d546001600160a01b0316331461105c5760405162461bcd60e51b815260040161084b9061547a565b600d546001600160a01b031661107187610f60565b6001600160a01b0316146110975760405162461bcd60e51b815260040161084b90615629565b6000958652600c6020526040909520805460ff191660ff9586161761ff001916610100948616949094029390931762ff0000191662010000928516929092029190911763ff00000019166301000000918416919091021764ff0000000019166401000000009290931691909102919091179055565b600e546001600160a01b031681565b611123611759565b6001600160a01b0316611134611187565b6001600160a01b03161461115a5760405162461bcd60e51b815260040161084b9061556b565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b66b1a2bc2ec5000081565b6008546001600160a01b031690565b61119e611759565b6001600160a01b03166111af611187565b6001600160a01b0316146111d55760405162461bcd60e51b815260040161084b9061556b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600280546107a190615afa565b600a5460ff1681565b611217611759565b6001600160a01b0316826001600160a01b031614156112485760405162461bcd60e51b815260040161084b906155a0565b8060066000611255611759565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611299611759565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112d1919061508f565b60405180910390a35050565b6112e5611759565b6001600160a01b03166112f6611187565b6001600160a01b03161461131c5760405162461bcd60e51b815260040161084b9061556b565b600a805460ff1916911515919091179055565b61133a8484846117b9565b61134684848484611e99565b610e5b5760405162461bcd60e51b815260040161084b906156d9565b606061136d82611752565b6113895760405162461bcd60e51b815260040161084b90615144565b6000828152600c60209081526040808320815160e081018352815460ff80821683526101008204811695830195909552620100008104851693820193909352630100000083048416606082015264010000000083048416608082015292909160a08401916501000000000090910416600581111561141757634e487b7160e01b600052602160045260246000fd5b600581111561143657634e487b7160e01b600052602160045260246000fd5b81528154602090910190600160301b900460ff16600281111561146957634e487b7160e01b600052602160045260246000fd5b600281111561148857634e487b7160e01b600052602160045260246000fd5b9052506000848152600b602052604081208054929350909161153191906114ae90615afa565b80601f01602080910402602001604051908101604052809291908181526020018280546114da90615afa565b80156115275780601f106114fc57610100808354040283529160200191611527565b820191906000526020600020905b81548152906001019060200180831161150a57829003601f168201915b5050505050611fb5565b905061158461153f85612088565b825161155461154f8887876121a2565b6125e1565b61155d86612757565b6040516020016115709493929190614c63565b6040516020818303038152906040526125e1565b6040516020016115949190614f22565b60405160208183030381529060405292505050919050565b60075481565b601481565b600d546001600160a01b031681565b6115ce611759565b6001600160a01b03166115df611187565b6001600160a01b0316146116055760405162461bcd60e51b815260040161084b9061556b565b600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600c6020526000908152604090205460ff808216916101008104821691620100008204811691630100000081048216916401000000008204811691650100000000008104821691600160301b9091041687565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600a5461010090046001600160a01b031681565b6116ca611759565b6001600160a01b03166116db611187565b6001600160a01b0316146117015760405162461bcd60e51b815260040161084b9061556b565b6001600160a01b0381166117275760405162461bcd60e51b815260040161084b906151a8565b61173081611e47565b50565b6122b881565b6001600160e01b031981166301ffc9a760e01b14919050565b6000541190565b3390565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006117c482611d35565b9050600081600001516001600160a01b03166117de611759565b6001600160a01b0316148061181357506117f6611759565b6001600160a01b031661180884610824565b6001600160a01b0316145b806118275750815161182790610646611759565b9050806118465760405162461bcd60e51b815260040161084b906155d7565b846001600160a01b031682600001516001600160a01b03161461187b5760405162461bcd60e51b815260040161084b90615525565b6001600160a01b0384166118a15760405162461bcd60e51b815260040161084b9061527b565b6118ae8585856001610e5b565b6118be600084846000015161175d565b6001600160a01b03851660009081526004602052604081208054600192906118f09084906001600160801b0316615a55565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261193c918591166159ba565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b0267ffffffffffffffff60a01b19929093166001600160a01b031990911617161790556119d18460016159e5565b6000818152600360205260409020549091506001600160a01b0316611a75576119f981611752565b15611a755760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526003909352949091209251835494516001600160a01b031990951692169190911767ffffffffffffffff60a01b1916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ac38686866001610e5b565b505050505050565b600081604051602001611ade9190614c32565b604051602081830303815290604052805190602001209050919050565b6000815160411415611b2f5760208201516040830151606084015160001a611b2586828585612d72565b9350505050610a0f565b815160401415611b575760208201516040830151611b4e858383612e68565b92505050610a0f565b60405162461bcd60e51b815260040161084b90615171565b611b77613324565b6000611b838333612e92565b90506000611b96826028600060ff612ee2565b9050600060748260ff161015611bae57506000611c02565b60c18260ff161015611bc257506001611c02565b60f48260ff161015611bd657506002611c02565b60fc8260ff161015611bea57506003611c02565b60ff8260ff161015611bfe57506004611c02565b5060055b6000611c1384603060006002612ee2565b9050600060ff8216611c2757506000611c4b565b8160ff1660011415611c3b57506001611c4b565b8160ff1660021415611c4b575060025b6040518060e00160405280611c65876000600160ff612ee2565b60ff168152602001611c7c876008600160ff612ee2565b60ff168152602001611c93876010600160ff612ee2565b60ff168152602001611caa876018600160ff612ee2565b60ff168152602001611cc1876020600160ff612ee2565b60ff168152602001846005811115611ce957634e487b7160e01b600052602160045260246000fd5b8152602001826002811115611d0e57634e487b7160e01b600052602160045260246000fd5b9052979650505050505050565b610a83828260405180602001604052806000815250612f31565b611d3d613360565b611d4682611752565b611d625760405162461bcd60e51b815260040161084b906151ee565b60007f00000000000000000000000000000000000000000000000000000000000000008310611dc357611db57f000000000000000000000000000000000000000000000000000000000000000084615a7d565b611dc09060016159e5565b90505b825b818110611e2e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611e1b5792506106f3915050565b5080611e2681615ae3565b915050611dc5565b5060405162461bcd60e51b815260040161084b9061581d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611ead846001600160a01b03166131a3565b15611fa957836001600160a01b031663150b7a02611ec9611759565b8786866040518563ffffffff1660e01b8152600401611eeb9493929190614fb1565b602060405180830381600087803b158015611f0557600080fd5b505af1925050508015611f35575060408051601f3d908101601f19168201909252611f329181019061365b565b60015b611f8f573d808015611f63576040519150601f19603f3d011682016040523d82523d6000602084013e611f68565b606091505b508051611f875760405162461bcd60e51b815260040161084b906156d9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fad565b5060015b949350505050565b611fbd613377565b81600080611fc9613377565b60005b845181101561206d57848181518110611ff557634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60fa1b141561205b5761201b8785836131a9565b82846005811061203b57634e487b7160e01b600052603260045260246000fd5b602002015261204b8160016159e5565b93506120586001846159e5565b92505b8061206581615b35565b915050611fcc565b5061207a868486516131a9565b608082015295945050505050565b6060816120ad57506040805180820190915260018152600360fc1b60208201526106f3565b8160005b81156120d757806120c181615b35565b91506120d09050600a83615a22565b91506120b1565b6000816001600160401b038111156120ff57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612129576020820181803683370190505b5090505b8415611fad5761213e600183615a7d565b915061214b600a86615b70565b6121569060306159e5565b60f81b81838151811061217957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061219b600a86615a22565b945061212d565b606060006040516020016121b590614e14565b6040516020818303038152906040529050806121d88560800151600160ff610aa2565b6121fd576040518060400160405280600381526020016233333360e91b81525061221a565b6040518060400160405280600381526020016206666360ec1b8152505b61222b8660600151600160ff610aa2565b612250576040518060400160405280600381526020016233333360e91b81525061226d565b6040518060400160405280600381526020016206666360ec1b8152505b61227e8760200151600160ff610aa2565b6122a3576040518060400160405280600381526020016233333360e91b8152506122c0565b6040518060400160405280600381526020016206666360ec1b8152505b6122d18860400151600160ff610aa2565b6122f6576040518060400160405280600381526020016233333360e91b815250612313565b6040518060400160405280600381526020016206666360ec1b8152505b604051602001612327959493929190614257565b604051602081830303815290604052905080612349856000015160ff16612088565b60405160200161235a9291906144b7565b60408051808303601f19018152828252602080870151928701516060880151608089015193965061239395879594929391929101614361565b6040516020818303038152906040529050806123b5856080015160ff16612088565b6123c5866040015160ff16612088565b6123d5876020015160ff16612088565b6123e5886060015160ff16612088565b6040516020016123f995949392919061462e565b60408051601f198184030181529190529050606060018560a00151600581111561243357634e487b7160e01b600052602160045260246000fd5b1415612459575060408051808201909152600381526206630360ec1b60208201526125a5565b60028560a00151600581111561247f57634e487b7160e01b600052602160045260246000fd5b14156124a5575060408051808201909152600381526233633360e81b60208201526125a5565b60038560a0015160058111156124cb57634e487b7160e01b600052602160045260246000fd5b14156124f1575060408051808201909152600381526206639360ec1b60208201526125a5565b60048560a00151600581111561251757634e487b7160e01b600052602160045260246000fd5b141561253d5750604080518082019091526003815262331b3360e91b60208201526125a5565b60058560a00151600581111561256357634e487b7160e01b600052602160045260246000fd5b1415612589575060408051808201909152600381526236336360e81b60208201526125a5565b5060408051808201909152600381526218183360e91b60208201525b8351829082906125b489612088565b6040516020016125c79493929190613aa1565b60408051808303601f190181529190529695505050505050565b606081516000141561260257506040805160208101909152600081526106f3565b6000604051806060016040528060408152602001615bf3604091399050600060038451600261263191906159e5565b61263b9190615a22565b612646906004615a36565b905060006126558260206159e5565b6001600160401b0381111561267a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126a4576020820181803683370190505b509050818152600183018586518101602084015b818310156127125760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016126b8565b60038951066001811461272c576002811461273d57612749565b613d3d60f01b600119830152612749565b603d60f81b6000198301525b509398975050505050505050565b6040805180820190915260018152605b60f81b602082015281516060919081906127839060ff16612088565b604051602001612794929190614aaf565b6040516020818303038152906040529050806127b6846080015160ff16612088565b6040516020016127c7929190614b1d565b6040516020818303038152906040529050806127e9846060015160ff16612088565b6040516020016127fa929190614b95565b60405160208183030381529060405290508061281c846020015160ff16612088565b60405160200161282d9291906149db565b60405160208183030381529060405290508061284f846040015160ff16612088565b60405160200161286092919061487e565b604051602081830303815290604052905060006128848460800151600160ff610aa2565b15612897578061289381615b50565b9150505b6128a88460600151600160ff610aa2565b156128bb57806128b781615b50565b9150505b6128cc8460200151600160ff610aa2565b156128df57806128db81615b50565b9150505b6128f08460400151600160ff610aa2565b1561290357806128ff81615b50565b9150505b816129108260ff16612088565b60405160200161292192919061477f565b604051602081830303815290604052915060608160ff1660001415612963575060408051808201909152600681526524b73a32b93760d11b6020820152612a29565b8160ff166001141561299557506040805180820190915260098152684173736f636961746560b81b6020820152612a29565b8160ff16600214156129c5575060408051808201909152600781526626b0b730b3b2b960c91b6020820152612a29565b8160ff16600314156129f657506040805180820190915260088152672234b932b1ba37b960c11b6020820152612a29565b8160ff1660041415612a29575060408051808201909152600e81526d159a58d948141c995cda59195b9d60921b60208201525b8281604051602001612a3c929190614804565b60408051601f198184030181529190529250606060008660c001516002811115612a7657634e487b7160e01b600052602160045260246000fd5b1415612a9f5750604080518082019091526006815265476c6f73737960d01b6020820152612b37565b60018660c001516002811115612ac557634e487b7160e01b600052602160045260246000fd5b1415612aed57506040805180820190915260058152644d6174746560d81b6020820152612b37565b60028660c001516002811115612b1357634e487b7160e01b600052602160045260246000fd5b1415612b37575060408051808201909152600581526429b0ba34b760d91b60208201525b8381604051602001612b4a9291906148ee565b60408051601f198184030181529190529350606060018760a001516005811115612b8457634e487b7160e01b600052602160045260246000fd5b1415612baa575060408051808201909152600381526214995960ea1b6020820152612d00565b60028760a001516005811115612bd057634e487b7160e01b600052602160045260246000fd5b1415612bf8575060408051808201909152600581526423b932b2b760d91b6020820152612d00565b60038760a001516005811115612c1e57634e487b7160e01b600052602160045260246000fd5b1415612c4757506040805180820190915260068152654f72616e676560d01b6020820152612d00565b60048760a001516005811115612c6d57634e487b7160e01b600052602160045260246000fd5b1415612c94575060408051808201909152600481526350696e6b60e01b6020820152612d00565b60058760a001516005811115612cba57634e487b7160e01b600052602160045260246000fd5b1415612ce35750604080518082019091526006815265507572706c6560d01b6020820152612d00565b50604080518082019091526004815263426c756560e01b60208201525b8481604051602001612d13929190614968565b604051602081830303815290604052945084604051602001612d359190614a53565b604051602081830303815290604052945084604051602001612d579190614c0d565b60408051808303601f19018152919052979650505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612db45760405162461bcd60e51b815260040161084b90615322565b8360ff16601b1480612dc957508360ff16601c145b612de55760405162461bcd60e51b815260040161084b90615438565b600060018686868660405160008152602001604052604051612e0a949392919061509a565b6020604051602081039080840390855afa158015612e2c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e5f5760405162461bcd60e51b815260040161084b906150cb565b95945050505050565b60006001600160ff1b03821660ff83901c601b01612e8886828785612d72565b9695505050505050565b6009805460009182612ea383615b35565b919050555042448484600954604051602001612ec3959493929190614f67565b60408051601f1981840301815291905280516020909101209392505050565b600060ff81612ef18585615a94565b60ff9081169150861687901c8216600086612f0d8460016159e5565b612f1a9060ff8516615b70565b612f2491906159fd565b9998505050505050505050565b6000546001600160a01b038416612f5a5760405162461bcd60e51b815260040161084b9061578e565b612f6381611752565b15612f805760405162461bcd60e51b815260040161084b9061572c565b7f0000000000000000000000000000000000000000000000000000000000000000831115612fc05760405162461bcd60e51b815260040161084b906158e4565b612fcd6000858386610e5b565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906130299087906159ba565b6001600160801b0316815260200185836020015161304791906159ba565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087518154988401518816600160801b029088166fffffffffffffffffffffffffffffffff199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b0267ffffffffffffffff60a01b19959093166001600160a01b031990941693909317939093161790915582905b858110156131915760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131556000888488611e99565b6131715760405162461bcd60e51b815260040161084b906156d9565b8161317b81615b35565b925050808061318990615b35565b915050613108565b506000818155611ac390878588610e5b565b3b151590565b60608360006131b88585615a7d565b6001600160401b038111156131dd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613207576020820181803683370190505b5090506000855b858110156132985783818151811061323657634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b83838151811061326157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161328281615b35565b925050808061329090615b35565b91505061320e565b50909695505050505050565b8280546132b090615afa565b90600052602060002090601f0160209004810192826132d25760008555613318565b82601f106132eb57805160ff1916838001178555613318565b82800160010185558215613318579182015b828111156133185782518255916020019190600101906132fd565b50610b1792915061339e565b6040805160e08101825260008082526020820181905291810182905260608101829052608081018290529060a082019081526020016000905290565b604080518082019091526000808252602082015290565b6040518060a001604052806005905b60608152602001906001900390816133865790505090565b5b80821115610b17576000815560010161339f565b60006001600160401b038311156133cc576133cc615bc6565b6133df601f8401601f1916602001615991565b90508281528383830111156133f357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146106f357600080fd5b803580151581146106f357600080fd5b600082601f830112613441578081fd5b613450838335602085016133b3565b9392505050565b803560ff811681146106f357600080fd5b600060208284031215613479578081fd5b6134508261340a565b60008060408385031215613494578081fd5b61349d8361340a565b91506134ab6020840161340a565b90509250929050565b6000806000606084860312156134c8578081fd5b6134d18461340a565b92506134df6020850161340a565b9150604084013590509250925092565b60008060008060808587031215613504578081fd5b61350d8561340a565b935061351b6020860161340a565b92506040850135915060608501356001600160401b0381111561353c578182fd5b61354887828801613431565b91505092959194509250565b600080600060408486031215613568578283fd5b6135718461340a565b925060208401356001600160401b038082111561358c578384fd5b818601915086601f83011261359f578384fd5b8135818111156135ad578485fd5b87602080830285010111156135c0578485fd5b6020830194508093505050509250925092565b600080604083850312156135e5578182fd5b6135ee8361340a565b91506134ab60208401613421565b6000806040838503121561360e578182fd5b6136178361340a565b946020939093013593505050565b600060208284031215613636578081fd5b61345082613421565b600060208284031215613650578081fd5b813561345081615bdc565b60006020828403121561366c578081fd5b815161345081615bdc565b600060208284031215613688578081fd5b5035919050565b6000806000606084860312156136a3578081fd5b833592506020808501356001600160401b03808211156136c1578384fd5b818701915087601f8301126136d4578384fd5b8135818111156136e6576136e6615bc6565b6136f38485830201615991565b81815284810190848601875b8481101561373d57813587018d603f82011261371957898afd5b61372a8e8a830135604084016133b3565b85525092870192908701906001016136ff565b509097505050506040870135925080831115613757578384fd5b505061376586828701613431565b9150509250925092565b60008060008060008060c08789031215613787578384fd5b8635955061379760208801613457565b94506137a560408801613457565b93506137b360608801613457565b92506137c160808801613457565b91506137cf60a08801613457565b90509295509295509295565b6000806000606084860312156137ef578081fd5b6137f884613457565b925061380660208501613457565b915061381460408501613457565b90509250925092565b60008151808452613835816020860160208601615ab7565b601f01601f19169290920160200192915050565b6000815161385b818560208601615ab7565b9290920192915050565b7f3c74657874207472616e73666f726d3d227472616e736c6174652831362e373281527f203133332e3137292220666f6e742d66616d696c793d22417269616c2d426f6c60208201527f644d542c417269616c2220666f6e742d7765696768743d223730302220666f6e60408201526b3a16b9b4bd329e91191b911f60a11b6060820152606c0190565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b7f2220643d224d302030683530307638342e333348307a222f3e00000000000000815260190190565b6c3c706174682066696c6c3d222360981b8152600d0190565b6c1e17ba32bc3a1f1e17b9bb339f60991b8152600d0190565b661e17ba32bc3a1f60c91b815260070190565b607d60f81b815260010190565b7f2220643d224d38302e3933203333352e3436483439342e367637362e3637483881526718171c99bd11179f60c11b602082015260280190565b602360f81b815260010190565b7f2220643d224d38302e3933203431382e3135483439342e367637362e3637483881526718171c99bd11179f60c11b602082015260280190565b7f3c2f746578743e3c74657874207472616e73666f726d3d227472616e736c617481527f652831362e37322035312e3833292220666f6e742d66616d696c793d2241726960208201527f616c2d426f6c644d542c417269616c2220666f6e742d7765696768743d22373060408201527f302220666f6e742d73697a653d223237222066696c6c3d2223666666223e00006060820152607e0190565b60008551613ab3818460208a01615ab7565b7f3c7061746820636c6173733d22682220643d224d3332322e3532203131322e359083019081527f682d32306131203120302030302d31203176323061312031203020303031203160208201527f683230613120312030203030312d31762d32306131203120302030302d312d3160408201527f7a6d2d3420396c2d352e333320352e33336131203120302030312d2e37312e3360608201527f2031203120302030312d2e37312d2e336c2d352e33332d352e3333613120312060808201527f30203031312e34312d312e34316c342e363320342e363220342e36322d342e3660a08201527f32613120312030203031312e343220302031203120302030312e303420312e3460c08201527f357a4d33382e3635203231356c2d352e37342d342e38352d312e313920312e3460e08201527f3261342e363820342e363820302030302d352e36352e37336c392e393320392e6101008201527f393361342e363620342e363620302030302e37342d352e36347a222f3e3c70616101208201527f746820636c6173733d22682220643d224d35312e3535203231302e393261342e6101408201527f353920342e353920302030302d322e33322e36336c2d32302d32332e3731682d6101608201527f382e373676382e37346c32332e373120323061342e363820342e3638203020306101808201527f302e373420352e36336c392e39342d392e393461342e363620342e36362030206101a08201527f30302d332e33312d312e33357a4d3333203230326c2d382e33362d382e33374c6101c08201527f32362e33203139326c382e333720382e33367a6d32332e37352031382e38316c6101e08201527f2d332e35342d332e35352d332e333220332e333220332e353520332e353476336102008201527f2e373268372e3033762d372e3033682d332e37327a6d2d32392e30322d332e356102208201527f356c2d332e353520332e3535682d332e373176372e303368372e3033762d332e6102408201527f37326c332e35342d332e35342d332e33312d332e33327a222f3e3c70617468206102608201527f636c6173733d22682220643d224d35312e3732203138372e38344c34322031396102808201527f392e33366c362e333120372e34382031322e31362d31302e3235762d382e37356102a08201527f7a4d34372e3933203230326c2d312e36362d312e363620382e33362d382e33346102c08201527f20312e363620312e36357a6d2d372e34362036382e31356c2d313720352e31346102e08201527f7631322e3833633020382e333420362e38392031372e342031372032322e37376103008201527f2031302e31312d352e33372031372d31342e34332031372d32322e3737762d316103208201527f322e38337a6d302033372e38314333312e3738203330322e39342032362032396103408201527f352e31203236203238382e3132762d31302e39336c31342e34342d342e33357a6103608201527f6d2d372033392e3731632d322e36392031342e36312d342e38372031362e37396103808201527f2d31392e34372031392e34382031342e363120322e36392031362e373920342e6103a08201527f38372031392e34382031392e343820322e36392d31342e363120342e38372d316103c08201527f362e37392031392e34372d31392e34382d31342e36312d322e36392d31362e376103e08201527f392d342e38372d31392e34382d31392e34387a6d32312e31342032372e3431636104008201527f2d312e373120392e32392d332e312031302e36372d31322e33392031322e33386104208201527f20392e323920312e37312031302e363820332e312031322e33392031322e33396104408201527f20312e37312d392e323920332e30392d31302e36382031322e33382d31322e336104608201527f392d392e32392d312e37312d31302e36372d332e30392d31322e33382d31322e6104808201527f33387a4d33342e3531203437306c322e3233203220322e353420322e313761316104a08201527f2e383720312e38372030203030312e31392e343420312e383320312e383320306104c08201527f203030312e31392d2e34346c322e35372d322e313763352d342e333920382e386104e08201527f322d372e37352031312e35362d313120332e31392d332e383320342e36382d376105008201527f2e3320342e36382d31302e396131312e362031312e3620302030302d31312e376105208201527f392d31312e372031322e38342031322e383420302030302d382e3139203320316105408201527f322e38312031322e383120302030302d382e31382d334131312e362031312e366105608201527f203020303032302e343920343530633020372e393120352e35382031322e37336105808201527f2031342e30322032307a6d2d312e32392d31372e313268342e3835762d342e376105a08201527f3868342e383576342e373868342e383576342e3737682d342e383576342e37376105c08201527f682d342e3835762d342e3737682d342e3835762d342e37377a222f3e000000006105e082015261424c61424761424161423c61423761423161422c6142276142216105fc8a01613933565b8e613849565b61390a565b613865565b8a613849565b613a06565b6139bf565b86613849565b61394c565b979650505050505050565b60008651614269818460208b01615ab7565b6c3c706174682066696c6c3d222360981b908301818152875190919061429681600d850160208c01615ab7565b7f2220643d224d38302e3533203136392e3531483439342e327637362e36374838600d93909101928301526718171a99bd11179f60c11b602d8301526035820181905286516142ec816042850160208b01615ab7565b7f2220643d224d38302e3933203235322e3036483439342e367637362e36374838604293909101928301526718171c99bd11179f60c11b6062830152606a82015261435561435061424161434b614346607786018a613849565b613985565b613933565b6139cc565b98975050505050505050565b60008651614373818460208b01615ab7565b80830190507f3c7465787420636c6173733d226422207472616e73666f726d3d227472616e738152733630ba32941c98171c191019189b971a9894911f60611b602082015286516143cb816034840160208b01615ab7565b8082019150507f3c2f746578743e3c7465787420636c6173733d226422207472616e73666f726d8060348301527f3d227472616e736c6174652839302e3935203330302e303629223e00000000006054830152865161443181606f850160208b01615ab7565b606f92019182018190527f3d227472616e736c6174652839302e3232203338332e343729223e0000000000608f83015285516144748160aa850160208a01615ab7565b60aa9201918201527f3d227472616e736c6174652839312e3232203436362e313529223e000000000060ca8201526143556144b260e5830186613849565b613965565b600083516144c9818460208801615ab7565b7f3c7061746820643d224d362e3032203431382e31356836382e39347637362e369083019081527f3748362e30327a6d302d38322e37336836382e39347637362e363748362e303260208201527f7a4d36203235322e31396836382e39347637362e363748367a6d302d38322e3660408201527f396836382e39347637362e363748367a222066696c6c3d22236566656665662260608201527f2f3e3c7061746820643d224d352e37392038342e3333683333332e373576373860808201527f2e333348352e37397a6d3333392e35342030483439342e327637382e3333483360a0820152741a1a971999bd11103334b6361e9111b3333311179f60591b60c08201527f3c7465787420636c6173733d226422207472616e73666f726d3d227472616e7360d5820152743630ba3294199b9a171c9c9018999997189b94911f60591b60f58201526202428160ed1b61010a820152612e5f6144b261010d830186613849565b60008651614640818460208b01615ab7565b80830190507f3c7465787420636c6173733d2264206c22207472616e73666f726d3d227472618152733739b630ba32941a1c1a9019189b971a9894911f60611b60208201528651614698816034840160208b01615ab7565b8082019150507f3c2f746578743e3c7465787420636c6173733d2264206c22207472616e73666f8060348301527f726d3d227472616e736c61746528343835203436362e313529223e0000000000605483015286516146fe81606f850160208b01615ab7565b606f92019182018190527f726d3d227472616e736c61746528343835203338332e343729223e0000000000608f83015285516147418160aa850160208a01615ab7565b60aa9201918201527f726d3d227472616e736c61746528343835203330312e383629223e000000000060ca8201526143556144b260e5830186613849565b60008351614791818460208801615ab7565b80830190507f7b2274726169745f74797065223a2022486967686c6967687465642043656c6c8152621cc88b60ea1b602082015267113b30b63ab2911d60c11b602382015283516147e981602b840160208801615ab7565b611f4b60f21b602b9290910191820152602d01949350505050565b60008351614816818460208801615ab7565b7f7b2274726169745f74797065223a20224a6f62205469746c65222c000000000090830190815268113b30b63ab2911d1160b91b601b8201528351614862816024840160208801615ab7565b62089f4b60ea1b60249290910191820152602701949350505050565b60008351614890818460208801615ab7565b741ec89d1c985a5d17dd1e5c19488e889219585b088b605a1b90830190815267113b30b63ab2911d60c11b601582015283516148d381601d840160208801615ab7565b611f4b60f21b601d9290910191820152601f01949350505050565b60008351614900818460208801615ab7565b7f7b2274726169745f74797065223a202250617065722053746f636b222c00000090830190815268113b30b63ab2911d1160b91b601d820152835161494c816026840160208801615ab7565b62089f4b60ea1b60269290910191820152602901949350505050565b6000835161497a818460208801615ab7565b751ec89d1c985a5d17dd1e5c19488e8890dbdb1bdc888b60521b90830190815268113b30b63ab2911d1160b91b601682015283516149bf81601f840160208801615ab7565b62089f4b60ea1b601f9290910191820152602201949350505050565b600083516149ed818460208801615ab7565b7f7b2274726169745f74797065223a22437269746963616c222c0000000000000090830190815267113b30b63ab2911d60c11b60198201528351614a38816021840160208801615ab7565b611f4b60f21b60219290910191820152602301949350505050565b60008251614a65818460208701615ab7565b7f7b2274726169745f74797065223a202253686565742054797065222c00000000920191825250712276616c7565223a2247656e65736973227d60701b601c820152602e01919050565b60008351614ac1818460208801615ab7565b721ec89d1c985a5d17dd1e5c19488e889214088b606a1b90830190815267113b30b63ab2911d60c11b60138201528351614b0281601b840160208801615ab7565b611f4b60f21b601b9290910191820152601d01949350505050565b60008351614b2f818460208801615ab7565b7f7b2274726169745f74797065223a2241747461636b222c00000000000000000090830190815267113b30b63ab2911d60c11b60178201528351614b7a81601f840160208801615ab7565b611f4b60f21b601f9290910191820152602101949350505050565b60008351614ba7818460208801615ab7565b7f7b2274726169745f74797065223a22446566656e7365222c000000000000000090830190815267113b30b63ab2911d60c11b60188201528351614bf2816020808501908801615ab7565b611f4b60f21b60209290910191820152602201949350505050565b60008251614c1f818460208701615ab7565b605d60f81b920191825250600101919050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60007f7b226e616d65223a20225368656574204669676874657220230000000000000082528551614c9b816019850160208a01615ab7565b6201016960ed1b6019918401918201528551614cbe81601c840160208a01615ab7565b7f222c20226465736372697074696f6e223a202253686565742046696768746572601c92909101918201527f206973206120636f6c6c656374696f6e206f662031303025206f6e2d63686169603c8201527f6e206669676874696e67207370726561647368656574732c207061636b656420605c8201527f7769746820756e6971756520616e6420756e7072656469637461626c65204750607c8201527f542d332067656e65726174656420706572736f6e616c69746965732e20436f6c609c8201527f6c6563742c207374616b652c20616e6420626174746c6520746f20736872656460bc8201527f20796f757220636f6d7065746974696f6e2e222c2022696d616765223a20226460dc8201527f6174613a696d6167652f7376672b786d6c3b6261736536342c0000000000000060fc82015261424c614e0f614241614e0a610115850189613849565b6138ef565b613978565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d223020302035303020353031223e3c6460208201526332b3399f60e11b60408201527f3c7374796c653e2e647b666f6e742d73697a653a323770783b666f6e742d666160448201527f6d696c793a417269616c4d542c417269616c7d2e687b66696c6c3a233939397d60648201527f2e6c7b746578742d616e63686f723a656e647d3c2f7374796c653e000000000060848201527f3c2f646566733e3c706174682066696c6c3d22236436643664362220643d224d609f82015270181018341a98183b1a9818a4183d11179f60791b60bf82015260d00190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251614f5a81601d850160208701615ab7565b91909101601d0192915050565b94855260208501939093526040840191909152606090811b6bffffffffffffffffffffffff191690830152607482015260940190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e889083018461381d565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b03831115615013578081fd5b6020830280856060850137919091016060019081529392505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b8281101561508257603f1988860301845261507085835161381d565b94509285019290850190600101615054565b5092979650505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252613450602083018461381d565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b602080825260139082015272151bdad95b88191bd95cdb89dd08195e1a5cdd606a1b604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756040820152626e647360e81b606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526018908201527f496e76616c6964206e756d626572206f6620746f6b656e730000000000000000604082015260600190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b602080825260129082015271496e76616c696420706172616d657465727360701b604082015260600190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526017908201527f4f6e6c79206272696467652063616e20646f2074686973000000000000000000604082015260600190565b602080825260149082015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b604082015260600190565b60208082526026908201527f5468657265206172656e27742074686174206d616e7920756e6d696e74656420604082015265746f6b656e7360d01b606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746040820152651037bbb732b960d11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526019908201527f5368656574206861736e2774206265656e206272696467656400000000000000604082015260600190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201526132b960f11b606082015260800190565b6020808252601f908201527f5369676e61747572652068617320616c7265616479206265656e207573656400604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b602080825260119082015270109c9a5919d9481a5cc81b9bdd081cd95d607a1b604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201526d0deeedccae440c4f240d2dcc8caf60931b606082015260800190565b6020808252602f908201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560408201526e1037bbb732b91037b3103a37b5b2b760891b606082015260800190565b602080825260119082015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b604082015260600190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201526c3c34b9ba32b73a103a37b5b2b760991b606082015260800190565b60208082526022908201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696040820152610ced60f31b606082015260800190565b90815260200190565b60ff88811682528781166020830152868116604083015285811660608301528416608082015260e081016006841061596957615969615bb0565b8360a08301526003831061597f5761597f615bb0565b8260c083015298975050505050505050565b6040518181016001600160401b03811182821017156159b2576159b2615bc6565b604052919050565b60006001600160801b038083168185168083038211156159dc576159dc615b84565b01949350505050565b600082198211156159f8576159f8615b84565b500190565b600060ff821660ff84168060ff03821115615a1a57615a1a615b84565b019392505050565b600082615a3157615a31615b9a565b500490565b6000816000190483118215151615615a5057615a50615b84565b500290565b60006001600160801b0383811690831681811015615a7557615a75615b84565b039392505050565b600082821015615a8f57615a8f615b84565b500390565b600060ff821660ff841680821015615aae57615aae615b84565b90039392505050565b60005b83811015615ad2578181015183820152602001615aba565b83811115610e5b5750506000910152565b600081615af257615af2615b84565b506000190190565b600281046001821680615b0e57607f821691505b60208210811415615b2f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615b4957615b49615b84565b5060010190565b600060ff821660ff811415615b6757615b67615b84565b60010192915050565b600082615b7f57615b7f615b9a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461173057600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a39423419ea819f5f7a52b5e348c0c2a99135648a0064979a7795c16d8deed2264736f6c63430008000033000000000000000000000000a92dd99918c75c9d57194e656fe21e2051b0d345
Deployed Bytecode
0x6080604052600436106102255760003560e01c80638374231c11610123578063c87b56dd116100ab578063e926ca951161006f578063e926ca95146105f8578063e985e9c51461062b578063f17af48d1461064b578063f2fde38b14610660578063f47c84c51461068057610225565b8063c87b56dd14610579578063d7224ba014610599578063dfe93fa3146105ae578063e78cea92146105c3578063e84a9728146105d857610225565b806395d89b41116100f257806395d89b41146104ef57806399288dbb14610504578063a22cb46514610519578063af979f2514610539578063b88d4fde1461055957610225565b80638374231c146104855780638d859f3e146104a55780638da5cb5b146104ba5780638dd14802146104cf57610225565b806342842e0e116101b15780636352211e116101755780636352211e146103fb57806370a082311461041b578063715018a61461043b5780637189290c1461045057806379a2cad01461047057610225565b806342842e0e1461036857806346879b64146103885780634f6ccce7146103a857806353b0b6cb146103c85780635cbe7d49146103db57610225565b8063095ea7b3116101f8578063095ea7b3146102cf57806318160ddd146102f157806323b872dd146103135780632f745c59146103335780633ccfd60b1461035357610225565b806301ffc9a71461022a57806305130fdb1461026057806306fdde031461028d578063081812fc146102a2575b600080fd5b34801561023657600080fd5b5061024a61024536600461363f565b610695565b604051610257919061508f565b60405180910390f35b34801561026c57600080fd5b5061028061027b366004613677565b6106f8565b60405161025791906150b8565b34801561029957600080fd5b50610280610792565b3480156102ae57600080fd5b506102c26102bd366004613677565b610824565b6040516102579190614f9d565b3480156102db57600080fd5b506102ef6102ea3660046135fc565b610870565b005b3480156102fd57600080fd5b50610306610909565b6040516102579190615926565b34801561031f57600080fd5b506102ef61032e3660046134b4565b61090f565b34801561033f57600080fd5b5061030661034e3660046135fc565b61091a565b34801561035f57600080fd5b506102ef610a15565b34801561037457600080fd5b506102ef6103833660046134b4565b610a87565b34801561039457600080fd5b5061024a6103a33660046137db565b610aa2565b3480156103b457600080fd5b506103066103c3366004613677565b610aef565b6102ef6103d636600461368f565b610b1b565b3480156103e757600080fd5b506102ef6103f6366004613554565b610e61565b34801561040757600080fd5b506102c2610416366004613677565b610f60565b34801561042757600080fd5b50610306610436366004613468565b610f72565b34801561044757600080fd5b506102ef610fbf565b34801561045c57600080fd5b506102ef61046b36600461376f565b61100a565b34801561047c57600080fd5b506102c261110c565b34801561049157600080fd5b506102ef6104a0366004613468565b61111b565b3480156104b157600080fd5b5061030661117c565b3480156104c657600080fd5b506102c2611187565b3480156104db57600080fd5b506102ef6104ea366004613468565b611196565b3480156104fb57600080fd5b506102806111f7565b34801561051057600080fd5b5061024a611206565b34801561052557600080fd5b506102ef6105343660046135d3565b61120f565b34801561054557600080fd5b506102ef610554366004613625565b6112dd565b34801561056557600080fd5b506102ef6105743660046134ef565b61132f565b34801561058557600080fd5b50610280610594366004613677565b611362565b3480156105a557600080fd5b506103066115ac565b3480156105ba57600080fd5b506103066115b2565b3480156105cf57600080fd5b506102c26115b7565b3480156105e457600080fd5b506102ef6105f3366004613468565b6115c6565b34801561060457600080fd5b50610618610613366004613677565b61162d565b604051610257979695949392919061592f565b34801561063757600080fd5b5061024a610646366004613482565b611680565b34801561065757600080fd5b506102c26116ae565b34801561066c57600080fd5b506102ef61067b366004613468565b6116c2565b34801561068c57600080fd5b50610306611733565b60006001600160e01b031982166380ac58cd60e01b14806106c657506001600160e01b03198216635b5e139f60e01b145b806106e157506001600160e01b0319821663780e9d6360e01b145b806106f057506106f082611739565b90505b919050565b600b602052600090815260409020805461071190615afa565b80601f016020809104026020016040519081016040528092919081815260200182805461073d90615afa565b801561078a5780601f1061075f5761010080835404028352916020019161078a565b820191906000526020600020905b81548152906001019060200180831161076d57829003601f168201915b505050505081565b6060600180546107a190615afa565b80601f01602080910402602001604051908101604052809291908181526020018280546107cd90615afa565b801561081a5780601f106107ef5761010080835404028352916020019161081a565b820191906000526020600020905b8154815290600101906020018083116107fd57829003601f168201915b5050505050905090565b600061082f82611752565b6108545760405162461bcd60e51b815260040161084b90615897565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061087b82610f60565b9050806001600160a01b0316836001600160a01b031614156108af5760405162461bcd60e51b815260040161084b90615660565b806001600160a01b03166108c1611759565b6001600160a01b031614806108dd57506108dd81610646611759565b6108f95760405162461bcd60e51b815260040161084b90615364565b61090483838361175d565b505050565b60005490565b6109048383836117b9565b600061092583610f72565b82106109435760405162461bcd60e51b815260040161084b90615102565b600061094d610909565b905060008060005b838110156109f6576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b031691830191909152156109a757805192505b876001600160a01b0316836001600160a01b031614156109e357868414156109d557509350610a0f92505050565b836109df81615b35565b9450505b50806109ee81615b35565b915050610955565b5060405162461bcd60e51b815260040161084b906157cf565b92915050565b610a1d611759565b6001600160a01b0316610a2e611187565b6001600160a01b031614610a545760405162461bcd60e51b815260040161084b9061556b565b6040514790339082156108fc029083906000818181858888f19350505050158015610a83573d6000803e3d6000fd5b5050565b6109048383836040518060200160405280600081525061132f565b6000610ab260ff84166064615a36565b610ac260ff808616908516615a7d565b610acd90605f615a36565b610ad791906159e5565b610ae560ff86166064615a36565b1015949350505050565b6000610af9610909565b8210610b175760405162461bcd60e51b815260040161084b90615238565b5090565b60008311610b3b5760405162461bcd60e51b815260040161084b906152c0565b600a5460ff16610b5d5760405162461bcd60e51b815260040161084b9061586c565b610b6e8366b1a2bc2ec50000615a36565b341015610b8d5760405162461bcd60e51b815260040161084b906154b1565b6122b883610b99610909565b610ba391906159e5565b1115610bc15760405162461bcd60e51b815260040161084b906154df565b81518314610be15760405162461bcd60e51b815260040161084b906153c1565b600a60019054906101000a90046001600160a01b03166001600160a01b0316610c38610c3284604051602001610c17919061502f565b60405160208183030381529060405280519060200120611acb565b83611afb565b6001600160a01b031614610c5e5760405162461bcd60e51b815260040161084b906152f7565b80516020808301919091206000818152600f90925260409091205460ff1615610c995760405162461bcd60e51b815260040161084b906156a2565b81516020808401919091206000908152600f90915260408120805460ff191660011790555b84811015610e5057600081610cd1610909565b610cdb91906159e5565b9050610ce681611b6f565b6000828152600c60209081526040918290208351815492850151938501516060860151608087015160ff1990951660ff9384161761ff001916610100968416969096029590951762ff0000191662010000918316919091021763ff00000019166301000000948216949094029390931764ff00000000191664010000000093909216929092021780825560a083015190829065ff0000000000191665010000000000836005811115610da857634e487b7160e01b600052602160045260246000fd5b021790555060c08201518154829066ff0000000000001916600160301b836002811115610de557634e487b7160e01b600052602160045260246000fd5b0217905550905050848281518110610e0d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600b60008381526020019081526020016000209080519060200190610e3b9291906132a4565b50508080610e4890615b35565b915050610cbe565b50610e5b3385611d1b565b50505050565b600d546001600160a01b0316610e895760405162461bcd60e51b815260040161084b90615763565b600d546001600160a01b03163314610eb35760405162461bcd60e51b815260040161084b9061547a565b60005b81811015610f0157610eef8433858585818110610ee357634e487b7160e01b600052603260045260246000fd5b9050602002013561090f565b80610ef981615b35565b915050610eb6565b50604051635b339c1760e01b81523390635b339c1790610f2990869086908690600401614fe4565b600060405180830381600087803b158015610f4357600080fd5b505af1158015610f57573d6000803e3d6000fd5b50505050505050565b6000610f6b82611d35565b5192915050565b60006001600160a01b038216610f9a5760405162461bcd60e51b815260040161084b906153ed565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b610fc7611759565b6001600160a01b0316610fd8611187565b6001600160a01b031614610ffe5760405162461bcd60e51b815260040161084b9061556b565b6110086000611e47565b565b600d546001600160a01b03166110325760405162461bcd60e51b815260040161084b90615763565b600d546001600160a01b0316331461105c5760405162461bcd60e51b815260040161084b9061547a565b600d546001600160a01b031661107187610f60565b6001600160a01b0316146110975760405162461bcd60e51b815260040161084b90615629565b6000958652600c6020526040909520805460ff191660ff9586161761ff001916610100948616949094029390931762ff0000191662010000928516929092029190911763ff00000019166301000000918416919091021764ff0000000019166401000000009290931691909102919091179055565b600e546001600160a01b031681565b611123611759565b6001600160a01b0316611134611187565b6001600160a01b03161461115a5760405162461bcd60e51b815260040161084b9061556b565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b66b1a2bc2ec5000081565b6008546001600160a01b031690565b61119e611759565b6001600160a01b03166111af611187565b6001600160a01b0316146111d55760405162461bcd60e51b815260040161084b9061556b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600280546107a190615afa565b600a5460ff1681565b611217611759565b6001600160a01b0316826001600160a01b031614156112485760405162461bcd60e51b815260040161084b906155a0565b8060066000611255611759565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611299611759565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112d1919061508f565b60405180910390a35050565b6112e5611759565b6001600160a01b03166112f6611187565b6001600160a01b03161461131c5760405162461bcd60e51b815260040161084b9061556b565b600a805460ff1916911515919091179055565b61133a8484846117b9565b61134684848484611e99565b610e5b5760405162461bcd60e51b815260040161084b906156d9565b606061136d82611752565b6113895760405162461bcd60e51b815260040161084b90615144565b6000828152600c60209081526040808320815160e081018352815460ff80821683526101008204811695830195909552620100008104851693820193909352630100000083048416606082015264010000000083048416608082015292909160a08401916501000000000090910416600581111561141757634e487b7160e01b600052602160045260246000fd5b600581111561143657634e487b7160e01b600052602160045260246000fd5b81528154602090910190600160301b900460ff16600281111561146957634e487b7160e01b600052602160045260246000fd5b600281111561148857634e487b7160e01b600052602160045260246000fd5b9052506000848152600b602052604081208054929350909161153191906114ae90615afa565b80601f01602080910402602001604051908101604052809291908181526020018280546114da90615afa565b80156115275780601f106114fc57610100808354040283529160200191611527565b820191906000526020600020905b81548152906001019060200180831161150a57829003601f168201915b5050505050611fb5565b905061158461153f85612088565b825161155461154f8887876121a2565b6125e1565b61155d86612757565b6040516020016115709493929190614c63565b6040516020818303038152906040526125e1565b6040516020016115949190614f22565b60405160208183030381529060405292505050919050565b60075481565b601481565b600d546001600160a01b031681565b6115ce611759565b6001600160a01b03166115df611187565b6001600160a01b0316146116055760405162461bcd60e51b815260040161084b9061556b565b600a80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600c6020526000908152604090205460ff808216916101008104821691620100008204811691630100000081048216916401000000008204811691650100000000008104821691600160301b9091041687565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600a5461010090046001600160a01b031681565b6116ca611759565b6001600160a01b03166116db611187565b6001600160a01b0316146117015760405162461bcd60e51b815260040161084b9061556b565b6001600160a01b0381166117275760405162461bcd60e51b815260040161084b906151a8565b61173081611e47565b50565b6122b881565b6001600160e01b031981166301ffc9a760e01b14919050565b6000541190565b3390565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006117c482611d35565b9050600081600001516001600160a01b03166117de611759565b6001600160a01b0316148061181357506117f6611759565b6001600160a01b031661180884610824565b6001600160a01b0316145b806118275750815161182790610646611759565b9050806118465760405162461bcd60e51b815260040161084b906155d7565b846001600160a01b031682600001516001600160a01b03161461187b5760405162461bcd60e51b815260040161084b90615525565b6001600160a01b0384166118a15760405162461bcd60e51b815260040161084b9061527b565b6118ae8585856001610e5b565b6118be600084846000015161175d565b6001600160a01b03851660009081526004602052604081208054600192906118f09084906001600160801b0316615a55565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600460205260408120805460019450909261193c918591166159ba565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b0267ffffffffffffffff60a01b19929093166001600160a01b031990911617161790556119d18460016159e5565b6000818152600360205260409020549091506001600160a01b0316611a75576119f981611752565b15611a755760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526003909352949091209251835494516001600160a01b031990951692169190911767ffffffffffffffff60a01b1916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ac38686866001610e5b565b505050505050565b600081604051602001611ade9190614c32565b604051602081830303815290604052805190602001209050919050565b6000815160411415611b2f5760208201516040830151606084015160001a611b2586828585612d72565b9350505050610a0f565b815160401415611b575760208201516040830151611b4e858383612e68565b92505050610a0f565b60405162461bcd60e51b815260040161084b90615171565b611b77613324565b6000611b838333612e92565b90506000611b96826028600060ff612ee2565b9050600060748260ff161015611bae57506000611c02565b60c18260ff161015611bc257506001611c02565b60f48260ff161015611bd657506002611c02565b60fc8260ff161015611bea57506003611c02565b60ff8260ff161015611bfe57506004611c02565b5060055b6000611c1384603060006002612ee2565b9050600060ff8216611c2757506000611c4b565b8160ff1660011415611c3b57506001611c4b565b8160ff1660021415611c4b575060025b6040518060e00160405280611c65876000600160ff612ee2565b60ff168152602001611c7c876008600160ff612ee2565b60ff168152602001611c93876010600160ff612ee2565b60ff168152602001611caa876018600160ff612ee2565b60ff168152602001611cc1876020600160ff612ee2565b60ff168152602001846005811115611ce957634e487b7160e01b600052602160045260246000fd5b8152602001826002811115611d0e57634e487b7160e01b600052602160045260246000fd5b9052979650505050505050565b610a83828260405180602001604052806000815250612f31565b611d3d613360565b611d4682611752565b611d625760405162461bcd60e51b815260040161084b906151ee565b60007f00000000000000000000000000000000000000000000000000000000000000148310611dc357611db57f000000000000000000000000000000000000000000000000000000000000001484615a7d565b611dc09060016159e5565b90505b825b818110611e2e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611e1b5792506106f3915050565b5080611e2681615ae3565b915050611dc5565b5060405162461bcd60e51b815260040161084b9061581d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611ead846001600160a01b03166131a3565b15611fa957836001600160a01b031663150b7a02611ec9611759565b8786866040518563ffffffff1660e01b8152600401611eeb9493929190614fb1565b602060405180830381600087803b158015611f0557600080fd5b505af1925050508015611f35575060408051601f3d908101601f19168201909252611f329181019061365b565b60015b611f8f573d808015611f63576040519150601f19603f3d011682016040523d82523d6000602084013e611f68565b606091505b508051611f875760405162461bcd60e51b815260040161084b906156d9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fad565b5060015b949350505050565b611fbd613377565b81600080611fc9613377565b60005b845181101561206d57848181518110611ff557634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916601f60fa1b141561205b5761201b8785836131a9565b82846005811061203b57634e487b7160e01b600052603260045260246000fd5b602002015261204b8160016159e5565b93506120586001846159e5565b92505b8061206581615b35565b915050611fcc565b5061207a868486516131a9565b608082015295945050505050565b6060816120ad57506040805180820190915260018152600360fc1b60208201526106f3565b8160005b81156120d757806120c181615b35565b91506120d09050600a83615a22565b91506120b1565b6000816001600160401b038111156120ff57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612129576020820181803683370190505b5090505b8415611fad5761213e600183615a7d565b915061214b600a86615b70565b6121569060306159e5565b60f81b81838151811061217957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061219b600a86615a22565b945061212d565b606060006040516020016121b590614e14565b6040516020818303038152906040529050806121d88560800151600160ff610aa2565b6121fd576040518060400160405280600381526020016233333360e91b81525061221a565b6040518060400160405280600381526020016206666360ec1b8152505b61222b8660600151600160ff610aa2565b612250576040518060400160405280600381526020016233333360e91b81525061226d565b6040518060400160405280600381526020016206666360ec1b8152505b61227e8760200151600160ff610aa2565b6122a3576040518060400160405280600381526020016233333360e91b8152506122c0565b6040518060400160405280600381526020016206666360ec1b8152505b6122d18860400151600160ff610aa2565b6122f6576040518060400160405280600381526020016233333360e91b815250612313565b6040518060400160405280600381526020016206666360ec1b8152505b604051602001612327959493929190614257565b604051602081830303815290604052905080612349856000015160ff16612088565b60405160200161235a9291906144b7565b60408051808303601f19018152828252602080870151928701516060880151608089015193965061239395879594929391929101614361565b6040516020818303038152906040529050806123b5856080015160ff16612088565b6123c5866040015160ff16612088565b6123d5876020015160ff16612088565b6123e5886060015160ff16612088565b6040516020016123f995949392919061462e565b60408051601f198184030181529190529050606060018560a00151600581111561243357634e487b7160e01b600052602160045260246000fd5b1415612459575060408051808201909152600381526206630360ec1b60208201526125a5565b60028560a00151600581111561247f57634e487b7160e01b600052602160045260246000fd5b14156124a5575060408051808201909152600381526233633360e81b60208201526125a5565b60038560a0015160058111156124cb57634e487b7160e01b600052602160045260246000fd5b14156124f1575060408051808201909152600381526206639360ec1b60208201526125a5565b60048560a00151600581111561251757634e487b7160e01b600052602160045260246000fd5b141561253d5750604080518082019091526003815262331b3360e91b60208201526125a5565b60058560a00151600581111561256357634e487b7160e01b600052602160045260246000fd5b1415612589575060408051808201909152600381526236336360e81b60208201526125a5565b5060408051808201909152600381526218183360e91b60208201525b8351829082906125b489612088565b6040516020016125c79493929190613aa1565b60408051808303601f190181529190529695505050505050565b606081516000141561260257506040805160208101909152600081526106f3565b6000604051806060016040528060408152602001615bf3604091399050600060038451600261263191906159e5565b61263b9190615a22565b612646906004615a36565b905060006126558260206159e5565b6001600160401b0381111561267a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126a4576020820181803683370190505b509050818152600183018586518101602084015b818310156127125760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016126b8565b60038951066001811461272c576002811461273d57612749565b613d3d60f01b600119830152612749565b603d60f81b6000198301525b509398975050505050505050565b6040805180820190915260018152605b60f81b602082015281516060919081906127839060ff16612088565b604051602001612794929190614aaf565b6040516020818303038152906040529050806127b6846080015160ff16612088565b6040516020016127c7929190614b1d565b6040516020818303038152906040529050806127e9846060015160ff16612088565b6040516020016127fa929190614b95565b60405160208183030381529060405290508061281c846020015160ff16612088565b60405160200161282d9291906149db565b60405160208183030381529060405290508061284f846040015160ff16612088565b60405160200161286092919061487e565b604051602081830303815290604052905060006128848460800151600160ff610aa2565b15612897578061289381615b50565b9150505b6128a88460600151600160ff610aa2565b156128bb57806128b781615b50565b9150505b6128cc8460200151600160ff610aa2565b156128df57806128db81615b50565b9150505b6128f08460400151600160ff610aa2565b1561290357806128ff81615b50565b9150505b816129108260ff16612088565b60405160200161292192919061477f565b604051602081830303815290604052915060608160ff1660001415612963575060408051808201909152600681526524b73a32b93760d11b6020820152612a29565b8160ff166001141561299557506040805180820190915260098152684173736f636961746560b81b6020820152612a29565b8160ff16600214156129c5575060408051808201909152600781526626b0b730b3b2b960c91b6020820152612a29565b8160ff16600314156129f657506040805180820190915260088152672234b932b1ba37b960c11b6020820152612a29565b8160ff1660041415612a29575060408051808201909152600e81526d159a58d948141c995cda59195b9d60921b60208201525b8281604051602001612a3c929190614804565b60408051601f198184030181529190529250606060008660c001516002811115612a7657634e487b7160e01b600052602160045260246000fd5b1415612a9f5750604080518082019091526006815265476c6f73737960d01b6020820152612b37565b60018660c001516002811115612ac557634e487b7160e01b600052602160045260246000fd5b1415612aed57506040805180820190915260058152644d6174746560d81b6020820152612b37565b60028660c001516002811115612b1357634e487b7160e01b600052602160045260246000fd5b1415612b37575060408051808201909152600581526429b0ba34b760d91b60208201525b8381604051602001612b4a9291906148ee565b60408051601f198184030181529190529350606060018760a001516005811115612b8457634e487b7160e01b600052602160045260246000fd5b1415612baa575060408051808201909152600381526214995960ea1b6020820152612d00565b60028760a001516005811115612bd057634e487b7160e01b600052602160045260246000fd5b1415612bf8575060408051808201909152600581526423b932b2b760d91b6020820152612d00565b60038760a001516005811115612c1e57634e487b7160e01b600052602160045260246000fd5b1415612c4757506040805180820190915260068152654f72616e676560d01b6020820152612d00565b60048760a001516005811115612c6d57634e487b7160e01b600052602160045260246000fd5b1415612c94575060408051808201909152600481526350696e6b60e01b6020820152612d00565b60058760a001516005811115612cba57634e487b7160e01b600052602160045260246000fd5b1415612ce35750604080518082019091526006815265507572706c6560d01b6020820152612d00565b50604080518082019091526004815263426c756560e01b60208201525b8481604051602001612d13929190614968565b604051602081830303815290604052945084604051602001612d359190614a53565b604051602081830303815290604052945084604051602001612d579190614c0d565b60408051808303601f19018152919052979650505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115612db45760405162461bcd60e51b815260040161084b90615322565b8360ff16601b1480612dc957508360ff16601c145b612de55760405162461bcd60e51b815260040161084b90615438565b600060018686868660405160008152602001604052604051612e0a949392919061509a565b6020604051602081039080840390855afa158015612e2c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612e5f5760405162461bcd60e51b815260040161084b906150cb565b95945050505050565b60006001600160ff1b03821660ff83901c601b01612e8886828785612d72565b9695505050505050565b6009805460009182612ea383615b35565b919050555042448484600954604051602001612ec3959493929190614f67565b60408051601f1981840301815291905280516020909101209392505050565b600060ff81612ef18585615a94565b60ff9081169150861687901c8216600086612f0d8460016159e5565b612f1a9060ff8516615b70565b612f2491906159fd565b9998505050505050505050565b6000546001600160a01b038416612f5a5760405162461bcd60e51b815260040161084b9061578e565b612f6381611752565b15612f805760405162461bcd60e51b815260040161084b9061572c565b7f0000000000000000000000000000000000000000000000000000000000000014831115612fc05760405162461bcd60e51b815260040161084b906158e4565b612fcd6000858386610e5b565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906130299087906159ba565b6001600160801b0316815260200185836020015161304791906159ba565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087518154988401518816600160801b029088166fffffffffffffffffffffffffffffffff199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b0267ffffffffffffffff60a01b19959093166001600160a01b031990941693909317939093161790915582905b858110156131915760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46131556000888488611e99565b6131715760405162461bcd60e51b815260040161084b906156d9565b8161317b81615b35565b925050808061318990615b35565b915050613108565b506000818155611ac390878588610e5b565b3b151590565b60608360006131b88585615a7d565b6001600160401b038111156131dd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613207576020820181803683370190505b5090506000855b858110156132985783818151811061323657634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b83838151811061326157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161328281615b35565b925050808061329090615b35565b91505061320e565b50909695505050505050565b8280546132b090615afa565b90600052602060002090601f0160209004810192826132d25760008555613318565b82601f106132eb57805160ff1916838001178555613318565b82800160010185558215613318579182015b828111156133185782518255916020019190600101906132fd565b50610b1792915061339e565b6040805160e08101825260008082526020820181905291810182905260608101829052608081018290529060a082019081526020016000905290565b604080518082019091526000808252602082015290565b6040518060a001604052806005905b60608152602001906001900390816133865790505090565b5b80821115610b17576000815560010161339f565b60006001600160401b038311156133cc576133cc615bc6565b6133df601f8401601f1916602001615991565b90508281528383830111156133f357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146106f357600080fd5b803580151581146106f357600080fd5b600082601f830112613441578081fd5b613450838335602085016133b3565b9392505050565b803560ff811681146106f357600080fd5b600060208284031215613479578081fd5b6134508261340a565b60008060408385031215613494578081fd5b61349d8361340a565b91506134ab6020840161340a565b90509250929050565b6000806000606084860312156134c8578081fd5b6134d18461340a565b92506134df6020850161340a565b9150604084013590509250925092565b60008060008060808587031215613504578081fd5b61350d8561340a565b935061351b6020860161340a565b92506040850135915060608501356001600160401b0381111561353c578182fd5b61354887828801613431565b91505092959194509250565b600080600060408486031215613568578283fd5b6135718461340a565b925060208401356001600160401b038082111561358c578384fd5b818601915086601f83011261359f578384fd5b8135818111156135ad578485fd5b87602080830285010111156135c0578485fd5b6020830194508093505050509250925092565b600080604083850312156135e5578182fd5b6135ee8361340a565b91506134ab60208401613421565b6000806040838503121561360e578182fd5b6136178361340a565b946020939093013593505050565b600060208284031215613636578081fd5b61345082613421565b600060208284031215613650578081fd5b813561345081615bdc565b60006020828403121561366c578081fd5b815161345081615bdc565b600060208284031215613688578081fd5b5035919050565b6000806000606084860312156136a3578081fd5b833592506020808501356001600160401b03808211156136c1578384fd5b818701915087601f8301126136d4578384fd5b8135818111156136e6576136e6615bc6565b6136f38485830201615991565b81815284810190848601875b8481101561373d57813587018d603f82011261371957898afd5b61372a8e8a830135604084016133b3565b85525092870192908701906001016136ff565b509097505050506040870135925080831115613757578384fd5b505061376586828701613431565b9150509250925092565b60008060008060008060c08789031215613787578384fd5b8635955061379760208801613457565b94506137a560408801613457565b93506137b360608801613457565b92506137c160808801613457565b91506137cf60a08801613457565b90509295509295509295565b6000806000606084860312156137ef578081fd5b6137f884613457565b925061380660208501613457565b915061381460408501613457565b90509250925092565b60008151808452613835816020860160208601615ab7565b601f01601f19169290920160200192915050565b6000815161385b818560208601615ab7565b9290920192915050565b7f3c74657874207472616e73666f726d3d227472616e736c6174652831362e373281527f203133332e3137292220666f6e742d66616d696c793d22417269616c2d426f6c60208201527f644d542c417269616c2220666f6e742d7765696768743d223730302220666f6e60408201526b3a16b9b4bd329e91191b911f60a11b6060820152606c0190565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b7f2220643d224d302030683530307638342e333348307a222f3e00000000000000815260190190565b6c3c706174682066696c6c3d222360981b8152600d0190565b6c1e17ba32bc3a1f1e17b9bb339f60991b8152600d0190565b661e17ba32bc3a1f60c91b815260070190565b607d60f81b815260010190565b7f2220643d224d38302e3933203333352e3436483439342e367637362e3637483881526718171c99bd11179f60c11b602082015260280190565b602360f81b815260010190565b7f2220643d224d38302e3933203431382e3135483439342e367637362e3637483881526718171c99bd11179f60c11b602082015260280190565b7f3c2f746578743e3c74657874207472616e73666f726d3d227472616e736c617481527f652831362e37322035312e3833292220666f6e742d66616d696c793d2241726960208201527f616c2d426f6c644d542c417269616c2220666f6e742d7765696768743d22373060408201527f302220666f6e742d73697a653d223237222066696c6c3d2223666666223e00006060820152607e0190565b60008551613ab3818460208a01615ab7565b7f3c7061746820636c6173733d22682220643d224d3332322e3532203131322e359083019081527f682d32306131203120302030302d31203176323061312031203020303031203160208201527f683230613120312030203030312d31762d32306131203120302030302d312d3160408201527f7a6d2d3420396c2d352e333320352e33336131203120302030312d2e37312e3360608201527f2031203120302030312d2e37312d2e336c2d352e33332d352e3333613120312060808201527f30203031312e34312d312e34316c342e363320342e363220342e36322d342e3660a08201527f32613120312030203031312e343220302031203120302030312e303420312e3460c08201527f357a4d33382e3635203231356c2d352e37342d342e38352d312e313920312e3460e08201527f3261342e363820342e363820302030302d352e36352e37336c392e393320392e6101008201527f393361342e363620342e363620302030302e37342d352e36347a222f3e3c70616101208201527f746820636c6173733d22682220643d224d35312e3535203231302e393261342e6101408201527f353920342e353920302030302d322e33322e36336c2d32302d32332e3731682d6101608201527f382e373676382e37346c32332e373120323061342e363820342e3638203020306101808201527f302e373420352e36336c392e39342d392e393461342e363620342e36362030206101a08201527f30302d332e33312d312e33357a4d3333203230326c2d382e33362d382e33374c6101c08201527f32362e33203139326c382e333720382e33367a6d32332e37352031382e38316c6101e08201527f2d332e35342d332e35352d332e333220332e333220332e353520332e353476336102008201527f2e373268372e3033762d372e3033682d332e37327a6d2d32392e30322d332e356102208201527f356c2d332e353520332e3535682d332e373176372e303368372e3033762d332e6102408201527f37326c332e35342d332e35342d332e33312d332e33327a222f3e3c70617468206102608201527f636c6173733d22682220643d224d35312e3732203138372e38344c34322031396102808201527f392e33366c362e333120372e34382031322e31362d31302e3235762d382e37356102a08201527f7a4d34372e3933203230326c2d312e36362d312e363620382e33362d382e33346102c08201527f20312e363620312e36357a6d2d372e34362036382e31356c2d313720352e31346102e08201527f7631322e3833633020382e333420362e38392031372e342031372032322e37376103008201527f2031302e31312d352e33372031372d31342e34332031372d32322e3737762d316103208201527f322e38337a6d302033372e38314333312e3738203330322e39342032362032396103408201527f352e31203236203238382e3132762d31302e39336c31342e34342d342e33357a6103608201527f6d2d372033392e3731632d322e36392031342e36312d342e38372031362e37396103808201527f2d31392e34372031392e34382031342e363120322e36392031362e373920342e6103a08201527f38372031392e34382031392e343820322e36392d31342e363120342e38372d316103c08201527f362e37392031392e34372d31392e34382d31342e36312d322e36392d31362e376103e08201527f392d342e38372d31392e34382d31392e34387a6d32312e31342032372e3431636104008201527f2d312e373120392e32392d332e312031302e36372d31322e33392031322e33386104208201527f20392e323920312e37312031302e363820332e312031322e33392031322e33396104408201527f20312e37312d392e323920332e30392d31302e36382031322e33382d31322e336104608201527f392d392e32392d312e37312d31302e36372d332e30392d31322e33382d31322e6104808201527f33387a4d33342e3531203437306c322e3233203220322e353420322e313761316104a08201527f2e383720312e38372030203030312e31392e343420312e383320312e383320306104c08201527f203030312e31392d2e34346c322e35372d322e313763352d342e333920382e386104e08201527f322d372e37352031312e35362d313120332e31392d332e383320342e36382d376105008201527f2e3320342e36382d31302e396131312e362031312e3620302030302d31312e376105208201527f392d31312e372031322e38342031322e383420302030302d382e3139203320316105408201527f322e38312031322e383120302030302d382e31382d334131312e362031312e366105608201527f203020303032302e343920343530633020372e393120352e35382031322e37336105808201527f2031342e30322032307a6d2d312e32392d31372e313268342e3835762d342e376105a08201527f3868342e383576342e373868342e383576342e3737682d342e383576342e37376105c08201527f682d342e3835762d342e3737682d342e3835762d342e37377a222f3e000000006105e082015261424c61424761424161423c61423761423161422c6142276142216105fc8a01613933565b8e613849565b61390a565b613865565b8a613849565b613a06565b6139bf565b86613849565b61394c565b979650505050505050565b60008651614269818460208b01615ab7565b6c3c706174682066696c6c3d222360981b908301818152875190919061429681600d850160208c01615ab7565b7f2220643d224d38302e3533203136392e3531483439342e327637362e36374838600d93909101928301526718171a99bd11179f60c11b602d8301526035820181905286516142ec816042850160208b01615ab7565b7f2220643d224d38302e3933203235322e3036483439342e367637362e36374838604293909101928301526718171c99bd11179f60c11b6062830152606a82015261435561435061424161434b614346607786018a613849565b613985565b613933565b6139cc565b98975050505050505050565b60008651614373818460208b01615ab7565b80830190507f3c7465787420636c6173733d226422207472616e73666f726d3d227472616e738152733630ba32941c98171c191019189b971a9894911f60611b602082015286516143cb816034840160208b01615ab7565b8082019150507f3c2f746578743e3c7465787420636c6173733d226422207472616e73666f726d8060348301527f3d227472616e736c6174652839302e3935203330302e303629223e00000000006054830152865161443181606f850160208b01615ab7565b606f92019182018190527f3d227472616e736c6174652839302e3232203338332e343729223e0000000000608f83015285516144748160aa850160208a01615ab7565b60aa9201918201527f3d227472616e736c6174652839312e3232203436362e313529223e000000000060ca8201526143556144b260e5830186613849565b613965565b600083516144c9818460208801615ab7565b7f3c7061746820643d224d362e3032203431382e31356836382e39347637362e369083019081527f3748362e30327a6d302d38322e37336836382e39347637362e363748362e303260208201527f7a4d36203235322e31396836382e39347637362e363748367a6d302d38322e3660408201527f396836382e39347637362e363748367a222066696c6c3d22236566656665662260608201527f2f3e3c7061746820643d224d352e37392038342e3333683333332e373576373860808201527f2e333348352e37397a6d3333392e35342030483439342e327637382e3333483360a0820152741a1a971999bd11103334b6361e9111b3333311179f60591b60c08201527f3c7465787420636c6173733d226422207472616e73666f726d3d227472616e7360d5820152743630ba3294199b9a171c9c9018999997189b94911f60591b60f58201526202428160ed1b61010a820152612e5f6144b261010d830186613849565b60008651614640818460208b01615ab7565b80830190507f3c7465787420636c6173733d2264206c22207472616e73666f726d3d227472618152733739b630ba32941a1c1a9019189b971a9894911f60611b60208201528651614698816034840160208b01615ab7565b8082019150507f3c2f746578743e3c7465787420636c6173733d2264206c22207472616e73666f8060348301527f726d3d227472616e736c61746528343835203436362e313529223e0000000000605483015286516146fe81606f850160208b01615ab7565b606f92019182018190527f726d3d227472616e736c61746528343835203338332e343729223e0000000000608f83015285516147418160aa850160208a01615ab7565b60aa9201918201527f726d3d227472616e736c61746528343835203330312e383629223e000000000060ca8201526143556144b260e5830186613849565b60008351614791818460208801615ab7565b80830190507f7b2274726169745f74797065223a2022486967686c6967687465642043656c6c8152621cc88b60ea1b602082015267113b30b63ab2911d60c11b602382015283516147e981602b840160208801615ab7565b611f4b60f21b602b9290910191820152602d01949350505050565b60008351614816818460208801615ab7565b7f7b2274726169745f74797065223a20224a6f62205469746c65222c000000000090830190815268113b30b63ab2911d1160b91b601b8201528351614862816024840160208801615ab7565b62089f4b60ea1b60249290910191820152602701949350505050565b60008351614890818460208801615ab7565b741ec89d1c985a5d17dd1e5c19488e889219585b088b605a1b90830190815267113b30b63ab2911d60c11b601582015283516148d381601d840160208801615ab7565b611f4b60f21b601d9290910191820152601f01949350505050565b60008351614900818460208801615ab7565b7f7b2274726169745f74797065223a202250617065722053746f636b222c00000090830190815268113b30b63ab2911d1160b91b601d820152835161494c816026840160208801615ab7565b62089f4b60ea1b60269290910191820152602901949350505050565b6000835161497a818460208801615ab7565b751ec89d1c985a5d17dd1e5c19488e8890dbdb1bdc888b60521b90830190815268113b30b63ab2911d1160b91b601682015283516149bf81601f840160208801615ab7565b62089f4b60ea1b601f9290910191820152602201949350505050565b600083516149ed818460208801615ab7565b7f7b2274726169745f74797065223a22437269746963616c222c0000000000000090830190815267113b30b63ab2911d60c11b60198201528351614a38816021840160208801615ab7565b611f4b60f21b60219290910191820152602301949350505050565b60008251614a65818460208701615ab7565b7f7b2274726169745f74797065223a202253686565742054797065222c00000000920191825250712276616c7565223a2247656e65736973227d60701b601c820152602e01919050565b60008351614ac1818460208801615ab7565b721ec89d1c985a5d17dd1e5c19488e889214088b606a1b90830190815267113b30b63ab2911d60c11b60138201528351614b0281601b840160208801615ab7565b611f4b60f21b601b9290910191820152601d01949350505050565b60008351614b2f818460208801615ab7565b7f7b2274726169745f74797065223a2241747461636b222c00000000000000000090830190815267113b30b63ab2911d60c11b60178201528351614b7a81601f840160208801615ab7565b611f4b60f21b601f9290910191820152602101949350505050565b60008351614ba7818460208801615ab7565b7f7b2274726169745f74797065223a22446566656e7365222c000000000000000090830190815267113b30b63ab2911d60c11b60188201528351614bf2816020808501908801615ab7565b611f4b60f21b60209290910191820152602201949350505050565b60008251614c1f818460208701615ab7565b605d60f81b920191825250600101919050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b60007f7b226e616d65223a20225368656574204669676874657220230000000000000082528551614c9b816019850160208a01615ab7565b6201016960ed1b6019918401918201528551614cbe81601c840160208a01615ab7565b7f222c20226465736372697074696f6e223a202253686565742046696768746572601c92909101918201527f206973206120636f6c6c656374696f6e206f662031303025206f6e2d63686169603c8201527f6e206669676874696e67207370726561647368656574732c207061636b656420605c8201527f7769746820756e6971756520616e6420756e7072656469637461626c65204750607c8201527f542d332067656e65726174656420706572736f6e616c69746965732e20436f6c609c8201527f6c6563742c207374616b652c20616e6420626174746c6520746f20736872656460bc8201527f20796f757220636f6d7065746974696f6e2e222c2022696d616765223a20226460dc8201527f6174613a696d6167652f7376672b786d6c3b6261736536342c0000000000000060fc82015261424c614e0f614241614e0a610115850189613849565b6138ef565b613978565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d223020302035303020353031223e3c6460208201526332b3399f60e11b60408201527f3c7374796c653e2e647b666f6e742d73697a653a323770783b666f6e742d666160448201527f6d696c793a417269616c4d542c417269616c7d2e687b66696c6c3a233939397d60648201527f2e6c7b746578742d616e63686f723a656e647d3c2f7374796c653e000000000060848201527f3c2f646566733e3c706174682066696c6c3d22236436643664362220643d224d609f82015270181018341a98183b1a9818a4183d11179f60791b60bf82015260d00190565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251614f5a81601d850160208701615ab7565b91909101601d0192915050565b94855260208501939093526040840191909152606090811b6bffffffffffffffffffffffff191690830152607482015260940190565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e889083018461381d565b6001600160a01b0384168152604060208201819052810182905260006001600160fb1b03831115615013578081fd5b6020830280856060850137919091016060019081529392505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b8281101561508257603f1988860301845261507085835161381d565b94509285019290850190600101615054565b5092979650505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b600060208252613450602083018461381d565b60208082526018908201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604082015260600190565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b602080825260139082015272151bdad95b88191bd95cdb89dd08195e1a5cdd606a1b604082015260600190565b6020808252601f908201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756040820152626e647360e81b606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526018908201527f496e76616c6964206e756d626572206f6620746f6b656e730000000000000000604082015260600190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604082015261756560f01b606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b602080825260129082015271496e76616c696420706172616d657465727360701b604082015260600190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526022908201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604082015261756560f01b606082015260800190565b60208082526017908201527f4f6e6c79206272696467652063616e20646f2074686973000000000000000000604082015260600190565b602080825260149082015273125b9cdd59999a58da595b9d081c185e5b595b9d60621b604082015260600190565b60208082526026908201527f5468657265206172656e27742074686174206d616e7920756e6d696e74656420604082015265746f6b656e7360d01b606082015260800190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746040820152651037bbb732b960d11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526019908201527f5368656574206861736e2774206265656e206272696467656400000000000000604082015260600190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201526132b960f11b606082015260800190565b6020808252601f908201527f5369676e61747572652068617320616c7265616479206265656e207573656400604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b602080825260119082015270109c9a5919d9481a5cc81b9bdd081cd95d607a1b604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201526d0deeedccae440c4f240d2dcc8caf60931b606082015260800190565b6020808252602f908201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560408201526e1037bbb732b91037b3103a37b5b2b760891b606082015260800190565b602080825260119082015270135a5b9d1a5b99c81a5cc818db1bdcd959607a1b604082015260600190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201526c3c34b9ba32b73a103a37b5b2b760991b606082015260800190565b60208082526022908201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696040820152610ced60f31b606082015260800190565b90815260200190565b60ff88811682528781166020830152868116604083015285811660608301528416608082015260e081016006841061596957615969615bb0565b8360a08301526003831061597f5761597f615bb0565b8260c083015298975050505050505050565b6040518181016001600160401b03811182821017156159b2576159b2615bc6565b604052919050565b60006001600160801b038083168185168083038211156159dc576159dc615b84565b01949350505050565b600082198211156159f8576159f8615b84565b500190565b600060ff821660ff84168060ff03821115615a1a57615a1a615b84565b019392505050565b600082615a3157615a31615b9a565b500490565b6000816000190483118215151615615a5057615a50615b84565b500290565b60006001600160801b0383811690831681811015615a7557615a75615b84565b039392505050565b600082821015615a8f57615a8f615b84565b500390565b600060ff821660ff841680821015615aae57615aae615b84565b90039392505050565b60005b83811015615ad2578181015183820152602001615aba565b83811115610e5b5750506000910152565b600081615af257615af2615b84565b506000190190565b600281046001821680615b0e57607f821691505b60208210811415615b2f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615b4957615b49615b84565b5060010190565b600060ff821660ff811415615b6757615b67615b84565b60010192915050565b600082615b7f57615b7f615b9a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461173057600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220a39423419ea819f5f7a52b5e348c0c2a99135648a0064979a7795c16d8deed2264736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a92dd99918c75c9d57194e656fe21e2051b0d345
-----Decoded View---------------
Arg [0] : _mintSigner (address): 0xA92DD99918C75C9d57194e656fe21e2051b0D345
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a92dd99918c75c9d57194e656fe21e2051b0d345
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.