Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
406,508.832453703703703695 HRED
Holders
3
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
404,472.614398148148148143 HREDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ShredToken
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-02-19 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.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); /** * @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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @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; } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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 Contracts guidelines: functions revert * instead 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}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer 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); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/ShredToken.sol pragma solidity 0.8.4; contract ShredToken is ERC20, ERC20Burnable, Ownable { constructor() ERC20("Shred", "HRED") { } mapping(address => bool) controllers; function mint(address to, uint256 amount) external { require(controllers[msg.sender], "Only controllers can mint"); _mint(to, amount); } function burnFrom(address account, uint256 amount) public override { if (controllers[msg.sender]) { _burn(account, amount); } else { super.burnFrom(account, amount); } } function addController(address controller) external onlyOwner { controllers[controller] = true; } function removeController(address controller) external onlyOwner { controllers[controller] = false; } } // File: contracts/CryptAxx.sol pragma solidity 0.8.4; // @notice // Traits are distributed randomly so number sequence does not affect rarity // @dev // Operator Process: // Dec 18 - Set paused to false to activate minting functions // Dec 18 - Set whitelistMintLive to true to activate whitelist minting // Dec 18 - Run round 1 of adminMint to mint promo & giveaway NFTs // Dec 18 - Run teamMint to mint CryptAxx team NFTs // Dec 25 - Set whitelistMintLive to false to close whitelist minting // Jan 1 - Set publicMintLive to true to activate public minting // Jan 1 - Run round 2 of adminMint to mint promo & giveaway NFTs // Jan 2 - Set revealed to true to activate final metadata (central server reveal until fully minted, then IPFS) // TBD - Run mythicMint at 20% completion to random whitelist address - offchain - live Discord event contract CryptAxx is ERC721Enumerable, Ownable{ using Strings for uint256; string internal baseURI; // This is the baseURI after reveal, changeable via setBaseURI string internal baseExtension = ".json"; // The URI extention to use, changeable via setBaseExtension string internal notRevealedUri; // This is the baseURI before reveal, changeable via setNotRevealedURI uint256 public cost = 0.1 ether; // Cost of the NFT, changeable via setCost uint256 public maxSupply = 10000; // Max supply of this NFT, only decreasable uint256 public maxBurn = 7777; // Max amount of NFTs that can be burned by owner, not changeable uint256 public maxPerTransaction = 10; // Max amount of NFTs mintable per session, changeable via setMaxPerTransaction uint256 public maxPerAddress = 10; // Max amount of NFTs mintable per address, changeable via setMaxPerAddress uint256 public whitelistMaxLimit = 5000; // Max amount of NFTs available to mint during whitelist mint, changeable via setWhitelistMaxLimit uint256 public publicMaxLimit = 4799; // Max amount of NFTs available to mint during public mint, changeable via setPublicMaxLimit uint256 public adminMintLimit = 180; // Max amount of NFTs held for promotions & community giveaways, not changeable uint256 public teamMintLimit = 20; // Max amount of NFTs held for CryptAxx team, not changeable bool public paused = true; // Is contract paused, changeable via setPaused bool public revealed = false; // Is final metadata revealed, changeable via setRevealed bool public whitelistMintLive = false; // Is the whitelist mint live, changeable via setWhitelistMintLive bool public publicMintLive = false; // Is the public mint live, changeable via setPublicMintLive bool public mythicDropped = false; // Has the mythic been airdropped, changeable via setMythicDropped address[] public whitelistedAddresses; // Array of whitelist addresses, changeable via setWhitelistedAddresses mapping(address => uint256) public addressMintedBalance; // How many NFTs have been minted from this address receive() external payable {} constructor( string memory _name, string memory _symbol, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721(_name, _symbol) { setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } modifier transCheck(uint256 qty) { require(!paused, "MINTING IS NOT LIVE"); uint256 ownerMintedCount = addressMintedBalance[msg.sender]; require(msg.value >= cost * qty, "NOT ENOUGH ETH TO COMPLETE TRANSACTION"); require(ownerMintedCount + qty <= maxPerAddress, "CAN ONLY MINT 5 NFTS PER ADDRESS"); require(qty > 0, "MUST MINT AT LEAST 1 NFT"); require(qty <= maxPerTransaction, "CAN ONLY MINT 5 NFTS PER TRANSACTION"); require(totalSupply() + qty <= maxSupply, "NOT ENOUGH NFTS LEFT TO MINT"); require(tx.origin == msg.sender, "CANNOT MINT THROUGH A CUSTOM CONTRACT"); _; } modifier transCheckAdmin(uint256 qty) { require(qty > 0, "MUST MINT AT LEAST 1 NFT"); require(totalSupply() + qty <= maxSupply, "NOT ENOUGH NFTS LEFT TO MINT"); _; } modifier whitelistCheck() { require(whitelistMintLive, "WHITELIST MINT IS NOT LIVE"); require(isWhitelisted(msg.sender), "ADDRESS NOT ON WHITELIST"); require(whitelistMaxLimit > 0, "NOT ENOUGH WHITELIST NFTS LEFT TO MINT"); _; } modifier publicCheck() { require(publicMintLive, "PUBLIC MINT IS NOT LIVE"); require(publicMaxLimit > 0, "NOT ENOUGH PUBLIC NFTS LEFT TO MINT"); _; } function whitelistMint(uint256 qty) public payable transCheck(qty) whitelistCheck() { for (uint256 i = 0; i < qty; i++) { whitelistMaxLimit--; addressMintedBalance[msg.sender]++; _safeMint(msg.sender, totalSupply() + 1); } } function publicMint(uint256 qty) public payable transCheck(qty) publicCheck() { for (uint256 i = 0; i < qty; i++) { publicMaxLimit--; addressMintedBalance[msg.sender]++; _safeMint(msg.sender, totalSupply() + 1); } } function adminMint(uint256 qty, address to) public onlyOwner transCheckAdmin(qty) { require(adminMintLimit - qty >= 0, "NOT ENOUGH ADMIN NFTS LEFT TO MINT"); for (uint256 i = 0; i < qty; i++) { adminMintLimit--; _safeMint(to, totalSupply() + 1); } } function teamMint(uint256 qty, address to) public onlyOwner transCheckAdmin(qty) { require(teamMintLimit - qty >= 0, "NOT ENOUGH TEAM NFTS LEFT TO MINT"); for (uint256 i = 0; i < qty; i++) { teamMintLimit--; _safeMint(to, totalSupply() + 1); } } function burnTokens(uint256 qty) public onlyOwner transCheckAdmin(qty) { require(maxBurn - qty >= 0, "CANNOT BURN ANYMORE TOKEN WITH THIS FUNCTION"); for (uint256 i = 0; i < qty; i++) { maxBurn--; _safeMint(0x000000000000000000000000000000000000dEaD, totalSupply() + 1); } } function isWhitelisted(address _user) internal view returns (bool) { for (uint i = 0; i < whitelistedAddresses.length; i++) { if (whitelistedAddresses[i] == _user) { return true; } } return false; } function mythicMint(address to, uint256 tokenId) public onlyOwner { require(mythicDropped == false, "MYTHIC AIRDROP ALREADY MINTED"); mythicDropped = true; _safeMint(to, tokenId); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI QUERY FOR NONEXISTENT TOKEN"); if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, tokenId.toString(), baseExtension ) ) : ""; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function setNotRevealedURI(string memory _newNotRevealedURI) public onlyOwner { notRevealedUri = _newNotRevealedURI; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setMaxPerTransaction(uint256 _newMaxPerTransaction) public onlyOwner { maxPerTransaction = _newMaxPerTransaction; } function setMaxPerAddress(uint256 _newMaxPerAddress) public onlyOwner { maxPerAddress = _newMaxPerAddress; } function setWhitelistMaxLimit(uint256 _newWhitelistMaxLimit) public onlyOwner { whitelistMaxLimit = _newWhitelistMaxLimit; } function setPublicMaxLimit(uint256 _newPublicMaxLimit) public onlyOwner { publicMaxLimit = _newPublicMaxLimit; } function setPaused(bool _newPausedState) public onlyOwner { paused = _newPausedState; } function setRevealed(bool _newRevealedState) public onlyOwner { revealed = _newRevealedState; } function setWhitelistMintLive(bool _newWhitelistMintLiveState) public onlyOwner { whitelistMintLive = _newWhitelistMintLiveState; } function setPublicMintLive(bool _newPublicMintLiveState) public onlyOwner { publicMintLive = _newPublicMintLiveState; } function setWhitelistedAddresses(address[] calldata _newWhitelistedAddresses) public onlyOwner { delete whitelistedAddresses; whitelistedAddresses = _newWhitelistedAddresses; } function decreaseMaxSupply(uint256 newMaxSupply) public onlyOwner { require(newMaxSupply < maxSupply, "CAN ONLY DECREASE SUPPLY"); maxSupply = newMaxSupply; } function withdraw() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } } // File: contracts/ShredVault.sol pragma solidity 0.8.4; contract ShredVault is Ownable, IERC721Receiver { using Strings for uint256; uint256[] public scores; uint256[] public boosts; uint256 public totalStaked; bool public boostsLive = false; address contractOwner; struct Stake { uint24 tokenId; uint48 timestamp; address owner; } event NftStaked(address owner, uint256 tokenId, uint256 value); event NftUnstaked(address owner, uint256 tokenId, uint256 value); event Claimed(address owner, uint256 amount); CryptAxx nft; ShredToken token; mapping(uint256 => Stake) public vault; constructor(CryptAxx _nft, ShredToken _token) { nft = _nft; token = _token; contractOwner = msg.sender; } function setScores(uint256[] calldata tokenScores) public onlyOwner { delete scores; scores = tokenScores; } function resetScore(uint256 tokenId, uint256 newScore) public onlyOwner { uint256 tokenIndex = tokenId - 1; scores[tokenIndex] = newScore; } function getScoreIndex() public view onlyOwner returns (uint256) { return scores.length; } function addToScores(uint256[] calldata tokenScores) public onlyOwner { for (uint i = 0; i < tokenScores.length; i++) { uint256 tokenScore = tokenScores[i]; scores.push(tokenScore); } } function getScore(uint256 tokenId) public view returns (uint256) { uint256 tokenIndex = tokenId - 1; uint256 tokenScore = scores[tokenIndex]; return tokenScore; } function setBoosts(uint256[] calldata tokenBoosts) public onlyOwner { delete boosts; boosts = tokenBoosts; } function resetBoost(uint256 tokenId, uint256 newBoost) public onlyOwner { uint256 tokenIndex = tokenId - 1; boosts[tokenIndex] = newBoost; } function getBoostIndex() public view onlyOwner returns (uint256) { return boosts.length; } function addToBoosts(uint256[] calldata tokenBoosts) public onlyOwner { for (uint i = 0; i < tokenBoosts.length; i++) { uint256 tokenBoost = tokenBoosts[i]; boosts.push(tokenBoost); } } function getBoost(uint256 tokenId) public view returns (uint256) { uint256 tokenIndex = tokenId - 1; uint256 tokenBoost = boosts[tokenIndex]; return tokenBoost; } function setBoostsLive(bool _boostsLive) public onlyOwner { boostsLive = _boostsLive; } function moveToVault(uint256[] calldata tokenIds) public { for (uint i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; nft.transferFrom(msg.sender, address(this), tokenId); vault[tokenId] = Stake({ owner: msg.sender, tokenId: uint24(tokenId), timestamp: uint48(block.timestamp) }); emit NftStaked(msg.sender, tokenId, block.timestamp); } totalStaked += tokenIds.length; } function moveFromVault(uint256[] calldata tokenIds) public { for (uint i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; Stake memory staked = vault[tokenId]; require(staked.owner == msg.sender || contractOwner == msg.sender , "not an owner or not staked"); _claim(tokenId); nft.transferFrom(address(this), staked.owner, tokenId); emit NftUnstaked(staked.owner, tokenId, block.timestamp); delete vault[tokenId]; } totalStaked -= tokenIds.length; } function _claim(uint256 tokenId) internal { uint256[4] memory earned = _earningInfo(tokenId); if (earned[0] > 0) { Stake memory staked = vault[tokenId]; emit Claimed(staked.owner, earned[0]); token.mint(staked.owner, earned[0]); } } function _earningInfo(uint256 tokenId) internal view returns (uint256[4] memory info) { uint256 totalBlockTime; uint256 nftScore; uint256 earned; Stake memory staked = vault[tokenId]; uint256 stakedAt = staked.timestamp; if(stakedAt == 0){ earned = 0; } else { if(boostsLive == true){ nftScore = _boostMultiplier(tokenId); } else { nftScore = getScore(tokenId); } earned += 1 ether * nftScore * (block.timestamp - stakedAt) / 1 days; totalBlockTime += block.timestamp - stakedAt; } uint256 earnRatePerDay = nftScore * 1 ether; uint256 earnRatePerSecond = earnRatePerDay / 1 days; return [earned, earnRatePerSecond, earnRatePerDay, totalBlockTime]; } function claim(uint256[] calldata tokenIds) public { for (uint i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; Stake memory staked = vault[tokenId]; require(staked.owner == msg.sender, "not an owner or not staked"); uint256[4] memory earned = _earningInfo(tokenId); if (earned[0] > 0) { vault[tokenId] = Stake({ owner: staked.owner, tokenId: uint24(tokenId), timestamp: uint48(block.timestamp) }); emit Claimed(staked.owner, earned[0]); token.mint(staked.owner, earned[0]); } } } function earningInfo(uint256[] calldata tokenIds) public view returns (uint256[4] memory info) { uint256 totalBlockTime; uint256 totalNftScore; uint256 totalEarned; for (uint i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; uint256 nftScore; uint256 earned; Stake memory staked = vault[tokenId]; uint256 stakedAt = staked.timestamp; if(stakedAt == 0){ earned = 0; } else { if(boostsLive == true){ nftScore = _boostMultiplier(tokenId); } else { nftScore = getScore(tokenId); } earned += 1 ether * nftScore * (block.timestamp - stakedAt) / 1 days; totalBlockTime += block.timestamp - stakedAt; totalNftScore += nftScore; totalEarned += earned; } } uint256 totalEarnRatePerDay = totalNftScore * 1 ether; uint256 totalEarnRatePerSecond = totalEarnRatePerDay / 1 days; return [totalEarned, totalEarnRatePerSecond, totalEarnRatePerDay, totalBlockTime]; } function _boostMultiplier(uint256 tokenId) public view returns (uint256) { Stake memory staked = vault[tokenId]; uint256 finalScore; address tokenOwner = staked.owner; address deadAddy = 0x0000000000000000000000000000000000000000; if(balanceOf(tokenOwner) >= 3 && tokenOwner != deadAddy){ uint256 tokenIndex = tokenId - 1; uint256 tokenScore = scores[tokenIndex]; if(boosts[tokenIndex] > 0){ uint256 tokenBoost = tokenScore / (100 / boosts[tokenIndex]); finalScore = tokenScore + tokenBoost; } else { finalScore = tokenScore; } return finalScore; } else { uint256 tokenIndex = tokenId - 1; finalScore = scores[tokenIndex]; return finalScore; } } function balanceOf(address account) public view returns (uint256) { uint256 balance = 0; uint256 supply = nft.totalSupply(); for(uint i = 1; i <= supply; i++) { if (vault[i].owner == account) { balance += 1; } } return balance; } function ownerOfStaked(uint256 tokenId) public view returns (address) { Stake memory staked = vault[tokenId]; address tokenOwner = staked.owner; return tokenOwner; } function tokensOfOwner(address account) public view returns (uint256[] memory ownerTokens) { uint256 supply = nft.totalSupply(); uint256[] memory tmp = new uint256[](supply); uint256 index = 0; for(uint tokenId = 1; tokenId <= supply; tokenId++) { if (vault[tokenId].owner == account) { tmp[index] = vault[tokenId].tokenId; index +=1; } } uint256[] memory tokens = new uint256[](index); for(uint i = 0; i < index; i++) { tokens[i] = tmp[i]; } return tokens; } function onERC721Received(address, address from, uint256, bytes calldata) external view override returns (bytes4) { require(from == address(this), "Cannot send nfts to Vault directly"); return IERC721Receiver.onERC721Received.selector; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","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":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"addController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600581526414da1c995960da1b6020808301918252835180850190945260048452631214915160e21b9084015281519192916200005b91600391620000ea565b50805162000071906004906020840190620000ea565b5050506200008e620000886200009460201b60201c565b62000098565b620001cd565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000f89062000190565b90600052602060002090601f0160209004810192826200011c576000855562000167565b82601f106200013757805160ff191683800117855562000167565b8280016001018555821562000167579182015b82811115620001675782518255916020019190600101906200014a565b506200017592915062000179565b5090565b5b808211156200017557600081556001016200017a565b600181811c90821680620001a557607f821691505b60208210811415620001c757634e487b7160e01b600052602260045260246000fd5b50919050565b610f4480620001dd6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063a7fc7a0711610071578063a7fc7a0714610250578063a9059cbb14610263578063dd62ed3e14610276578063f2fde38b146102af578063f6a74ed7146102c257600080fd5b8063715018a6146101ff57806379cc6790146102075780638da5cb5b1461021a57806395d89b4114610235578063a457c2d71461023d57600080fd5b8063313ce567116100f4578063313ce5671461018c578063395093511461019b57806340c10f19146101ae57806342966c68146101c357806370a08231146101d657600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806323b872dd14610179575b600080fd5b61012e6102d5565b60405161013b9190610e06565b60405180910390f35b610157610152366004610dc5565b610367565b604051901515815260200161013b565b6002545b60405190815260200161013b565b610157610187366004610d8a565b61037d565b6040516012815260200161013b565b6101576101a9366004610dc5565b61042c565b6101c16101bc366004610dc5565b610468565b005b6101c16101d1366004610dee565b6104d5565b61016b6101e4366004610d37565b6001600160a01b031660009081526020819052604090205490565b6101c16104e2565b6101c1610215366004610dc5565b610518565b6005546040516001600160a01b03909116815260200161013b565b61012e610544565b61015761024b366004610dc5565b610553565b6101c161025e366004610d37565b6105ec565b610157610271366004610dc5565b61063a565b61016b610284366004610d58565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101c16102bd366004610d37565b610647565b6101c16102d0366004610d37565b6106df565b6060600380546102e490610ebd565b80601f016020809104026020016040519081016040528092919081815260200182805461031090610ebd565b801561035d5780601f106103325761010080835404028352916020019161035d565b820191906000526020600020905b81548152906001019060200180831161034057829003601f168201915b5050505050905090565b600061037433848461072a565b50600192915050565b600061038a84848461084f565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104145760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610421853385840361072a565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610374918590610463908690610e8e565b61072a565b3360009081526006602052604090205460ff166104c75760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206d696e7400000000000000604482015260640161040b565b6104d18282610a1e565b5050565b6104df3382610afd565b50565b6005546001600160a01b0316331461050c5760405162461bcd60e51b815260040161040b90610e59565b6105166000610c48565b565b3360009081526006602052604090205460ff161561053a576104d18282610afd565b6104d18282610c9a565b6060600480546102e490610ebd565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156105d55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161040b565b6105e2338585840361072a565b5060019392505050565b6005546001600160a01b031633146106165760405162461bcd60e51b815260040161040b90610e59565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b600061037433848461084f565b6005546001600160a01b031633146106715760405162461bcd60e51b815260040161040b90610e59565b6001600160a01b0381166106d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161040b565b6104df81610c48565b6005546001600160a01b031633146107095760405162461bcd60e51b815260040161040b90610e59565b6001600160a01b03166000908152600660205260409020805460ff19169055565b6001600160a01b03831661078c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161040b565b6001600160a01b0382166107ed5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161040b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166108b35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161040b565b6001600160a01b0382166109155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161040b565b6001600160a01b0383166000908152602081905260409020548181101561098d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161040b565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906109c4908490610e8e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a1091815260200190565b60405180910390a350505050565b6001600160a01b038216610a745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161040b565b8060026000828254610a869190610e8e565b90915550506001600160a01b03821660009081526020819052604081208054839290610ab3908490610e8e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610b5d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161040b565b6001600160a01b03821660009081526020819052604090205481811015610bd15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161040b565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c00908490610ea6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610842565b505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610ca68333610284565b905081811015610d045760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161040b565b610d11833384840361072a565b610c438383610afd565b80356001600160a01b0381168114610d3257600080fd5b919050565b600060208284031215610d48578081fd5b610d5182610d1b565b9392505050565b60008060408385031215610d6a578081fd5b610d7383610d1b565b9150610d8160208401610d1b565b90509250929050565b600080600060608486031215610d9e578081fd5b610da784610d1b565b9250610db560208501610d1b565b9150604084013590509250925092565b60008060408385031215610dd7578182fd5b610de083610d1b565b946020939093013593505050565b600060208284031215610dff578081fd5b5035919050565b6000602080835283518082850152825b81811015610e3257858101830151858201604001528201610e16565b81811115610e435783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610ea157610ea1610ef8565b500190565b600082821015610eb857610eb8610ef8565b500390565b600181811c90821680610ed157607f821691505b60208210811415610ef257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a74067469af671769e55b49405b490a6e23184a51934e5581716191f4653f1cf64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063a7fc7a0711610071578063a7fc7a0714610250578063a9059cbb14610263578063dd62ed3e14610276578063f2fde38b146102af578063f6a74ed7146102c257600080fd5b8063715018a6146101ff57806379cc6790146102075780638da5cb5b1461021a57806395d89b4114610235578063a457c2d71461023d57600080fd5b8063313ce567116100f4578063313ce5671461018c578063395093511461019b57806340c10f19146101ae57806342966c68146101c357806370a08231146101d657600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806323b872dd14610179575b600080fd5b61012e6102d5565b60405161013b9190610e06565b60405180910390f35b610157610152366004610dc5565b610367565b604051901515815260200161013b565b6002545b60405190815260200161013b565b610157610187366004610d8a565b61037d565b6040516012815260200161013b565b6101576101a9366004610dc5565b61042c565b6101c16101bc366004610dc5565b610468565b005b6101c16101d1366004610dee565b6104d5565b61016b6101e4366004610d37565b6001600160a01b031660009081526020819052604090205490565b6101c16104e2565b6101c1610215366004610dc5565b610518565b6005546040516001600160a01b03909116815260200161013b565b61012e610544565b61015761024b366004610dc5565b610553565b6101c161025e366004610d37565b6105ec565b610157610271366004610dc5565b61063a565b61016b610284366004610d58565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101c16102bd366004610d37565b610647565b6101c16102d0366004610d37565b6106df565b6060600380546102e490610ebd565b80601f016020809104026020016040519081016040528092919081815260200182805461031090610ebd565b801561035d5780601f106103325761010080835404028352916020019161035d565b820191906000526020600020905b81548152906001019060200180831161034057829003601f168201915b5050505050905090565b600061037433848461072a565b50600192915050565b600061038a84848461084f565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156104145760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610421853385840361072a565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610374918590610463908690610e8e565b61072a565b3360009081526006602052604090205460ff166104c75760405162461bcd60e51b815260206004820152601960248201527f4f6e6c7920636f6e74726f6c6c6572732063616e206d696e7400000000000000604482015260640161040b565b6104d18282610a1e565b5050565b6104df3382610afd565b50565b6005546001600160a01b0316331461050c5760405162461bcd60e51b815260040161040b90610e59565b6105166000610c48565b565b3360009081526006602052604090205460ff161561053a576104d18282610afd565b6104d18282610c9a565b6060600480546102e490610ebd565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156105d55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161040b565b6105e2338585840361072a565b5060019392505050565b6005546001600160a01b031633146106165760405162461bcd60e51b815260040161040b90610e59565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b600061037433848461084f565b6005546001600160a01b031633146106715760405162461bcd60e51b815260040161040b90610e59565b6001600160a01b0381166106d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161040b565b6104df81610c48565b6005546001600160a01b031633146107095760405162461bcd60e51b815260040161040b90610e59565b6001600160a01b03166000908152600660205260409020805460ff19169055565b6001600160a01b03831661078c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161040b565b6001600160a01b0382166107ed5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161040b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166108b35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161040b565b6001600160a01b0382166109155760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161040b565b6001600160a01b0383166000908152602081905260409020548181101561098d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161040b565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906109c4908490610e8e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a1091815260200190565b60405180910390a350505050565b6001600160a01b038216610a745760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161040b565b8060026000828254610a869190610e8e565b90915550506001600160a01b03821660009081526020819052604081208054839290610ab3908490610e8e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610b5d5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161040b565b6001600160a01b03821660009081526020819052604090205481811015610bd15760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161040b565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c00908490610ea6565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610842565b505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610ca68333610284565b905081811015610d045760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f77604482015263616e636560e01b606482015260840161040b565b610d11833384840361072a565b610c438383610afd565b80356001600160a01b0381168114610d3257600080fd5b919050565b600060208284031215610d48578081fd5b610d5182610d1b565b9392505050565b60008060408385031215610d6a578081fd5b610d7383610d1b565b9150610d8160208401610d1b565b90509250929050565b600080600060608486031215610d9e578081fd5b610da784610d1b565b9250610db560208501610d1b565b9150604084013590509250925092565b60008060408385031215610dd7578182fd5b610de083610d1b565b946020939093013593505050565b600060208284031215610dff578081fd5b5035919050565b6000602080835283518082850152825b81811015610e3257858101830151858201604001528201610e16565b81811115610e435783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610ea157610ea1610ef8565b500190565b600082821015610eb857610eb8610ef8565b500390565b600181811c90821680610ed157607f821691505b60208210811415610ef257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a74067469af671769e55b49405b490a6e23184a51934e5581716191f4653f1cf64736f6c63430008040033
Deployed Bytecode Sourcemap
61563:759:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26655:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28822:169;;;;;;:::i;:::-;;:::i;:::-;;;1848:14:1;;1841:22;1823:41;;1811:2;1796:18;28822:169:0;1778:92:1;27775:108:0;27863:12;;27775:108;;;8161:25:1;;;8149:2;8134:18;27775:108:0;8116:76:1;29473:492:0;;;;;;:::i;:::-;;:::i;27617:93::-;;;27700:2;8339:36:1;;8327:2;8312:18;27617:93:0;8294:87:1;30374:215:0;;;;;;:::i;:::-;;:::i;61714:149::-;;;;;;:::i;:::-;;:::i;:::-;;37184:91;;;;;;:::i;:::-;;:::i;27946:127::-;;;;;;:::i;:::-;-1:-1:-1;;;;;28047:18:0;28020:7;28047:18;;;;;;;;;;;;27946:127;60673:103;;;:::i;61869:222::-;;;;;;:::i;:::-;;:::i;60022:87::-;60095:6;;60022:87;;-1:-1:-1;;;;;60095:6:0;;;1621:51:1;;1609:2;1594:18;60022:87:0;1576:102:1;26874:104:0;;;:::i;31092:413::-;;;;;;:::i;:::-;;:::i;62097:105::-;;;;;;:::i;:::-;;:::i;28286:175::-;;;;;;:::i;:::-;;:::i;28524:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;28640:18:0;;;28613:7;28640:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;28524:151;60931:201;;;;;;:::i;:::-;;:::i;62208:109::-;;;;;;:::i;:::-;;:::i;26655:100::-;26709:13;26742:5;26735:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26655:100;:::o;28822:169::-;28905:4;28922:39;24390:10;28945:7;28954:6;28922:8;:39::i;:::-;-1:-1:-1;28979:4:0;28822:169;;;;:::o;29473:492::-;29613:4;29630:36;29640:6;29648:9;29659:6;29630:9;:36::i;:::-;-1:-1:-1;;;;;29706:19:0;;29679:24;29706:19;;;:11;:19;;;;;;;;24390:10;29706:33;;;;;;;;29758:26;;;;29750:79;;;;-1:-1:-1;;;29750:79:0;;5063:2:1;29750:79:0;;;5045:21:1;5102:2;5082:18;;;5075:30;5141:34;5121:18;;;5114:62;-1:-1:-1;;;5192:18:1;;;5185:38;5240:19;;29750:79:0;;;;;;;;;29865:57;29874:6;24390:10;29915:6;29896:16;:25;29865:8;:57::i;:::-;-1:-1:-1;29953:4:0;;29473:492;-1:-1:-1;;;;29473:492:0:o;30374:215::-;24390:10;30462:4;30511:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;30511:34:0;;;;;;;;;;30462:4;;30479:80;;30502:7;;30511:47;;30548:10;;30511:47;:::i;:::-;30479:8;:80::i;61714:149::-;61792:10;61780:23;;;;:11;:23;;;;;;;;61772:61;;;;-1:-1:-1;;;61772:61:0;;4709:2:1;61772:61:0;;;4691:21:1;4748:2;4728:18;;;4721:30;4787:27;4767:18;;;4760:55;4832:18;;61772:61:0;4681:175:1;61772:61:0;61840:17;61846:2;61850:6;61840:5;:17::i;:::-;61714:149;;:::o;37184:91::-;37240:27;24390:10;37260:6;37240:5;:27::i;:::-;37184:91;:::o;60673:103::-;60095:6;;-1:-1:-1;;;;;60095:6:0;24390:10;60242:23;60234:68;;;;-1:-1:-1;;;60234:68:0;;;;;;;:::i;:::-;60738:30:::1;60765:1;60738:18;:30::i;:::-;60673:103::o:0;61869:222::-;61961:10;61949:23;;;;:11;:23;;;;;;;;61945:141;;;61987:22;61993:7;62002:6;61987:5;:22::i;61945:141::-;62045:31;62060:7;62069:6;62045:14;:31::i;26874:104::-;26930:13;26963:7;26956:14;;;;;:::i;31092:413::-;24390:10;31185:4;31229:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;31229:34:0;;;;;;;;;;31282:35;;;;31274:85;;;;-1:-1:-1;;;31274:85:0;;7451:2:1;31274:85:0;;;7433:21:1;7490:2;7470:18;;;7463:30;7529:34;7509:18;;;7502:62;-1:-1:-1;;;7580:18:1;;;7573:35;7625:19;;31274:85:0;7423:227:1;31274:85:0;31395:67;24390:10;31418:7;31446:15;31427:16;:34;31395:8;:67::i;:::-;-1:-1:-1;31493:4:0;;31092:413;-1:-1:-1;;;31092:413:0:o;62097:105::-;60095:6;;-1:-1:-1;;;;;60095:6:0;24390:10;60242:23;60234:68;;;;-1:-1:-1;;;60234:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;62166:23:0::1;;::::0;;;:11:::1;:23;::::0;;;;:30;;-1:-1:-1;;62166:30:0::1;62192:4;62166:30;::::0;;62097:105::o;28286:175::-;28372:4;28389:42;24390:10;28413:9;28424:6;28389:9;:42::i;60931:201::-;60095:6;;-1:-1:-1;;;;;60095:6:0;24390:10;60242:23;60234:68;;;;-1:-1:-1;;;60234:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;61020:22:0;::::1;61012:73;;;::::0;-1:-1:-1;;;61012:73:0;;3492:2:1;61012:73:0::1;::::0;::::1;3474:21:1::0;3531:2;3511:18;;;3504:30;3570:34;3550:18;;;3543:62;-1:-1:-1;;;3621:18:1;;;3614:36;3667:19;;61012:73:0::1;3464:228:1::0;61012:73:0::1;61096:28;61115:8;61096:18;:28::i;62208:109::-:0;60095:6;;-1:-1:-1;;;;;60095:6:0;24390:10;60242:23;60234:68;;;;-1:-1:-1;;;60234:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;62280:23:0::1;62306:5;62280:23:::0;;;:11:::1;:23;::::0;;;;:31;;-1:-1:-1;;62280:31:0::1;::::0;;62208:109::o;34776:380::-;-1:-1:-1;;;;;34912:19:0;;34904:68;;;;-1:-1:-1;;;34904:68:0;;7046:2:1;34904:68:0;;;7028:21:1;7085:2;7065:18;;;7058:30;7124:34;7104:18;;;7097:62;-1:-1:-1;;;7175:18:1;;;7168:34;7219:19;;34904:68:0;7018:226:1;34904:68:0;-1:-1:-1;;;;;34991:21:0;;34983:68;;;;-1:-1:-1;;;34983:68:0;;3899:2:1;34983:68:0;;;3881:21:1;3938:2;3918:18;;;3911:30;3977:34;3957:18;;;3950:62;-1:-1:-1;;;4028:18:1;;;4021:32;4070:19;;34983:68:0;3871:224:1;34983:68:0;-1:-1:-1;;;;;35064:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;35116:32;;8161:25:1;;;35116:32:0;;8134:18:1;35116:32:0;;;;;;;;34776:380;;;:::o;31995:733::-;-1:-1:-1;;;;;32135:20:0;;32127:70;;;;-1:-1:-1;;;32127:70:0;;6640:2:1;32127:70:0;;;6622:21:1;6679:2;6659:18;;;6652:30;6718:34;6698:18;;;6691:62;-1:-1:-1;;;6769:18:1;;;6762:35;6814:19;;32127:70:0;6612:227:1;32127:70:0;-1:-1:-1;;;;;32216:23:0;;32208:71;;;;-1:-1:-1;;;32208:71:0;;2685:2:1;32208:71:0;;;2667:21:1;2724:2;2704:18;;;2697:30;2763:34;2743:18;;;2736:62;-1:-1:-1;;;2814:18:1;;;2807:33;2857:19;;32208:71:0;2657:225:1;32208:71:0;-1:-1:-1;;;;;32376:17:0;;32352:21;32376:17;;;;;;;;;;;32412:23;;;;32404:74;;;;-1:-1:-1;;;32404:74:0;;4302:2:1;32404:74:0;;;4284:21:1;4341:2;4321:18;;;4314:30;4380:34;4360:18;;;4353:62;-1:-1:-1;;;4431:18:1;;;4424:36;4477:19;;32404:74:0;4274:228:1;32404:74:0;-1:-1:-1;;;;;32514:17:0;;;:9;:17;;;;;;;;;;;32534:22;;;32514:42;;32578:20;;;;;;;;:30;;32550:6;;32514:9;32578:30;;32550:6;;32578:30;:::i;:::-;;;;;;;;32643:9;-1:-1:-1;;;;;32626:35:0;32635:6;-1:-1:-1;;;;;32626:35:0;;32654:6;32626:35;;;;8161:25:1;;8149:2;8134:18;;8116:76;32626:35:0;;;;;;;;31995:733;;;;:::o;33015:399::-;-1:-1:-1;;;;;33099:21:0;;33091:65;;;;-1:-1:-1;;;33091:65:0;;7857:2:1;33091:65:0;;;7839:21:1;7896:2;7876:18;;;7869:30;7935:33;7915:18;;;7908:61;7986:18;;33091:65:0;7829:181:1;33091:65:0;33247:6;33231:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;33264:18:0;;:9;:18;;;;;;;;;;:28;;33286:6;;33264:9;:28;;33286:6;;33264:28;:::i;:::-;;;;-1:-1:-1;;33308:37:0;;8161:25:1;;;-1:-1:-1;;;;;33308:37:0;;;33325:1;;33308:37;;8149:2:1;8134:18;33308:37:0;;;;;;;61714:149;;:::o;33747:591::-;-1:-1:-1;;;;;33831:21:0;;33823:67;;;;-1:-1:-1;;;33823:67:0;;6238:2:1;33823:67:0;;;6220:21:1;6277:2;6257:18;;;6250:30;6316:34;6296:18;;;6289:62;-1:-1:-1;;;6367:18:1;;;6360:31;6408:19;;33823:67:0;6210:223:1;33823:67:0;-1:-1:-1;;;;;33990:18:0;;33965:22;33990:18;;;;;;;;;;;34027:24;;;;34019:71;;;;-1:-1:-1;;;34019:71:0;;3089:2:1;34019:71:0;;;3071:21:1;3128:2;3108:18;;;3101:30;3167:34;3147:18;;;3140:62;-1:-1:-1;;;3218:18:1;;;3211:32;3260:19;;34019:71:0;3061:224:1;34019:71:0;-1:-1:-1;;;;;34126:18:0;;:9;:18;;;;;;;;;;34147:23;;;34126:44;;34192:12;:22;;34164:6;;34126:9;34192:22;;34164:6;;34192:22;:::i;:::-;;;;-1:-1:-1;;34232:37:0;;8161:25:1;;;34258:1:0;;-1:-1:-1;;;;;34232:37:0;;;;;8149:2:1;8134:18;34232:37:0;8116:76:1;34282:48:0;33747:591;;;:::o;61292:191::-;61385:6;;;-1:-1:-1;;;;;61402:17:0;;;-1:-1:-1;;;;;;61402:17:0;;;;;;;61435:40;;61385:6;;;61402:17;61385:6;;61435:40;;61366:16;;61435:40;61292:191;;:::o;37594:368::-;37671:24;37698:32;37708:7;24390:10;28524:151;:::i;37698:32::-;37671:59;;37769:6;37749:16;:26;;37741:75;;;;-1:-1:-1;;;37741:75:0;;5833:2:1;37741:75:0;;;5815:21:1;5872:2;5852:18;;;5845:30;5911:34;5891:18;;;5884:62;-1:-1:-1;;;5962:18:1;;;5955:34;6006:19;;37741:75:0;5805:226:1;37741:75:0;37852:58;37861:7;24390:10;37903:6;37884:16;:25;37852:8;:58::i;:::-;37932:22;37938:7;37947:6;37932:5;:22::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;461:6;469;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;745:6;753;761;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;1079:6;1087;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1280:190::-;1339:6;1392:2;1380:9;1371:7;1367:23;1363:32;1360:2;;;1413:6;1405;1398:22;1360:2;-1:-1:-1;1441:23:1;;1350:120;-1:-1:-1;1350:120:1:o;1875:603::-;1987:4;2016:2;2045;2034:9;2027:21;2077:6;2071:13;2120:6;2115:2;2104:9;2100:18;2093:34;2145:4;2158:140;2172:6;2169:1;2166:13;2158:140;;;2267:14;;;2263:23;;2257:30;2233:17;;;2252:2;2229:26;2222:66;2187:10;;2158:140;;;2316:6;2313:1;2310:13;2307:2;;;2386:4;2381:2;2372:6;2361:9;2357:22;2353:31;2346:45;2307:2;-1:-1:-1;2462:2:1;2441:15;-1:-1:-1;;2437:29:1;2422:45;;;;2469:2;2418:54;;1996:482;-1:-1:-1;;;1996:482:1:o;5270:356::-;5472:2;5454:21;;;5491:18;;;5484:30;5550:34;5545:2;5530:18;;5523:62;5617:2;5602:18;;5444:182::o;8386:128::-;8426:3;8457:1;8453:6;8450:1;8447:13;8444:2;;;8463:18;;:::i;:::-;-1:-1:-1;8499:9:1;;8434:80::o;8519:125::-;8559:4;8587:1;8584;8581:8;8578:2;;;8592:18;;:::i;:::-;-1:-1:-1;8629:9:1;;8568:76::o;8649:380::-;8728:1;8724:12;;;;8771;;;8792:2;;8846:4;8838:6;8834:17;8824:27;;8792:2;8899;8891:6;8888:14;8868:18;8865:38;8862:2;;;8945:10;8940:3;8936:20;8933:1;8926:31;8980:4;8977:1;8970:15;9008:4;9005:1;8998:15;8862:2;;8704:325;;;:::o;9034:127::-;9095:10;9090:3;9086:20;9083:1;9076:31;9126:4;9123:1;9116:15;9150:4;9147:1;9140:15
Swarm Source
ipfs://a74067469af671769e55b49405b490a6e23184a51934e5581716191f4653f1cf
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.