Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
39 PRIME
Holders
7
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 PRIMELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
PRIME
Compiler Version
v0.7.4+commit.3f05b770
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-03 */ /* PRIME1000.io PRIME ERC-721 TOKEN $PRIME Each $PRIME token represents one of the first 1000 prime numbers. $PRIME tokens are issued from the largest prime number in the set (7919) - ID 1 and end with prime number (2) - ID 1000. The price of each purchased $PRIME token increase from 0.05 ETH for the first 200 $PRIME tokens. Each Prime Token has a unique cryptographically generated badge image Website: https://PRIME1000.io Telegram: https://t.me/primenft */ pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); // /** // * TODO: Add comment // */ // function burn(uint256 burnQuantity) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev 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); } //import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } /** * @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; } /** * @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); } library StringUtils { struct slice { uint _len; uint _ptr; } function memcpy(uint dest, uint src, uint len) private pure { // Copy word-length chunks while possible for(; len >= 32; len -= 32) { assembly { mstore(dest, mload(src)) } dest += 32; src += 32; } // Copy remaining bytes uint mask = 256 ** (32 - len) - 1; assembly { let srcpart := and(mload(src), not(mask)) let destpart := and(mload(dest), mask) mstore(dest, or(destpart, srcpart)) } } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (_i != 0) { bstr[k--] = byte(uint8(48 + _i % 10)); _i /= 10; } return string(bstr); } /* * @dev Returns a slice containing the entire string. * @param self The string to make a slice from. * @return A newly allocated slice containing the entire string. */ function toSlice(string memory self) internal pure returns (slice memory) { uint ptr; assembly { ptr := add(self, 0x20) } return slice(bytes(self).length, ptr); } /* * @dev Returns the length of a null-terminated bytes32 string. * @param self The value to find the length of. * @return The length of the string, from 0 to 32. */ function len(bytes32 self) internal pure returns (uint) { uint ret; if (self == 0) return 0; if (self & bytes32(uint256(0xffffffffffffffffffffffffffffffff)) == 0) { ret += 16; self = bytes32(uint(self) / 0x100000000000000000000000000000000); } if (self & bytes32(uint256(0xffffffffffffffff)) == 0) { ret += 8; self = bytes32(uint(self) / 0x10000000000000000); } if (self & bytes32(uint256(0xffffffff)) == 0) { ret += 4; self = bytes32(uint(self) / 0x100000000); } if (self & bytes32(uint256(0xffff)) == 0) { ret += 2; self = bytes32(uint(self) / 0x10000); } if (self & bytes32(uint256(0xff)) == 0) { ret += 1; } return 32 - ret; } /* * @dev Returns a slice containing the entire bytes32, interpreted as a * null-terminated utf-8 string. * @param self The bytes32 value to convert to a slice. * @return A new slice containing the value of the input argument up to the * first null. */ function toSliceB32(bytes32 self) internal pure returns (slice memory ret) { // Allocate space for `self` in memory, copy it there, and point ret at it assembly { let ptr := mload(0x40) mstore(0x40, add(ptr, 0x20)) mstore(ptr, self) mstore(add(ret, 0x20), ptr) } ret._len = len(self); } /* * @dev Returns a new slice containing the same data as the current slice. * @param self The slice to copy. * @return A new slice containing the same data as `self`. */ function copy(slice memory self) internal pure returns (slice memory) { return slice(self._len, self._ptr); } /* * @dev Copies a slice to a new string. * @param self The slice to copy. * @return A newly allocated string containing the slice's text. */ function toString(slice memory self) internal pure returns (string memory) { string memory ret = new string(self._len); uint retptr; assembly { retptr := add(ret, 32) } memcpy(retptr, self._ptr, self._len); return ret; } /* * @dev Returns the length in runes of the slice. Note that this operation * takes time proportional to the length of the slice; avoid using it * in loops, and call `slice.empty()` if you only need to know whether * the slice is empty or not. * @param self The slice to operate on. * @return The length of the slice in runes. */ function len(slice memory self) internal pure returns (uint l) { // Starting at ptr-31 means the LSB will be the byte we care about uint ptr = self._ptr - 31; uint end = ptr + self._len; for (l = 0; ptr < end; l++) { uint8 b; assembly { b := and(mload(ptr), 0xFF) } if (b < 0x80) { ptr += 1; } else if(b < 0xE0) { ptr += 2; } else if(b < 0xF0) { ptr += 3; } else if(b < 0xF8) { ptr += 4; } else if(b < 0xFC) { ptr += 5; } else { ptr += 6; } } } /* * @dev Returns true if the slice is empty (has a length of 0). * @param self The slice to operate on. * @return True if the slice is empty, False otherwise. */ function empty(slice memory self) internal pure returns (bool) { return self._len == 0; } /* * @dev Returns a positive number if `other` comes lexicographically after * `self`, a negative number if it comes before, or zero if the * contents of the two slices are equal. Comparison is done per-rune, * on unicode codepoints. * @param self The first slice to compare. * @param other The second slice to compare. * @return The result of the comparison. */ function compare(slice memory self, slice memory other) internal pure returns (int) { uint shortest = self._len; if (other._len < self._len) shortest = other._len; uint selfptr = self._ptr; uint otherptr = other._ptr; for (uint idx = 0; idx < shortest; idx += 32) { uint a; uint b; assembly { a := mload(selfptr) b := mload(otherptr) } if (a != b) { // Mask out irrelevant bytes and check again uint256 mask = uint256(-1); // 0xffff... if(shortest < 32) { mask = ~(2 ** (8 * (32 - shortest + idx)) - 1); } uint256 diff = (a & mask) - (b & mask); if (diff != 0) return int(diff); } selfptr += 32; otherptr += 32; } return int(self._len) - int(other._len); } /* * @dev Returns true if the two slices contain the same text. * @param self The first slice to compare. * @param self The second slice to compare. * @return True if the slices are equal, false otherwise. */ function equals(slice memory self, slice memory other) internal pure returns (bool) { return compare(self, other) == 0; } /* * @dev Extracts the first rune in the slice into `rune`, advancing the * slice to point to the next rune and returning `self`. * @param self The slice to operate on. * @param rune The slice that will contain the first rune. * @return `rune`. */ function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) { rune._ptr = self._ptr; if (self._len == 0) { rune._len = 0; return rune; } uint l; uint b; // Load the first byte of the rune into the LSBs of b assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) } if (b < 0x80) { l = 1; } else if(b < 0xE0) { l = 2; } else if(b < 0xF0) { l = 3; } else { l = 4; } // Check for truncated codepoints if (l > self._len) { rune._len = self._len; self._ptr += self._len; self._len = 0; return rune; } self._ptr += l; self._len -= l; rune._len = l; return rune; } /* * @dev Returns the first rune in the slice, advancing the slice to point * to the next rune. * @param self The slice to operate on. * @return A slice containing only the first rune from `self`. */ function nextRune(slice memory self) internal pure returns (slice memory ret) { nextRune(self, ret); } /* * @dev Returns the number of the first codepoint in the slice. * @param self The slice to operate on. * @return The number of the first codepoint in the slice. */ function ord(slice memory self) internal pure returns (uint ret) { if (self._len == 0) { return 0; } uint word; uint length; uint divisor = 2 ** 248; // Load the rune into the MSBs of b assembly { word:= mload(mload(add(self, 32))) } uint b = word / divisor; if (b < 0x80) { ret = b; length = 1; } else if(b < 0xE0) { ret = b & 0x1F; length = 2; } else if(b < 0xF0) { ret = b & 0x0F; length = 3; } else { ret = b & 0x07; length = 4; } // Check for truncated codepoints if (length > self._len) { return 0; } for (uint i = 1; i < length; i++) { divisor = divisor / 256; b = (word / divisor) & 0xFF; if (b & 0xC0 != 0x80) { // Invalid UTF-8 sequence return 0; } ret = (ret * 64) | (b & 0x3F); } return ret; } /* * @dev Returns the keccak-256 hash of the slice. * @param self The slice to hash. * @return The hash of the slice. */ function keccak(slice memory self) internal pure returns (bytes32 ret) { assembly { ret := keccak256(mload(add(self, 32)), mload(self)) } } /* * @dev Returns true if `self` starts with `needle`. * @param self The slice to operate on. * @param needle The slice to search for. * @return True if the slice starts with the provided text, false otherwise. */ function startsWith(slice memory self, slice memory needle) internal pure returns (bool) { if (self._len < needle._len) { return false; } if (self._ptr == needle._ptr) { return true; } bool equal; assembly { let length := mload(needle) let selfptr := mload(add(self, 0x20)) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } return equal; } /* * @dev If `self` starts with `needle`, `needle` is removed from the * beginning of `self`. Otherwise, `self` is unmodified. * @param self The slice to operate on. * @param needle The slice to search for. * @return `self` */ function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) { if (self._len < needle._len) { return self; } bool equal = true; if (self._ptr != needle._ptr) { assembly { let length := mload(needle) let selfptr := mload(add(self, 0x20)) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } } if (equal) { self._len -= needle._len; self._ptr += needle._len; } return self; } /* * @dev Returns true if the slice ends with `needle`. * @param self The slice to operate on. * @param needle The slice to search for. * @return True if the slice starts with the provided text, false otherwise. */ function endsWith(slice memory self, slice memory needle) internal pure returns (bool) { if (self._len < needle._len) { return false; } uint selfptr = self._ptr + self._len - needle._len; if (selfptr == needle._ptr) { return true; } bool equal; assembly { let length := mload(needle) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } return equal; } /* * @dev If `self` ends with `needle`, `needle` is removed from the * end of `self`. Otherwise, `self` is unmodified. * @param self The slice to operate on. * @param needle The slice to search for. * @return `self` */ function until(slice memory self, slice memory needle) internal pure returns (slice memory) { if (self._len < needle._len) { return self; } uint selfptr = self._ptr + self._len - needle._len; bool equal = true; if (selfptr != needle._ptr) { assembly { let length := mload(needle) let needleptr := mload(add(needle, 0x20)) equal := eq(keccak256(selfptr, length), keccak256(needleptr, length)) } } if (equal) { self._len -= needle._len; } return self; } // Returns the memory address of the first byte of the first occurrence of // `needle` in `self`, or the first byte after `self` if not found. function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) { uint ptr = selfptr; uint idx; if (needlelen <= selflen) { if (needlelen <= 32) { bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1)); bytes32 needledata; assembly { needledata := and(mload(needleptr), mask) } uint end = selfptr + selflen - needlelen; bytes32 ptrdata; assembly { ptrdata := and(mload(ptr), mask) } while (ptrdata != needledata) { if (ptr >= end) return selfptr + selflen; ptr++; assembly { ptrdata := and(mload(ptr), mask) } } return ptr; } else { // For long needles, use hashing bytes32 hash; assembly { hash := keccak256(needleptr, needlelen) } for (idx = 0; idx <= selflen - needlelen; idx++) { bytes32 testHash; assembly { testHash := keccak256(ptr, needlelen) } if (hash == testHash) return ptr; ptr += 1; } } } return selfptr + selflen; } // Returns the memory address of the first byte after the last occurrence of // `needle` in `self`, or the address of `self` if not found. function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) { uint ptr; if (needlelen <= selflen) { if (needlelen <= 32) { bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1)); bytes32 needledata; assembly { needledata := and(mload(needleptr), mask) } ptr = selfptr + selflen - needlelen; bytes32 ptrdata; assembly { ptrdata := and(mload(ptr), mask) } while (ptrdata != needledata) { if (ptr <= selfptr) return selfptr; ptr--; assembly { ptrdata := and(mload(ptr), mask) } } return ptr + needlelen; } else { // For long needles, use hashing bytes32 hash; assembly { hash := keccak256(needleptr, needlelen) } ptr = selfptr + (selflen - needlelen); while (ptr >= selfptr) { bytes32 testHash; assembly { testHash := keccak256(ptr, needlelen) } if (hash == testHash) return ptr + needlelen; ptr -= 1; } } } return selfptr; } /* * @dev Modifies `self` to contain everything from the first occurrence of * `needle` to the end of the slice. `self` is set to the empty slice * if `needle` is not found. * @param self The slice to search and modify. * @param needle The text to search for. * @return `self`. */ function find(slice memory self, slice memory needle) internal pure returns (slice memory) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr); self._len -= ptr - self._ptr; self._ptr = ptr; return self; } /* * @dev Modifies `self` to contain the part of the string from the start of * `self` to the end of the first occurrence of `needle`. If `needle` * is not found, `self` is set to the empty slice. * @param self The slice to search and modify. * @param needle The text to search for. * @return `self`. */ function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) { uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr); self._len = ptr - self._ptr; return self; } /* * @dev Splits the slice, setting `self` to everything after the first * occurrence of `needle`, and `token` to everything before it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and `token` is set to the entirety of `self`. * @param self The slice to split. * @param needle The text to search for in `self`. * @param token An output parameter to which the first token is written. * @return `token`. */ function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr); token._ptr = self._ptr; token._len = ptr - self._ptr; if (ptr == self._ptr + self._len) { // Not found self._len = 0; } else { self._len -= token._len + needle._len; self._ptr = ptr + needle._len; } return token; } /* * @dev Splits the slice, setting `self` to everything after the first * occurrence of `needle`, and returning everything before it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and the entirety of `self` is returned. * @param self The slice to split. * @param needle The text to search for in `self`. * @return The part of `self` up to the first occurrence of `delim`. */ function split(slice memory self, slice memory needle) internal pure returns (slice memory token) { split(self, needle, token); } /* * @dev Splits the slice, setting `self` to everything before the last * occurrence of `needle`, and `token` to everything after it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and `token` is set to the entirety of `self`. * @param self The slice to split. * @param needle The text to search for in `self`. * @param token An output parameter to which the first token is written. * @return `token`. */ function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) { uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr); token._ptr = ptr; token._len = self._len - (ptr - self._ptr); if (ptr == self._ptr) { // Not found self._len = 0; } else { self._len -= token._len + needle._len; } return token; } /* * @dev Splits the slice, setting `self` to everything before the last * occurrence of `needle`, and returning everything after it. If * `needle` does not occur in `self`, `self` is set to the empty slice, * and the entirety of `self` is returned. * @param self The slice to split. * @param needle The text to search for in `self`. * @return The part of `self` after the last occurrence of `delim`. */ function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) { rsplit(self, needle, token); } /* * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`. * @param self The slice to search. * @param needle The text to search for in `self`. * @return The number of occurrences of `needle` found in `self`. */ function count(slice memory self, slice memory needle) internal pure returns (uint cnt) { uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len; while (ptr <= self._ptr + self._len) { cnt++; ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len; } } /* * @dev Returns True if `self` contains `needle`. * @param self The slice to search. * @param needle The text to search for in `self`. * @return True if `needle` is found in `self`, false otherwise. */ function contains(slice memory self, slice memory needle) internal pure returns (bool) { return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr; } /* * @dev Returns a newly allocated string containing the concatenation of * `self` and `other`. * @param self The first slice to concatenate. * @param other The second slice to concatenate. * @return The concatenation of the two strings. */ function concat(slice memory self, slice memory other) internal pure returns (string memory) { string memory ret = new string(self._len + other._len); uint retptr; assembly { retptr := add(ret, 32) } memcpy(retptr, self._ptr, self._len); memcpy(retptr + self._len, other._ptr, other._len); return ret; } /* * @dev Joins an array of slices, using `self` as a delimiter, returning a * newly allocated string. * @param self The delimiter to use. * @param parts A list of slices to join. * @return A newly allocated string containing all the slices in `parts`, * joined with `self`. */ function join(slice memory self, slice[] memory parts) internal pure returns (string memory) { if (parts.length == 0) return ""; uint length = self._len * (parts.length - 1); for(uint i = 0; i < parts.length; i++) length += parts[i]._len; string memory ret = new string(length); uint retptr; assembly { retptr := add(ret, 32) } for(uint i = 0; i < parts.length; i++) { memcpy(retptr, parts[i]._ptr, parts[i]._len); retptr += parts[i]._len; if (i < parts.length - 1) { memcpy(retptr, self._ptr, self._len); retptr += self._len; } } return ret; } } /** * @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); // function tokenURI(uint256 _tokenId) external view returns (string memory); } /** * @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); } /* * @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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ abstract contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory tokenName, string memory tokenSymbol) { _name = tokenName; _symbol = tokenSymbol; _decimals = 18; _balances[msg.sender] = 500000000e18; _totalSupply = 500000000e18; emit Transfer(address(0), msg.sender, 500000000e18); } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } /** * ERC-20 BONUS Tokens issued to initial buyers of PRIME NFT Tokens */ contract PRIToken is ERC20("PRIME1000.io | PRI Bonus Token", "PRI"), Ownable { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } function burn(uint256 _amount) public { _burn(msg.sender, _amount); } } /** * @title PRIME contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */ contract PRIME is Context, Ownable, ERC165, IERC721Metadata { using SafeMath for uint256; using Address for address; using EnumerableSet for EnumerableSet.UintSet; using EnumerableMap for EnumerableMap.UintToAddressMap; //using Strings for uint256; mapping (uint => uint) public primeMap; uint public PRIRate = 10000; //Bonus PRI Tokens PRIToken public PRI; uint public startPrime = 7919; uint public lastPrime = startPrime; mapping(uint256 => string) internal tokenURIs; // Public variables // This is the provenance record of all PRIME TOKENS in existence string public constant PRIME_PROVENANCE = "45940F09304A7A5816731EC050B38436DE43F6AE7F6F284FF908B0396507024F"; uint256 public constant MAX_NFT_SUPPLY = 1000; uint256 public startingIndex; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from holder address to their (enumerable) set of owned tokens mapping (address => EnumerableSet.UintSet) private _holderTokens; // Enumerable mapping from token ids to their owners EnumerableMap.UintToAddressMap private _tokenOwners; // 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; // Token name string private _name; // Token symbol string private _symbol; // // Name change token address // address private _nctAddress; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * * => 0x06fdde03 ^ 0x95d89b41 == 0x93254542 */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x93254542; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (PRIToken PRIAddress) { _name = 'PRIME1000.io | PRIME NFT'; _symbol = 'PRIME'; PRI = PRIAddress; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); _registerInterface(_INTERFACE_ID_ERC721_METADATA); _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } // Generate PRI Tokens for initial buyers of PRIME NFT function bonusTokens(address _to, uint256 amount) internal { PRI.mint(_to, amount); } function setPRIRate(uint _rate) public onlyOwner { PRIRate = _rate; } function tokenURI(uint256 _tokenId) external view returns (string memory) { return StringUtils.concat( StringUtils.toSlice('https://prime1000.io/api/token/'), StringUtils.toSlice(StringUtils.uint2str(_tokenId)) ); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _holderTokens[owner].length(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token"); } /** * @dev See {IERC721Metadata-name}. */ function name() public view override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view override returns (string memory) { return _symbol; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { return _holderTokens[owner].at(index); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds return _tokenOwners.length(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view returns (uint256) { (uint256 tokenId, ) = _tokenOwners.at(index); return tokenId; } /** * @dev Returns Prime Number of the NFT at index. */ function tokenPrimeByIndex(uint index) public view returns (uint) { return primeMap[index]; } function sqrt(uint x) internal pure returns (uint y) { uint z = (x + 1) / 2; y = x; while (z < y) { y = z; z = (x / z + z) / 2; } } function isPrime(uint num) internal pure returns (bool) { if(num <= 1){ return false; } if(num <= 3){ return true; } if (num%2 == 0 || num%3 == 0) return false; for (uint i = 5; i * i <= num; i = i + 6) { if (num % i == 0 || num % (i + 2) == 0) return false; } return true; } function getNextPrime() internal view returns (uint) { if(lastPrime <= 2){ return 2; } for (uint i = lastPrime-1; i >= 2; i--) { if(isPrime(i)){ //lastPrime = i; //{ break; } return i; } } // return lastPrime; } /** * @dev Gets PRIME Prices */ function getNFTPrice(uint numTokens) public view returns (uint256) { require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended"); uint currentSupply = totalSupply()+numTokens; uint totalPrice = 0; for(uint i=1;i<= numTokens;i++){ if (currentSupply >= 1000) { totalPrice += 200 ether; // ID 1000 *** 200 ETH ** ID 1000 => PRIME NUMBER 12 currentSupply--; } else if (currentSupply >= 998) { totalPrice += 100 ether; // ID 998 - 999 100 ETH ** ID 999 => PRIME NUMBER 3 currentSupply--; } else if (currentSupply >= 995) { totalPrice += 50 ether; // ID 995 - 999 50 ETH ** ID 995 => PRIME NUMBER 13 currentSupply--; } else if (currentSupply >= 990) { totalPrice += 30 ether; // ID 990- 994 30.0 ETH ** ID 990 => PRIME NUMBER 31 currentSupply--; } else if (currentSupply >= 980) { totalPrice += 20 ether; // ID 980- 989 20.0 ETH currentSupply--; } else if (currentSupply >= 970) { totalPrice += 10 ether; // ID 970- 979 10.0 ETH currentSupply--; } else if (currentSupply >= 960) { totalPrice += 5 ether; // ID 960- 969 5.0 ETH currentSupply--; } else if (currentSupply >= 950) { totalPrice += 2 ether; // ID 950- 959 2.0 ETH currentSupply--; } else if (currentSupply >= 925) { totalPrice += 1 ether; // ID 925- 949 1.0 ETH currentSupply--; } else if (currentSupply >= 900) { totalPrice += 0.7 ether; // ID 900- 924 0.7 ETH currentSupply--; } else if (currentSupply >= 800) { totalPrice += 0.6 ether; // ID 800 - 899 0.6 ETH currentSupply--; } else if (currentSupply >= 700) { totalPrice += 0.5 ether; // ID 700 - 799 0.5 ETH currentSupply--; } else if (currentSupply >= 600) { totalPrice += 0.4 ether; // ID 600 - 699 0.4 ETH currentSupply--; } else if (currentSupply >= 500) { totalPrice += 0.3 ether; // ID 500 - 599 0.3 ETH ** ID 500 => PRIME NUMBER 3581 currentSupply--; } else if (currentSupply >= 400) { totalPrice += 0.2 ether; // ID 400 - 499 0.2 ETH currentSupply--; } else if (currentSupply >= 300) { totalPrice += 0.1 ether; // ID 300 - 399 0.1 ETH currentSupply--; } else if (currentSupply >= 200) { totalPrice += 0.08 ether; // ID 200 - 299 0.08 ETH currentSupply--; } else { totalPrice += 0.05 ether; // ID 0 - 199 0.05 ETH ** ID 1 => PRIME NUMBER 7919 currentSupply--; } } return totalPrice; } /** * @dev Mints PRIME */ function mintNFT(uint256 numberOfNfts) public payable { require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended"); require(numberOfNfts > 0, "numberOfNfts cannot be 0"); require(numberOfNfts <= 40, "You may not buy more than 40 NFTs at once"); require(totalSupply().add(numberOfNfts) <= MAX_NFT_SUPPLY, "Exceeds MAX_NFT_SUPPLY"); require(getNFTPrice(numberOfNfts) <= msg.value, "Ether value sent is not adequate"); uint256 _bonusTokens = SafeMath.mul(msg.value , PRIRate); bonusTokens(msg.sender, _bonusTokens); //Buyer receives Bonus PRI tokens for (uint i = 0; i < numberOfNfts; i++) { uint mintIndex = totalSupply(); _safeMint(msg.sender, mintIndex+1); } } function getOwnerTokens(address _tokenOwner) public view returns(uint[] memory) { uint256[] memory _tokensOwned; uint foundCount = 0; for(uint i=1;i<=totalSupply();i++){ if(ownerOf(i) == _tokenOwner){ _tokensOwned[foundCount] = i; foundCount++; } } return _tokensOwned; } /** * @dev Withdraw ether from this contract (Callable by owner) */ function withdraw() onlyOwner public { uint balance = address(this).balance; msg.sender.transfer(balance); } function withdrawPartial(uint _amount) onlyOwner public { require(_amount <= address(this).balance, "!exceeds balance"); msg.sender.transfer(_amount); } function withdrawToken(address tokenAddress) onlyOwner public { IERC20 Token = IERC20(tokenAddress); uint256 currentTokenBalance = Token.balanceOf(address(this)); Token.transfer(msg.sender, currentTokenBalance); } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view returns (bool) { return _tokenOwners.contains(tokenId); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: d* * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mintNFT(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mintNFT(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); // tokenURIs[tokenId] = _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); primeMap[tokenId] = lastPrime; lastPrime = getNextPrime(); emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burnNFT(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _holderTokens[owner].remove(tokenId); _tokenOwners.remove(tokenId); emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _holderTokens[from].remove(tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(from, to, tokenId); } /** * @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()) { return true; } bytes memory returndata = to.functionCall(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver implementer"); bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } function _approve(address to, uint256 tokenId) private { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } } /** * @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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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.3._ */ 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.3._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @dev Library for managing an enumerable variant of Solidity's * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] * type. * * Maps have the following properties: * * - Entries are added, removed, and checked for existence in constant time * (O(1)). * - Entries are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableMap for EnumerableMap.UintToAddressMap; * * // Declare a set state variable * EnumerableMap.UintToAddressMap private myMap; * } * ``` * * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are * supported. */ library EnumerableMap { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Map type with // bytes32 keys and values. // The Map implementation uses private functions, and user-facing // implementations (such as Uint256ToAddressMap) are just wrappers around // the underlying Map. // This means that we can only create new EnumerableMaps for types that fit // in bytes32. struct MapEntry { bytes32 _key; bytes32 _value; } struct Map { // Storage of map keys and values MapEntry[] _entries; // Position of the entry defined by a key in the `entries` array, plus 1 // because index 0 means a key is not in the map. mapping (bytes32 => uint256) _indexes; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex == 0) { // Equivalent to !contains(map, key) map._entries.push(MapEntry({ _key: key, _value: value })); // The entry is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value map._indexes[key] = map._entries.length; return true; } else { map._entries[keyIndex - 1]._value = value; return false; } } /** * @dev Removes a key-value pair from a map. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function _remove(Map storage map, bytes32 key) private returns (bool) { // We read and store the key's index to prevent multiple reads from the same storage slot uint256 keyIndex = map._indexes[key]; if (keyIndex != 0) { // Equivalent to contains(map, key) // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one // in the array, and then remove the last entry (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = keyIndex - 1; uint256 lastIndex = map._entries.length - 1; // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. MapEntry storage lastEntry = map._entries[lastIndex]; // Move the last entry to the index where the entry to delete is map._entries[toDeleteIndex] = lastEntry; // Update the index for the moved entry map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved entry was stored map._entries.pop(); // Delete the index for the deleted slot delete map._indexes[key]; return true; } else { return false; } } /** * @dev Returns true if the key is in the map. O(1). */ function _contains(Map storage map, bytes32 key) private view returns (bool) { return map._indexes[key] != 0; } /** * @dev Returns the number of key-value pairs in the map. O(1). */ function _length(Map storage map) private view returns (uint256) { return map._entries.length; } /** * @dev Returns the key-value pair stored at position `index` in the map. O(1). * * Note that there are no guarantees on the ordering of entries inside the * array, and it may change when more entries are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) { require(map._entries.length > index, "EnumerableMap: index out of bounds"); MapEntry storage entry = map._entries[index]; return (entry._key, entry._value); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function _get(Map storage map, bytes32 key) private view returns (bytes32) { return _get(map, key, "EnumerableMap: nonexistent key"); } /** * @dev Same as {_get}, with a custom error message when `key` is not in the map. */ function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) { uint256 keyIndex = map._indexes[key]; require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key) return map._entries[keyIndex - 1]._value; // All indexes are 1-based } // UintToAddressMap struct UintToAddressMap { Map _inner; } /** * @dev Adds a key-value pair to a map, or updates the value for an existing * key. O(1). * * Returns true if the key was added to the map, that is if it was not * already present. */ function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { return _set(map._inner, bytes32(key), bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the key was removed from the map, that is if it was present. */ function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { return _remove(map._inner, bytes32(key)); } /** * @dev Returns true if the key is in the map. O(1). */ function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { return _contains(map._inner, bytes32(key)); } /** * @dev Returns the number of elements in the map. O(1). */ function length(UintToAddressMap storage map) internal view returns (uint256) { return _length(map._inner); } /** * @dev Returns the element stored at position `index` in the set. O(1). * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint256(value))); } /** * @dev Returns the value associated with `key`. O(1). * * Requirements: * * - `key` must be in the map. */ function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key)))); } /** * @dev Same as {get}, with a custom error message when `key` is not in the map. */ function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) { return address(uint256(_get(map._inner, bytes32(key), errorMessage))); } } /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract PRIToken","name":"PRIAddress","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_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRI","outputs":[{"internalType":"contract PRIToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIME_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRIRate","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"getNFTPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenOwner","type":"address"}],"name":"getOwnerTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPrime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfNfts","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"primeMap","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setPRIRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPrime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"index","type":"uint256"}],"name":"tokenPrimeByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600355611eef6005556005546006553480156200002357600080fd5b506040516200443b3803806200443b833981810160405260208110156200004957600080fd5b810190808051906020019092919050505060006200006c6200024e60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350620001226301ffc9a760e01b6200025660201b60201c565b6040518060400160405280601881526020017f5052494d45313030302e696f207c205052494d45204e46540000000000000000815250600e90805190602001906200016f9291906200035f565b506040518060400160405280600581526020017f5052494d45000000000000000000000000000000000000000000000000000000815250600f9080519060200190620001bd9291906200035f565b5080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002176380ac58cd60e01b6200025660201b60201c565b6200022f639325454260e01b6200025660201b60201c565b6200024763780e9d6360e01b6200025660201b60201c565b5062000415565b600033905090565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620002f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003975760008555620003e3565b82601f10620003b257805160ff1916838001178555620003e3565b82800160010185558215620003e3579182015b82811115620003e2578251825591602001919060010190620003c5565b5b509050620003f29190620003f6565b5090565b5b8082111562000411576000816000905550600101620003f7565b5090565b61401680620004256000396000f3fe6080604052600436106101f95760003560e01c8063894760691161010d578063ba9ddfcc116100a0578063cc5232871161006f578063cc52328714610c90578063d63d4af014610cbb578063e985e9c514610d61578063f2fde38b14610de8578063fc031e6c14610e39576101f9565b8063ba9ddfcc14610af6578063bd85012514610b21578063c87b56dd14610bb1578063cb774d4714610c65576101f9565b806395d89b41116100dc57806395d89b41146108cc578063a22cb4651461095c578063b5077f44146109b9578063b88d4fde146109e4576101f9565b806389476069146107bd5780638da5cb5b1461080e578063926427441461084f578063929761791461087d576101f9565b806323b872dd1161019057806342842e0e1161015f57806342842e0e146105fe5780634f6ccce7146106795780635afef307146106c85780636352211e146106f357806370a0823114610758576101f9565b806323b872dd146104c25780632c241f911461053d5780632f745c59146105785780633ccfd60b146105e7576101f9565b806310fc936f116101cc57806310fc936f146103be5780631211540c1461040d57806314e2c7bf1461044857806318160ddd14610497576101f9565b806301ffc9a7146101fe57806306fdde031461026e578063081812fc146102fe578063095ea7b314610363575b600080fd5b34801561020a57600080fd5b506102566004803603602081101561022157600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610e7a565b60405180821515815260200191505060405180910390f35b34801561027a57600080fd5b50610283610ee2565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102c35780820151818401526020810190506102a8565b50505050905090810190601f1680156102f05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030a57600080fd5b506103376004803603602081101561032157600080fd5b8101908080359060200190929190505050610f84565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561036f57600080fd5b506103bc6004803603604081101561038657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061101f565b005b3480156103ca57600080fd5b506103f7600480360360208110156103e157600080fd5b8101908080359060200190929190505050611163565b6040518082815260200191505060405180910390f35b34801561041957600080fd5b506104466004803603602081101561043057600080fd5b8101908080359060200190929190505050611180565b005b34801561045457600080fd5b506104816004803603602081101561046b57600080fd5b8101908080359060200190929190505050611308565b6040518082815260200191505060405180910390f35b3480156104a357600080fd5b506104ac611320565b6040518082815260200191505060405180910390f35b3480156104ce57600080fd5b5061053b600480360360608110156104e557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611331565b005b34801561054957600080fd5b506105766004803603602081101561056057600080fd5b81019080803590602001909291905050506113a7565b005b34801561058457600080fd5b506105d16004803603604081101561059b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611479565b6040518082815260200191505060405180910390f35b3480156105f357600080fd5b506105fc6114d4565b005b34801561060a57600080fd5b506106776004803603606081101561062157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506115eb565b005b34801561068557600080fd5b506106b26004803603602081101561069c57600080fd5b810190808035906020019092919050505061160b565b6040518082815260200191505060405180910390f35b3480156106d457600080fd5b506106dd61162e565b6040518082815260200191505060405180910390f35b3480156106ff57600080fd5b5061072c6004803603602081101561071657600080fd5b8101908080359060200190929190505050611634565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561076457600080fd5b506107a76004803603602081101561077b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061166b565b6040518082815260200191505060405180910390f35b3480156107c957600080fd5b5061080c600480360360208110156107e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611740565b005b34801561081a57600080fd5b50610823611965565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61087b6004803603602081101561086557600080fd5b810190808035906020019092919050505061198e565b005b34801561088957600080fd5b506108b6600480360360208110156108a057600080fd5b8101908080359060200190929190505050611c3c565b6040518082815260200191505060405180910390f35b3480156108d857600080fd5b506108e1611f7f565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610921578082015181840152602081019050610906565b50505050905090810190601f16801561094e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561096857600080fd5b506109b76004803603604081101561097f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612021565b005b3480156109c557600080fd5b506109ce6121d7565b6040518082815260200191505060405180910390f35b3480156109f057600080fd5b50610af460048036036080811015610a0757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610a6e57600080fd5b820183602082011115610a8057600080fd5b80359060200191846001830284011164010000000083111715610aa257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506121dd565b005b348015610b0257600080fd5b50610b0b612255565b6040518082815260200191505060405180910390f35b348015610b2d57600080fd5b50610b3661225b565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b76578082015181840152602081019050610b5b565b50505050905090810190601f168015610ba35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610bbd57600080fd5b50610bea60048036036020811015610bd457600080fd5b8101908080359060200190929190505050612277565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c2a578082015181840152602081019050610c0f565b50505050905090810190601f168015610c575780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610c7157600080fd5b50610c7a6122d7565b6040518082815260200191505060405180910390f35b348015610c9c57600080fd5b50610ca56122dd565b6040518082815260200191505060405180910390f35b348015610cc757600080fd5b50610d0a60048036036020811015610cde57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506122e3565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610d4d578082015181840152602081019050610d32565b505050509050019250505060405180910390f35b348015610d6d57600080fd5b50610dd060048036036040811015610d8457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612372565b60405180821515815260200191505060405180910390f35b348015610df457600080fd5b50610e3760048036036020811015610e0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612406565b005b348015610e4557600080fd5b50610e4e612611565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600060016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060600e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b5050505050905090565b6000610f8f82612637565b610fe4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613f11602c913960400191505060405180910390fd5b600c600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061102a82611634565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613f666021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166110d0612654565b73ffffffffffffffffffffffffffffffffffffffff1614806110ff57506110fe816110f9612654565b612372565b5b611154576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180613e036038913960400191505060405180910390fd5b61115e838361265c565b505050565b600060026000838152602001908152602001600020549050919050565b611188612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611248576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b478111156112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f21657863656564732062616c616e63650000000000000000000000000000000081525060200191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611304573d6000803e3d6000fd5b5050565b60026020528060005260406000206000915090505481565b600061132c600a612715565b905090565b61134261133c612654565b8261272a565b611397576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613f876031913960400191505060405180910390fd5b6113a283838361281e565b505050565b6113af612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461146f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060038190555050565b60006114cc82600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612a6190919063ffffffff16565b905092915050565b6114dc612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461159c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156115e7573d6000803e3d6000fd5b5050565b611606838383604051806020016040528060008152506121dd565b505050565b60008061162283600a612a7b90919063ffffffff16565b50905080915050919050565b60035481565b600061166482604051806060016040528060298152602001613ea560299139600a612aa79092919063ffffffff16565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613e7b602a913960400191505060405180910390fd5b611739600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612ac6565b9050919050565b611748612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561187657600080fd5b505afa15801561188a573d6000803e3d6000fd5b505050506040513d60208110156118a057600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561192457600080fd5b505af1158015611938573d6000803e3d6000fd5b505050506040513d602081101561194e57600080fd5b810190808051906020019092919050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6103e8611999611320565b10611a0c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b60008111611a82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000081525060200191505060405180910390fd5b6028811115611adc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613fb86029913960400191505060405180910390fd5b6103e8611af982611aeb611320565b612adb90919063ffffffff16565b1115611b6d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f45786365656473204d41585f4e46545f535550504c590000000000000000000081525060200191505060405180910390fd5b34611b7782611c3c565b1115611beb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f45746865722076616c75652073656e74206973206e6f7420616465717561746581525060200191505060405180910390fd5b6000611bf934600354612b63565b9050611c053382612be9565b60005b82811015611c37576000611c1a611320565b9050611c293360018301612c98565b508080600101915050611c08565b505050565b60006103e8611c49611320565b10611cbc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b600082611cc7611320565b019050600080600190505b848111611f74576103e88310611cfe57680ad78ebc5ac620000082019150828060019003935050611f67565b6103e68310611d235768056bc75e2d6310000082019150828060019003935050611f66565b6103e38310611d48576802b5e3af16b188000082019150828060019003935050611f65565b6103de8310611d6d576801a055690d9db8000082019150828060019003935050611f64565b6103d48310611d92576801158e460913d0000082019150828060019003935050611f63565b6103ca8310611db657678ac7230489e8000082019150828060019003935050611f62565b6103c08310611dda57674563918244f4000082019150828060019003935050611f61565b6103b68310611dfe57671bc16d674ec8000082019150828060019003935050611f60565b61039d8310611e2257670de0b6b3a764000082019150828060019003935050611f5f565b6103848310611e46576709b6e64a8ec6000082019150828060019003935050611f5e565b6103208310611e6a57670853a0d2313c000082019150828060019003935050611f5d565b6102bc8310611e8e576706f05b59d3b2000082019150828060019003935050611f5c565b6102588310611eb25767058d15e17628000082019150828060019003935050611f5b565b6101f48310611ed657670429d069189e000082019150828060019003935050611f5a565b6101908310611efa576702c68af0bb14000082019150828060019003935050611f59565b61012c8310611f1e5767016345785d8a000082019150828060019003935050611f58565b60c88310611f415767011c37937e08000082019150828060019003935050611f57565b66b1a2bc2ec50000820191508280600190039350505b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b8080600101915050611cd2565b508092505050919050565b6060600f8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120175780601f10611fec57610100808354040283529160200191612017565b820191906000526020600020905b815481529060010190602001808311611ffa57829003601f168201915b5050505050905090565b612029612654565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b80600d60006120d7612654565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612184612654565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6103e881565b6121ee6121e8612654565b8361272a565b612243576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613f876031913960400191505060405180910390fd5b61224f84848484612cb6565b50505050565b60065481565b604051806060016040528060408152602001613e3b6040913981565b60606122d06122ba6040518060400160405280601f81526020017f68747470733a2f2f7072696d65313030302e696f2f6170692f746f6b656e2f00815250612d28565b6122cb6122c685612d56565b612d28565b612e9a565b9050919050565b60085481565b60055481565b606080600080600190505b6122f6611320565b8111612367578473ffffffffffffffffffffffffffffffffffffffff1661231c82611634565b73ffffffffffffffffffffffffffffffffffffffff16141561235a578083838151811061234557fe5b60200260200101818152505081806001019250505b80806001019150506122ee565b508192505050919050565b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61240e612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146124ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612554576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613d676026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061264d82600a612f3390919063ffffffff16565b9050919050565b600033905090565b81600c600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126cf83611634565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061272382600001612f4d565b9050919050565b600061273582612637565b61278a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613dd7602c913960400191505060405180910390fd5b600061279583611634565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061280457508373ffffffffffffffffffffffffffffffffffffffff166127ec84610f84565b73ffffffffffffffffffffffffffffffffffffffff16145b8061281557506128148185612372565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661283e82611634565b73ffffffffffffffffffffffffffffffffffffffff16146128aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613f3d6029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612930576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d8d6024913960400191505060405180910390fd5b61293b838383612f5e565b61294660008261265c565b61299781600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f6390919063ffffffff16565b506129e981600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f7d90919063ffffffff16565b50612a008183600a612f979092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612a708360000183612fcc565b60001c905092915050565b600080600080612a8e866000018661304f565b915091508160001c8160001c9350935050509250929050565b6000612aba846000018460001b846130e8565b60001c90509392505050565b6000612ad4826000016131de565b9050919050565b600080828401905083811015612b59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600080831415612b765760009050612be3565b6000828402905082848281612b8757fe5b0414612bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613ef06021913960400191505060405180910390fd5b809150505b92915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015612c7c57600080fd5b505af1158015612c90573d6000803e3d6000fd5b505050505050565b612cb28282604051806020016040528060008152506131ef565b5050565b612cc184848461281e565b612ccd84848484613260565b612d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613d356032913960400191505060405180910390fd5b50505050565b612d30613cf8565b600060208301905060405180604001604052808451815260200182815250915050919050565b60606000821415612d9e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e95565b600082905060005b60008214612dc8578080600101915050600a8281612dc057fe5b049150612da6565b60608167ffffffffffffffff81118015612de157600080fd5b506040519080825280601f01601f191660200182016040528015612e145781602001600182028036833780820191505090505b50905060006001830390505b60008614612e8d57600a8681612e3257fe5b0660300160f81b82828060019003935081518110612e4c57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8681612e8557fe5b049550612e20565b819450505050505b919050565b606080826000015184600001510167ffffffffffffffff81118015612ebe57600080fd5b506040519080825280601f01601f191660200182016040528015612ef15781602001600182028036833780820191505090505b5090506000602082019050612f0f8186602001518760000151613479565b612f288560000151820185602001518660000151613479565b819250505092915050565b6000612f45836000018360001b6134c2565b905092915050565b600081600001805490509050919050565b505050565b6000612f75836000018360001b6134e5565b905092915050565b6000612f8f836000018360001b6135cd565b905092915050565b6000612fc3846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b61363d565b90509392505050565b60008183600001805490501161302d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613d136022913960400191505060405180910390fd5b82600001828154811061303c57fe5b9060005260206000200154905092915050565b600080828460000180549050116130b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613ece6022913960400191505060405180910390fd5b60008460000184815481106130c257fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600080846001016000858152602001908152602001600020549050600081141583906131af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613174578082015181840152602081019050613159565b50505050905090810190601f1680156131a15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106131c257fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b6131f98383613719565b6132066000848484613260565b61325b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613d356032913960400191505060405180910390fd5b505050565b60006132818473ffffffffffffffffffffffffffffffffffffffff16613935565b61328e5760019050613471565b60606133f863150b7a0260e01b6132a3612654565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561332757808201518184015260208101905061330c565b50505050905090810190601f1680156133545780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001613d35603291398773ffffffffffffffffffffffffffffffffffffffff166139489092919063ffffffff16565b9050600081806020019051602081101561341157600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b5b6020811061349d578151835260208301925060208201915060208103905061347a565b60006001826020036101000a0390508019835116818551168181178652505050505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146135c1576000600182039050600060018660000180549050039050600086600001828154811061353057fe5b906000526020600020015490508087600001848154811061354d57fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061358557fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506135c7565b60009150505b92915050565b60006135d98383613960565b613632578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613637565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156136e457846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613712565b828560000160018303815481106136f757fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b6137c581612637565b15613838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b61384460008383612f5e565b61389581600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f7d90919063ffffffff16565b506138ac8183600a612f979092919063ffffffff16565b5060065460026000838152602001908152602001600020819055506138cf613983565b600681905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b606061395784846000856139d5565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600060026006541161399857600290506139d2565b600060016006540390505b600281106139d0576139b481613b7e565b156139c257809150506139d2565b8080600190039150506139a3565b505b90565b606082471015613a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613db16026913960400191505060405180910390fd5b613a3985613935565b613aab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613afb5780518252602082019150602081019050602083039250613ad8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613b5d576040519150601f19603f3d011682016040523d82523d6000602084013e613b62565b606091505b5091509150613b72828286613c2c565b92505050949350505050565b600060018211613b915760009050613c27565b60038211613ba25760019050613c27565b600060028381613bae57fe5b061480613bc55750600060038381613bc257fe5b06145b15613bd35760009050613c27565b6000600590505b8281820211613c21576000818481613bee57fe5b061480613c0757506000600282018481613c0457fe5b06145b15613c16576000915050613c27565b600681019050613bda565b50600190505b919050565b60608315613c3c57829050613cf1565b600083511115613c4f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613cb6578082015181840152602081019050613c9b565b50505050905090810190601f168015613ce35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b60405180604001604052806000815260200160008152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c343539343046303933303441374135383136373331454330353042333834333644453433463641453746364632383446463930384230333936353037303234464552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564596f75206d6179206e6f7420627579206d6f7265207468616e203430204e465473206174206f6e6365a2646970667358221220cfa02509175b61d1ffd43b4d5245f260d0a5f180eae9585f757b2530216e5d4364736f6c63430007040033000000000000000000000000367fc7c0735a2dd4fca44cf95984ce8f4bb64354
Deployed Bytecode
0x6080604052600436106101f95760003560e01c8063894760691161010d578063ba9ddfcc116100a0578063cc5232871161006f578063cc52328714610c90578063d63d4af014610cbb578063e985e9c514610d61578063f2fde38b14610de8578063fc031e6c14610e39576101f9565b8063ba9ddfcc14610af6578063bd85012514610b21578063c87b56dd14610bb1578063cb774d4714610c65576101f9565b806395d89b41116100dc57806395d89b41146108cc578063a22cb4651461095c578063b5077f44146109b9578063b88d4fde146109e4576101f9565b806389476069146107bd5780638da5cb5b1461080e578063926427441461084f578063929761791461087d576101f9565b806323b872dd1161019057806342842e0e1161015f57806342842e0e146105fe5780634f6ccce7146106795780635afef307146106c85780636352211e146106f357806370a0823114610758576101f9565b806323b872dd146104c25780632c241f911461053d5780632f745c59146105785780633ccfd60b146105e7576101f9565b806310fc936f116101cc57806310fc936f146103be5780631211540c1461040d57806314e2c7bf1461044857806318160ddd14610497576101f9565b806301ffc9a7146101fe57806306fdde031461026e578063081812fc146102fe578063095ea7b314610363575b600080fd5b34801561020a57600080fd5b506102566004803603602081101561022157600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610e7a565b60405180821515815260200191505060405180910390f35b34801561027a57600080fd5b50610283610ee2565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102c35780820151818401526020810190506102a8565b50505050905090810190601f1680156102f05780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030a57600080fd5b506103376004803603602081101561032157600080fd5b8101908080359060200190929190505050610f84565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561036f57600080fd5b506103bc6004803603604081101561038657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061101f565b005b3480156103ca57600080fd5b506103f7600480360360208110156103e157600080fd5b8101908080359060200190929190505050611163565b6040518082815260200191505060405180910390f35b34801561041957600080fd5b506104466004803603602081101561043057600080fd5b8101908080359060200190929190505050611180565b005b34801561045457600080fd5b506104816004803603602081101561046b57600080fd5b8101908080359060200190929190505050611308565b6040518082815260200191505060405180910390f35b3480156104a357600080fd5b506104ac611320565b6040518082815260200191505060405180910390f35b3480156104ce57600080fd5b5061053b600480360360608110156104e557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611331565b005b34801561054957600080fd5b506105766004803603602081101561056057600080fd5b81019080803590602001909291905050506113a7565b005b34801561058457600080fd5b506105d16004803603604081101561059b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611479565b6040518082815260200191505060405180910390f35b3480156105f357600080fd5b506105fc6114d4565b005b34801561060a57600080fd5b506106776004803603606081101561062157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506115eb565b005b34801561068557600080fd5b506106b26004803603602081101561069c57600080fd5b810190808035906020019092919050505061160b565b6040518082815260200191505060405180910390f35b3480156106d457600080fd5b506106dd61162e565b6040518082815260200191505060405180910390f35b3480156106ff57600080fd5b5061072c6004803603602081101561071657600080fd5b8101908080359060200190929190505050611634565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561076457600080fd5b506107a76004803603602081101561077b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061166b565b6040518082815260200191505060405180910390f35b3480156107c957600080fd5b5061080c600480360360208110156107e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611740565b005b34801561081a57600080fd5b50610823611965565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61087b6004803603602081101561086557600080fd5b810190808035906020019092919050505061198e565b005b34801561088957600080fd5b506108b6600480360360208110156108a057600080fd5b8101908080359060200190929190505050611c3c565b6040518082815260200191505060405180910390f35b3480156108d857600080fd5b506108e1611f7f565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610921578082015181840152602081019050610906565b50505050905090810190601f16801561094e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561096857600080fd5b506109b76004803603604081101561097f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050612021565b005b3480156109c557600080fd5b506109ce6121d7565b6040518082815260200191505060405180910390f35b3480156109f057600080fd5b50610af460048036036080811015610a0757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610a6e57600080fd5b820183602082011115610a8057600080fd5b80359060200191846001830284011164010000000083111715610aa257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506121dd565b005b348015610b0257600080fd5b50610b0b612255565b6040518082815260200191505060405180910390f35b348015610b2d57600080fd5b50610b3661225b565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b76578082015181840152602081019050610b5b565b50505050905090810190601f168015610ba35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610bbd57600080fd5b50610bea60048036036020811015610bd457600080fd5b8101908080359060200190929190505050612277565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610c2a578082015181840152602081019050610c0f565b50505050905090810190601f168015610c575780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610c7157600080fd5b50610c7a6122d7565b6040518082815260200191505060405180910390f35b348015610c9c57600080fd5b50610ca56122dd565b6040518082815260200191505060405180910390f35b348015610cc757600080fd5b50610d0a60048036036020811015610cde57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506122e3565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610d4d578082015181840152602081019050610d32565b505050509050019250505060405180910390f35b348015610d6d57600080fd5b50610dd060048036036040811015610d8457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612372565b60405180821515815260200191505060405180910390f35b348015610df457600080fd5b50610e3760048036036020811015610e0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612406565b005b348015610e4557600080fd5b50610e4e612611565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600060016000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b6060600e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b5050505050905090565b6000610f8f82612637565b610fe4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613f11602c913960400191505060405180910390fd5b600c600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061102a82611634565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156110b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613f666021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166110d0612654565b73ffffffffffffffffffffffffffffffffffffffff1614806110ff57506110fe816110f9612654565b612372565b5b611154576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180613e036038913960400191505060405180910390fd5b61115e838361265c565b505050565b600060026000838152602001908152602001600020549050919050565b611188612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611248576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b478111156112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f21657863656564732062616c616e63650000000000000000000000000000000081525060200191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611304573d6000803e3d6000fd5b5050565b60026020528060005260406000206000915090505481565b600061132c600a612715565b905090565b61134261133c612654565b8261272a565b611397576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613f876031913960400191505060405180910390fd5b6113a283838361281e565b505050565b6113af612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461146f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060038190555050565b60006114cc82600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612a6190919063ffffffff16565b905092915050565b6114dc612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461159c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156115e7573d6000803e3d6000fd5b5050565b611606838383604051806020016040528060008152506121dd565b505050565b60008061162283600a612a7b90919063ffffffff16565b50905080915050919050565b60035481565b600061166482604051806060016040528060298152602001613ea560299139600a612aa79092919063ffffffff16565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613e7b602a913960400191505060405180910390fd5b611739600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612ac6565b9050919050565b611748612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600081905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561187657600080fd5b505afa15801561188a573d6000803e3d6000fd5b505050506040513d60208110156118a057600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561192457600080fd5b505af1158015611938573d6000803e3d6000fd5b505050506040513d602081101561194e57600080fd5b810190808051906020019092919050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6103e8611999611320565b10611a0c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b60008111611a82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f6e756d6265724f664e6674732063616e6e6f742062652030000000000000000081525060200191505060405180910390fd5b6028811115611adc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613fb86029913960400191505060405180910390fd5b6103e8611af982611aeb611320565b612adb90919063ffffffff16565b1115611b6d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f45786365656473204d41585f4e46545f535550504c590000000000000000000081525060200191505060405180910390fd5b34611b7782611c3c565b1115611beb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f45746865722076616c75652073656e74206973206e6f7420616465717561746581525060200191505060405180910390fd5b6000611bf934600354612b63565b9050611c053382612be9565b60005b82811015611c37576000611c1a611320565b9050611c293360018301612c98565b508080600101915050611c08565b505050565b60006103e8611c49611320565b10611cbc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f53616c652068617320616c726561647920656e6465640000000000000000000081525060200191505060405180910390fd5b600082611cc7611320565b019050600080600190505b848111611f74576103e88310611cfe57680ad78ebc5ac620000082019150828060019003935050611f67565b6103e68310611d235768056bc75e2d6310000082019150828060019003935050611f66565b6103e38310611d48576802b5e3af16b188000082019150828060019003935050611f65565b6103de8310611d6d576801a055690d9db8000082019150828060019003935050611f64565b6103d48310611d92576801158e460913d0000082019150828060019003935050611f63565b6103ca8310611db657678ac7230489e8000082019150828060019003935050611f62565b6103c08310611dda57674563918244f4000082019150828060019003935050611f61565b6103b68310611dfe57671bc16d674ec8000082019150828060019003935050611f60565b61039d8310611e2257670de0b6b3a764000082019150828060019003935050611f5f565b6103848310611e46576709b6e64a8ec6000082019150828060019003935050611f5e565b6103208310611e6a57670853a0d2313c000082019150828060019003935050611f5d565b6102bc8310611e8e576706f05b59d3b2000082019150828060019003935050611f5c565b6102588310611eb25767058d15e17628000082019150828060019003935050611f5b565b6101f48310611ed657670429d069189e000082019150828060019003935050611f5a565b6101908310611efa576702c68af0bb14000082019150828060019003935050611f59565b61012c8310611f1e5767016345785d8a000082019150828060019003935050611f58565b60c88310611f415767011c37937e08000082019150828060019003935050611f57565b66b1a2bc2ec50000820191508280600190039350505b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b8080600101915050611cd2565b508092505050919050565b6060600f8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120175780601f10611fec57610100808354040283529160200191612017565b820191906000526020600020905b815481529060010190602001808311611ffa57829003601f168201915b5050505050905090565b612029612654565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b80600d60006120d7612654565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612184612654565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6103e881565b6121ee6121e8612654565b8361272a565b612243576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180613f876031913960400191505060405180910390fd5b61224f84848484612cb6565b50505050565b60065481565b604051806060016040528060408152602001613e3b6040913981565b60606122d06122ba6040518060400160405280601f81526020017f68747470733a2f2f7072696d65313030302e696f2f6170692f746f6b656e2f00815250612d28565b6122cb6122c685612d56565b612d28565b612e9a565b9050919050565b60085481565b60055481565b606080600080600190505b6122f6611320565b8111612367578473ffffffffffffffffffffffffffffffffffffffff1661231c82611634565b73ffffffffffffffffffffffffffffffffffffffff16141561235a578083838151811061234557fe5b60200260200101818152505081806001019250505b80806001019150506122ee565b508192505050919050565b6000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61240e612654565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146124ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612554576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613d676026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061264d82600a612f3390919063ffffffff16565b9050919050565b600033905090565b81600c600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126cf83611634565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061272382600001612f4d565b9050919050565b600061273582612637565b61278a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613dd7602c913960400191505060405180910390fd5b600061279583611634565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061280457508373ffffffffffffffffffffffffffffffffffffffff166127ec84610f84565b73ffffffffffffffffffffffffffffffffffffffff16145b8061281557506128148185612372565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661283e82611634565b73ffffffffffffffffffffffffffffffffffffffff16146128aa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180613f3d6029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612930576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613d8d6024913960400191505060405180910390fd5b61293b838383612f5e565b61294660008261265c565b61299781600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f6390919063ffffffff16565b506129e981600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f7d90919063ffffffff16565b50612a008183600a612f979092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612a708360000183612fcc565b60001c905092915050565b600080600080612a8e866000018661304f565b915091508160001c8160001c9350935050509250929050565b6000612aba846000018460001b846130e8565b60001c90509392505050565b6000612ad4826000016131de565b9050919050565b600080828401905083811015612b59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600080831415612b765760009050612be3565b6000828402905082848281612b8757fe5b0414612bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613ef06021913960400191505060405180910390fd5b809150505b92915050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015612c7c57600080fd5b505af1158015612c90573d6000803e3d6000fd5b505050505050565b612cb28282604051806020016040528060008152506131ef565b5050565b612cc184848461281e565b612ccd84848484613260565b612d22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613d356032913960400191505060405180910390fd5b50505050565b612d30613cf8565b600060208301905060405180604001604052808451815260200182815250915050919050565b60606000821415612d9e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e95565b600082905060005b60008214612dc8578080600101915050600a8281612dc057fe5b049150612da6565b60608167ffffffffffffffff81118015612de157600080fd5b506040519080825280601f01601f191660200182016040528015612e145781602001600182028036833780820191505090505b50905060006001830390505b60008614612e8d57600a8681612e3257fe5b0660300160f81b82828060019003935081518110612e4c57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8681612e8557fe5b049550612e20565b819450505050505b919050565b606080826000015184600001510167ffffffffffffffff81118015612ebe57600080fd5b506040519080825280601f01601f191660200182016040528015612ef15781602001600182028036833780820191505090505b5090506000602082019050612f0f8186602001518760000151613479565b612f288560000151820185602001518660000151613479565b819250505092915050565b6000612f45836000018360001b6134c2565b905092915050565b600081600001805490509050919050565b505050565b6000612f75836000018360001b6134e5565b905092915050565b6000612f8f836000018360001b6135cd565b905092915050565b6000612fc3846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b61363d565b90509392505050565b60008183600001805490501161302d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613d136022913960400191505060405180910390fd5b82600001828154811061303c57fe5b9060005260206000200154905092915050565b600080828460000180549050116130b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613ece6022913960400191505060405180910390fd5b60008460000184815481106130c257fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600080846001016000858152602001908152602001600020549050600081141583906131af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613174578082015181840152602081019050613159565b50505050905090810190601f1680156131a15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106131c257fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b6131f98383613719565b6132066000848484613260565b61325b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613d356032913960400191505060405180910390fd5b505050565b60006132818473ffffffffffffffffffffffffffffffffffffffff16613935565b61328e5760019050613471565b60606133f863150b7a0260e01b6132a3612654565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561332757808201518184015260208101905061330c565b50505050905090810190601f1680156133545780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001613d35603291398773ffffffffffffffffffffffffffffffffffffffff166139489092919063ffffffff16565b9050600081806020019051602081101561341157600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b5b6020811061349d578151835260208301925060208201915060208103905061347a565b60006001826020036101000a0390508019835116818551168181178652505050505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146135c1576000600182039050600060018660000180549050039050600086600001828154811061353057fe5b906000526020600020015490508087600001848154811061354d57fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061358557fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506135c7565b60009150505b92915050565b60006135d98383613960565b613632578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613637565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156136e457846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613712565b828560000160018303815481106136f757fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b6137c581612637565b15613838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b61384460008383612f5e565b61389581600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f7d90919063ffffffff16565b506138ac8183600a612f979092919063ffffffff16565b5060065460026000838152602001908152602001600020819055506138cf613983565b600681905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b606061395784846000856139d5565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b600060026006541161399857600290506139d2565b600060016006540390505b600281106139d0576139b481613b7e565b156139c257809150506139d2565b8080600190039150506139a3565b505b90565b606082471015613a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613db16026913960400191505060405180910390fd5b613a3985613935565b613aab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613afb5780518252602082019150602081019050602083039250613ad8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613b5d576040519150601f19603f3d011682016040523d82523d6000602084013e613b62565b606091505b5091509150613b72828286613c2c565b92505050949350505050565b600060018211613b915760009050613c27565b60038211613ba25760019050613c27565b600060028381613bae57fe5b061480613bc55750600060038381613bc257fe5b06145b15613bd35760009050613c27565b6000600590505b8281820211613c21576000818481613bee57fe5b061480613c0757506000600282018481613c0457fe5b06145b15613c16576000915050613c27565b600681019050613bda565b50600190505b919050565b60608315613c3c57829050613cf1565b600083511115613c4f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613cb6578082015181840152602081019050613c9b565b50505050905090810190601f168015613ce35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b60405180604001604052806000815260200160008152509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c343539343046303933303441374135383136373331454330353042333834333644453433463641453746364632383446463930384230333936353037303234464552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564596f75206d6179206e6f7420627579206d6f7265207468616e203430204e465473206174206f6e6365a2646970667358221220cfa02509175b61d1ffd43b4d5245f260d0a5f180eae9585f757b2530216e5d4364736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000367fc7c0735a2dd4fca44cf95984ce8f4bb64354
-----Decoded View---------------
Arg [0] : PRIAddress (address): 0x367Fc7c0735a2DD4FCA44CF95984Ce8F4bb64354
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000367fc7c0735a2dd4fca44cf95984ce8f4bb64354
Deployed Bytecode Sourcemap
56293:22112:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5087:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;61281:92;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69210:213;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;68754:390;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62353:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;68261:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56574:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61844:195;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;70084:305;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;60358:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;61622:146;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;68122:131;;;;;;;;;;;;;:::i;:::-;;70460:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;62116:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56621:27;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61045:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;60768:215;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;68440:252;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;38728:79;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;66831:788;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;63508:3270;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61442:96;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69495:295;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;57059:45;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;70682:285;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56747:34;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56942:108;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60456:246;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57113:28;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;56711:29;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;67629:393;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69861:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;39177:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56677:19;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;5087:142;5164:4;5188:20;:33;5209:11;5188:33;;;;;;;;;;;;;;;;;;;;;;;;;;;5181:40;;5087:142;;;:::o;61281:92::-;61327:13;61360:5;61353:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61281:92;:::o;69210:213::-;69278:7;69306:16;69314:7;69306;:16::i;:::-;69298:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69391:15;:24;69407:7;69391:24;;;;;;;;;;;;;;;;;;;;;69384:31;;69210:213;;;:::o;68754:390::-;68835:13;68851:16;68859:7;68851;:16::i;:::-;68835:32;;68892:5;68886:11;;:2;:11;;;;68878:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68972:5;68956:21;;:12;:10;:12::i;:::-;:21;;;:62;;;;68981:37;68998:5;69005:12;:10;:12::i;:::-;68981:16;:37::i;:::-;68956:62;68948:154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69115:21;69124:2;69128:7;69115:8;:21::i;:::-;68754:390;;;:::o;62353:107::-;62413:4;62437:8;:15;62446:5;62437:15;;;;;;;;;;;;62430:22;;62353:107;;;:::o;68261:169::-;38950:12;:10;:12::i;:::-;38940:22;;:6;;;;;;;;;;:22;;;38932:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68345:21:::1;68334:7;:32;;68326:61;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;68396:10;:19;;:28;68416:7;68396:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;68261:169:::0;:::o;56574:38::-;;;;;;;;;;;;;;;;;:::o;61844:195::-;61889:7;62010:21;:12;:19;:21::i;:::-;62003:28;;61844:195;:::o;70084:305::-;70245:41;70264:12;:10;:12::i;:::-;70278:7;70245:18;:41::i;:::-;70237:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70353:28;70363:4;70369:2;70373:7;70353:9;:28::i;:::-;70084:305;;;:::o;60358:83::-;38950:12;:10;:12::i;:::-;38940:22;;:6;;;;;;;;;;:22;;;38932:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60428:5:::1;60418:7;:15;;;;60358:83:::0;:::o;61622:146::-;61703:7;61730:30;61754:5;61730:13;:20;61744:5;61730:20;;;;;;;;;;;;;;;:23;;:30;;;;:::i;:::-;61723:37;;61622:146;;;;:::o;68122:131::-;38950:12;:10;:12::i;:::-;38940:22;;:6;;;;;;;;;;:22;;;38932:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68170:12:::1;68185:21;68170:36;;68217:10;:19;;:28;68237:7;68217:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;39010:1;68122:131::o:0;70460:151::-;70564:39;70581:4;70587:2;70591:7;70564:39;;;;;;;;;;;;:16;:39::i;:::-;70460:151;;;:::o;62116:156::-;62175:7;62196:15;62217:22;62233:5;62217:12;:15;;:22;;;;:::i;:::-;62195:44;;;62257:7;62250:14;;;62116:156;;;:::o;56621:27::-;;;;:::o;61045:169::-;61109:7;61136:70;61153:7;61136:70;;;;;;;;;;;;;;;;;:12;:16;;:70;;;;;:::i;:::-;61129:77;;61045:169;;;:::o;60768:215::-;60832:7;60877:1;60860:19;;:5;:19;;;;60852:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60946:29;:13;:20;60960:5;60946:20;;;;;;;;;;;;;;;:27;:29::i;:::-;60939:36;;60768:215;;;:::o;68440:252::-;38950:12;:10;:12::i;:::-;38940:22;;:6;;;;;;;;;;:22;;;38932:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68514:12:::1;68536;68514:35;;68560:27;68590:5;:15;;;68614:4;68590:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;68560:60;;68631:5;:14;;;68646:10;68658:19;68631:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;39010:1;;68440:252:::0;:::o;38728:79::-;38766:7;38793:6;;;;;;;;;;;38786:13;;38728:79;:::o;66831:788::-;57100:4;66904:13;:11;:13::i;:::-;:30;66896:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66995:1;66980:12;:16;66972:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67060:2;67044:12;:18;;67036:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57100:4;67127:31;67145:12;67127:13;:11;:13::i;:::-;:17;;:31;;;;:::i;:::-;:49;;67119:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67251:9;67222:25;67234:12;67222:11;:25::i;:::-;:38;;67214:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67310:20;67333:33;67346:9;67358:7;;67333:12;:33::i;:::-;67310:56;;67379:37;67391:10;67403:12;67379:11;:37::i;:::-;67469:6;67464:146;67485:12;67481:1;:16;67464:146;;;67519:14;67536:13;:11;:13::i;:::-;67519:30;;67564:34;67574:10;67596:1;67586:9;:11;67564:9;:34::i;:::-;67464:146;67499:3;;;;;;;67464:146;;;;66831:788;;:::o;63508:3270::-;63566:7;57100:4;63594:13;:11;:13::i;:::-;:30;63586:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63664:18;63699:9;63685:13;:11;:13::i;:::-;:23;63664:44;;63719:15;63755:6;63762:1;63755:8;;63751:2988;63768:9;63764:1;:13;63751:2988;;63820:4;63803:13;:21;63799:2927;;63859:9;63845:23;;;;63950:15;;;;;;;;63799:2927;;;64008:3;63991:13;:20;63987:2739;;64047:9;64032:24;;;;64134:15;;;;;;;;63987:2739;;;64192:3;64175:13;:20;64171:2555;;64231:8;64216:23;;;;64319:15;;;;;;;;64171:2555;;;64377:3;64360:13;:20;64356:2370;;64416:8;64401:23;;;;64504:15;;;;;;;;64356:2370;;;64562:3;64545:13;:20;64541:2185;;64601:8;64586:23;;;;64658:15;;;;;;;;64541:2185;;;64716:3;64699:13;:20;64695:2031;;64755:8;64740:23;;;;64812:15;;;;;;;;64695:2031;;;64870:3;64853:13;:20;64849:1877;;64909:7;64894:22;;;;64965:15;;;;;;;;64849:1877;;;65023:3;65006:13;:20;65002:1724;;65062:7;65047:22;;;;65118:15;;;;;;;;65002:1724;;;65176:3;65159:13;:20;65155:1571;;65215:7;65200:22;;;;65271:15;;;;;;;;65155:1571;;;65329:3;65312:13;:20;65308:1418;;65368:9;65353:24;;;;65424:15;;;;;;;;65308:1418;;;65482:3;65465:13;:20;65461:1265;;65521:9;65506:24;;;;65578:15;;;;;;;;65461:1265;;;65636:3;65619:13;:20;65615:1111;;65675:9;65660:24;;;;65732:15;;;;;;;;65615:1111;;;65790:3;65773:13;:20;65769:957;;65829:9;65814:24;;;;65886:15;;;;;;;;65769:957;;;65944:3;65927:13;:20;65923:803;;65983:9;65968:24;;;;66072:15;;;;;;;;65923:803;;;66130:3;66113:13;:20;66109:617;;66169:9;66154:24;;;;66226:15;;;;;;;;66109:617;;;66284:3;66267:13;:20;66263:463;;66323:9;66308:24;;;;66380:15;;;;;;;;66263:463;;;66438:3;66421:13;:20;66417:309;;66477:10;66462:25;;;;66536:15;;;;;;;;66417:309;;;66607:10;66592:25;;;;66695:15;;;;;;;;66417:309;66263:463;66109:617;65923:803;65769:957;65615:1111;65461:1265;65308:1418;65155:1571;65002:1724;64849:1877;64695:2031;64541:2185;64356:2370;64171:2555;63987:2739;63799:2927;63778:3;;;;;;;63751:2988;;;;66758:10;66751:17;;;;63508:3270;;;:::o;61442:96::-;61490:13;61523:7;61516:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61442:96;:::o;69495:295::-;69610:12;:10;:12::i;:::-;69598:24;;:8;:24;;;;69590:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69710:8;69665:18;:32;69684:12;:10;:12::i;:::-;69665:32;;;;;;;;;;;;;;;:42;69698:8;69665:42;;;;;;;;;;;;;;;;:53;;;;;;;;;;;;;;;;;;69763:8;69734:48;;69749:12;:10;:12::i;:::-;69734:48;;;69773:8;69734:48;;;;;;;;;;;;;;;;;;;;69495:295;;:::o;57059:45::-;57100:4;57059:45;:::o;70682:285::-;70814:41;70833:12;:10;:12::i;:::-;70847:7;70814:18;:41::i;:::-;70806:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70920:39;70934:4;70940:2;70944:7;70953:5;70920:13;:39::i;:::-;70682:285;;;;:::o;56747:34::-;;;;:::o;56942:108::-;;;;;;;;;;;;;;;;;;;:::o;60456:246::-;60515:13;60544:152;60573:54;;;;;;;;;;;;;;;;;;:19;:54::i;:::-;60638:51;60658:30;60679:8;60658:20;:30::i;:::-;60638:19;:51::i;:::-;60544:18;:152::i;:::-;60537:159;;60456:246;;;:::o;57113:28::-;;;;:::o;56711:29::-;;;;:::o;67629:393::-;67694:13;67720:29;67760:15;67804:6;67811:1;67804:8;;67800:183;67816:13;:11;:13::i;:::-;67813:1;:16;67800:183;;67866:11;67852:25;;:10;67860:1;67852:7;:10::i;:::-;:25;;;67849:123;;;67924:1;67897:12;67910:10;67897:24;;;;;;;;;;;;;:28;;;;;67944:12;;;;;;;67849:123;67830:3;;;;;;;67800:183;;;;68002:12;67995:19;;;;67629:393;;;:::o;69861:156::-;69950:4;69974:18;:25;69993:5;69974:25;;;;;;;;;;;;;;;:35;70000:8;69974:35;;;;;;;;;;;;;;;;;;;;;;;;;69967:42;;69861:156;;;;:::o;39177:244::-;38950:12;:10;:12::i;:::-;38940:22;;:6;;;;;;;;;;:22;;;38932:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39286:1:::1;39266:22;;:8;:22;;;;39258:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39376:8;39347:38;;39368:6;::::0;::::1;;;;;;;;39347:38;;;;;;;;;;;;39405:8;39396:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;39177:244:::0;:::o;56677:19::-;;;;;;;;;;;;;:::o;72434:119::-;72491:4;72515:30;72537:7;72515:12;:21;;:30;;;;:::i;:::-;72508:37;;72434:119;;;:::o;37878:106::-;37931:15;37966:10;37959:17;;37878:106;:::o;77536:158::-;77629:2;77602:15;:24;77618:7;77602:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;77678:7;77674:2;77647:39;;77656:16;77664:7;77656;:16::i;:::-;77647:39;;;;;;;;;;;;77536:158;;:::o;93525:123::-;93594:7;93621:19;93629:3;:10;;93621:7;:19::i;:::-;93614:26;;93525:123;;;:::o;72720:333::-;72805:4;72830:16;72838:7;72830;:16::i;:::-;72822:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72906:13;72922:16;72930:7;72922;:16::i;:::-;72906:32;;72968:5;72957:16;;:7;:16;;;:51;;;;73001:7;72977:31;;:20;72989:7;72977:11;:20::i;:::-;:31;;;72957:51;:87;;;;73012:32;73029:5;73036:7;73012:16;:32::i;:::-;72957:87;72949:96;;;72720:333;;;;:::o;75783:574::-;75901:4;75881:24;;:16;75889:7;75881;:16::i;:::-;:24;;;75873:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75984:1;75970:16;;:2;:16;;;;75962:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76040:39;76061:4;76067:2;76071:7;76040:20;:39::i;:::-;76144:29;76161:1;76165:7;76144:8;:29::i;:::-;76186:35;76213:7;76186:13;:19;76200:4;76186:19;;;;;;;;;;;;;;;:26;;:35;;;;:::i;:::-;;76232:30;76254:7;76232:13;:17;76246:2;76232:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;76275:29;76292:7;76301:2;76275:12;:16;;:29;;;;;:::i;:::-;;76341:7;76337:2;76322:27;;76331:4;76322:27;;;;;;;;;;;;75783:574;;;:::o;102694:137::-;102765:7;102800:22;102804:3;:10;;102816:5;102800:3;:22::i;:::-;102792:31;;102785:38;;102694:137;;;;:::o;93987:227::-;94067:7;94076;94097:11;94110:13;94127:22;94131:3;:10;;94143:5;94127:3;:22::i;:::-;94096:53;;;;94176:3;94168:12;;94198:5;94190:14;;94160:46;;;;;;93987:227;;;;;:::o;94649:204::-;94756:7;94799:44;94804:3;:10;;94824:3;94816:12;;94830;94799:4;:44::i;:::-;94791:53;;94776:69;;94649:204;;;;;:::o;102236:114::-;102296:7;102323:19;102331:3;:10;;102323:7;:19::i;:::-;102316:26;;102236:114;;;:::o;40270:181::-;40328:7;40348:9;40364:1;40360;:5;40348:17;;40389:1;40384;:6;;40376:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40442:1;40435:8;;;40270:181;;;;:::o;41624:471::-;41682:7;41932:1;41927;:6;41923:47;;;41957:1;41950:8;;;;41923:47;41982:9;41998:1;41994;:5;41982:17;;42027:1;42022;42018;:5;;;;;;:10;42010:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42086:1;42079:8;;;41624:471;;;;;:::o;60251:99::-;60321:3;;;;;;;;;;;:8;;;60330:3;60335:6;60321:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60251:99;;:::o;73396:110::-;73472:26;73482:2;73486:7;73472:26;;;;;;;;;;;;:9;:26::i;:::-;73396:110;;:::o;71849:272::-;71963:28;71973:4;71979:2;71983:7;71963:9;:28::i;:::-;72010:48;72033:4;72039:2;72043:7;72052:5;72010:22;:48::i;:::-;72002:111;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71849:272;;;;:::o;12697:216::-;12757:12;;:::i;:::-;12782:8;12842:4;12836;12832:15;12825:22;;12875:30;;;;;;;;12887:4;12881:18;12875:30;;;;12901:3;12875:30;;;12868:37;;;12697:216;;;:::o;12008:482::-;12058:27;12108:1;12102:2;:7;12098:50;;;12126:10;;;;;;;;;;;;;;;;;;;;;12098:50;12158:6;12167:2;12158:11;;12180:8;12199:69;12211:1;12206;:6;12199:69;;12229:5;;;;;;;12254:2;12249:7;;;;;;;;;12199:69;;;12278:17;12308:3;12298:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12278:34;;12323:6;12338:1;12332:3;:7;12323:16;;12350:103;12363:1;12357:2;:7;12350:103;;12414:2;12409;:7;;;;;;12404:2;:12;12393:25;;12381:4;12386:3;;;;;;;12381:9;;;;;;;;;;;:37;;;;;;;;;;;12439:2;12433:8;;;;;;;;;12350:103;;;12477:4;12463:19;;;;;;12008:482;;;;:::o;34499:362::-;34577:13;34603:17;34646:5;:10;;;34634:4;:9;;;:22;34623:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34603:54;;34668:11;34720:2;34715:3;34711:12;34701:22;;34735:36;34742:6;34750:4;:9;;;34761:4;:9;;;34735:6;:36::i;:::-;34782:50;34798:4;:9;;;34789:6;:18;34809:5;:10;;;34821:5;:10;;;34782:6;:50::i;:::-;34850:3;34843:10;;;;34499:362;;;;:::o;93286:151::-;93370:4;93394:35;93404:3;:10;;93424:3;93416:12;;93394:9;:35::i;:::-;93387:42;;93286:151;;;;:::o;90908:110::-;90964:7;90991:3;:12;;:19;;;;90984:26;;90908:110;;;:::o;78307:93::-;;;;:::o;101781:137::-;101851:4;101875:35;101883:3;:10;;101903:5;101895:14;;101875:7;:35::i;:::-;101868:42;;101781:137;;;;:::o;101474:131::-;101541:4;101565:32;101570:3;:10;;101590:5;101582:14;;101565:4;:32::i;:::-;101558:39;;101474:131;;;;:::o;92718:176::-;92807:4;92831:55;92836:3;:10;;92856:3;92848:12;;92878:5;92870:14;;92862:23;;92831:4;:55::i;:::-;92824:62;;92718:176;;;;;:::o;99358:204::-;99425:7;99474:5;99453:3;:11;;:18;;;;:26;99445:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99536:3;:11;;99548:5;99536:18;;;;;;;;;;;;;;;;99529:25;;99358:204;;;;:::o;91373:279::-;91440:7;91449;91499:5;91477:3;:12;;:19;;;;:27;91469:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91556:22;91581:3;:12;;91594:5;91581:19;;;;;;;;;;;;;;;;;;91556:44;;91619:5;:10;;;91631:5;:12;;;91611:33;;;;;91373:279;;;;;:::o;92075:319::-;92169:7;92189:16;92208:3;:12;;:17;92221:3;92208:17;;;;;;;;;;;;92189:36;;92256:1;92244:8;:13;;92259:12;92236:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92326:3;:12;;92350:1;92339:8;:12;92326:26;;;;;;;;;;;;;;;;;;:33;;;92319:40;;;92075:319;;;;;:::o;98905:109::-;98961:7;98988:3;:11;;:18;;;;98981:25;;98905:109;;;:::o;73737:253::-;73833:21;73842:2;73846:7;73833:8;:21::i;:::-;73873:54;73904:1;73908:2;73912:7;73921:5;73873:22;:54::i;:::-;73865:117;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73737:253;;;:::o;76924:604::-;77045:4;77072:15;:2;:13;;;:15::i;:::-;77067:60;;77111:4;77104:11;;;;77067:60;77137:23;77163:252;77216:45;;;77276:12;:10;:12::i;:::-;77303:4;77322:7;77344:5;77179:181;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77163:252;;;;;;;;;;;;;;;;;:2;:15;;;;:252;;;;;:::i;:::-;77137:278;;77426:13;77453:10;77442:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77426:48;;57367:10;77503:16;;77493:26;;;:6;:26;;;;77485:35;;;;76924:604;;;;;;;:::o;11430:565::-;11552:170;11565:2;11558:3;:9;11552:170;;11642:3;11636:10;11630:4;11623:24;11684:2;11676:10;;;;11708:2;11701:9;;;;11576:2;11569:9;;;;11552:170;;;11767:9;11799:1;11792:3;11787:2;:8;11779:3;:17;:21;11767:33;;11870:4;11866:9;11860:3;11854:10;11850:26;11923:4;11916;11910:11;11906:22;11968:7;11958:8;11955:21;11949:4;11942:35;11820:168;;;;;;:::o;90688:125::-;90759:4;90804:1;90783:3;:12;;:17;90796:3;90783:17;;;;;;;;;;;;:22;;90776:29;;90688:125;;;;:::o;97060:1544::-;97126:4;97244:18;97265:3;:12;;:19;97278:5;97265:19;;;;;;;;;;;;97244:40;;97315:1;97301:10;:15;97297:1300;;97663:21;97700:1;97687:10;:14;97663:38;;97716:17;97757:1;97736:3;:11;;:18;;;;:22;97716:42;;98003:17;98023:3;:11;;98035:9;98023:22;;;;;;;;;;;;;;;;98003:42;;98169:9;98140:3;:11;;98152:13;98140:26;;;;;;;;;;;;;;;:38;;;;98288:1;98272:13;:17;98246:3;:12;;:23;98259:9;98246:23;;;;;;;;;;;:43;;;;98398:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;98493:3;:12;;:19;98506:5;98493:19;;;;;;;;;;;98486:26;;;98536:4;98529:11;;;;;;;;97297:1300;98580:5;98573:12;;;97060:1544;;;;;:::o;96470:414::-;96533:4;96555:21;96565:3;96570:5;96555:9;:21::i;:::-;96550:327;;96593:3;:11;;96610:5;96593:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96776:3;:11;;:18;;;;96754:3;:12;;:19;96767:5;96754:19;;;;;;;;;;;:40;;;;96816:4;96809:11;;;;96550:327;96860:5;96853:12;;96470:414;;;;;:::o;88188:692::-;88264:4;88380:16;88399:3;:12;;:17;88412:3;88399:17;;;;;;;;;;;;88380:36;;88445:1;88433:8;:13;88429:444;;;88500:3;:12;;88518:38;;;;;;;;88535:3;88518:38;;;;88548:5;88518:38;;;88500:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88715:3;:12;;:19;;;;88695:3;:12;;:17;88708:3;88695:17;;;;;;;;;;;:39;;;;88756:4;88749:11;;;;;88429:444;88829:5;88793:3;:12;;88817:1;88806:8;:12;88793:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;88856:5;88849:12;;;88188:692;;;;;;:::o;74326:517::-;74423:1;74409:16;;:2;:16;;;;74401:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74482:16;74490:7;74482;:16::i;:::-;74481:17;74473:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74544:45;74573:1;74577:2;74581:7;74544:20;:45::i;:::-;74637:30;74659:7;74637:13;:17;74651:2;74637:17;;;;;;;;;;;;;;;:21;;:30;;;;:::i;:::-;;74678:29;74695:7;74704:2;74678:12;:16;;:29;;;;;:::i;:::-;;74738:9;;74718:8;:17;74727:7;74718:17;;;;;;;;;;;:29;;;;74770:14;:12;:14::i;:::-;74758:9;:26;;;;74827:7;74823:2;74802:33;;74819:1;74802:33;;;;;;;;;;;;74326:517;;:::o;79094:422::-;79154:4;79362:12;79473:7;79461:20;79453:28;;79507:1;79500:4;:8;79493:15;;;79094:422;;;:::o;82012:195::-;82115:12;82147:52;82169:6;82177:4;82183:1;82186:12;82147:21;:52::i;:::-;82140:59;;82012:195;;;;;:::o;98690:129::-;98763:4;98810:1;98787:3;:12;;:19;98800:5;98787:19;;;;;;;;;;;;:24;;98780:31;;98690:129;;;;:::o;63099:354::-;63146:4;63179:1;63166:9;;:14;63163:53;;63203:1;63196:8;;;;63163:53;63233:6;63252:1;63242:9;;:11;63233:20;;63228:187;63260:1;63255;:6;63228:187;;63286:10;63294:1;63286:7;:10::i;:::-;63283:121;;;63387:1;63380:8;;;;;63283:121;63263:3;;;;;;;;63228:187;;;;63099:354;;:::o;83064:530::-;83191:12;83249:5;83224:21;:30;;83216:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83316:18;83327:6;83316:10;:18::i;:::-;83308:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83442:12;83456:23;83483:6;:11;;83503:5;83511:4;83483:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83441:75;;;;83534:52;83552:7;83561:10;83573:12;83534:17;:52::i;:::-;83527:59;;;;83064:530;;;;;;:::o;62678:411::-;62728:4;62754:1;62747:3;:8;62744:51;;62778:5;62771:12;;;;62744:51;62815:1;62808:3;:8;62805:50;;62839:4;62832:11;;;;62805:50;62880:1;62875;62871:3;:5;;;;;;:10;:24;;;;62894:1;62889;62885:3;:5;;;;;;:10;62871:24;62867:42;;;62904:5;62897:12;;;;62867:42;62935:6;62944:1;62935:10;;62930:122;62956:3;62951:1;62947;:5;:12;62930:122;;63002:1;62997;62991:3;:7;;;;;;:12;:34;;;;63024:1;63018;63014;:5;63007:3;:13;;;;;;:18;62991:34;62987:52;;;63034:5;63027:12;;;;;62987:52;62969:1;62965;:5;62961:9;;62930:122;;;;63077:4;63070:11;;62678:411;;;;:::o;85604:742::-;85719:12;85748:7;85744:595;;;85779:10;85772:17;;;;85744:595;85913:1;85893:10;:17;:21;85889:439;;;86156:10;86150:17;86217:15;86204:10;86200:2;86196:19;86189:44;86104:148;86299:12;86292:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85604:742;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://cfa02509175b61d1ffd43b4d5245f260d0a5f180eae9585f757b2530216e5d43
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.