Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,608 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24260047 | 2 days ago | IN | 0 ETH | 0.00012678 | ||||
| Set Approval For... | 24129068 | 20 days ago | IN | 0 ETH | 0.00000313 | ||||
| Set Approval For... | 24112955 | 23 days ago | IN | 0 ETH | 0.00000269 | ||||
| Set Approval For... | 24067954 | 29 days ago | IN | 0 ETH | 0.00000233 | ||||
| Set Approval For... | 24023000 | 35 days ago | IN | 0 ETH | 0.00000234 | ||||
| Set Approval For... | 23975957 | 42 days ago | IN | 0 ETH | 0.00004516 | ||||
| Set Approval For... | 23820178 | 64 days ago | IN | 0 ETH | 0.00004735 | ||||
| Set Approval For... | 23812010 | 65 days ago | IN | 0 ETH | 0.00001109 | ||||
| Set Approval For... | 23749908 | 74 days ago | IN | 0 ETH | 0.00004764 | ||||
| Transfer From | 23749891 | 74 days ago | IN | 0 ETH | 0.00004179 | ||||
| Transfer From | 23747949 | 74 days ago | IN | 0 ETH | 0.00004176 | ||||
| Set Approval For... | 23528572 | 105 days ago | IN | 0 ETH | 0.00001884 | ||||
| Set Approval For... | 23491993 | 110 days ago | IN | 0 ETH | 0.0000707 | ||||
| Set Approval For... | 23452284 | 115 days ago | IN | 0 ETH | 0.00004653 | ||||
| Set Approval For... | 23207982 | 149 days ago | IN | 0 ETH | 0.00007309 | ||||
| Set Approval For... | 23137968 | 159 days ago | IN | 0 ETH | 0.00005314 | ||||
| Safe Transfer Fr... | 23118260 | 162 days ago | IN | 0 ETH | 0.00013501 | ||||
| Set Approval For... | 23118207 | 162 days ago | IN | 0 ETH | 0.00015119 | ||||
| Set Approval For... | 23118204 | 162 days ago | IN | 0 ETH | 0.00022194 | ||||
| Safe Transfer Fr... | 23118195 | 162 days ago | IN | 0 ETH | 0.00012842 | ||||
| Transfer From | 23042614 | 172 days ago | IN | 0 ETH | 0.0001428 | ||||
| Set Approval For... | 22791342 | 208 days ago | IN | 0 ETH | 0.00013325 | ||||
| Set Approval For... | 22786923 | 208 days ago | IN | 0 ETH | 0.0000533 | ||||
| Set Approval For... | 22782205 | 209 days ago | IN | 0 ETH | 0.0004657 | ||||
| Set Approval For... | 22781419 | 209 days ago | IN | 0 ETH | 0.00026088 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
RVLTD
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)
//SPDX-License-Identifier: MIT
/*
.~
.."
.J"
.(M"
.MM"
.gMM"
..MMM3
.MMMM=
.+MMMM=
..MMMMM=
.dMMMMH=
.JMMMMM#^
..MMMMMM#^
.dMMMMMM#^
..MMMMMMM#^
.MMMMMMMMMi...............
.&MMMMMMMMMMMMMMMMMMMMMMMM#=
..MMMMMMMMMMMMMMMMMMMMMMMMM"
.MMMMMMMMMMMMMMMMMMMMMMMMMB^
~~~~~~~~~~~~~~~(dMMMMMMMM"
.gMMMMMMMD
.dMMMMMM#^
.MMMMMMM"
.MMMMMM@'
.MMMMM#=
.MMMMM"
.MMMMB^
..MMMM"
.JMMMD
.+MM#^`
.dMM"``
!!``
.gggs?
.T"^
........... .................... ..... ....-.... ..... ............................
.MMMMMMMMMMMM#`MMMMMMMMMMMMM:,MMMMb JMMMM^.gMMMMMMMMMMNJ dMMMM~ .MMMMMMMMMMMMM].MMMMMMMMMMMM#
-MMMM@""""MMMM# MMMM#""""""""` -MMMMb .MMMMt.MMMMM9"""WMMMMN dMMMM~ .""""MMMMM""""^.MMMMY"""""""=
(MMMMm....MMMM# MMMMMMMMMMMF ?MMMM,.MMMMF dMMMM` dMMMM}dMMMM~ dMMMM .MMMMMMMMMMM`
/WMMMMMMMMMMM# MMMM#""""""= vMMMNMMMMF dMMMMp .MMMMM!dMMMM~ dMMMM .MMMMY""""""
.dMMMM" MMMM# MMMMMMMMMMMMM] UMMMMMMF WMMMMMMMMMMMMM3 dMMMMMMMMMMM] dMMMM .MMMMMMMMMMMMM
.MMMMB` MMMM@ MMMMMMMMMMMMM% TMMMM@ .THMMMMMMMB= dMMMMMMMMMMM\ dMMMM .MMMMMMMMMMMMM
*/
pragma solidity ^0.8.13;
import "./token.sol";
contract RVLTD is TOKEN {}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
/**
* @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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @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];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The tree and the proofs can be generated using our
* https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
* You will find a quickstart guide in the readme.
*
* 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.
* OpenZeppelin's JavaScript library generates merkle trees that are safe
* against this attack out of the box.
*/
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 simultaneously proven to be a part of a merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
*
* _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}
*
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
*
* _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 sibling nodes in `proof`. The reconstruction
* proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
* leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
* respectively.
*
* CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
*
* _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}.
*
* CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
*
* _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)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator
) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator,
Rounding rounding
) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10**64) {
value /= 10**64;
result += 64;
}
if (value >= 10**32) {
value /= 10**32;
result += 32;
}
if (value >= 10**16) {
value /= 10**16;
result += 16;
}
if (value >= 10**8) {
value /= 10**8;
result += 8;
}
if (value >= 10**4) {
value /= 10**4;
result += 4;
}
if (value >= 10**2) {
value /= 10**2;
result += 2;
}
if (value >= 10**1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _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) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @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] = _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);
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "erc721psi/contracts/ERC721Psi.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
contract TOKEN is
ERC721Psi,
ERC2981,
Ownable,
ReentrancyGuard,
DefaultOperatorFilterer
{
using Strings for uint256;
uint256 public constant MAX_SUPPLY = 1000;
uint256 public constant PRE_PRICE = 0.02 ether;
uint256 public constant PUB_PRICE = 0.03 ether;
bool public preSaleStart;
bool public pubSaleStart;
uint256 public mintLimit = 1;
bytes32 public merkleRoot;
bool private _revealed;
string private _baseTokenURI;
string private _unrevealedURI = "https://d2tnrjjpld3h2t.cloudfront.net/rvltd/unrevealed/metadata.json";
mapping(address => uint256) public claimed;
mapping(uint256 => address) private _owner;
mapping(uint256 => bool) private _isExclusive;
struct ProjectMember {
address founder;
address illustrator;
address developer;
address marketer;
address musician;
}
ProjectMember private _member;
constructor() ERC721Psi("RVLTD", "RVLTD") {
_setDefaultRoyalty(0x9EfA220e89Cbd7d9F282c656A0d2ce8B8E8c923E, 1000);
_member.founder = 0x9EfA220e89Cbd7d9F282c656A0d2ce8B8E8c923E;
_member.illustrator = 0x3168ad7BEED95C5F58356Ca3c9aA961E57b1b48C;
_member.developer = 0x7Abb65089055fB2bf5b247c89E3C11F7dB861213;
_member.marketer = 0xf2fd31926B3bc3fB47C108B31cC0829F20DeE4c0;
_member.musician = 0x40a6a21B4a0e988D990E4edbfC7389061F76e6DF;
merkleRoot = 0x1e3dbf585d4954318bee95b18eb00e063e3481dd66ee0164c5c64fc81ce98b36;
_safeMint(0x0770562708D92E6B4DA6b2047A5cd91Faa1cDBC8, 1);
_safeMint(0x3168ad7BEED95C5F58356Ca3c9aA961E57b1b48C, 1);
_safeMint(0x7Abb65089055fB2bf5b247c89E3C11F7dB861213, 1);
_safeMint(0xf2fd31926B3bc3fB47C108B31cC0829F20DeE4c0, 1);
_safeMint(0x9EfA220e89Cbd7d9F282c656A0d2ce8B8E8c923E, 1);
_safeMint(0x40a6a21B4a0e988D990E4edbfC7389061F76e6DF, 1);
_safeMint(0x9EfA220e89Cbd7d9F282c656A0d2ce8B8E8c923E, 1);
_safeMint(0xdAb7b3236a69A921BFAd61d469FAa7b1f4B24267, 1);
_safeMint(0x42A662B820e0C3a860faD43f34D92cDb4769CF8B, 1);
_safeMint(0x96a974a4f884baA5A70A77FFb3aD9f9271c5D4F8, 1);
_safeMint(0x0383C0bDD89e915C1E2b4Ac3445a3158211056E9, 1);
_safeMint(0x490B9E5ECAD355efcb63461878537186771C9C29, 1);
_safeMint(0x971740Ed368934875f1890898D5FFC10EA99FA43, 1);
_safeMint(0xFEAF597b1d8333E6b3D48DcF54CcE89170dF5A4C, 1);
_safeMint(0x4f4d74826c910e4621C465f09bD4373C6cD3d5fC, 1);
_safeMint(0x6dc3120ed771D18682d7e90D30311FA2A1069Bb8, 1);
_safeMint(0xd0D87c75324436db5722Dc11C69Fbdc9F54c903a, 1);
_safeMint(0x4187DD52368F48eb2E1DB7ad079aFae1A0992a2d, 1);
_safeMint(0x9EfA220e89Cbd7d9F282c656A0d2ce8B8E8c923E, 124);
_safeMint(0x9f1498F67FD2ce379786029c308C22A4a4794599, 1);
_safeMint(0x37139352336D0A02E1dd5B8042483f61021793E8, 1);
_safeMint(0x54bffb4aeE67E53b3951bb397c42B855e9d945ed, 1);
_safeMint(0x512F1f1DF1C1A179fd508BA07a082a7D8869b265, 1);
_safeMint(0x719949c994850c7F9029b4aC1517D7721556EC4e, 1);
_safeMint(0x6C2bB8dB1512BDF6e4A43cfD8C3a1cdc7351D753, 1);
_safeMint(0x63542371ef68e0F4cE544dD76039dfae76858c39, 1);
_safeMint(0x9EfA220e89Cbd7d9F282c656A0d2ce8B8E8c923E, 1);
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function tokenURI(uint256 _tokenId)
public
view
virtual
override(ERC721Psi)
returns (string memory)
{
if (_revealed) {
return
string(abi.encodePacked(ERC721Psi.tokenURI(_tokenId), ".json"));
} else {
return _unrevealedURI;
}
}
function pubMint(uint256 _quantity) public payable nonReentrant {
uint256 supply = totalSupply();
uint256 cost = PUB_PRICE * _quantity;
require(pubSaleStart, "Before sale begin.");
_mintCheck(_quantity, supply, cost);
claimed[msg.sender] += _quantity;
_safeMint(msg.sender, _quantity);
}
function checkMerkleProof(bytes32[] calldata _merkleProof)
public
view
returns (bool)
{
bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
return MerkleProof.verifyCalldata(_merkleProof, merkleRoot, leaf);
}
function preMint(uint256 _quantity, bytes32[] calldata _merkleProof)
public
payable
nonReentrant
{
uint256 supply = totalSupply();
uint256 cost = PRE_PRICE * _quantity;
require(preSaleStart, "Before sale begin.");
_mintCheck(_quantity, supply, cost);
require(checkMerkleProof(_merkleProof), "Invalid Merkle Proof");
claimed[msg.sender] += _quantity;
_safeMint(msg.sender, _quantity);
}
function _mintCheck(
uint256 _quantity,
uint256 _supply,
uint256 _cost
) private view {
require(_supply + _quantity <= MAX_SUPPLY, "Max supply over");
require(_quantity <= mintLimit, "Mint quantity over");
require(msg.value >= _cost, "Not enough funds");
require(
claimed[msg.sender] + _quantity <= mintLimit,
"Already claimed max"
);
}
function ownerMint(address _address, uint256 _quantity) public onlyOwner {
uint256 supply = totalSupply();
require(supply + _quantity <= MAX_SUPPLY, "Max supply over");
_safeMint(_address, _quantity);
}
// only owner
function setUnrevealedURI(string calldata _uri) public onlyOwner {
_unrevealedURI = _uri;
}
function setBaseURI(string calldata _uri) external onlyOwner {
_baseTokenURI = _uri;
}
function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
merkleRoot = _merkleRoot;
}
function setPresale(bool _state) public onlyOwner {
preSaleStart = _state;
}
function setPubsale(bool _state) public onlyOwner {
pubSaleStart = _state;
}
function setMintLimit(uint256 _quantity) public onlyOwner {
mintLimit = _quantity;
}
function reveal(bool _state) public onlyOwner {
_revealed = _state;
}
function checkLicenseType(uint256 _tokenId)
external
view
returns (string memory)
{
require(_exists(_tokenId), "nonexistent token");
return _isExclusive[_tokenId] ? "Exclusive" : "Non-Exclusive";
}
function setLicense(uint256 _tokenId, bool _state) external {
address owner = ownerOf(_tokenId);
require(owner == msg.sender, "only the owner can set license");
_isExclusive[_tokenId] = _state;
}
function _beforeTokenTransfers(
address _from,
address _to,
uint256 _startTokenId,
uint256 _quantity
) internal override(ERC721Psi) {
for (uint256 i = 0; i < _quantity; i++) {
uint256 tokenId = _startTokenId + i;
if (_isExclusive[tokenId]) {
_isExclusive[tokenId] = false;
}
}
super._beforeTokenTransfers(_from, _to, _startTokenId, _quantity);
}
function setMemberAddress(
address _founder,
address _illustrator,
address _developer,
address _marketer,
address _musician
) public onlyOwner {
_member.founder = _founder;
_member.illustrator = _illustrator;
_member.developer = _developer;
_member.marketer = _marketer;
_member.musician = _musician;
}
function withdraw() external onlyOwner {
require(
_member.founder != address(0) &&
_member.illustrator != address(0) &&
_member.developer != address(0) &&
_member.marketer != address(0) &&
_member.musician != address(0),
"Please set member address"
);
uint256 balance = address(this).balance;
Address.sendValue(payable(_member.founder), ((balance * 2500) / 10000));
Address.sendValue(
payable(_member.illustrator),
((balance * 3000) / 10000)
);
Address.sendValue(
payable(_member.developer),
((balance * 2000) / 10000)
);
Address.sendValue(payable(_member.marketer), ((balance * 1000) / 10000));
Address.sendValue(payable(_member.musician), ((balance * 1500) / 10000));
}
// OperatorFilterer
function setOperatorFilteringEnabled(bool _state) external onlyOwner {
operatorFilteringEnabled = _state;
}
function setApprovalForAll(address operator, bool approved)
public
override
onlyAllowedOperatorApproval(operator)
{
super.setApprovalForAll(operator, approved);
}
function approve(address operator, uint256 tokenId)
public
override
onlyAllowedOperatorApproval(operator)
{
super.approve(operator, tokenId);
}
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);
}
// Royality
function setRoyalty(address _royaltyAddress, uint96 _feeNumerator)
external
onlyOwner
{
_setDefaultRoyalty(_royaltyAddress, _feeNumerator);
}
function supportsInterface(bytes4 _interfaceId)
public
view
virtual
override(ERC721Psi, ERC2981)
returns (bool)
{
return
ERC721Psi.supportsInterface(_interfaceId) ||
ERC2981.supportsInterface(_interfaceId);
}
}// SPDX-License-Identifier: MIT
/**
______ _____ _____ ______ ___ __ _ _ _
| ____| __ \ / ____|____ |__ \/_ | || || |
| |__ | |__) | | / / ) || | \| |/ |
| __| | _ /| | / / / / | |\_ _/
| |____| | \ \| |____ / / / /_ | | | |
|______|_| \_\\_____|/_/ |____||_| |_|
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";
import "solidity-bits/contracts/BitMaps.sol";
contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using Strings for uint256;
using BitMaps for BitMaps.BitMap;
BitMaps.BitMap private _batchHead;
string private _name;
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) internal _owners;
uint256 internal _minted = 1;
mapping(uint256 => address) private _tokenApprovals;
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC165, IERC165)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
interfaceId == type(IERC721Enumerable).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner)
public
view
virtual
override
returns (uint)
{
require(owner != address(0), "ERC721Psi: balance query for the zero address");
uint count;
for( uint i = 1; i < _minted; ++i ){
if(_exists(i)){
if( owner == ownerOf(i)){
++count;
}
}
}
return count;
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId)
public
view
virtual
override
returns (address)
{
(address owner, ) = _ownerAndBatchHeadOf(tokenId);
return owner;
}
function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
tokenIdBatchHead = _getBatchHead(tokenId);
owner = _owners[tokenIdBatchHead];
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ownerOf(tokenId);
require(to != owner, "ERC721Psi: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721Psi: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId)
public
view
virtual
override
returns (address)
{
require(
_exists(tokenId),
"ERC721Psi: approved query for nonexistent token"
);
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved)
public
virtual
override
{
require(operator != _msgSender(), "ERC721Psi: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721Psi: transfer caller is not owner nor approved"
);
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721Psi: transfer caller is not owner nor approved"
);
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, 1,_data),
"ERC721Psi: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return tokenId < _minted;
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId)
internal
view
virtual
returns (bool)
{
require(
_exists(tokenId),
"ERC721Psi: operator query for nonexistent token"
);
address owner = ownerOf(tokenId);
return (spender == owner ||
getApproved(tokenId) == spender ||
isApprovedForAll(owner, spender));
}
/**
* @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) internal virtual {
_safeMint(to, quantity, "");
}
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
uint256 startTokenId = _minted;
_mint(to, quantity);
require(
_checkOnERC721Received(address(0), to, startTokenId, quantity, _data),
"ERC721Psi: transfer to non ERC721Receiver implementer"
);
}
function _mint(
address to,
uint256 quantity
) internal virtual {
uint256 tokenIdBatchHead = _minted;
require(quantity > 0, "ERC721Psi: quantity must be greater 0");
require(to != address(0), "ERC721Psi: mint to the zero address");
_beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
_minted += quantity;
_owners[tokenIdBatchHead] = to;
_batchHead.set(tokenIdBatchHead);
_afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
// Emit events
for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){
emit Transfer(address(0), to, tokenId);
}
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
(address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);
require(
owner == from,
"ERC721Psi: transfer of token that is not own"
);
require(to != address(0), "ERC721Psi: transfer to the zero address");
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
uint256 nextTokenId = tokenId + 1;
if(!_batchHead.get(nextTokenId) &&
nextTokenId < _minted
) {
_owners[nextTokenId] = from;
_batchHead.set(nextTokenId);
}
_owners[tokenId] = to;
if(tokenId != tokenIdBatchHead) {
_batchHead.set(tokenId);
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param startTokenId uint256 the first ID of the tokens to be transferred
* @param quantity uint256 amount of the tokens to be transfered.
* @param _data bytes optional data to send along with the call
* @return r bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 startTokenId,
uint256 quantity,
bytes memory _data
) private returns (bool r) {
if (to.isContract()) {
r = true;
for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
r = r && retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721Psi: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
return r;
} else {
return true;
}
}
function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
tokenIdBatchHead = _batchHead.scanForward(tokenId);
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _minted - 1;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) {
require(index < totalSupply(), "ERC721Psi: global index out of bounds");
uint count;
for(uint i = 1; i < _minted; i++){
if(_exists(i)){
if(count == index) return i;
else count++;
}
}
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
uint count;
for(uint i = 1; i < _minted; i++){
if(_exists(i) && owner == ownerOf(i)){
if(count == index) return i;
else count++;
}
}
revert("ERC721Psi: owner index out of bounds");
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
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 unregister(address addr) 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);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
*/
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
bool public operatorFilteringEnabled = true;
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
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(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_REGISTRY.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// 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) {
_checkFilterOperator(msg.sender);
}
_;
}
modifier onlyAllowedOperatorApproval(address operator) virtual {
_checkFilterOperator(operator);
_;
}
function _checkFilterOperator(address operator) internal view virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0 && operatorFilteringEnabled) {
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
}// SPDX-License-Identifier: MIT
/**
_____ ___ ___ __ ____ _ __
/ ___/____ / (_)___/ (_) /___ __ / __ )(_) /______
\__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/
___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ )
/____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/
/____/
- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits
*/
pragma solidity ^0.8.0;
import "./BitScan.sol";
/**
* @dev This Library is a modified version of Openzeppelin's BitMaps library.
* Functions of finding the index of the closest set bit from a given index are added.
* The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
* The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
*/
/**
* @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
* Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
*/
library BitMaps {
using BitScan for uint256;
uint256 private constant MASK_INDEX_ZERO = (1 << 255);
uint256 private constant MASK_FULL = type(uint256).max;
struct BitMap {
mapping(uint256 => uint256) _data;
}
/**
* @dev Returns whether the bit at `index` is set.
*/
function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
uint256 bucket = index >> 8;
uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
return bitmap._data[bucket] & mask != 0;
}
/**
* @dev Sets the bit at `index` to the boolean `value`.
*/
function setTo(
BitMap storage bitmap,
uint256 index,
bool value
) internal {
if (value) {
set(bitmap, index);
} else {
unset(bitmap, index);
}
}
/**
* @dev Sets the bit at `index`.
*/
function set(BitMap storage bitmap, uint256 index) internal {
uint256 bucket = index >> 8;
uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
bitmap._data[bucket] |= mask;
}
/**
* @dev Unsets the bit at `index`.
*/
function unset(BitMap storage bitmap, uint256 index) internal {
uint256 bucket = index >> 8;
uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
bitmap._data[bucket] &= ~mask;
}
/**
* @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`.
*/
function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
uint256 bucket = startIndex >> 8;
uint256 bucketStartIndex = (startIndex & 0xff);
unchecked {
if(bucketStartIndex + amount < 256) {
bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex;
} else {
bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex;
amount -= (256 - bucketStartIndex);
bucket++;
while(amount > 256) {
bitmap._data[bucket] = MASK_FULL;
amount -= 256;
bucket++;
}
bitmap._data[bucket] |= MASK_FULL << (256 - amount);
}
}
}
/**
* @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`.
*/
function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
uint256 bucket = startIndex >> 8;
uint256 bucketStartIndex = (startIndex & 0xff);
unchecked {
if(bucketStartIndex + amount < 256) {
bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex);
} else {
bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex);
amount -= (256 - bucketStartIndex);
bucket++;
while(amount > 256) {
bitmap._data[bucket] = 0;
amount -= 256;
bucket++;
}
bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount));
}
}
}
/**
* @dev Find the closest index of the set bit before `index`.
*/
function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) {
uint256 bucket = index >> 8;
// index within the bucket
uint256 bucketIndex = (index & 0xff);
// load a bitboard from the bitmap.
uint256 bb = bitmap._data[bucket];
// offset the bitboard to scan from `bucketIndex`.
bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
if(bb > 0) {
unchecked {
setBitIndex = (bucket << 8) | (bucketIndex - bb.bitScanForward256());
}
} else {
while(true) {
require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
unchecked {
bucket--;
}
// No offset. Always scan from the least significiant bit now.
bb = bitmap._data[bucket];
if(bb > 0) {
unchecked {
setBitIndex = (bucket << 8) | (255 - bb.bitScanForward256());
break;
}
}
}
}
}
function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
return bitmap._data[bucket];
}
}// SPDX-License-Identifier: MIT
/**
_____ ___ ___ __ ____ _ __
/ ___/____ / (_)___/ (_) /___ __ / __ )(_) /______
\__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/
___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ )
/____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/
/____/
- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits
*/
pragma solidity ^0.8.0;
library BitScan {
uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";
/**
@dev Isolate the least significant set bit.
*/
function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
require(bb > 0);
unchecked {
return bb & (0 - bb);
}
}
/**
@dev Isolate the most significant set bit.
*/
function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
require(bb > 0);
unchecked {
bb |= bb >> 128;
bb |= bb >> 64;
bb |= bb >> 32;
bb |= bb >> 16;
bb |= bb >> 8;
bb |= bb >> 4;
bb |= bb >> 2;
bb |= bb >> 1;
return (bb >> 1) + 1;
}
}
/**
@dev Find the index of the lest significant set bit. (trailing zero count)
*/
function bitScanForward256(uint256 bb) pure internal returns (uint8) {
unchecked {
return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
}
}
/**
@dev Find the index of the most significant set bit.
*/
function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
unchecked {
return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
}
}
function log2(uint256 bb) pure internal returns (uint8) {
unchecked {
return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
}
}
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUB_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkLicenseType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"pubMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pubSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_founder","type":"address"},{"internalType":"address","name":"_illustrator","type":"address"},{"internalType":"address","name":"_developer","type":"address"},{"internalType":"address","name":"_marketer","type":"address"},{"internalType":"address","name":"_musician","type":"address"}],"name":"setMemberAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPubsale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405260016004556001600b60006101000a81548160ff0219169083151502179055506001600c55604051806080016040528060448152602001620076f760449139601090805190602001906200005a929190620011a9565b503480156200006857600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600581526020017f52564c54440000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f52564c5444000000000000000000000000000000000000000000000000000000815250816001908051906020019062000104929190620011a9565b5080600290805190602001906200011d929190620011a9565b50505062000140620001346200096c60201b60201c565b6200097460201b60201c565b6001600a8190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200033d57801562000203576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001c99291906200129e565b600060405180830381600087803b158015620001e457600080fd5b505af1158015620001f9573d6000803e3d6000fd5b505050506200033c565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002bd576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620002839291906200129e565b600060405180830381600087803b1580156200029e57600080fd5b505af1158015620002b3573d6000803e3d6000fd5b505050506200033b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003069190620012cb565b600060405180830381600087803b1580156200032157600080fd5b505af115801562000336573d6000803e3d6000fd5b505050505b5b5b505062000367739efa220e89cbd7d9f282c656a0d2ce8b8e8c923e6103e862000a3a60201b60201c565b739efa220e89cbd7d9f282c656a0d2ce8b8e8c923e601460000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733168ad7beed95c5f58356ca3c9aa961e57b1b48c601460010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550737abb65089055fb2bf5b247c89e3c11f7db861213601460020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073f2fd31926b3bc3fb47c108b31cc0829f20dee4c0601460030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507340a6a21b4a0e988d990e4edbfc7389061f76e6df601460040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f1e3dbf585d4954318bee95b18eb00e063e3481dd66ee0164c5c64fc81ce98b3660001b600d8190555062000570730770562708d92e6b4da6b2047a5cd91faa1cdbc8600162000bdd60201b60201c565b62000597733168ad7beed95c5f58356ca3c9aa961e57b1b48c600162000bdd60201b60201c565b620005be737abb65089055fb2bf5b247c89e3c11f7db861213600162000bdd60201b60201c565b620005e573f2fd31926b3bc3fb47c108b31cc0829f20dee4c0600162000bdd60201b60201c565b6200060c739efa220e89cbd7d9f282c656a0d2ce8b8e8c923e600162000bdd60201b60201c565b620006337340a6a21b4a0e988d990e4edbfc7389061f76e6df600162000bdd60201b60201c565b6200065a739efa220e89cbd7d9f282c656a0d2ce8b8e8c923e600162000bdd60201b60201c565b6200068173dab7b3236a69a921bfad61d469faa7b1f4b24267600162000bdd60201b60201c565b620006a87342a662b820e0c3a860fad43f34d92cdb4769cf8b600162000bdd60201b60201c565b620006cf7396a974a4f884baa5a70a77ffb3ad9f9271c5d4f8600162000bdd60201b60201c565b620006f6730383c0bdd89e915c1e2b4ac3445a3158211056e9600162000bdd60201b60201c565b6200071d73490b9e5ecad355efcb63461878537186771c9c29600162000bdd60201b60201c565b6200074473971740ed368934875f1890898d5ffc10ea99fa43600162000bdd60201b60201c565b6200076b73feaf597b1d8333e6b3d48dcf54cce89170df5a4c600162000bdd60201b60201c565b62000792734f4d74826c910e4621c465f09bd4373c6cd3d5fc600162000bdd60201b60201c565b620007b9736dc3120ed771d18682d7e90d30311fa2a1069bb8600162000bdd60201b60201c565b620007e073d0d87c75324436db5722dc11c69fbdc9f54c903a600162000bdd60201b60201c565b62000807734187dd52368f48eb2e1db7ad079afae1a0992a2d600162000bdd60201b60201c565b6200082e739efa220e89cbd7d9f282c656a0d2ce8b8e8c923e607c62000bdd60201b60201c565b62000855739f1498f67fd2ce379786029c308c22a4a4794599600162000bdd60201b60201c565b6200087c7337139352336d0a02e1dd5b8042483f61021793e8600162000bdd60201b60201c565b620008a37354bffb4aee67e53b3951bb397c42b855e9d945ed600162000bdd60201b60201c565b620008ca73512f1f1df1c1a179fd508ba07a082a7d8869b265600162000bdd60201b60201c565b620008f173719949c994850c7f9029b4ac1517d7721556ec4e600162000bdd60201b60201c565b62000918736c2bb8db1512bdf6e4a43cfd8c3a1cdc7351d753600162000bdd60201b60201c565b6200093f7363542371ef68e0f4ce544dd76039dfae76858c39600162000bdd60201b60201c565b62000966739efa220e89cbd7d9f282c656a0d2ce8b8e8c923e600162000bdd60201b60201c565b620018af565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000a4a62000c0360201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000aab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000aa2906200136f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000b1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b1490620013e1565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b62000bff82826040518060200160405280600081525062000c0d60201b60201c565b5050565b6000612710905090565b6000600454905062000c26848462000c8460201b60201c565b62000c3c60008583868662000e8960201b60201c565b62000c7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000c759062001479565b60405180910390fd5b50505050565b600060045490506000821162000cd1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000cc89062001511565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000d43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000d3a90620015a9565b60405180910390fd5b62000d5860008483856200107460201b60201c565b816004600082825462000d6c919062001604565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000de08160006200111d60201b62001f7d1790919060201c565b62000df560008483856200117a60201b60201c565b60008190505b828262000e09919062001604565b81101562000e8357808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808062000e7a9062001661565b91505062000dfb565b50505050565b600062000eb78573ffffffffffffffffffffffffffffffffffffffff166200118060201b62001fda1760201c565b1562001066576001905060008490505b838562000ed5919062001604565b8110156200105f578573ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000f096200096c60201b60201c565b8984876040518563ffffffff1660e01b815260040162000f2d949392919062001763565b6020604051808303816000875af192505050801562000f6c57506040513d601f19601f8201168201806040525081019062000f69919062001819565b60015b62000ff4573d806000811462000f9f576040519150601f19603f3d011682016040523d82523d6000602084013e62000fa4565b606091505b50600081510362000fec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000fe39062001479565b60405180910390fd5b805181602001fd5b82801562001046575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9250508080620010569062001661565b91505062000ec7565b506200106b565b600190505b95945050505050565b60005b81811015620010fd576000818462001090919062001604565b90506013600082815260200190815260200160002060009054906101000a900460ff1615620010e65760006013600083815260200190815260200160002060006101000a81548160ff0219169083151502179055505b508080620010f49062001661565b91505062001077565b506200111784848484620011a360201b62001ffd1760201c565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b828054620011b7906200187a565b90600052602060002090601f016020900481019282620011db576000855562001227565b82601f10620011f657805160ff191683800117855562001227565b8280016001018555821562001227579182015b828111156200122657825182559160200191906001019062001209565b5b5090506200123691906200123a565b5090565b5b80821115620012555760008160009055506001016200123b565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620012868262001259565b9050919050565b620012988162001279565b82525050565b6000604082019050620012b560008301856200128d565b620012c460208301846200128d565b9392505050565b6000602082019050620012e260008301846200128d565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062001357602a83620012e8565b91506200136482620012f9565b604082019050919050565b600060208201905081810360008301526200138a8162001348565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620013c9601983620012e8565b9150620013d68262001391565b602082019050919050565b60006020820190508181036000830152620013fc81620013ba565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b600062001461603583620012e8565b91506200146e8262001403565b604082019050919050565b60006020820190508181036000830152620014948162001452565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000620014f9602583620012e8565b915062001506826200149b565b604082019050919050565b600060208201905081810360008301526200152c81620014ea565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600062001591602383620012e8565b91506200159e8262001533565b604082019050919050565b60006020820190508181036000830152620015c48162001582565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200161182620015cb565b91506200161e83620015cb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620016565762001655620015d5565b5b828201905092915050565b60006200166e82620015cb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620016a357620016a2620015d5565b5b600182019050919050565b620016b981620015cb565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015620016fb578082015181840152602081019050620016de565b838111156200170b576000848401525b50505050565b6000601f19601f8301169050919050565b60006200172f82620016bf565b6200173b8185620016ca565b93506200174d818560208601620016db565b620017588162001711565b840191505092915050565b60006080820190506200177a60008301876200128d565b6200178960208301866200128d565b620017986040830185620016ae565b8181036060830152620017ac818462001722565b905095945050505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620017f381620017bc565b8114620017ff57600080fd5b50565b6000815190506200181381620017e8565b92915050565b600060208284031215620018325762001831620017b7565b5b6000620018428482850162001802565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200189357607f821691505b602082108103620018a957620018a86200184b565b5b50919050565b615e3880620018bf6000396000f3fe6080604052600436106102885760003560e01c8063715018a61161015a578063b472070f116100c1578063c884ef831161007a578063c884ef83146109bf578063cfd9480b146109fc578063e985e9c514610a27578063f2fde38b14610a64578063fb796e6c14610a8d578063fe2c7fee14610ab857610288565b8063b472070f146108c0578063b7c0b8e8146108eb578063b88d4fde14610914578063c1d9df8d1461093d578063c54e73e314610959578063c87b56dd1461098257610288565b8063996517cf11610113578063996517cf146107a05780639b049e41146107cb5780639c9ff439146107f45780639e6a1d7d14610831578063a22cb4651461085a578063a9a382621461088357610288565b8063715018a6146106b85780637cb64759146106cf5780638da5cb5b146106f85780638f2fc60b14610723578063940cd05b1461074c57806395d89b411461077557610288565b80632f745c59116101fe5780634f6ccce7116101b75780634f6ccce714610591578063556fedd2146105ce57806355f804b3146105f95780635a546223146106225780636352211e1461063e57806370a082311461067b57610288565b80632f745c591461049557806332cb6b0c146104d25780633ccfd60b146104fd57806341f434341461051457806342842e0e1461053f578063484b973c1461056857610288565b80631146f3c4116102505780631146f3c41461038657806318160ddd146103af5780631ad4de59146103da57806323b872dd146104035780632a55205a1461042c5780632eb4a7ab1461046a57610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b3146103325780630d5624b31461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613d52565b610ae1565b6040516102c19190613d9a565b60405180910390f35b3480156102d657600080fd5b506102df610b03565b6040516102ec9190613e4e565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190613ea6565b610b95565b6040516103299190613f14565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190613f5b565b610c1a565b005b34801561036757600080fd5b50610370610c33565b60405161037d9190613d9a565b60405180910390f35b34801561039257600080fd5b506103ad60048036038101906103a89190613f9b565b610c46565b005b3480156103bb57600080fd5b506103c4610da9565b6040516103d19190614025565b60405180910390f35b3480156103e657600080fd5b5061040160048036038101906103fc919061406c565b610dbf565b005b34801561040f57600080fd5b5061042a60048036038101906104259190614099565b610de4565b005b34801561043857600080fd5b50610453600480360381019061044e91906140ec565b610e33565b60405161046192919061412c565b60405180910390f35b34801561047657600080fd5b5061047f61101d565b60405161048c919061416e565b60405180910390f35b3480156104a157600080fd5b506104bc60048036038101906104b79190613f5b565b611023565b6040516104c99190614025565b60405180910390f35b3480156104de57600080fd5b506104e76110f9565b6040516104f49190614025565b60405180910390f35b34801561050957600080fd5b506105126110ff565b005b34801561052057600080fd5b50610529611489565b60405161053691906141e8565b60405180910390f35b34801561054b57600080fd5b5061056660048036038101906105619190614099565b61149b565b005b34801561057457600080fd5b5061058f600480360381019061058a9190613f5b565b6114ea565b005b34801561059d57600080fd5b506105b860048036038101906105b39190613ea6565b61155d565b6040516105c59190614025565b60405180910390f35b3480156105da57600080fd5b506105e3611603565b6040516105f09190614025565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b9190614268565b61160e565b005b61063c6004803603810190610637919061430b565b61162c565b005b34801561064a57600080fd5b5061066560048036038101906106609190613ea6565b611769565b6040516106729190613f14565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d919061436b565b611781565b6040516106af9190614025565b60405180910390f35b3480156106c457600080fd5b506106cd611875565b005b3480156106db57600080fd5b506106f660048036038101906106f191906143c4565b611889565b005b34801561070457600080fd5b5061070d61189b565b60405161071a9190613f14565b60405180910390f35b34801561072f57600080fd5b5061074a60048036038101906107459190614435565b6118c5565b005b34801561075857600080fd5b50610773600480360381019061076e919061406c565b6118db565b005b34801561078157600080fd5b5061078a611900565b6040516107979190613e4e565b60405180910390f35b3480156107ac57600080fd5b506107b5611992565b6040516107c29190614025565b60405180910390f35b3480156107d757600080fd5b506107f260048036038101906107ed9190614475565b611998565b005b34801561080057600080fd5b5061081b60048036038101906108169190613ea6565b611a43565b6040516108289190613e4e565b60405180910390f35b34801561083d57600080fd5b5061085860048036038101906108539190613ea6565b611b2b565b005b34801561086657600080fd5b50610881600480360381019061087c91906144b5565b611b3d565b005b34801561088f57600080fd5b506108aa60048036038101906108a591906144f5565b611b56565b6040516108b79190613d9a565b60405180910390f35b3480156108cc57600080fd5b506108d5611b99565b6040516108e29190614025565b60405180910390f35b3480156108f757600080fd5b50610912600480360381019061090d919061406c565b611ba4565b005b34801561092057600080fd5b5061093b60048036038101906109369190614672565b611bc9565b005b61095760048036038101906109529190613ea6565b611c1a565b005b34801561096557600080fd5b50610980600480360381019061097b919061406c565b611d0c565b005b34801561098e57600080fd5b506109a960048036038101906109a49190613ea6565b611d31565b6040516109b69190613e4e565b60405180910390f35b3480156109cb57600080fd5b506109e660048036038101906109e1919061436b565b611e0a565b6040516109f39190614025565b60405180910390f35b348015610a0857600080fd5b50610a11611e22565b604051610a1e9190613d9a565b60405180910390f35b348015610a3357600080fd5b50610a4e6004803603810190610a4991906146f5565b611e35565b604051610a5b9190613d9a565b60405180910390f35b348015610a7057600080fd5b50610a8b6004803603810190610a86919061436b565b611ec9565b005b348015610a9957600080fd5b50610aa2611f4c565b604051610aaf9190613d9a565b60405180910390f35b348015610ac457600080fd5b50610adf6004803603810190610ada9190614268565b611f5f565b005b6000610aec82612003565b80610afc5750610afb8261214d565b5b9050919050565b606060018054610b1290614764565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3e90614764565b8015610b8b5780601f10610b6057610100808354040283529160200191610b8b565b820191906000526020600020905b815481529060010190602001808311610b6e57829003601f168201915b5050505050905090565b6000610ba0826121c7565b610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd690614807565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610c24816121d5565b610c2e83836122ea565b505050565b600b60019054906101000a900460ff1681565b610c4e612401565b84601460000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083601460010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601460020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601460030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601460040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b60006001600454610dba9190614856565b905090565b610dc7612401565b80600b60026101000a81548160ff02191690831515021790555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e2257610e21336121d5565b5b610e2d84848461247f565b50505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610fc85760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610fd26124df565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ffe919061488a565b6110089190614913565b90508160000151819350935050509250929050565b600d5481565b6000806000600190505b6004548110156110b757611040816121c7565b801561107f575061105081611769565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156110a4578382036110955780925050506110f3565b81806110a090614944565b9250505b80806110af90614944565b91505061102d565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ea906149fe565b60405180910390fd5b92915050565b6103e881565b611107612401565b600073ffffffffffffffffffffffffffffffffffffffff16601460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156111bb5750600073ffffffffffffffffffffffffffffffffffffffff16601460010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b80156112195750600073ffffffffffffffffffffffffffffffffffffffff16601460020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b80156112775750600073ffffffffffffffffffffffffffffffffffffffff16601460030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b80156112d55750600073ffffffffffffffffffffffffffffffffffffffff16601460040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90614a6a565b60405180910390fd5b6000479050611362601460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106109c484611353919061488a565b61135d9190614913565b6124e9565b6113ab601460010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710610bb88461139c919061488a565b6113a69190614913565b6124e9565b6113f4601460020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106107d0846113e5919061488a565b6113ef9190614913565b6124e9565b61143d601460030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106103e88461142e919061488a565b6114389190614913565b6124e9565b611486601460040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106105dc84611477919061488a565b6114819190614913565b6124e9565b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114d9576114d8336121d5565b5b6114e48484846125dd565b50505050565b6114f2612401565b60006114fc610da9565b90506103e8828261150d9190614a8a565b111561154e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154590614b2c565b60405180910390fd5b61155883836125fd565b505050565b6000611567610da9565b82106115a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159f90614bbe565b60405180910390fd5b600080600190505b6004548110156115fb576115c3816121c7565b156115e8578382036115d95780925050506115fe565b81806115e490614944565b9250505b80806115f390614944565b9150506115b0565b50505b919050565b66470de4df82000081565b611616612401565b8181600f9190611627929190613c43565b505050565b61163461261b565b600061163e610da9565b905060008466470de4df820000611655919061488a565b9050600b60019054906101000a900460ff166116a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169d90614c2a565b60405180910390fd5b6116b185838361266a565b6116bb8484611b56565b6116fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f190614c96565b60405180910390fd5b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117499190614a8a565b9250508190555061175a33866125fd565b50506117646127d6565b505050565b600080611775836127e0565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e890614d28565b60405180910390fd5b600080600190505b60045481101561186b5761180c816121c7565b1561185a5761181a81611769565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611859578161185690614944565b91505b5b8061186490614944565b90506117f9565b5080915050919050565b61187d612401565b6118876000612871565b565b611891612401565b80600d8190555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118cd612401565b6118d78282612937565b5050565b6118e3612401565b80600e60006101000a81548160ff02191690831515021790555050565b60606002805461190f90614764565b80601f016020809104026020016040519081016040528092919081815260200182805461193b90614764565b80156119885780601f1061195d57610100808354040283529160200191611988565b820191906000526020600020905b81548152906001019060200180831161196b57829003601f168201915b5050505050905090565b600c5481565b60006119a383611769565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0a90614d94565b60405180910390fd5b816013600085815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b6060611a4e826121c7565b611a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8490614e00565b60405180910390fd5b6013600083815260200190815260200160002060009054906101000a900460ff16611aed576040518060400160405280600d81526020017f4e6f6e2d4578636c757369766500000000000000000000000000000000000000815250611b24565b6040518060400160405280600981526020017f4578636c757369766500000000000000000000000000000000000000000000008152505b9050919050565b611b33612401565b80600c8190555050565b81611b47816121d5565b611b518383612acc565b505050565b60008033604051602001611b6a9190614e68565b604051602081830303815290604052805190602001209050611b908484600d5484612c4c565b91505092915050565b666a94d74f43000081565b611bac612401565b80600b60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c0757611c06336121d5565b5b611c1385858585612c65565b5050505050565b611c2261261b565b6000611c2c610da9565b9050600082666a94d74f430000611c43919061488a565b9050600b60029054906101000a900460ff16611c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8b90614c2a565b60405180910390fd5b611c9f83838361266a565b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cee9190614a8a565b92505081905550611cff33846125fd565b5050611d096127d6565b50565b611d14612401565b80600b60016101000a81548160ff02191690831515021790555050565b6060600e60009054906101000a900460ff1615611d7757611d5182612cc7565b604051602001611d619190614f0b565b6040516020818303038152906040529050611e05565b60108054611d8490614764565b80601f0160208091040260200160405190810160405280929190818152602001828054611db090614764565b8015611dfd5780601f10611dd257610100808354040283529160200191611dfd565b820191906000526020600020905b815481529060010190602001808311611de057829003601f168201915b505050505090505b919050565b60116020528060005260406000206000915090505481565b600b60029054906101000a900460ff1681565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ed1612401565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3790614f9f565b60405180910390fd5b611f4981612871565b50565b600b60009054906101000a900460ff1681565b611f67612401565b818160109190611f78929190613c43565b505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120ce57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061213657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612146575061214582612d6e565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121c057506121bf82612003565b5b9050919050565b600060045482109050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1180156122165750600b60009054906101000a900460ff165b156122e7576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612264929190614fbf565b602060405180830381865afa158015612281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a59190614ffd565b6122e657806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016122dd9190613f14565b60405180910390fd5b5b50565b60006122f582611769565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235c9061509c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16612384612dd8565b73ffffffffffffffffffffffffffffffffffffffff1614806123b357506123b2816123ad612dd8565b611e35565b5b6123f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e99061512e565b60405180910390fd5b6123fc8383612de0565b505050565b612409612dd8565b73ffffffffffffffffffffffffffffffffffffffff1661242761189b565b73ffffffffffffffffffffffffffffffffffffffff161461247d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124749061519a565b60405180910390fd5b565b61249061248a612dd8565b82612e99565b6124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c69061522c565b60405180910390fd5b6124da838383612f77565b505050565b6000612710905090565b8047101561252c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252390615298565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612552906152e9565b60006040518083038185875af1925050503d806000811461258f576040519150601f19603f3d011682016040523d82523d6000602084013e612594565b606091505b50509050806125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90615370565b60405180910390fd5b505050565b6125f883838360405180602001604052806000815250611bc9565b505050565b6126178282604051806020016040528060008152506131f9565b5050565b6002600a5403612660576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612657906153dc565b60405180910390fd5b6002600a81905550565b6103e883836126799190614a8a565b11156126ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b190614b2c565b60405180910390fd5b600c548311156126ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f690615448565b60405180910390fd5b80341015612742576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612739906154b4565b60405180910390fd5b600c5483601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127909190614a8a565b11156127d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c890615520565b60405180910390fd5b505050565b6001600a81905550565b6000806127ec836121c7565b61282b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612822906155b2565b60405180910390fd5b6128348361325d565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61293f6124df565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561299d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299490615644565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a03906156b0565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b612ad4612dd8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b389061571c565b60405180910390fd5b8060066000612b4e612dd8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612bfb612dd8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c409190613d9a565b60405180910390a35050565b600082612c5a86868561327a565b149050949350505050565b612c76612c70612dd8565b83612e99565b612cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cac9061522c565b60405180910390fd5b612cc1848484846132d2565b50505050565b6060612cd2826121c7565b612d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d08906157ae565b60405180910390fd5b6000612d1b613330565b90506000815111612d3b5760405180602001604052806000815250612d66565b80612d45846133c2565b604051602001612d569291906157ce565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e5383611769565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612ea4826121c7565b612ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eda90615864565b60405180910390fd5b6000612eee83611769565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f5d57508373ffffffffffffffffffffffffffffffffffffffff16612f4584610b95565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f6e5750612f6d8185611e35565b5b91505092915050565b600080612f83836127e0565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fec906158f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305b90615988565b60405180910390fd5b6130718585856001613490565b61307c600084612de0565b600060018461308b9190614a8a565b90506130a181600061352590919063ffffffff16565b1580156130af575060045481105b1561311b57856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061311a816000611f7d90919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081841461318957613188846000611f7d90919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131f18686866001613580565b505050505050565b6000600454905061320a8484613586565b613218600085838686613766565b613257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324e90615a1a565b60405180910390fd5b50505050565b600061327382600061392890919063ffffffff16565b9050919050565b60008082905060005b858590508110156132c6576132b1828787848181106132a5576132a4615a3a565b5b90506020020135613a21565b915080806132be90614944565b915050613283565b50809150509392505050565b6132dd848484612f77565b6132eb848484600185613766565b61332a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332190615a1a565b60405180910390fd5b50505050565b6060600f805461333f90614764565b80601f016020809104026020016040519081016040528092919081815260200182805461336b90614764565b80156133b85780601f1061338d576101008083540402835291602001916133b8565b820191906000526020600020905b81548152906001019060200180831161339b57829003601f168201915b5050505050905090565b6060600060016133d184613a4c565b01905060008167ffffffffffffffff8111156133f0576133ef614547565b5b6040519080825280601f01601f1916602001820160405280156134225781602001600182028036833780820191505090505b509050600082602001820190505b600115613485578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613479576134786148e4565b5b04945060008503613430575b819350505050919050565b60005b8181101561351257600081846134a99190614a8a565b90506013600082815260200190815260200160002060009054906101000a900460ff16156134fe5760006013600083815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50808061350a90614944565b915050613493565b5061351f84848484611ffd565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b50505050565b60006004549050600082116135d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c790615adb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361363f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363690615b6d565b60405180910390fd5b61364c6000848385613490565b816004600082825461365e9190614a8a565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136cb816000611f7d90919063ffffffff16565b6136d86000848385613580565b60008190505b82826136ea9190614a8a565b81101561376057808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808061375890614944565b9150506136de565b50505050565b60006137878573ffffffffffffffffffffffffffffffffffffffff16611fda565b1561391a576001905060008490505b83856137a29190614a8a565b811015613914578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026137cd612dd8565b8984876040518563ffffffff1660e01b81526004016137ef9493929190615be2565b6020604051808303816000875af192505050801561382b57506040513d601f19601f820116820180604052508101906138289190615c43565b60015b6138ad573d806000811461385b576040519150601f19603f3d011682016040523d82523d6000602084013e613860565b606091505b5060008151036138a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389c90615a1a565b60405180910390fd5b805181602001fd5b8280156138fe575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808061390c90614944565b915050613796565b5061391f565b600190505b95945050505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156139815761396f81613b9f565b60ff168203600884901b179350613a18565b5b600115613a1757600083116139cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139c390615ce2565b60405180910390fd5b8280600190039350508560000160008481526020019081526020016000205490506000811115613a12576139ff81613b9f565b60ff0360ff16600884901b179350613a17565b613982565b5b50505092915050565b6000818310613a3957613a348284613c11565b613a44565b613a438383613c11565b5b905092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613aaa577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613aa057613a9f6148e4565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613ae7576d04ee2d6d415b85acef81000000008381613add57613adc6148e4565b5b0492506020810190505b662386f26fc100008310613b1657662386f26fc100008381613b0c57613b0b6148e4565b5b0492506010810190505b6305f5e1008310613b3f576305f5e1008381613b3557613b346148e4565b5b0492506008810190505b6127108310613b64576127108381613b5a57613b596148e4565b5b0492506004810190505b60648310613b875760648381613b7d57613b7c6148e4565b5b0492506002810190505b600a8310613b96576001810190505b80915050919050565b60006040518061012001604052806101008152602001615d03610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff613be885613c28565b02901c81518110613bfc57613bfb615a3a565b5b602001015160f81c60f81b60f81c9050919050565b600082600052816020526040600020905092915050565b6000808211613c3657600080fd5b8160000382169050919050565b828054613c4f90614764565b90600052602060002090601f016020900481019282613c715760008555613cb8565b82601f10613c8a57803560ff1916838001178555613cb8565b82800160010185558215613cb8579182015b82811115613cb7578235825591602001919060010190613c9c565b5b509050613cc59190613cc9565b5090565b5b80821115613ce2576000816000905550600101613cca565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d2f81613cfa565b8114613d3a57600080fd5b50565b600081359050613d4c81613d26565b92915050565b600060208284031215613d6857613d67613cf0565b5b6000613d7684828501613d3d565b91505092915050565b60008115159050919050565b613d9481613d7f565b82525050565b6000602082019050613daf6000830184613d8b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613def578082015181840152602081019050613dd4565b83811115613dfe576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e2082613db5565b613e2a8185613dc0565b9350613e3a818560208601613dd1565b613e4381613e04565b840191505092915050565b60006020820190508181036000830152613e688184613e15565b905092915050565b6000819050919050565b613e8381613e70565b8114613e8e57600080fd5b50565b600081359050613ea081613e7a565b92915050565b600060208284031215613ebc57613ebb613cf0565b5b6000613eca84828501613e91565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613efe82613ed3565b9050919050565b613f0e81613ef3565b82525050565b6000602082019050613f296000830184613f05565b92915050565b613f3881613ef3565b8114613f4357600080fd5b50565b600081359050613f5581613f2f565b92915050565b60008060408385031215613f7257613f71613cf0565b5b6000613f8085828601613f46565b9250506020613f9185828601613e91565b9150509250929050565b600080600080600060a08688031215613fb757613fb6613cf0565b5b6000613fc588828901613f46565b9550506020613fd688828901613f46565b9450506040613fe788828901613f46565b9350506060613ff888828901613f46565b925050608061400988828901613f46565b9150509295509295909350565b61401f81613e70565b82525050565b600060208201905061403a6000830184614016565b92915050565b61404981613d7f565b811461405457600080fd5b50565b60008135905061406681614040565b92915050565b60006020828403121561408257614081613cf0565b5b600061409084828501614057565b91505092915050565b6000806000606084860312156140b2576140b1613cf0565b5b60006140c086828701613f46565b93505060206140d186828701613f46565b92505060406140e286828701613e91565b9150509250925092565b6000806040838503121561410357614102613cf0565b5b600061411185828601613e91565b925050602061412285828601613e91565b9150509250929050565b60006040820190506141416000830185613f05565b61414e6020830184614016565b9392505050565b6000819050919050565b61416881614155565b82525050565b6000602082019050614183600083018461415f565b92915050565b6000819050919050565b60006141ae6141a96141a484613ed3565b614189565b613ed3565b9050919050565b60006141c082614193565b9050919050565b60006141d2826141b5565b9050919050565b6141e2816141c7565b82525050565b60006020820190506141fd60008301846141d9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261422857614227614203565b5b8235905067ffffffffffffffff81111561424557614244614208565b5b6020830191508360018202830111156142615761426061420d565b5b9250929050565b6000806020838503121561427f5761427e613cf0565b5b600083013567ffffffffffffffff81111561429d5761429c613cf5565b5b6142a985828601614212565b92509250509250929050565b60008083601f8401126142cb576142ca614203565b5b8235905067ffffffffffffffff8111156142e8576142e7614208565b5b6020830191508360208202830111156143045761430361420d565b5b9250929050565b60008060006040848603121561432457614323613cf0565b5b600061433286828701613e91565b935050602084013567ffffffffffffffff81111561435357614352613cf5565b5b61435f868287016142b5565b92509250509250925092565b60006020828403121561438157614380613cf0565b5b600061438f84828501613f46565b91505092915050565b6143a181614155565b81146143ac57600080fd5b50565b6000813590506143be81614398565b92915050565b6000602082840312156143da576143d9613cf0565b5b60006143e8848285016143af565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b614412816143f1565b811461441d57600080fd5b50565b60008135905061442f81614409565b92915050565b6000806040838503121561444c5761444b613cf0565b5b600061445a85828601613f46565b925050602061446b85828601614420565b9150509250929050565b6000806040838503121561448c5761448b613cf0565b5b600061449a85828601613e91565b92505060206144ab85828601614057565b9150509250929050565b600080604083850312156144cc576144cb613cf0565b5b60006144da85828601613f46565b92505060206144eb85828601614057565b9150509250929050565b6000806020838503121561450c5761450b613cf0565b5b600083013567ffffffffffffffff81111561452a57614529613cf5565b5b614536858286016142b5565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61457f82613e04565b810181811067ffffffffffffffff8211171561459e5761459d614547565b5b80604052505050565b60006145b1613ce6565b90506145bd8282614576565b919050565b600067ffffffffffffffff8211156145dd576145dc614547565b5b6145e682613e04565b9050602081019050919050565b82818337600083830152505050565b6000614615614610846145c2565b6145a7565b90508281526020810184848401111561463157614630614542565b5b61463c8482856145f3565b509392505050565b600082601f83011261465957614658614203565b5b8135614669848260208601614602565b91505092915050565b6000806000806080858703121561468c5761468b613cf0565b5b600061469a87828801613f46565b94505060206146ab87828801613f46565b93505060406146bc87828801613e91565b925050606085013567ffffffffffffffff8111156146dd576146dc613cf5565b5b6146e987828801614644565b91505092959194509250565b6000806040838503121561470c5761470b613cf0565b5b600061471a85828601613f46565b925050602061472b85828601613f46565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061477c57607f821691505b60208210810361478f5761478e614735565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006147f1602f83613dc0565b91506147fc82614795565b604082019050919050565b60006020820190508181036000830152614820816147e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061486182613e70565b915061486c83613e70565b92508282101561487f5761487e614827565b5b828203905092915050565b600061489582613e70565b91506148a083613e70565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148d9576148d8614827565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061491e82613e70565b915061492983613e70565b925082614939576149386148e4565b5b828204905092915050565b600061494f82613e70565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361498157614980614827565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b60006149e8602483613dc0565b91506149f38261498c565b604082019050919050565b60006020820190508181036000830152614a17816149db565b9050919050565b7f506c6561736520736574206d656d626572206164647265737300000000000000600082015250565b6000614a54601983613dc0565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b6000614a9582613e70565b9150614aa083613e70565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ad557614ad4614827565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000614b16600f83613dc0565b9150614b2182614ae0565b602082019050919050565b60006020820190508181036000830152614b4581614b09565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b6000614ba8602583613dc0565b9150614bb382614b4c565b604082019050919050565b60006020820190508181036000830152614bd781614b9b565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000614c14601283613dc0565b9150614c1f82614bde565b602082019050919050565b60006020820190508181036000830152614c4381614c07565b9050919050565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b6000614c80601483613dc0565b9150614c8b82614c4a565b602082019050919050565b60006020820190508181036000830152614caf81614c73565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000614d12602d83613dc0565b9150614d1d82614cb6565b604082019050919050565b60006020820190508181036000830152614d4181614d05565b9050919050565b7f6f6e6c7920746865206f776e65722063616e20736574206c6963656e73650000600082015250565b6000614d7e601e83613dc0565b9150614d8982614d48565b602082019050919050565b60006020820190508181036000830152614dad81614d71565b9050919050565b7f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b6000614dea601183613dc0565b9150614df582614db4565b602082019050919050565b60006020820190508181036000830152614e1981614ddd565b9050919050565b60008160601b9050919050565b6000614e3882614e20565b9050919050565b6000614e4a82614e2d565b9050919050565b614e62614e5d82613ef3565b614e3f565b82525050565b6000614e748284614e51565b60148201915081905092915050565b600081905092915050565b6000614e9982613db5565b614ea38185614e83565b9350614eb3818560208601613dd1565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ef5600583614e83565b9150614f0082614ebf565b600582019050919050565b6000614f178284614e8e565b9150614f2282614ee8565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f89602683613dc0565b9150614f9482614f2d565b604082019050919050565b60006020820190508181036000830152614fb881614f7c565b9050919050565b6000604082019050614fd46000830185613f05565b614fe16020830184613f05565b9392505050565b600081519050614ff781614040565b92915050565b60006020828403121561501357615012613cf0565b5b600061502184828501614fe8565b91505092915050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000615086602483613dc0565b91506150918261502a565b604082019050919050565b600060208201905081810360008301526150b581615079565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000615118603b83613dc0565b9150615123826150bc565b604082019050919050565b600060208201905081810360008301526151478161510b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615184602083613dc0565b915061518f8261514e565b602082019050919050565b600060208201905081810360008301526151b381615177565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000615216603483613dc0565b9150615221826151ba565b604082019050919050565b6000602082019050818103600083015261524581615209565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615282601d83613dc0565b915061528d8261524c565b602082019050919050565b600060208201905081810360008301526152b181615275565b9050919050565b600081905092915050565b50565b60006152d36000836152b8565b91506152de826152c3565b600082019050919050565b60006152f4826152c6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061535a603a83613dc0565b9150615365826152fe565b604082019050919050565b600060208201905081810360008301526153898161534d565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006153c6601f83613dc0565b91506153d182615390565b602082019050919050565b600060208201905081810360008301526153f5816153b9565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b6000615432601283613dc0565b915061543d826153fc565b602082019050919050565b6000602082019050818103600083015261546181615425565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b600061549e601083613dc0565b91506154a982615468565b602082019050919050565b600060208201905081810360008301526154cd81615491565b9050919050565b7f416c726561647920636c61696d6564206d617800000000000000000000000000600082015250565b600061550a601383613dc0565b9150615515826154d4565b602082019050919050565b60006020820190508181036000830152615539816154fd565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061559c602c83613dc0565b91506155a782615540565b604082019050919050565b600060208201905081810360008301526155cb8161558f565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061562e602a83613dc0565b9150615639826155d2565b604082019050919050565b6000602082019050818103600083015261565d81615621565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061569a601983613dc0565b91506156a582615664565b602082019050919050565b600060208201905081810360008301526156c98161568d565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000615706601c83613dc0565b9150615711826156d0565b602082019050919050565b60006020820190508181036000830152615735816156f9565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615798602a83613dc0565b91506157a38261573c565b604082019050919050565b600060208201905081810360008301526157c78161578b565b9050919050565b60006157da8285614e8e565b91506157e68284614e8e565b91508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061584e602f83613dc0565b9150615859826157f2565b604082019050919050565b6000602082019050818103600083015261587d81615841565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b60006158e0602c83613dc0565b91506158eb82615884565b604082019050919050565b6000602082019050818103600083015261590f816158d3565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000615972602783613dc0565b915061597d82615916565b604082019050919050565b600060208201905081810360008301526159a181615965565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000615a04603583613dc0565b9150615a0f826159a8565b604082019050919050565b60006020820190508181036000830152615a33816159f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000615ac5602583613dc0565b9150615ad082615a69565b604082019050919050565b60006020820190508181036000830152615af481615ab8565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615b57602383613dc0565b9150615b6282615afb565b604082019050919050565b60006020820190508181036000830152615b8681615b4a565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bb482615b8d565b615bbe8185615b98565b9350615bce818560208601613dd1565b615bd781613e04565b840191505092915050565b6000608082019050615bf76000830187613f05565b615c046020830186613f05565b615c116040830185614016565b8181036060830152615c238184615ba9565b905095945050505050565b600081519050615c3d81613d26565b92915050565b600060208284031215615c5957615c58613cf0565b5b6000615c6784828501615c2e565b91505092915050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615ccc603483613dc0565b9150615cd782615c70565b604082019050919050565b60006020820190508181036000830152615cfb81615cbf565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220290b55440e637b5a890f2428e36502f5bf47c8c08aa75081ec9a34bbad41bf0964736f6c634300080d003368747470733a2f2f6432746e726a6a706c64336832742e636c6f756466726f6e742e6e65742f72766c74642f756e72657665616c65642f6d657461646174612e6a736f6e
Deployed Bytecode
0x6080604052600436106102885760003560e01c8063715018a61161015a578063b472070f116100c1578063c884ef831161007a578063c884ef83146109bf578063cfd9480b146109fc578063e985e9c514610a27578063f2fde38b14610a64578063fb796e6c14610a8d578063fe2c7fee14610ab857610288565b8063b472070f146108c0578063b7c0b8e8146108eb578063b88d4fde14610914578063c1d9df8d1461093d578063c54e73e314610959578063c87b56dd1461098257610288565b8063996517cf11610113578063996517cf146107a05780639b049e41146107cb5780639c9ff439146107f45780639e6a1d7d14610831578063a22cb4651461085a578063a9a382621461088357610288565b8063715018a6146106b85780637cb64759146106cf5780638da5cb5b146106f85780638f2fc60b14610723578063940cd05b1461074c57806395d89b411461077557610288565b80632f745c59116101fe5780634f6ccce7116101b75780634f6ccce714610591578063556fedd2146105ce57806355f804b3146105f95780635a546223146106225780636352211e1461063e57806370a082311461067b57610288565b80632f745c591461049557806332cb6b0c146104d25780633ccfd60b146104fd57806341f434341461051457806342842e0e1461053f578063484b973c1461056857610288565b80631146f3c4116102505780631146f3c41461038657806318160ddd146103af5780631ad4de59146103da57806323b872dd146104035780632a55205a1461042c5780632eb4a7ab1461046a57610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b3146103325780630d5624b31461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613d52565b610ae1565b6040516102c19190613d9a565b60405180910390f35b3480156102d657600080fd5b506102df610b03565b6040516102ec9190613e4e565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190613ea6565b610b95565b6040516103299190613f14565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190613f5b565b610c1a565b005b34801561036757600080fd5b50610370610c33565b60405161037d9190613d9a565b60405180910390f35b34801561039257600080fd5b506103ad60048036038101906103a89190613f9b565b610c46565b005b3480156103bb57600080fd5b506103c4610da9565b6040516103d19190614025565b60405180910390f35b3480156103e657600080fd5b5061040160048036038101906103fc919061406c565b610dbf565b005b34801561040f57600080fd5b5061042a60048036038101906104259190614099565b610de4565b005b34801561043857600080fd5b50610453600480360381019061044e91906140ec565b610e33565b60405161046192919061412c565b60405180910390f35b34801561047657600080fd5b5061047f61101d565b60405161048c919061416e565b60405180910390f35b3480156104a157600080fd5b506104bc60048036038101906104b79190613f5b565b611023565b6040516104c99190614025565b60405180910390f35b3480156104de57600080fd5b506104e76110f9565b6040516104f49190614025565b60405180910390f35b34801561050957600080fd5b506105126110ff565b005b34801561052057600080fd5b50610529611489565b60405161053691906141e8565b60405180910390f35b34801561054b57600080fd5b5061056660048036038101906105619190614099565b61149b565b005b34801561057457600080fd5b5061058f600480360381019061058a9190613f5b565b6114ea565b005b34801561059d57600080fd5b506105b860048036038101906105b39190613ea6565b61155d565b6040516105c59190614025565b60405180910390f35b3480156105da57600080fd5b506105e3611603565b6040516105f09190614025565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b9190614268565b61160e565b005b61063c6004803603810190610637919061430b565b61162c565b005b34801561064a57600080fd5b5061066560048036038101906106609190613ea6565b611769565b6040516106729190613f14565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d919061436b565b611781565b6040516106af9190614025565b60405180910390f35b3480156106c457600080fd5b506106cd611875565b005b3480156106db57600080fd5b506106f660048036038101906106f191906143c4565b611889565b005b34801561070457600080fd5b5061070d61189b565b60405161071a9190613f14565b60405180910390f35b34801561072f57600080fd5b5061074a60048036038101906107459190614435565b6118c5565b005b34801561075857600080fd5b50610773600480360381019061076e919061406c565b6118db565b005b34801561078157600080fd5b5061078a611900565b6040516107979190613e4e565b60405180910390f35b3480156107ac57600080fd5b506107b5611992565b6040516107c29190614025565b60405180910390f35b3480156107d757600080fd5b506107f260048036038101906107ed9190614475565b611998565b005b34801561080057600080fd5b5061081b60048036038101906108169190613ea6565b611a43565b6040516108289190613e4e565b60405180910390f35b34801561083d57600080fd5b5061085860048036038101906108539190613ea6565b611b2b565b005b34801561086657600080fd5b50610881600480360381019061087c91906144b5565b611b3d565b005b34801561088f57600080fd5b506108aa60048036038101906108a591906144f5565b611b56565b6040516108b79190613d9a565b60405180910390f35b3480156108cc57600080fd5b506108d5611b99565b6040516108e29190614025565b60405180910390f35b3480156108f757600080fd5b50610912600480360381019061090d919061406c565b611ba4565b005b34801561092057600080fd5b5061093b60048036038101906109369190614672565b611bc9565b005b61095760048036038101906109529190613ea6565b611c1a565b005b34801561096557600080fd5b50610980600480360381019061097b919061406c565b611d0c565b005b34801561098e57600080fd5b506109a960048036038101906109a49190613ea6565b611d31565b6040516109b69190613e4e565b60405180910390f35b3480156109cb57600080fd5b506109e660048036038101906109e1919061436b565b611e0a565b6040516109f39190614025565b60405180910390f35b348015610a0857600080fd5b50610a11611e22565b604051610a1e9190613d9a565b60405180910390f35b348015610a3357600080fd5b50610a4e6004803603810190610a4991906146f5565b611e35565b604051610a5b9190613d9a565b60405180910390f35b348015610a7057600080fd5b50610a8b6004803603810190610a86919061436b565b611ec9565b005b348015610a9957600080fd5b50610aa2611f4c565b604051610aaf9190613d9a565b60405180910390f35b348015610ac457600080fd5b50610adf6004803603810190610ada9190614268565b611f5f565b005b6000610aec82612003565b80610afc5750610afb8261214d565b5b9050919050565b606060018054610b1290614764565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3e90614764565b8015610b8b5780601f10610b6057610100808354040283529160200191610b8b565b820191906000526020600020905b815481529060010190602001808311610b6e57829003601f168201915b5050505050905090565b6000610ba0826121c7565b610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd690614807565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610c24816121d5565b610c2e83836122ea565b505050565b600b60019054906101000a900460ff1681565b610c4e612401565b84601460000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083601460010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601460020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601460030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601460040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b60006001600454610dba9190614856565b905090565b610dc7612401565b80600b60026101000a81548160ff02191690831515021790555050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e2257610e21336121d5565b5b610e2d84848461247f565b50505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610fc85760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610fd26124df565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ffe919061488a565b6110089190614913565b90508160000151819350935050509250929050565b600d5481565b6000806000600190505b6004548110156110b757611040816121c7565b801561107f575061105081611769565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156110a4578382036110955780925050506110f3565b81806110a090614944565b9250505b80806110af90614944565b91505061102d565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ea906149fe565b60405180910390fd5b92915050565b6103e881565b611107612401565b600073ffffffffffffffffffffffffffffffffffffffff16601460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156111bb5750600073ffffffffffffffffffffffffffffffffffffffff16601460010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b80156112195750600073ffffffffffffffffffffffffffffffffffffffff16601460020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b80156112775750600073ffffffffffffffffffffffffffffffffffffffff16601460030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b80156112d55750600073ffffffffffffffffffffffffffffffffffffffff16601460040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90614a6a565b60405180910390fd5b6000479050611362601460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106109c484611353919061488a565b61135d9190614913565b6124e9565b6113ab601460010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710610bb88461139c919061488a565b6113a69190614913565b6124e9565b6113f4601460020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106107d0846113e5919061488a565b6113ef9190614913565b6124e9565b61143d601460030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106103e88461142e919061488a565b6114389190614913565b6124e9565b611486601460040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106105dc84611477919061488a565b6114819190614913565b6124e9565b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114d9576114d8336121d5565b5b6114e48484846125dd565b50505050565b6114f2612401565b60006114fc610da9565b90506103e8828261150d9190614a8a565b111561154e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154590614b2c565b60405180910390fd5b61155883836125fd565b505050565b6000611567610da9565b82106115a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159f90614bbe565b60405180910390fd5b600080600190505b6004548110156115fb576115c3816121c7565b156115e8578382036115d95780925050506115fe565b81806115e490614944565b9250505b80806115f390614944565b9150506115b0565b50505b919050565b66470de4df82000081565b611616612401565b8181600f9190611627929190613c43565b505050565b61163461261b565b600061163e610da9565b905060008466470de4df820000611655919061488a565b9050600b60019054906101000a900460ff166116a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169d90614c2a565b60405180910390fd5b6116b185838361266a565b6116bb8484611b56565b6116fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f190614c96565b60405180910390fd5b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117499190614a8a565b9250508190555061175a33866125fd565b50506117646127d6565b505050565b600080611775836127e0565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e890614d28565b60405180910390fd5b600080600190505b60045481101561186b5761180c816121c7565b1561185a5761181a81611769565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611859578161185690614944565b91505b5b8061186490614944565b90506117f9565b5080915050919050565b61187d612401565b6118876000612871565b565b611891612401565b80600d8190555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118cd612401565b6118d78282612937565b5050565b6118e3612401565b80600e60006101000a81548160ff02191690831515021790555050565b60606002805461190f90614764565b80601f016020809104026020016040519081016040528092919081815260200182805461193b90614764565b80156119885780601f1061195d57610100808354040283529160200191611988565b820191906000526020600020905b81548152906001019060200180831161196b57829003601f168201915b5050505050905090565b600c5481565b60006119a383611769565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0a90614d94565b60405180910390fd5b816013600085815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b6060611a4e826121c7565b611a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8490614e00565b60405180910390fd5b6013600083815260200190815260200160002060009054906101000a900460ff16611aed576040518060400160405280600d81526020017f4e6f6e2d4578636c757369766500000000000000000000000000000000000000815250611b24565b6040518060400160405280600981526020017f4578636c757369766500000000000000000000000000000000000000000000008152505b9050919050565b611b33612401565b80600c8190555050565b81611b47816121d5565b611b518383612acc565b505050565b60008033604051602001611b6a9190614e68565b604051602081830303815290604052805190602001209050611b908484600d5484612c4c565b91505092915050565b666a94d74f43000081565b611bac612401565b80600b60006101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611c0757611c06336121d5565b5b611c1385858585612c65565b5050505050565b611c2261261b565b6000611c2c610da9565b9050600082666a94d74f430000611c43919061488a565b9050600b60029054906101000a900460ff16611c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8b90614c2a565b60405180910390fd5b611c9f83838361266a565b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cee9190614a8a565b92505081905550611cff33846125fd565b5050611d096127d6565b50565b611d14612401565b80600b60016101000a81548160ff02191690831515021790555050565b6060600e60009054906101000a900460ff1615611d7757611d5182612cc7565b604051602001611d619190614f0b565b6040516020818303038152906040529050611e05565b60108054611d8490614764565b80601f0160208091040260200160405190810160405280929190818152602001828054611db090614764565b8015611dfd5780601f10611dd257610100808354040283529160200191611dfd565b820191906000526020600020905b815481529060010190602001808311611de057829003601f168201915b505050505090505b919050565b60116020528060005260406000206000915090505481565b600b60029054906101000a900460ff1681565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ed1612401565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3790614f9f565b60405180910390fd5b611f4981612871565b50565b600b60009054906101000a900460ff1681565b611f67612401565b818160109190611f78929190613c43565b505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120ce57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061213657507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612146575061214582612d6e565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121c057506121bf82612003565b5b9050919050565b600060045482109050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1180156122165750600b60009054906101000a900460ff165b156122e7576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612264929190614fbf565b602060405180830381865afa158015612281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a59190614ffd565b6122e657806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016122dd9190613f14565b60405180910390fd5b5b50565b60006122f582611769565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235c9061509c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16612384612dd8565b73ffffffffffffffffffffffffffffffffffffffff1614806123b357506123b2816123ad612dd8565b611e35565b5b6123f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e99061512e565b60405180910390fd5b6123fc8383612de0565b505050565b612409612dd8565b73ffffffffffffffffffffffffffffffffffffffff1661242761189b565b73ffffffffffffffffffffffffffffffffffffffff161461247d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124749061519a565b60405180910390fd5b565b61249061248a612dd8565b82612e99565b6124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c69061522c565b60405180910390fd5b6124da838383612f77565b505050565b6000612710905090565b8047101561252c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252390615298565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612552906152e9565b60006040518083038185875af1925050503d806000811461258f576040519150601f19603f3d011682016040523d82523d6000602084013e612594565b606091505b50509050806125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90615370565b60405180910390fd5b505050565b6125f883838360405180602001604052806000815250611bc9565b505050565b6126178282604051806020016040528060008152506131f9565b5050565b6002600a5403612660576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612657906153dc565b60405180910390fd5b6002600a81905550565b6103e883836126799190614a8a565b11156126ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b190614b2c565b60405180910390fd5b600c548311156126ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f690615448565b60405180910390fd5b80341015612742576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612739906154b4565b60405180910390fd5b600c5483601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546127909190614a8a565b11156127d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c890615520565b60405180910390fd5b505050565b6001600a81905550565b6000806127ec836121c7565b61282b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612822906155b2565b60405180910390fd5b6128348361325d565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61293f6124df565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561299d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299490615644565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a03906156b0565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b612ad4612dd8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b389061571c565b60405180910390fd5b8060066000612b4e612dd8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612bfb612dd8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c409190613d9a565b60405180910390a35050565b600082612c5a86868561327a565b149050949350505050565b612c76612c70612dd8565b83612e99565b612cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cac9061522c565b60405180910390fd5b612cc1848484846132d2565b50505050565b6060612cd2826121c7565b612d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d08906157ae565b60405180910390fd5b6000612d1b613330565b90506000815111612d3b5760405180602001604052806000815250612d66565b80612d45846133c2565b604051602001612d569291906157ce565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e5383611769565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612ea4826121c7565b612ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eda90615864565b60405180910390fd5b6000612eee83611769565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f5d57508373ffffffffffffffffffffffffffffffffffffffff16612f4584610b95565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f6e5750612f6d8185611e35565b5b91505092915050565b600080612f83836127e0565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fec906158f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305b90615988565b60405180910390fd5b6130718585856001613490565b61307c600084612de0565b600060018461308b9190614a8a565b90506130a181600061352590919063ffffffff16565b1580156130af575060045481105b1561311b57856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061311a816000611f7d90919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081841461318957613188846000611f7d90919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131f18686866001613580565b505050505050565b6000600454905061320a8484613586565b613218600085838686613766565b613257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324e90615a1a565b60405180910390fd5b50505050565b600061327382600061392890919063ffffffff16565b9050919050565b60008082905060005b858590508110156132c6576132b1828787848181106132a5576132a4615a3a565b5b90506020020135613a21565b915080806132be90614944565b915050613283565b50809150509392505050565b6132dd848484612f77565b6132eb848484600185613766565b61332a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332190615a1a565b60405180910390fd5b50505050565b6060600f805461333f90614764565b80601f016020809104026020016040519081016040528092919081815260200182805461336b90614764565b80156133b85780601f1061338d576101008083540402835291602001916133b8565b820191906000526020600020905b81548152906001019060200180831161339b57829003601f168201915b5050505050905090565b6060600060016133d184613a4c565b01905060008167ffffffffffffffff8111156133f0576133ef614547565b5b6040519080825280601f01601f1916602001820160405280156134225781602001600182028036833780820191505090505b509050600082602001820190505b600115613485578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613479576134786148e4565b5b04945060008503613430575b819350505050919050565b60005b8181101561351257600081846134a99190614a8a565b90506013600082815260200190815260200160002060009054906101000a900460ff16156134fe5760006013600083815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50808061350a90614944565b915050613493565b5061351f84848484611ffd565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b50505050565b60006004549050600082116135d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c790615adb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361363f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161363690615b6d565b60405180910390fd5b61364c6000848385613490565b816004600082825461365e9190614a8a565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136cb816000611f7d90919063ffffffff16565b6136d86000848385613580565b60008190505b82826136ea9190614a8a565b81101561376057808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808061375890614944565b9150506136de565b50505050565b60006137878573ffffffffffffffffffffffffffffffffffffffff16611fda565b1561391a576001905060008490505b83856137a29190614a8a565b811015613914578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026137cd612dd8565b8984876040518563ffffffff1660e01b81526004016137ef9493929190615be2565b6020604051808303816000875af192505050801561382b57506040513d601f19601f820116820180604052508101906138289190615c43565b60015b6138ad573d806000811461385b576040519150601f19603f3d011682016040523d82523d6000602084013e613860565b606091505b5060008151036138a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389c90615a1a565b60405180910390fd5b805181602001fd5b8280156138fe575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808061390c90614944565b915050613796565b5061391f565b600190505b95945050505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156139815761396f81613b9f565b60ff168203600884901b179350613a18565b5b600115613a1757600083116139cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139c390615ce2565b60405180910390fd5b8280600190039350508560000160008481526020019081526020016000205490506000811115613a12576139ff81613b9f565b60ff0360ff16600884901b179350613a17565b613982565b5b50505092915050565b6000818310613a3957613a348284613c11565b613a44565b613a438383613c11565b5b905092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613aaa577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613aa057613a9f6148e4565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613ae7576d04ee2d6d415b85acef81000000008381613add57613adc6148e4565b5b0492506020810190505b662386f26fc100008310613b1657662386f26fc100008381613b0c57613b0b6148e4565b5b0492506010810190505b6305f5e1008310613b3f576305f5e1008381613b3557613b346148e4565b5b0492506008810190505b6127108310613b64576127108381613b5a57613b596148e4565b5b0492506004810190505b60648310613b875760648381613b7d57613b7c6148e4565b5b0492506002810190505b600a8310613b96576001810190505b80915050919050565b60006040518061012001604052806101008152602001615d03610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff613be885613c28565b02901c81518110613bfc57613bfb615a3a565b5b602001015160f81c60f81b60f81c9050919050565b600082600052816020526040600020905092915050565b6000808211613c3657600080fd5b8160000382169050919050565b828054613c4f90614764565b90600052602060002090601f016020900481019282613c715760008555613cb8565b82601f10613c8a57803560ff1916838001178555613cb8565b82800160010185558215613cb8579182015b82811115613cb7578235825591602001919060010190613c9c565b5b509050613cc59190613cc9565b5090565b5b80821115613ce2576000816000905550600101613cca565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d2f81613cfa565b8114613d3a57600080fd5b50565b600081359050613d4c81613d26565b92915050565b600060208284031215613d6857613d67613cf0565b5b6000613d7684828501613d3d565b91505092915050565b60008115159050919050565b613d9481613d7f565b82525050565b6000602082019050613daf6000830184613d8b565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613def578082015181840152602081019050613dd4565b83811115613dfe576000848401525b50505050565b6000601f19601f8301169050919050565b6000613e2082613db5565b613e2a8185613dc0565b9350613e3a818560208601613dd1565b613e4381613e04565b840191505092915050565b60006020820190508181036000830152613e688184613e15565b905092915050565b6000819050919050565b613e8381613e70565b8114613e8e57600080fd5b50565b600081359050613ea081613e7a565b92915050565b600060208284031215613ebc57613ebb613cf0565b5b6000613eca84828501613e91565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613efe82613ed3565b9050919050565b613f0e81613ef3565b82525050565b6000602082019050613f296000830184613f05565b92915050565b613f3881613ef3565b8114613f4357600080fd5b50565b600081359050613f5581613f2f565b92915050565b60008060408385031215613f7257613f71613cf0565b5b6000613f8085828601613f46565b9250506020613f9185828601613e91565b9150509250929050565b600080600080600060a08688031215613fb757613fb6613cf0565b5b6000613fc588828901613f46565b9550506020613fd688828901613f46565b9450506040613fe788828901613f46565b9350506060613ff888828901613f46565b925050608061400988828901613f46565b9150509295509295909350565b61401f81613e70565b82525050565b600060208201905061403a6000830184614016565b92915050565b61404981613d7f565b811461405457600080fd5b50565b60008135905061406681614040565b92915050565b60006020828403121561408257614081613cf0565b5b600061409084828501614057565b91505092915050565b6000806000606084860312156140b2576140b1613cf0565b5b60006140c086828701613f46565b93505060206140d186828701613f46565b92505060406140e286828701613e91565b9150509250925092565b6000806040838503121561410357614102613cf0565b5b600061411185828601613e91565b925050602061412285828601613e91565b9150509250929050565b60006040820190506141416000830185613f05565b61414e6020830184614016565b9392505050565b6000819050919050565b61416881614155565b82525050565b6000602082019050614183600083018461415f565b92915050565b6000819050919050565b60006141ae6141a96141a484613ed3565b614189565b613ed3565b9050919050565b60006141c082614193565b9050919050565b60006141d2826141b5565b9050919050565b6141e2816141c7565b82525050565b60006020820190506141fd60008301846141d9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261422857614227614203565b5b8235905067ffffffffffffffff81111561424557614244614208565b5b6020830191508360018202830111156142615761426061420d565b5b9250929050565b6000806020838503121561427f5761427e613cf0565b5b600083013567ffffffffffffffff81111561429d5761429c613cf5565b5b6142a985828601614212565b92509250509250929050565b60008083601f8401126142cb576142ca614203565b5b8235905067ffffffffffffffff8111156142e8576142e7614208565b5b6020830191508360208202830111156143045761430361420d565b5b9250929050565b60008060006040848603121561432457614323613cf0565b5b600061433286828701613e91565b935050602084013567ffffffffffffffff81111561435357614352613cf5565b5b61435f868287016142b5565b92509250509250925092565b60006020828403121561438157614380613cf0565b5b600061438f84828501613f46565b91505092915050565b6143a181614155565b81146143ac57600080fd5b50565b6000813590506143be81614398565b92915050565b6000602082840312156143da576143d9613cf0565b5b60006143e8848285016143af565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b614412816143f1565b811461441d57600080fd5b50565b60008135905061442f81614409565b92915050565b6000806040838503121561444c5761444b613cf0565b5b600061445a85828601613f46565b925050602061446b85828601614420565b9150509250929050565b6000806040838503121561448c5761448b613cf0565b5b600061449a85828601613e91565b92505060206144ab85828601614057565b9150509250929050565b600080604083850312156144cc576144cb613cf0565b5b60006144da85828601613f46565b92505060206144eb85828601614057565b9150509250929050565b6000806020838503121561450c5761450b613cf0565b5b600083013567ffffffffffffffff81111561452a57614529613cf5565b5b614536858286016142b5565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61457f82613e04565b810181811067ffffffffffffffff8211171561459e5761459d614547565b5b80604052505050565b60006145b1613ce6565b90506145bd8282614576565b919050565b600067ffffffffffffffff8211156145dd576145dc614547565b5b6145e682613e04565b9050602081019050919050565b82818337600083830152505050565b6000614615614610846145c2565b6145a7565b90508281526020810184848401111561463157614630614542565b5b61463c8482856145f3565b509392505050565b600082601f83011261465957614658614203565b5b8135614669848260208601614602565b91505092915050565b6000806000806080858703121561468c5761468b613cf0565b5b600061469a87828801613f46565b94505060206146ab87828801613f46565b93505060406146bc87828801613e91565b925050606085013567ffffffffffffffff8111156146dd576146dc613cf5565b5b6146e987828801614644565b91505092959194509250565b6000806040838503121561470c5761470b613cf0565b5b600061471a85828601613f46565b925050602061472b85828601613f46565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061477c57607f821691505b60208210810361478f5761478e614735565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006147f1602f83613dc0565b91506147fc82614795565b604082019050919050565b60006020820190508181036000830152614820816147e4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061486182613e70565b915061486c83613e70565b92508282101561487f5761487e614827565b5b828203905092915050565b600061489582613e70565b91506148a083613e70565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148d9576148d8614827565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061491e82613e70565b915061492983613e70565b925082614939576149386148e4565b5b828204905092915050565b600061494f82613e70565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361498157614980614827565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b60006149e8602483613dc0565b91506149f38261498c565b604082019050919050565b60006020820190508181036000830152614a17816149db565b9050919050565b7f506c6561736520736574206d656d626572206164647265737300000000000000600082015250565b6000614a54601983613dc0565b9150614a5f82614a1e565b602082019050919050565b60006020820190508181036000830152614a8381614a47565b9050919050565b6000614a9582613e70565b9150614aa083613e70565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ad557614ad4614827565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000614b16600f83613dc0565b9150614b2182614ae0565b602082019050919050565b60006020820190508181036000830152614b4581614b09565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b6000614ba8602583613dc0565b9150614bb382614b4c565b604082019050919050565b60006020820190508181036000830152614bd781614b9b565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000614c14601283613dc0565b9150614c1f82614bde565b602082019050919050565b60006020820190508181036000830152614c4381614c07565b9050919050565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b6000614c80601483613dc0565b9150614c8b82614c4a565b602082019050919050565b60006020820190508181036000830152614caf81614c73565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000614d12602d83613dc0565b9150614d1d82614cb6565b604082019050919050565b60006020820190508181036000830152614d4181614d05565b9050919050565b7f6f6e6c7920746865206f776e65722063616e20736574206c6963656e73650000600082015250565b6000614d7e601e83613dc0565b9150614d8982614d48565b602082019050919050565b60006020820190508181036000830152614dad81614d71565b9050919050565b7f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b6000614dea601183613dc0565b9150614df582614db4565b602082019050919050565b60006020820190508181036000830152614e1981614ddd565b9050919050565b60008160601b9050919050565b6000614e3882614e20565b9050919050565b6000614e4a82614e2d565b9050919050565b614e62614e5d82613ef3565b614e3f565b82525050565b6000614e748284614e51565b60148201915081905092915050565b600081905092915050565b6000614e9982613db5565b614ea38185614e83565b9350614eb3818560208601613dd1565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ef5600583614e83565b9150614f0082614ebf565b600582019050919050565b6000614f178284614e8e565b9150614f2282614ee8565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f89602683613dc0565b9150614f9482614f2d565b604082019050919050565b60006020820190508181036000830152614fb881614f7c565b9050919050565b6000604082019050614fd46000830185613f05565b614fe16020830184613f05565b9392505050565b600081519050614ff781614040565b92915050565b60006020828403121561501357615012613cf0565b5b600061502184828501614fe8565b91505092915050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000615086602483613dc0565b91506150918261502a565b604082019050919050565b600060208201905081810360008301526150b581615079565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000615118603b83613dc0565b9150615123826150bc565b604082019050919050565b600060208201905081810360008301526151478161510b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615184602083613dc0565b915061518f8261514e565b602082019050919050565b600060208201905081810360008301526151b381615177565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000615216603483613dc0565b9150615221826151ba565b604082019050919050565b6000602082019050818103600083015261524581615209565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615282601d83613dc0565b915061528d8261524c565b602082019050919050565b600060208201905081810360008301526152b181615275565b9050919050565b600081905092915050565b50565b60006152d36000836152b8565b91506152de826152c3565b600082019050919050565b60006152f4826152c6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061535a603a83613dc0565b9150615365826152fe565b604082019050919050565b600060208201905081810360008301526153898161534d565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006153c6601f83613dc0565b91506153d182615390565b602082019050919050565b600060208201905081810360008301526153f5816153b9565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b6000615432601283613dc0565b915061543d826153fc565b602082019050919050565b6000602082019050818103600083015261546181615425565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b600061549e601083613dc0565b91506154a982615468565b602082019050919050565b600060208201905081810360008301526154cd81615491565b9050919050565b7f416c726561647920636c61696d6564206d617800000000000000000000000000600082015250565b600061550a601383613dc0565b9150615515826154d4565b602082019050919050565b60006020820190508181036000830152615539816154fd565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061559c602c83613dc0565b91506155a782615540565b604082019050919050565b600060208201905081810360008301526155cb8161558f565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600061562e602a83613dc0565b9150615639826155d2565b604082019050919050565b6000602082019050818103600083015261565d81615621565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061569a601983613dc0565b91506156a582615664565b602082019050919050565b600060208201905081810360008301526156c98161568d565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000615706601c83613dc0565b9150615711826156d0565b602082019050919050565b60006020820190508181036000830152615735816156f9565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615798602a83613dc0565b91506157a38261573c565b604082019050919050565b600060208201905081810360008301526157c78161578b565b9050919050565b60006157da8285614e8e565b91506157e68284614e8e565b91508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061584e602f83613dc0565b9150615859826157f2565b604082019050919050565b6000602082019050818103600083015261587d81615841565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b60006158e0602c83613dc0565b91506158eb82615884565b604082019050919050565b6000602082019050818103600083015261590f816158d3565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000615972602783613dc0565b915061597d82615916565b604082019050919050565b600060208201905081810360008301526159a181615965565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000615a04603583613dc0565b9150615a0f826159a8565b604082019050919050565b60006020820190508181036000830152615a33816159f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000615ac5602583613dc0565b9150615ad082615a69565b604082019050919050565b60006020820190508181036000830152615af481615ab8565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615b57602383613dc0565b9150615b6282615afb565b604082019050919050565b60006020820190508181036000830152615b8681615b4a565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615bb482615b8d565b615bbe8185615b98565b9350615bce818560208601613dd1565b615bd781613e04565b840191505092915050565b6000608082019050615bf76000830187613f05565b615c046020830186613f05565b615c116040830185614016565b8181036060830152615c238184615ba9565b905095945050505050565b600081519050615c3d81613d26565b92915050565b600060208284031215615c5957615c58613cf0565b5b6000615c6784828501615c2e565b91505092915050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615ccc603483613dc0565b9150615cd782615c70565b604082019050919050565b60006020820190508181036000830152615cfb81615cbf565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220290b55440e637b5a890f2428e36502f5bf47c8c08aa75081ec9a34bbad41bf0964736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 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.