Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 157 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 16216136 | 1198 days ago | IN | 0 ETH | 0.00057472 | ||||
| Set Approval For... | 16138366 | 1209 days ago | IN | 0 ETH | 0.00065737 | ||||
| Withdraw | 16137654 | 1209 days ago | IN | 0 ETH | 0.00056021 | ||||
| Set Approval For... | 16137354 | 1209 days ago | IN | 0 ETH | 0.00068758 | ||||
| Set Approval For... | 16137309 | 1209 days ago | IN | 0 ETH | 0.00075397 | ||||
| Set Approval For... | 16137308 | 1209 days ago | IN | 0 ETH | 0.00070139 | ||||
| Set Approval For... | 16137308 | 1209 days ago | IN | 0 ETH | 0.00070139 | ||||
| Set Approval For... | 16137307 | 1209 days ago | IN | 0 ETH | 0.00072662 | ||||
| Set Approval For... | 16137304 | 1209 days ago | IN | 0 ETH | 0.00073077 | ||||
| Set Approval For... | 16137301 | 1209 days ago | IN | 0 ETH | 0.00078351 | ||||
| Set Approval For... | 16137298 | 1209 days ago | IN | 0 ETH | 0.00068895 | ||||
| Set Approval For... | 16137298 | 1209 days ago | IN | 0 ETH | 0.00068895 | ||||
| Set Approval For... | 16137297 | 1209 days ago | IN | 0 ETH | 0.00070163 | ||||
| Mint | 16137293 | 1209 days ago | IN | 0 ETH | 0.00039796 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.0004034 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.0004034 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.0004034 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.0004034 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.0004034 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.0004034 | ||||
| Mint | 16137292 | 1209 days ago | IN | 0 ETH | 0.00044297 | ||||
| Mint | 16137291 | 1209 days ago | IN | 0 ETH | 0.00041745 | ||||
| Mint | 16137291 | 1209 days ago | IN | 0 ETH | 0.00041745 | ||||
| Mint | 16137291 | 1209 days ago | IN | 0 ETH | 0.00041745 | ||||
| Mint | 16137291 | 1209 days ago | IN | 0 ETH | 0.00041745 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 16137654 | 1209 days ago | 0.0017 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PsychologybyGentro
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/**
/******************************************************************************
Psychology by Gentro
/******************************************************************************/
// SPDX-License-Identifier: MIT
// File contracts/OperatorFilter/IOperatorFilterRegistry.sol
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}
// File contracts/OperatorFilter/OperatorFilterer.sol
pragma solidity ^0.8.13;
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry constant operatorFilterRegistry =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(operatorFilterRegistry).code.length > 0) {
if (subscribe) {
operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
operatorFilterRegistry.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(operatorFilterRegistry).code.length > 0) {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from == msg.sender) {
_;
return;
}
if (
!(
operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)
&& operatorFilterRegistry.isOperatorAllowed(address(this), from)
)
) {
revert OperatorNotAllowed(msg.sender);
}
}
_;
}
}
// File contracts/OperatorFilter/DefaultOperatorFilterer.sol
pragma solidity ^0.8.13;
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.7.3
// 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/token/ERC721/IERC721.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}
// File @openzeppelin/contracts/utils/Context.sol@v4.7.3
// 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/utils/Address.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol@v4.7.3
// 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/Strings.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}
// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v4.7.3
// 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 erc721a/contracts/ERC721A.sol@v3.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
}
// Compiler will pack this into a single 256bit word.
struct AddressData {
// Realistically, 2**64-1 is more than enough.
uint64 balance;
// Keeps track of mint count with minimal overhead for tokenomics.
uint64 numberMinted;
// Keeps track of burn count with minimal overhead for tokenomics.
uint64 numberBurned;
// For miscellaneous variable(s) pertaining to the address
// (e.g. number of whitelist mint slots used).
// If there are multiple variables, please pack them into a uint64.
uint64 aux;
}
// The tokenId of the next token to be minted.
uint256 internal _currentIndex;
// The number of tokens burned.
uint256 internal _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
mapping(uint256 => TokenOwnership) internal _ownerships;
// Mapping owner address to address data
mapping(address => AddressData) private _addressData;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* To change the starting tokenId, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
*/
function totalSupply() public view returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than _currentIndex - _startTokenId() times
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to _startTokenId()
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @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 override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return uint256(_addressData[owner].balance);
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return uint256(_addressData[owner].numberMinted);
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return uint256(_addressData[owner].numberBurned);
}
/**
* Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return _addressData[owner].aux;
}
/**
* Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal {
_addressData[owner].aux = aux;
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr && curr < _currentIndex) {
TokenOwnership memory ownership = _ownerships[curr];
if (!ownership.burned) {
if (ownership.addr != address(0)) {
return ownership;
}
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
while (true) {
curr--;
ownership = _ownerships[curr];
if (ownership.addr != address(0)) {
return ownership;
}
}
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return _ownershipOf(tokenId).addr;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = ERC721A.ownerOf(tokenId);
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_approve(to, tokenId, owner);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSender()) revert ApproveToCaller();
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
_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 {
_transfer(from, to, tokenId);
if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return _startTokenId() <= tokenId && tokenId < _currentIndex &&
!_ownerships[tokenId].burned;
}
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity, _data, true);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
_addressData[to].balance += uint64(quantity);
_addressData[to].numberMinted += uint64(quantity);
_ownerships[startTokenId].addr = to;
_ownerships[startTokenId].startTimestamp = uint64(block.timestamp);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
if (safe && to.isContract()) {
do {
emit Transfer(address(0), to, updatedIndex);
if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (updatedIndex != end);
// Reentrancy protection
if (_currentIndex != startTokenId) revert();
} else {
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex != end);
}
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
bool isApprovedOrOwner = (_msgSender() == from ||
isApprovedForAll(from, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, from);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
_addressData[from].balance -= 1;
_addressData[to].balance += 1;
TokenOwnership storage currSlot = _ownerships[tokenId];
currSlot.addr = to;
currSlot.startTimestamp = uint64(block.timestamp);
// If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
TokenOwnership storage nextSlot = _ownerships[nextTokenId];
if (nextSlot.addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId != _currentIndex) {
nextSlot.addr = from;
nextSlot.startTimestamp = prevOwnership.startTimestamp;
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev This is equivalent to _burn(tokenId, false)
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
address from = prevOwnership.addr;
if (approvalCheck) {
bool isApprovedOrOwner = (_msgSender() == from ||
isApprovedForAll(from, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, from);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
AddressData storage addressData = _addressData[from];
addressData.balance -= 1;
addressData.numberBurned += 1;
// Keep track of who burned the token, and the timestamp of burning.
TokenOwnership storage currSlot = _ownerships[tokenId];
currSlot.addr = from;
currSlot.startTimestamp = uint64(block.timestamp);
currSlot.burned = true;
// If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
TokenOwnership storage nextSlot = _ownerships[nextTokenId];
if (nextSlot.addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId != _currentIndex) {
nextSlot.addr = from;
nextSlot.startTimestamp = prevOwnership.startTimestamp;
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}
// File @openzeppelin/contracts/access/Ownable.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File @openzeppelin/contracts/interfaces/IERC2981.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}
// File @openzeppelin/contracts/token/common/ERC2981.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: Invalid parameters");
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}
// File @openzeppelin/contracts/utils/cryptography/MerkleProof.sol@v4.7.3
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*
* WARNING: You should avoid using leaf values that are 64 bytes long prior to
* hashing, or use a hash function other than keccak256 for hashing leaves.
* This is because the concatenation of a sorted pair of internal nodes in
* the merkle tree could be reinterpreted as a leaf value.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Calldata version of {verify}
*
* _Available since v4.7._
*/
function verifyCalldata(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Calldata version of {processProof}
*
* _Available since v4.7._
*/
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* _Available since v4.7._
*/
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
/**
* @dev Calldata version of {multiProofVerify}
*
* _Available since v4.7._
*/
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
* consuming from one or the other at each step according to the instructions given by
* `proofFlags`.
*
* _Available since v4.7._
*/
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Calldata version of {processMultiProof}
*
* _Available since v4.7._
*/
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
/******************************************************************************
Psychology by Gentro
/******************************************************************************/
pragma solidity ^0.8.7;
error SaleInactive();
error SoldOut();
error InvalidPrice();
error WithdrawFailed();
error InvalidQuantity();
error InvalidProof();
error InvalidBatchMint();
contract PsychologybyGentro is ERC721A, Ownable, ERC2981, OperatorFilterer {
uint256 public price = 0.0017 ether;
uint256 public presalePrice = 0.001 ether;
uint256 public maxPerWallet = 5;
uint256 public maxPerTransaction = 5;
uint256 public presaleMaxPerWallet = 3;
uint256 public presaleMaxPerTransaction = 3;
uint256 public immutable presaleSupply = 333;
uint256 public immutable supply = 568;
enum SaleState {
CLOSED,
OPEN,
PRESALE
}
SaleState public saleState = SaleState.CLOSED;
string public _baseTokenURI;
mapping(address => uint256) public addressMintBalance;
address[] public withdrawAddresses = [0x0A884769Ec984bfb079eE51A4919BfD512e33E96];
uint256[] public withdrawPercentages = [100];
bytes32 public merkleRoot = 0x8f439af9cddb901c477dba14478c7fcd6828aafb4f363fe46bac710714f66e11;
constructor(
string memory _name,
string memory _symbol,
string memory _baseUri,
uint96 _royaltyAmount
) ERC721A(_name, _symbol) OperatorFilterer(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6, true) {
_baseTokenURI = _baseUri;
_setDefaultRoyalty(0x0A884769Ec984bfb079eE51A4919BfD512e33E96, _royaltyAmount);
}
function mint(uint256 qty) external payable {
if (saleState != SaleState.OPEN) revert SaleInactive();
if (_currentIndex + (qty - 1) > supply) revert SoldOut();
if (msg.value != price * qty) revert InvalidPrice();
if (addressMintBalance[msg.sender] + qty > maxPerWallet) revert InvalidQuantity();
if (qty > maxPerTransaction) revert InvalidQuantity();
addressMintBalance[msg.sender] += qty;
_safeMint(msg.sender, qty);
}
function presale(uint256 qty, bytes32[] calldata merkleProof) external payable {
if (saleState != SaleState.PRESALE) revert SaleInactive();
if (_currentIndex + (qty - 1) > presaleSupply) revert SoldOut();
if (msg.value != presalePrice * qty) revert InvalidPrice();
if (!MerkleProof.verify(merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender)))) {
revert InvalidProof();
}
if (addressMintBalance[msg.sender] + qty > presaleMaxPerWallet) revert InvalidQuantity();
if (qty > presaleMaxPerTransaction) revert InvalidQuantity();
addressMintBalance[msg.sender] += qty;
_safeMint(msg.sender, qty);
}
function _startTokenId() internal view virtual override returns (uint256) {
return 1;
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function setBaseURI(string memory baseURI) external onlyOwner {
_baseTokenURI = baseURI;
}
function setPrice(uint256 newPrice) external onlyOwner {
price = newPrice;
}
function setPresalePrice(uint256 newPrice) external onlyOwner {
presalePrice = newPrice;
}
function setSaleState(uint8 _state) external onlyOwner {
saleState = SaleState(_state);
}
function freeMint(uint256 qty, address recipient) external onlyOwner {
if (_currentIndex + (qty - 1) > supply) revert SoldOut();
_safeMint(recipient, qty);
}
function batchMint(uint64[] calldata qtys, address[] calldata recipients)
external
onlyOwner
{
uint256 numRecipients = recipients.length;
if (numRecipients != qtys.length) revert InvalidBatchMint();
for (uint256 i = 0; i < numRecipients; ) {
if ((_currentIndex - 1) + qtys[i] > supply) revert SoldOut();
_safeMint(recipients[i], qtys[i]);
unchecked {
i++;
}
}
}
function setPerWalletMax(uint256 _val) external onlyOwner {
maxPerWallet = _val;
}
function setPerTransactionMax(uint256 _val) external onlyOwner {
maxPerTransaction = _val;
}
function setPresalePerWalletMax(uint256 _val) external onlyOwner {
presaleMaxPerWallet = _val;
}
function setPresalePerTransactionMax(uint256 _val) external onlyOwner {
presaleMaxPerTransaction = _val;
}
function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
merkleRoot = _merkleRoot;
}
function _withdraw(address _address, uint256 _amount) private {
(bool success, ) = _address.call{value: _amount}("");
if (!success) revert WithdrawFailed();
}
function withdraw() external onlyOwner {
uint256 balance = address(this).balance;
for (uint256 i; i < withdrawAddresses.length; i++) {
_withdraw(withdrawAddresses[i], (balance * withdrawPercentages[i]) / 100);
}
}
function setRoyaltyInfo(address receiver, uint96 feeBasisPoints)
external
onlyOwner
{
_setDefaultRoyalty(receiver, feeBasisPoints);
}
function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721A, ERC2981)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) {
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId, data);
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"uint96","name":"_royaltyAmount","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidBatchMint","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"InvalidQuantity","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleInactive","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WithdrawFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"qtys","type":"uint64[]"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMaxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum PsychologybyGentro.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"setPerTransactionMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"setPerWalletMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"setPresalePerTransactionMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_val","type":"uint256"}],"name":"setPresalePerWalletMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_state","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawPercentages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c060405266060a24181e4000600b5566038d7ea4c68000600c556005600d556005600e556003600f55600360105561014d60809081525061023860a0908152506000601160006101000a81548160ff021916908360028111156200006957620000686200082d565b5b02179055506040518060200160405280730a884769ec984bfb079ee51a4919bfd512e33e9673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506014906001620000cf92919062000697565b506040518060200160405280606460ff168152506015906001620000f592919062000726565b507f8f439af9cddb901c477dba14478c7fcd6828aafb4f363fe46bac710714f66e1160001b6016553480156200012a57600080fd5b5060405162005b5938038062005b59833981810160405281019062000150919062000a42565b733cc6cdda760b79bafa08df41ecfa224f810dceb6600185858160029080519060200190620001819291906200077d565b5080600390805190602001906200019a9291906200077d565b50620001ab6200041360201b60201c565b6000819055505050620001d3620001c76200041c60201b60201c565b6200042460201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003c85780156200028e576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200025492919062000b56565b600060405180830381600087803b1580156200026f57600080fd5b505af115801562000284573d6000803e3d6000fd5b50505050620003c7565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000348576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200030e92919062000b56565b600060405180830381600087803b1580156200032957600080fd5b505af11580156200033e573d6000803e3d6000fd5b50505050620003c6565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000391919062000b83565b600060405180830381600087803b158015620003ac57600080fd5b505af1158015620003c1573d6000803e3d6000fd5b505050505b5b5b50508160129080519060200190620003e29291906200077d565b5062000409730a884769ec984bfb079ee51a4919bfd512e33e9682620004ea60201b60201c565b5050505062000d1f565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004fa6200068d60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156200055b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005529062000c27565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620005cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005c49062000c99565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b82805482825590600052602060002090810192821562000713579160200282015b82811115620007125782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190620006b8565b5b5090506200072291906200080e565b5090565b8280548282559060005260206000209081019282156200076a579160200282015b8281111562000769578251829060ff1690559160200191906001019062000747565b5b5090506200077991906200080e565b5090565b8280546200078b9062000cea565b90600052602060002090601f016020900481019282620007af5760008555620007fb565b82601f10620007ca57805160ff1916838001178555620007fb565b82800160010185558215620007fb579182015b82811115620007fa578251825591602001919060010190620007dd565b5b5090506200080a91906200080e565b5090565b5b80821115620008295760008160009055506001016200080f565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620008c5826200087a565b810181811067ffffffffffffffff82111715620008e757620008e66200088b565b5b80604052505050565b6000620008fc6200085c565b90506200090a8282620008ba565b919050565b600067ffffffffffffffff8211156200092d576200092c6200088b565b5b62000938826200087a565b9050602081019050919050565b60005b838110156200096557808201518184015260208101905062000948565b8381111562000975576000848401525b50505050565b6000620009926200098c846200090f565b620008f0565b905082815260208101848484011115620009b157620009b062000875565b5b620009be84828562000945565b509392505050565b600082601f830112620009de57620009dd62000870565b5b8151620009f08482602086016200097b565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b62000a1c81620009f9565b811462000a2857600080fd5b50565b60008151905062000a3c8162000a11565b92915050565b6000806000806080858703121562000a5f5762000a5e62000866565b5b600085015167ffffffffffffffff81111562000a805762000a7f6200086b565b5b62000a8e87828801620009c6565b945050602085015167ffffffffffffffff81111562000ab25762000ab16200086b565b5b62000ac087828801620009c6565b935050604085015167ffffffffffffffff81111562000ae45762000ae36200086b565b5b62000af287828801620009c6565b925050606062000b058782880162000a2b565b91505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b3e8262000b11565b9050919050565b62000b508162000b31565b82525050565b600060408201905062000b6d600083018562000b45565b62000b7c602083018462000b45565b9392505050565b600060208201905062000b9a600083018462000b45565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000c0f602a8362000ba0565b915062000c1c8262000bb1565b604082019050919050565b6000602082019050818103600083015262000c428162000c00565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000c8160198362000ba0565b915062000c8e8262000c49565b602082019050919050565b6000602082019050818103600083015262000cb48162000c72565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000d0357607f821691505b60208210810362000d195762000d1862000cbb565b5b50919050565b60805160a051614df862000d6160003960008181610aec01528181611149015281816115be015261190f015260008181611c630152611eea0152614df86000f3fe6080604052600436106102875760003560e01c806355f804b31161015a578063a0712d68116100c1578063c87b56dd1161007a578063c87b56dd14610988578063cfc86f7b146109c5578063d86bed9b146109f0578063e341f5ca14610a2d578063e985e9c514610a56578063f2fde38b14610a9357610287565b8063a0712d68146108aa578063a22cb465146108c6578063b3a196e9146108ef578063b88d4fde1461091a578063bd3b14d314610943578063c13bd95c1461096c57610287565b8063715018a611610113578063715018a6146107c05780637cb64759146107d75780638da5cb5b1461080057806391b7f5ed1461082b57806395d89b4114610854578063a035b1fe1461087f57610287565b806355f804b3146106a05780635a67de07146106c9578063603f4d52146106f25780636352211e1461071d5780636752656b1461075a57806370a082311461078357610287565b80632a55205a116101fe5780633ccfd60b116101b75780633ccfd60b146105a257806342842e0e146105b957806344bb8279146105e2578063453c23101461061f5780634b980d671461064a57806350cf22c11461067557610287565b80632a55205a146104815780632eb4a7ab146104bf5780633406c726146104ea57806334861c75146105275780633549345e14610550578063391176681461057957610287565b8063081812fc11610250578063081812fc14610373578063095ea7b3146103b05780630d0ee170146103d957806312c23bd81461040257806318160ddd1461042d57806323b872dd1461045857610287565b80620e7fa81461028c57806301ffc9a7146102b757806302fa7c47146102f4578063047fc9aa1461031d57806306fdde0314610348575b600080fd5b34801561029857600080fd5b506102a1610abc565b6040516102ae9190613b54565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190613bdb565b610ac2565b6040516102eb9190613c23565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613ce0565b610ad4565b005b34801561032957600080fd5b50610332610aea565b60405161033f9190613b54565b60405180910390f35b34801561035457600080fd5b5061035d610b0e565b60405161036a9190613db9565b60405180910390f35b34801561037f57600080fd5b5061039a60048036038101906103959190613e07565b610ba0565b6040516103a79190613e43565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613e5e565b610c1c565b005b3480156103e557600080fd5b5061040060048036038101906103fb9190613e07565b610d26565b005b34801561040e57600080fd5b50610417610d38565b6040516104249190613b54565b60405180910390f35b34801561043957600080fd5b50610442610d3e565b60405161044f9190613b54565b60405180910390f35b34801561046457600080fd5b5061047f600480360381019061047a9190613e9e565b610d55565b005b34801561048d57600080fd5b506104a860048036038101906104a39190613ef1565b610f37565b6040516104b6929190613f31565b60405180910390f35b3480156104cb57600080fd5b506104d4611121565b6040516104e19190613f73565b60405180910390f35b3480156104f657600080fd5b50610511600480360381019061050c9190613f8e565b611127565b60405161051e9190613b54565b60405180910390f35b34801561053357600080fd5b5061054e60048036038101906105499190613fbb565b61113f565b005b34801561055c57600080fd5b5061057760048036038101906105729190613e07565b6111c8565b005b34801561058557600080fd5b506105a0600480360381019061059b9190613e07565b6111da565b005b3480156105ae57600080fd5b506105b76111ec565b005b3480156105c557600080fd5b506105e060048036038101906105db9190613e9e565b61129d565b005b3480156105ee57600080fd5b5061060960048036038101906106049190613e07565b61147f565b6040516106169190613e43565b60405180910390f35b34801561062b57600080fd5b506106346114be565b6040516106419190613b54565b60405180910390f35b34801561065657600080fd5b5061065f6114c4565b60405161066c9190613b54565b60405180910390f35b34801561068157600080fd5b5061068a6114ca565b6040516106979190613b54565b60405180910390f35b3480156106ac57600080fd5b506106c760048036038101906106c29190614130565b6114d0565b005b3480156106d557600080fd5b506106f060048036038101906106eb91906141b2565b6114f2565b005b3480156106fe57600080fd5b5061070761153c565b6040516107149190614256565b60405180910390f35b34801561072957600080fd5b50610744600480360381019061073f9190613e07565b61154f565b6040516107519190613e43565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c9190614327565b611565565b005b34801561078f57600080fd5b506107aa60048036038101906107a59190613f8e565b6116d7565b6040516107b79190613b54565b60405180910390f35b3480156107cc57600080fd5b506107d56117a6565b005b3480156107e357600080fd5b506107fe60048036038101906107f991906143d4565b6117ba565b005b34801561080c57600080fd5b506108156117cc565b6040516108229190613e43565b60405180910390f35b34801561083757600080fd5b50610852600480360381019061084d9190613e07565b6117f6565b005b34801561086057600080fd5b50610869611808565b6040516108769190613db9565b60405180910390f35b34801561088b57600080fd5b5061089461189a565b6040516108a19190613b54565b60405180910390f35b6108c460048036038101906108bf9190613e07565b6118a0565b005b3480156108d257600080fd5b506108ed60048036038101906108e8919061442d565b611aea565b005b3480156108fb57600080fd5b50610904611c61565b6040516109119190613b54565b60405180910390f35b34801561092657600080fd5b50610941600480360381019061093c919061450e565b611c85565b005b34801561094f57600080fd5b5061096a60048036038101906109659190613e07565b611e6a565b005b610986600480360381019061098191906145e7565b611e7c565b005b34801561099457600080fd5b506109af60048036038101906109aa9190613e07565b612171565b6040516109bc9190613db9565b60405180910390f35b3480156109d157600080fd5b506109da61220f565b6040516109e79190613db9565b60405180910390f35b3480156109fc57600080fd5b50610a176004803603810190610a129190613e07565b61229d565b604051610a249190613b54565b60405180910390f35b348015610a3957600080fd5b50610a546004803603810190610a4f9190613e07565b6122c1565b005b348015610a6257600080fd5b50610a7d6004803603810190610a789190614647565b6122d3565b604051610a8a9190613c23565b60405180910390f35b348015610a9f57600080fd5b50610aba6004803603810190610ab59190613f8e565b612367565b005b600c5481565b6000610acd826123ea565b9050919050565b610adc612464565b610ae682826124e2565b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060028054610b1d906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b49906146b6565b8015610b965780601f10610b6b57610100808354040283529160200191610b96565b820191906000526020600020905b815481529060010190602001808311610b7957829003601f168201915b5050505050905090565b6000610bab82612677565b610be1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c278261154f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c8e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cad6126c5565b73ffffffffffffffffffffffffffffffffffffffff1614158015610cdf5750610cdd81610cd86126c5565b6122d3565b155b15610d16576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d218383836126cd565b505050565b610d2e612464565b8060108190555050565b600f5481565b6000610d4861277f565b6001546000540303905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610f25573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610dc757610dc2848484612788565b610f31565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610e109291906146e7565b602060405180830381865afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190614725565b8015610ee357506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610ea19291906146e7565b602060405180830381865afa158015610ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee29190614725565b5b610f2457336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610f1b9190613e43565b60405180910390fd5b5b610f30848484612788565b5b50505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036110cc5760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006110d6612798565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866111029190614781565b61110c919061480a565b90508160000151819350935050509250929050565b60165481565b60136020528060005260406000206000915090505481565b611147612464565b7f0000000000000000000000000000000000000000000000000000000000000000600183611175919061483b565b600054611182919061486f565b11156111ba576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111c481836127a2565b5050565b6111d0612464565b80600c8190555050565b6111e2612464565b80600d8190555050565b6111f4612464565b600047905060005b60148054905081101561129957611286601482815481106112205761121f6148c5565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16606460158481548110611261576112606148c5565b5b9060005260206000200154856112779190614781565b611281919061480a565b6127c0565b8080611291906148f4565b9150506111fc565b5050565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561146d573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361130f5761130a848484612868565b611479565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016113589291906146e7565b602060405180830381865afa158015611375573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113999190614725565b801561142b57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016113e99291906146e7565b602060405180830381865afa158015611406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142a9190614725565b5b61146c57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016114639190613e43565b60405180910390fd5b5b611478848484612868565b5b50505050565b6014818154811061148f57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b600e5481565b60105481565b6114d8612464565b80601290805190602001906114ee929190613a55565b5050565b6114fa612464565b8060ff1660028111156115105761150f6141df565b5b601160006101000a81548160ff02191690836002811115611534576115336141df565b5b021790555050565b601160009054906101000a900460ff1681565b600061155a82612888565b600001519050919050565b61156d612464565b60008282905090508484905081146115b1576040517ffc6234ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156116cf577f00000000000000000000000000000000000000000000000000000000000000008686838181106115f0576115ef6148c5565b5b9050602002016020810190611605919061497c565b67ffffffffffffffff16600160005461161e919061483b565b611628919061486f565b1115611660576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116c2848483818110611676576116756148c5565b5b905060200201602081019061168b9190613f8e565b87878481811061169e5761169d6148c5565b5b90506020020160208101906116b3919061497c565b67ffffffffffffffff166127a2565b80806001019150506115b4565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173e576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6117ae612464565b6117b86000612b17565b565b6117c2612464565b8060168190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117fe612464565b80600b8190555050565b606060038054611817906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054611843906146b6565b80156118905780601f1061186557610100808354040283529160200191611890565b820191906000526020600020905b81548152906001019060200180831161187357829003601f168201915b5050505050905090565b600b5481565b600160028111156118b4576118b36141df565b5b601160009054906101000a900460ff1660028111156118d6576118d56141df565b5b1461190d576040517f3f88677400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000060018261193b919061483b565b600054611948919061486f565b1115611980576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b5461198e9190614781565b34146119c5576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5481601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a13919061486f565b1115611a4b576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54811115611a87576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ad6919061486f565b92505081905550611ae733826127a2565b50565b611af26126c5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b56576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611b636126c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c106126c5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c559190613c23565b60405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000081565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611e56573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cf857611cf385858585612bdd565b611e63565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611d419291906146e7565b602060405180830381865afa158015611d5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d829190614725565b8015611e1457506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611dd29291906146e7565b602060405180830381865afa158015611def573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e139190614725565b5b611e5557336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611e4c9190613e43565b60405180910390fd5b5b611e6285858585612bdd565b5b5050505050565b611e72612464565b80600e8190555050565b600280811115611e8f57611e8e6141df565b5b601160009054906101000a900460ff166002811115611eb157611eb06141df565b5b14611ee8576040517f3f88677400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000600184611f16919061483b565b600054611f23919061486f565b1115611f5b576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600c54611f699190614781565b3414611fa0576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612014828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060165433604051602001611ff991906149f1565b60405160208183030381529060405280519060200120612c59565b61204a576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f5483601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612098919061486f565b11156120d0576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105483111561210c576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461215b919061486f565b9250508190555061216c33846127a2565b505050565b606061217c82612677565b6121b2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006121bc612c70565b905060008151036121dc5760405180602001604052806000815250612207565b806121e684612d02565b6040516020016121f7929190614a48565b6040516020818303038152906040525b915050919050565b6012805461221c906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612248906146b6565b80156122955780601f1061226a57610100808354040283529160200191612295565b820191906000526020600020905b81548152906001019060200180831161227857829003601f168201915b505050505081565b601581815481106122ad57600080fd5b906000526020600020016000915090505481565b6122c9612464565b80600f8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61236f612464565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d590614ade565b60405180910390fd5b6123e781612b17565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061245d575061245c82612e62565b5b9050919050565b61246c6126c5565b73ffffffffffffffffffffffffffffffffffffffff1661248a6117cc565b73ffffffffffffffffffffffffffffffffffffffff16146124e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d790614b4a565b60405180910390fd5b565b6124ea612798565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253f90614bdc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036125b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ae90614c48565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008161268261277f565b11158015612691575060005482105b80156126be575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b612793838383612f44565b505050565b6000612710905090565b6127bc8282604051806020016040528060008152506133f8565b5050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516127e690614c99565b60006040518083038185875af1925050503d8060008114612823576040519150601f19603f3d011682016040523d82523d6000602084013e612828565b606091505b5050905080612863576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b61288383838360405180602001604052806000815250611c85565b505050565b612890613adb565b60008290508061289e61277f565b111580156128ad575060005481105b15612ae0576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612ade57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146129c2578092505050612b12565b5b600115612add57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ad8578092505050612b12565b6129c3565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612be8848484612f44565b612c078373ffffffffffffffffffffffffffffffffffffffff1661340a565b8015612c1c5750612c1a8484848461342d565b155b15612c53576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600082612c66858461357d565b1490509392505050565b606060128054612c7f906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612cab906146b6565b8015612cf85780601f10612ccd57610100808354040283529160200191612cf8565b820191906000526020600020905b815481529060010190602001808311612cdb57829003601f168201915b5050505050905090565b606060008203612d49576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e5d565b600082905060005b60008214612d7b578080612d64906148f4565b915050600a82612d74919061480a565b9150612d51565b60008167ffffffffffffffff811115612d9757612d96614005565b5b6040519080825280601f01601f191660200182016040528015612dc95781602001600182028036833780820191505090505b5090505b60008514612e5657600182612de2919061483b565b9150600a85612df19190614cae565b6030612dfd919061486f565b60f81b818381518110612e1357612e126148c5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e4f919061480a565b9450612dcd565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f2d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f3d5750612f3c826135d3565b5b9050919050565b6000612f4f82612888565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612fba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612fdb6126c5565b73ffffffffffffffffffffffffffffffffffffffff16148061300a5750613009856130046126c5565b6122d3565b5b8061304f57506130186126c5565b73ffffffffffffffffffffffffffffffffffffffff1661303784610ba0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080613088576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036130ee576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130fb858585600161363d565b613107600084876126cd565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361338657600054821461338557878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133f18585856001613643565b5050505050565b6134058383836001613649565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134536126c5565b8786866040518563ffffffff1660e01b81526004016134759493929190614d34565b6020604051808303816000875af19250505080156134b157506040513d601f19601f820116820180604052508101906134ae9190614d95565b60015b61352a573d80600081146134e1576040519150601f19603f3d011682016040523d82523d6000602084013e6134e6565b606091505b506000815103613522576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008082905060005b84518110156135c8576135b3828683815181106135a6576135a56148c5565b5b6020026020010151613a13565b915080806135c0906148f4565b915050613586565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036136b5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084036136ef576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136fc600086838761363d565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156138c657506138c58773ffffffffffffffffffffffffffffffffffffffff1661340a565b5b1561398b575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461393b600088848060010195508861342d565b613971576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082036138cc57826000541461398657600080fd5b6139f6565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480820361398c575b816000819055505050613a0c6000868387613643565b5050505050565b6000818310613a2b57613a268284613a3e565b613a36565b613a358383613a3e565b5b905092915050565b600082600052816020526040600020905092915050565b828054613a61906146b6565b90600052602060002090601f016020900481019282613a835760008555613aca565b82601f10613a9c57805160ff1916838001178555613aca565b82800160010185558215613aca579182015b82811115613ac9578251825591602001919060010190613aae565b5b509050613ad79190613b1e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613b37576000816000905550600101613b1f565b5090565b6000819050919050565b613b4e81613b3b565b82525050565b6000602082019050613b696000830184613b45565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bb881613b83565b8114613bc357600080fd5b50565b600081359050613bd581613baf565b92915050565b600060208284031215613bf157613bf0613b79565b5b6000613bff84828501613bc6565b91505092915050565b60008115159050919050565b613c1d81613c08565b82525050565b6000602082019050613c386000830184613c14565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c6982613c3e565b9050919050565b613c7981613c5e565b8114613c8457600080fd5b50565b600081359050613c9681613c70565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613cbd81613c9c565b8114613cc857600080fd5b50565b600081359050613cda81613cb4565b92915050565b60008060408385031215613cf757613cf6613b79565b5b6000613d0585828601613c87565b9250506020613d1685828601613ccb565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d5a578082015181840152602081019050613d3f565b83811115613d69576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d8b82613d20565b613d958185613d2b565b9350613da5818560208601613d3c565b613dae81613d6f565b840191505092915050565b60006020820190508181036000830152613dd38184613d80565b905092915050565b613de481613b3b565b8114613def57600080fd5b50565b600081359050613e0181613ddb565b92915050565b600060208284031215613e1d57613e1c613b79565b5b6000613e2b84828501613df2565b91505092915050565b613e3d81613c5e565b82525050565b6000602082019050613e586000830184613e34565b92915050565b60008060408385031215613e7557613e74613b79565b5b6000613e8385828601613c87565b9250506020613e9485828601613df2565b9150509250929050565b600080600060608486031215613eb757613eb6613b79565b5b6000613ec586828701613c87565b9350506020613ed686828701613c87565b9250506040613ee786828701613df2565b9150509250925092565b60008060408385031215613f0857613f07613b79565b5b6000613f1685828601613df2565b9250506020613f2785828601613df2565b9150509250929050565b6000604082019050613f466000830185613e34565b613f536020830184613b45565b9392505050565b6000819050919050565b613f6d81613f5a565b82525050565b6000602082019050613f886000830184613f64565b92915050565b600060208284031215613fa457613fa3613b79565b5b6000613fb284828501613c87565b91505092915050565b60008060408385031215613fd257613fd1613b79565b5b6000613fe085828601613df2565b9250506020613ff185828601613c87565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61403d82613d6f565b810181811067ffffffffffffffff8211171561405c5761405b614005565b5b80604052505050565b600061406f613b6f565b905061407b8282614034565b919050565b600067ffffffffffffffff82111561409b5761409a614005565b5b6140a482613d6f565b9050602081019050919050565b82818337600083830152505050565b60006140d36140ce84614080565b614065565b9050828152602081018484840111156140ef576140ee614000565b5b6140fa8482856140b1565b509392505050565b600082601f83011261411757614116613ffb565b5b81356141278482602086016140c0565b91505092915050565b60006020828403121561414657614145613b79565b5b600082013567ffffffffffffffff81111561416457614163613b7e565b5b61417084828501614102565b91505092915050565b600060ff82169050919050565b61418f81614179565b811461419a57600080fd5b50565b6000813590506141ac81614186565b92915050565b6000602082840312156141c8576141c7613b79565b5b60006141d68482850161419d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061421f5761421e6141df565b5b50565b60008190506142308261420e565b919050565b600061424082614222565b9050919050565b61425081614235565b82525050565b600060208201905061426b6000830184614247565b92915050565b600080fd5b600080fd5b60008083601f84011261429157614290613ffb565b5b8235905067ffffffffffffffff8111156142ae576142ad614271565b5b6020830191508360208202830111156142ca576142c9614276565b5b9250929050565b60008083601f8401126142e7576142e6613ffb565b5b8235905067ffffffffffffffff81111561430457614303614271565b5b6020830191508360208202830111156143205761431f614276565b5b9250929050565b6000806000806040858703121561434157614340613b79565b5b600085013567ffffffffffffffff81111561435f5761435e613b7e565b5b61436b8782880161427b565b9450945050602085013567ffffffffffffffff81111561438e5761438d613b7e565b5b61439a878288016142d1565b925092505092959194509250565b6143b181613f5a565b81146143bc57600080fd5b50565b6000813590506143ce816143a8565b92915050565b6000602082840312156143ea576143e9613b79565b5b60006143f8848285016143bf565b91505092915050565b61440a81613c08565b811461441557600080fd5b50565b60008135905061442781614401565b92915050565b6000806040838503121561444457614443613b79565b5b600061445285828601613c87565b925050602061446385828601614418565b9150509250929050565b600067ffffffffffffffff82111561448857614487614005565b5b61449182613d6f565b9050602081019050919050565b60006144b16144ac8461446d565b614065565b9050828152602081018484840111156144cd576144cc614000565b5b6144d88482856140b1565b509392505050565b600082601f8301126144f5576144f4613ffb565b5b813561450584826020860161449e565b91505092915050565b6000806000806080858703121561452857614527613b79565b5b600061453687828801613c87565b945050602061454787828801613c87565b935050604061455887828801613df2565b925050606085013567ffffffffffffffff81111561457957614578613b7e565b5b614585878288016144e0565b91505092959194509250565b60008083601f8401126145a7576145a6613ffb565b5b8235905067ffffffffffffffff8111156145c4576145c3614271565b5b6020830191508360208202830111156145e0576145df614276565b5b9250929050565b600080600060408486031215614600576145ff613b79565b5b600061460e86828701613df2565b935050602084013567ffffffffffffffff81111561462f5761462e613b7e565b5b61463b86828701614591565b92509250509250925092565b6000806040838503121561465e5761465d613b79565b5b600061466c85828601613c87565b925050602061467d85828601613c87565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146ce57607f821691505b6020821081036146e1576146e0614687565b5b50919050565b60006040820190506146fc6000830185613e34565b6147096020830184613e34565b9392505050565b60008151905061471f81614401565b92915050565b60006020828403121561473b5761473a613b79565b5b600061474984828501614710565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061478c82613b3b565b915061479783613b3b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147d0576147cf614752565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061481582613b3b565b915061482083613b3b565b9250826148305761482f6147db565b5b828204905092915050565b600061484682613b3b565b915061485183613b3b565b92508282101561486457614863614752565b5b828203905092915050565b600061487a82613b3b565b915061488583613b3b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156148ba576148b9614752565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006148ff82613b3b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361493157614930614752565b5b600182019050919050565b600067ffffffffffffffff82169050919050565b6149598161493c565b811461496457600080fd5b50565b60008135905061497681614950565b92915050565b60006020828403121561499257614991613b79565b5b60006149a084828501614967565b91505092915050565b60008160601b9050919050565b60006149c1826149a9565b9050919050565b60006149d3826149b6565b9050919050565b6149eb6149e682613c5e565b6149c8565b82525050565b60006149fd82846149da565b60148201915081905092915050565b600081905092915050565b6000614a2282613d20565b614a2c8185614a0c565b9350614a3c818560208601613d3c565b80840191505092915050565b6000614a548285614a17565b9150614a608284614a17565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ac8602683613d2b565b9150614ad382614a6c565b604082019050919050565b60006020820190508181036000830152614af781614abb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b34602083613d2b565b9150614b3f82614afe565b602082019050919050565b60006020820190508181036000830152614b6381614b27565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614bc6602a83613d2b565b9150614bd182614b6a565b604082019050919050565b60006020820190508181036000830152614bf581614bb9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614c32601983613d2b565b9150614c3d82614bfc565b602082019050919050565b60006020820190508181036000830152614c6181614c25565b9050919050565b600081905092915050565b50565b6000614c83600083614c68565b9150614c8e82614c73565b600082019050919050565b6000614ca482614c76565b9150819050919050565b6000614cb982613b3b565b9150614cc483613b3b565b925082614cd457614cd36147db565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614d0682614cdf565b614d108185614cea565b9350614d20818560208601613d3c565b614d2981613d6f565b840191505092915050565b6000608082019050614d496000830187613e34565b614d566020830186613e34565b614d636040830185613b45565b8181036060830152614d758184614cfb565b905095945050505050565b600081519050614d8f81613baf565b92915050565b600060208284031215614dab57614daa613b79565b5b6000614db984828501614d80565b9150509291505056fea26469706673582212201b2fcc5da1c3a3bf1ea27f0a0c0e99114ea9e9c7043116856286bdadbe3049df64736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000001450737963686f6c6f67792062792047656e74726f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000650737963686f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656968623263687a6c63746e6a3737747a776b796f6c326761326e676433656a6c617664757a6b646a6f7a74766a7077616c787a73652f0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102875760003560e01c806355f804b31161015a578063a0712d68116100c1578063c87b56dd1161007a578063c87b56dd14610988578063cfc86f7b146109c5578063d86bed9b146109f0578063e341f5ca14610a2d578063e985e9c514610a56578063f2fde38b14610a9357610287565b8063a0712d68146108aa578063a22cb465146108c6578063b3a196e9146108ef578063b88d4fde1461091a578063bd3b14d314610943578063c13bd95c1461096c57610287565b8063715018a611610113578063715018a6146107c05780637cb64759146107d75780638da5cb5b1461080057806391b7f5ed1461082b57806395d89b4114610854578063a035b1fe1461087f57610287565b806355f804b3146106a05780635a67de07146106c9578063603f4d52146106f25780636352211e1461071d5780636752656b1461075a57806370a082311461078357610287565b80632a55205a116101fe5780633ccfd60b116101b75780633ccfd60b146105a257806342842e0e146105b957806344bb8279146105e2578063453c23101461061f5780634b980d671461064a57806350cf22c11461067557610287565b80632a55205a146104815780632eb4a7ab146104bf5780633406c726146104ea57806334861c75146105275780633549345e14610550578063391176681461057957610287565b8063081812fc11610250578063081812fc14610373578063095ea7b3146103b05780630d0ee170146103d957806312c23bd81461040257806318160ddd1461042d57806323b872dd1461045857610287565b80620e7fa81461028c57806301ffc9a7146102b757806302fa7c47146102f4578063047fc9aa1461031d57806306fdde0314610348575b600080fd5b34801561029857600080fd5b506102a1610abc565b6040516102ae9190613b54565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d99190613bdb565b610ac2565b6040516102eb9190613c23565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613ce0565b610ad4565b005b34801561032957600080fd5b50610332610aea565b60405161033f9190613b54565b60405180910390f35b34801561035457600080fd5b5061035d610b0e565b60405161036a9190613db9565b60405180910390f35b34801561037f57600080fd5b5061039a60048036038101906103959190613e07565b610ba0565b6040516103a79190613e43565b60405180910390f35b3480156103bc57600080fd5b506103d760048036038101906103d29190613e5e565b610c1c565b005b3480156103e557600080fd5b5061040060048036038101906103fb9190613e07565b610d26565b005b34801561040e57600080fd5b50610417610d38565b6040516104249190613b54565b60405180910390f35b34801561043957600080fd5b50610442610d3e565b60405161044f9190613b54565b60405180910390f35b34801561046457600080fd5b5061047f600480360381019061047a9190613e9e565b610d55565b005b34801561048d57600080fd5b506104a860048036038101906104a39190613ef1565b610f37565b6040516104b6929190613f31565b60405180910390f35b3480156104cb57600080fd5b506104d4611121565b6040516104e19190613f73565b60405180910390f35b3480156104f657600080fd5b50610511600480360381019061050c9190613f8e565b611127565b60405161051e9190613b54565b60405180910390f35b34801561053357600080fd5b5061054e60048036038101906105499190613fbb565b61113f565b005b34801561055c57600080fd5b5061057760048036038101906105729190613e07565b6111c8565b005b34801561058557600080fd5b506105a0600480360381019061059b9190613e07565b6111da565b005b3480156105ae57600080fd5b506105b76111ec565b005b3480156105c557600080fd5b506105e060048036038101906105db9190613e9e565b61129d565b005b3480156105ee57600080fd5b5061060960048036038101906106049190613e07565b61147f565b6040516106169190613e43565b60405180910390f35b34801561062b57600080fd5b506106346114be565b6040516106419190613b54565b60405180910390f35b34801561065657600080fd5b5061065f6114c4565b60405161066c9190613b54565b60405180910390f35b34801561068157600080fd5b5061068a6114ca565b6040516106979190613b54565b60405180910390f35b3480156106ac57600080fd5b506106c760048036038101906106c29190614130565b6114d0565b005b3480156106d557600080fd5b506106f060048036038101906106eb91906141b2565b6114f2565b005b3480156106fe57600080fd5b5061070761153c565b6040516107149190614256565b60405180910390f35b34801561072957600080fd5b50610744600480360381019061073f9190613e07565b61154f565b6040516107519190613e43565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c9190614327565b611565565b005b34801561078f57600080fd5b506107aa60048036038101906107a59190613f8e565b6116d7565b6040516107b79190613b54565b60405180910390f35b3480156107cc57600080fd5b506107d56117a6565b005b3480156107e357600080fd5b506107fe60048036038101906107f991906143d4565b6117ba565b005b34801561080c57600080fd5b506108156117cc565b6040516108229190613e43565b60405180910390f35b34801561083757600080fd5b50610852600480360381019061084d9190613e07565b6117f6565b005b34801561086057600080fd5b50610869611808565b6040516108769190613db9565b60405180910390f35b34801561088b57600080fd5b5061089461189a565b6040516108a19190613b54565b60405180910390f35b6108c460048036038101906108bf9190613e07565b6118a0565b005b3480156108d257600080fd5b506108ed60048036038101906108e8919061442d565b611aea565b005b3480156108fb57600080fd5b50610904611c61565b6040516109119190613b54565b60405180910390f35b34801561092657600080fd5b50610941600480360381019061093c919061450e565b611c85565b005b34801561094f57600080fd5b5061096a60048036038101906109659190613e07565b611e6a565b005b610986600480360381019061098191906145e7565b611e7c565b005b34801561099457600080fd5b506109af60048036038101906109aa9190613e07565b612171565b6040516109bc9190613db9565b60405180910390f35b3480156109d157600080fd5b506109da61220f565b6040516109e79190613db9565b60405180910390f35b3480156109fc57600080fd5b50610a176004803603810190610a129190613e07565b61229d565b604051610a249190613b54565b60405180910390f35b348015610a3957600080fd5b50610a546004803603810190610a4f9190613e07565b6122c1565b005b348015610a6257600080fd5b50610a7d6004803603810190610a789190614647565b6122d3565b604051610a8a9190613c23565b60405180910390f35b348015610a9f57600080fd5b50610aba6004803603810190610ab59190613f8e565b612367565b005b600c5481565b6000610acd826123ea565b9050919050565b610adc612464565b610ae682826124e2565b5050565b7f000000000000000000000000000000000000000000000000000000000000023881565b606060028054610b1d906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b49906146b6565b8015610b965780601f10610b6b57610100808354040283529160200191610b96565b820191906000526020600020905b815481529060010190602001808311610b7957829003601f168201915b5050505050905090565b6000610bab82612677565b610be1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c278261154f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c8e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cad6126c5565b73ffffffffffffffffffffffffffffffffffffffff1614158015610cdf5750610cdd81610cd86126c5565b6122d3565b155b15610d16576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d218383836126cd565b505050565b610d2e612464565b8060108190555050565b600f5481565b6000610d4861277f565b6001546000540303905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610f25573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610dc757610dc2848484612788565b610f31565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610e109291906146e7565b602060405180830381865afa158015610e2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e519190614725565b8015610ee357506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610ea19291906146e7565b602060405180830381865afa158015610ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee29190614725565b5b610f2457336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610f1b9190613e43565b60405180910390fd5b5b610f30848484612788565b5b50505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036110cc5760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006110d6612798565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866111029190614781565b61110c919061480a565b90508160000151819350935050509250929050565b60165481565b60136020528060005260406000206000915090505481565b611147612464565b7f0000000000000000000000000000000000000000000000000000000000000238600183611175919061483b565b600054611182919061486f565b11156111ba576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111c481836127a2565b5050565b6111d0612464565b80600c8190555050565b6111e2612464565b80600d8190555050565b6111f4612464565b600047905060005b60148054905081101561129957611286601482815481106112205761121f6148c5565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16606460158481548110611261576112606148c5565b5b9060005260206000200154856112779190614781565b611281919061480a565b6127c0565b8080611291906148f4565b9150506111fc565b5050565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561146d573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361130f5761130a848484612868565b611479565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016113589291906146e7565b602060405180830381865afa158015611375573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113999190614725565b801561142b57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016113e99291906146e7565b602060405180830381865afa158015611406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142a9190614725565b5b61146c57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016114639190613e43565b60405180910390fd5b5b611478848484612868565b5b50505050565b6014818154811061148f57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d5481565b600e5481565b60105481565b6114d8612464565b80601290805190602001906114ee929190613a55565b5050565b6114fa612464565b8060ff1660028111156115105761150f6141df565b5b601160006101000a81548160ff02191690836002811115611534576115336141df565b5b021790555050565b601160009054906101000a900460ff1681565b600061155a82612888565b600001519050919050565b61156d612464565b60008282905090508484905081146115b1576040517ffc6234ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156116cf577f00000000000000000000000000000000000000000000000000000000000002388686838181106115f0576115ef6148c5565b5b9050602002016020810190611605919061497c565b67ffffffffffffffff16600160005461161e919061483b565b611628919061486f565b1115611660576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6116c2848483818110611676576116756148c5565b5b905060200201602081019061168b9190613f8e565b87878481811061169e5761169d6148c5565b5b90506020020160208101906116b3919061497c565b67ffffffffffffffff166127a2565b80806001019150506115b4565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173e576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6117ae612464565b6117b86000612b17565b565b6117c2612464565b8060168190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117fe612464565b80600b8190555050565b606060038054611817906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054611843906146b6565b80156118905780601f1061186557610100808354040283529160200191611890565b820191906000526020600020905b81548152906001019060200180831161187357829003601f168201915b5050505050905090565b600b5481565b600160028111156118b4576118b36141df565b5b601160009054906101000a900460ff1660028111156118d6576118d56141df565b5b1461190d576040517f3f88677400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000023860018261193b919061483b565b600054611948919061486f565b1115611980576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b5461198e9190614781565b34146119c5576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5481601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a13919061486f565b1115611a4b576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e54811115611a87576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ad6919061486f565b92505081905550611ae733826127a2565b50565b611af26126c5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b56576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611b636126c5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c106126c5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c559190613c23565b60405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000014d81565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611e56573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cf857611cf385858585612bdd565b611e63565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611d419291906146e7565b602060405180830381865afa158015611d5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d829190614725565b8015611e1457506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611dd29291906146e7565b602060405180830381865afa158015611def573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e139190614725565b5b611e5557336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611e4c9190613e43565b60405180910390fd5b5b611e6285858585612bdd565b5b5050505050565b611e72612464565b80600e8190555050565b600280811115611e8f57611e8e6141df565b5b601160009054906101000a900460ff166002811115611eb157611eb06141df565b5b14611ee8576040517f3f88677400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000014d600184611f16919061483b565b600054611f23919061486f565b1115611f5b576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600c54611f699190614781565b3414611fa0576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612014828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060165433604051602001611ff991906149f1565b60405160208183030381529060405280519060200120612c59565b61204a576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f5483601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612098919061486f565b11156120d0576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60105483111561210c576040517f524f409b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461215b919061486f565b9250508190555061216c33846127a2565b505050565b606061217c82612677565b6121b2576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006121bc612c70565b905060008151036121dc5760405180602001604052806000815250612207565b806121e684612d02565b6040516020016121f7929190614a48565b6040516020818303038152906040525b915050919050565b6012805461221c906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612248906146b6565b80156122955780601f1061226a57610100808354040283529160200191612295565b820191906000526020600020905b81548152906001019060200180831161227857829003601f168201915b505050505081565b601581815481106122ad57600080fd5b906000526020600020016000915090505481565b6122c9612464565b80600f8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61236f612464565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d590614ade565b60405180910390fd5b6123e781612b17565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061245d575061245c82612e62565b5b9050919050565b61246c6126c5565b73ffffffffffffffffffffffffffffffffffffffff1661248a6117cc565b73ffffffffffffffffffffffffffffffffffffffff16146124e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d790614b4a565b60405180910390fd5b565b6124ea612798565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253f90614bdc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036125b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ae90614c48565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008161268261277f565b11158015612691575060005482105b80156126be575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b612793838383612f44565b505050565b6000612710905090565b6127bc8282604051806020016040528060008152506133f8565b5050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516127e690614c99565b60006040518083038185875af1925050503d8060008114612823576040519150601f19603f3d011682016040523d82523d6000602084013e612828565b606091505b5050905080612863576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b61288383838360405180602001604052806000815250611c85565b505050565b612890613adb565b60008290508061289e61277f565b111580156128ad575060005481105b15612ae0576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612ade57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146129c2578092505050612b12565b5b600115612add57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ad8578092505050612b12565b6129c3565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612be8848484612f44565b612c078373ffffffffffffffffffffffffffffffffffffffff1661340a565b8015612c1c5750612c1a8484848461342d565b155b15612c53576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600082612c66858461357d565b1490509392505050565b606060128054612c7f906146b6565b80601f0160208091040260200160405190810160405280929190818152602001828054612cab906146b6565b8015612cf85780601f10612ccd57610100808354040283529160200191612cf8565b820191906000526020600020905b815481529060010190602001808311612cdb57829003601f168201915b5050505050905090565b606060008203612d49576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e5d565b600082905060005b60008214612d7b578080612d64906148f4565b915050600a82612d74919061480a565b9150612d51565b60008167ffffffffffffffff811115612d9757612d96614005565b5b6040519080825280601f01601f191660200182016040528015612dc95781602001600182028036833780820191505090505b5090505b60008514612e5657600182612de2919061483b565b9150600a85612df19190614cae565b6030612dfd919061486f565b60f81b818381518110612e1357612e126148c5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e4f919061480a565b9450612dcd565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f2d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f3d5750612f3c826135d3565b5b9050919050565b6000612f4f82612888565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612fba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612fdb6126c5565b73ffffffffffffffffffffffffffffffffffffffff16148061300a5750613009856130046126c5565b6122d3565b5b8061304f57506130186126c5565b73ffffffffffffffffffffffffffffffffffffffff1661303784610ba0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080613088576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036130ee576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130fb858585600161363d565b613107600084876126cd565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361338657600054821461338557878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133f18585856001613643565b5050505050565b6134058383836001613649565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134536126c5565b8786866040518563ffffffff1660e01b81526004016134759493929190614d34565b6020604051808303816000875af19250505080156134b157506040513d601f19601f820116820180604052508101906134ae9190614d95565b60015b61352a573d80600081146134e1576040519150601f19603f3d011682016040523d82523d6000602084013e6134e6565b606091505b506000815103613522576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008082905060005b84518110156135c8576135b3828683815181106135a6576135a56148c5565b5b6020026020010151613a13565b915080806135c0906148f4565b915050613586565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036136b5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084036136ef576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136fc600086838761363d565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156138c657506138c58773ffffffffffffffffffffffffffffffffffffffff1661340a565b5b1561398b575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461393b600088848060010195508861342d565b613971576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082036138cc57826000541461398657600080fd5b6139f6565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480820361398c575b816000819055505050613a0c6000868387613643565b5050505050565b6000818310613a2b57613a268284613a3e565b613a36565b613a358383613a3e565b5b905092915050565b600082600052816020526040600020905092915050565b828054613a61906146b6565b90600052602060002090601f016020900481019282613a835760008555613aca565b82601f10613a9c57805160ff1916838001178555613aca565b82800160010185558215613aca579182015b82811115613ac9578251825591602001919060010190613aae565b5b509050613ad79190613b1e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613b37576000816000905550600101613b1f565b5090565b6000819050919050565b613b4e81613b3b565b82525050565b6000602082019050613b696000830184613b45565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bb881613b83565b8114613bc357600080fd5b50565b600081359050613bd581613baf565b92915050565b600060208284031215613bf157613bf0613b79565b5b6000613bff84828501613bc6565b91505092915050565b60008115159050919050565b613c1d81613c08565b82525050565b6000602082019050613c386000830184613c14565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c6982613c3e565b9050919050565b613c7981613c5e565b8114613c8457600080fd5b50565b600081359050613c9681613c70565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613cbd81613c9c565b8114613cc857600080fd5b50565b600081359050613cda81613cb4565b92915050565b60008060408385031215613cf757613cf6613b79565b5b6000613d0585828601613c87565b9250506020613d1685828601613ccb565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d5a578082015181840152602081019050613d3f565b83811115613d69576000848401525b50505050565b6000601f19601f8301169050919050565b6000613d8b82613d20565b613d958185613d2b565b9350613da5818560208601613d3c565b613dae81613d6f565b840191505092915050565b60006020820190508181036000830152613dd38184613d80565b905092915050565b613de481613b3b565b8114613def57600080fd5b50565b600081359050613e0181613ddb565b92915050565b600060208284031215613e1d57613e1c613b79565b5b6000613e2b84828501613df2565b91505092915050565b613e3d81613c5e565b82525050565b6000602082019050613e586000830184613e34565b92915050565b60008060408385031215613e7557613e74613b79565b5b6000613e8385828601613c87565b9250506020613e9485828601613df2565b9150509250929050565b600080600060608486031215613eb757613eb6613b79565b5b6000613ec586828701613c87565b9350506020613ed686828701613c87565b9250506040613ee786828701613df2565b9150509250925092565b60008060408385031215613f0857613f07613b79565b5b6000613f1685828601613df2565b9250506020613f2785828601613df2565b9150509250929050565b6000604082019050613f466000830185613e34565b613f536020830184613b45565b9392505050565b6000819050919050565b613f6d81613f5a565b82525050565b6000602082019050613f886000830184613f64565b92915050565b600060208284031215613fa457613fa3613b79565b5b6000613fb284828501613c87565b91505092915050565b60008060408385031215613fd257613fd1613b79565b5b6000613fe085828601613df2565b9250506020613ff185828601613c87565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61403d82613d6f565b810181811067ffffffffffffffff8211171561405c5761405b614005565b5b80604052505050565b600061406f613b6f565b905061407b8282614034565b919050565b600067ffffffffffffffff82111561409b5761409a614005565b5b6140a482613d6f565b9050602081019050919050565b82818337600083830152505050565b60006140d36140ce84614080565b614065565b9050828152602081018484840111156140ef576140ee614000565b5b6140fa8482856140b1565b509392505050565b600082601f83011261411757614116613ffb565b5b81356141278482602086016140c0565b91505092915050565b60006020828403121561414657614145613b79565b5b600082013567ffffffffffffffff81111561416457614163613b7e565b5b61417084828501614102565b91505092915050565b600060ff82169050919050565b61418f81614179565b811461419a57600080fd5b50565b6000813590506141ac81614186565b92915050565b6000602082840312156141c8576141c7613b79565b5b60006141d68482850161419d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061421f5761421e6141df565b5b50565b60008190506142308261420e565b919050565b600061424082614222565b9050919050565b61425081614235565b82525050565b600060208201905061426b6000830184614247565b92915050565b600080fd5b600080fd5b60008083601f84011261429157614290613ffb565b5b8235905067ffffffffffffffff8111156142ae576142ad614271565b5b6020830191508360208202830111156142ca576142c9614276565b5b9250929050565b60008083601f8401126142e7576142e6613ffb565b5b8235905067ffffffffffffffff81111561430457614303614271565b5b6020830191508360208202830111156143205761431f614276565b5b9250929050565b6000806000806040858703121561434157614340613b79565b5b600085013567ffffffffffffffff81111561435f5761435e613b7e565b5b61436b8782880161427b565b9450945050602085013567ffffffffffffffff81111561438e5761438d613b7e565b5b61439a878288016142d1565b925092505092959194509250565b6143b181613f5a565b81146143bc57600080fd5b50565b6000813590506143ce816143a8565b92915050565b6000602082840312156143ea576143e9613b79565b5b60006143f8848285016143bf565b91505092915050565b61440a81613c08565b811461441557600080fd5b50565b60008135905061442781614401565b92915050565b6000806040838503121561444457614443613b79565b5b600061445285828601613c87565b925050602061446385828601614418565b9150509250929050565b600067ffffffffffffffff82111561448857614487614005565b5b61449182613d6f565b9050602081019050919050565b60006144b16144ac8461446d565b614065565b9050828152602081018484840111156144cd576144cc614000565b5b6144d88482856140b1565b509392505050565b600082601f8301126144f5576144f4613ffb565b5b813561450584826020860161449e565b91505092915050565b6000806000806080858703121561452857614527613b79565b5b600061453687828801613c87565b945050602061454787828801613c87565b935050604061455887828801613df2565b925050606085013567ffffffffffffffff81111561457957614578613b7e565b5b614585878288016144e0565b91505092959194509250565b60008083601f8401126145a7576145a6613ffb565b5b8235905067ffffffffffffffff8111156145c4576145c3614271565b5b6020830191508360208202830111156145e0576145df614276565b5b9250929050565b600080600060408486031215614600576145ff613b79565b5b600061460e86828701613df2565b935050602084013567ffffffffffffffff81111561462f5761462e613b7e565b5b61463b86828701614591565b92509250509250925092565b6000806040838503121561465e5761465d613b79565b5b600061466c85828601613c87565b925050602061467d85828601613c87565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146ce57607f821691505b6020821081036146e1576146e0614687565b5b50919050565b60006040820190506146fc6000830185613e34565b6147096020830184613e34565b9392505050565b60008151905061471f81614401565b92915050565b60006020828403121561473b5761473a613b79565b5b600061474984828501614710565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061478c82613b3b565b915061479783613b3b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156147d0576147cf614752565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061481582613b3b565b915061482083613b3b565b9250826148305761482f6147db565b5b828204905092915050565b600061484682613b3b565b915061485183613b3b565b92508282101561486457614863614752565b5b828203905092915050565b600061487a82613b3b565b915061488583613b3b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156148ba576148b9614752565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006148ff82613b3b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361493157614930614752565b5b600182019050919050565b600067ffffffffffffffff82169050919050565b6149598161493c565b811461496457600080fd5b50565b60008135905061497681614950565b92915050565b60006020828403121561499257614991613b79565b5b60006149a084828501614967565b91505092915050565b60008160601b9050919050565b60006149c1826149a9565b9050919050565b60006149d3826149b6565b9050919050565b6149eb6149e682613c5e565b6149c8565b82525050565b60006149fd82846149da565b60148201915081905092915050565b600081905092915050565b6000614a2282613d20565b614a2c8185614a0c565b9350614a3c818560208601613d3c565b80840191505092915050565b6000614a548285614a17565b9150614a608284614a17565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ac8602683613d2b565b9150614ad382614a6c565b604082019050919050565b60006020820190508181036000830152614af781614abb565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614b34602083613d2b565b9150614b3f82614afe565b602082019050919050565b60006020820190508181036000830152614b6381614b27565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614bc6602a83613d2b565b9150614bd182614b6a565b604082019050919050565b60006020820190508181036000830152614bf581614bb9565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614c32601983613d2b565b9150614c3d82614bfc565b602082019050919050565b60006020820190508181036000830152614c6181614c25565b9050919050565b600081905092915050565b50565b6000614c83600083614c68565b9150614c8e82614c73565b600082019050919050565b6000614ca482614c76565b9150819050919050565b6000614cb982613b3b565b9150614cc483613b3b565b925082614cd457614cd36147db565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614d0682614cdf565b614d108185614cea565b9350614d20818560208601613d3c565b614d2981613d6f565b840191505092915050565b6000608082019050614d496000830187613e34565b614d566020830186613e34565b614d636040830185613b45565b8181036060830152614d758184614cfb565b905095945050505050565b600081519050614d8f81613baf565b92915050565b600060208284031215614dab57614daa613b79565b5b6000614db984828501614d80565b9150509291505056fea26469706673582212201b2fcc5da1c3a3bf1ea27f0a0c0e99114ea9e9c7043116856286bdadbe3049df64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000001450737963686f6c6f67792062792047656e74726f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000650737963686f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656968623263687a6c63746e6a3737747a776b796f6c326761326e676433656a6c617664757a6b646a6f7a74766a7077616c787a73652f0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Psychology by Gentro
Arg [1] : _symbol (string): Psycho
Arg [2] : _baseUri (string): ipfs://bafybeihb2chzlctnj77tzwkyol2ga2ngd3ejlavduzkdjoztvjpwalxzse/
Arg [3] : _royaltyAmount (uint96): 500
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 50737963686f6c6f67792062792047656e74726f000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [7] : 50737963686f0000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [9] : 697066733a2f2f6261667962656968623263687a6c63746e6a3737747a776b79
Arg [10] : 6f6c326761326e676433656a6c617664757a6b646a6f7a74766a7077616c787a
Arg [11] : 73652f0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.