Polygon Sponsored slots available. Book your slot here!
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 485 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Safe Transfer Fr... | 81949573 | 21 days ago | IN | 0 POL | 0.02908406 | ||||
| Safe Transfer Fr... | 81949569 | 21 days ago | IN | 0 POL | 0.02894661 | ||||
| Safe Transfer Fr... | 81949566 | 21 days ago | IN | 0 POL | 0.02905768 | ||||
| Safe Transfer Fr... | 81949563 | 21 days ago | IN | 0 POL | 0.0376931 | ||||
| Safe Transfer Fr... | 81949559 | 21 days ago | IN | 0 POL | 0.02829733 | ||||
| Safe Transfer Fr... | 81949548 | 21 days ago | IN | 0 POL | 0.02844667 | ||||
| Safe Transfer Fr... | 81949544 | 21 days ago | IN | 0 POL | 0.02869037 | ||||
| Safe Transfer Fr... | 81949541 | 21 days ago | IN | 0 POL | 0.04722328 | ||||
| Safe Transfer Fr... | 81949471 | 21 days ago | IN | 0 POL | 0.03080171 | ||||
| Safe Transfer Fr... | 81949467 | 21 days ago | IN | 0 POL | 0.03112449 | ||||
| Safe Transfer Fr... | 81949464 | 21 days ago | IN | 0 POL | 0.03075634 | ||||
| Safe Transfer Fr... | 81949461 | 21 days ago | IN | 0 POL | 0.04073961 | ||||
| Safe Transfer Fr... | 81949457 | 21 days ago | IN | 0 POL | 0.0508966 | ||||
| Safe Transfer Fr... | 81949454 | 21 days ago | IN | 0 POL | 0.04108968 | ||||
| Safe Transfer Fr... | 81949451 | 21 days ago | IN | 0 POL | 0.05186415 | ||||
| Safe Transfer Fr... | 81949447 | 21 days ago | IN | 0 POL | 0.05233236 | ||||
| Safe Transfer Fr... | 81949444 | 21 days ago | IN | 0 POL | 0.04196898 | ||||
| Safe Transfer Fr... | 81949441 | 21 days ago | IN | 0 POL | 0.04610225 | ||||
| Safe Transfer Fr... | 81949438 | 21 days ago | IN | 0 POL | 0.0581543 | ||||
| Safe Transfer Fr... | 81949435 | 21 days ago | IN | 0 POL | 0.06364452 | ||||
| Safe Transfer Fr... | 81949432 | 21 days ago | IN | 0 POL | 0.04394385 | ||||
| Safe Transfer Fr... | 81949428 | 21 days ago | IN | 0 POL | 0.05649846 | ||||
| Safe Transfer Fr... | 81949425 | 21 days ago | IN | 0 POL | 0.07500966 | ||||
| Safe Transfer Fr... | 81949422 | 21 days ago | IN | 0 POL | 0.03335195 | ||||
| Safe Transfer Fr... | 81949419 | 21 days ago | IN | 0 POL | 0.04496117 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
HangryAnimals
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*
_ _ _ _ _ ___ _____ __ _ _ _ ___ __ __ _ _ ___ ___ ___ _ _ ___ ___ ___ ___
| || | /_\ | \| |/ __| _ \ \ / / /_\ | \| |_ _| \/ | /_\ | | / __| / __| __| \| | __/ __|_ _/ __|
| __ |/ _ \| .` | (_ | /\ V / / _ \| .` || || |\/| |/ _ \| |__\__ \ | (_ | _|| .` | _|\__ \| |\__ \
|_||_/_/ \_\_|\_|\___|_|_\ |_| /_/ \_\_|\_|___|_| |_/_/ \_\____|___/ \___|___|_|\_|___|___/___|___/
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@limitbreak/creator-token-contracts/contracts/access/OwnableBasic.sol";
import "@limitbreak/creator-token-contracts/contracts/erc721c/ERC721AC.sol";
import "./MutableMinterRoyalties.sol";
error InsufficientPayment();
contract HangryAnimals is OwnableBasic, ERC721AC, MutableMinterRoyalties {
uint256 public MAX_TOKENS = 5555;
uint256 public TOKEN_RESERVE = 2041;
uint96 public ROYALTY_PERCENT = 1000; // 10%
string public baseTokenURI;
bool public publicMintActive = false;
// This mint price is specified in MATIC
uint256 public publicMintPrice = 50 ether; // 50 MATIC
uint256 public maxTokenPurchase = 10;
// Mapping from token ID to unique URI
mapping(uint256 => string) private _tokenURIs;
constructor()
ERC721AC("Hangry Animals Genesis", "HANGRY")
MutableMinterRoyalties(ROYALTY_PERCENT)
{}
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721AC, MutableMinterRoyaltiesBase) returns (bool) {
return super.supportsInterface(interfaceId);
}
function _startTokenId() internal view virtual override returns (uint256) {
return 1;
}
function reserveTokens(address _to, uint256 _reserveAmount) external onlyOwner {
require(_reserveAmount <= TOKEN_RESERVE, "Reserve exceeds limit");
require(totalSupply() + _reserveAmount <= MAX_TOKENS, "Max supply exceeded");
_mint(_to, _reserveAmount);
TOKEN_RESERVE -= _reserveAmount;
}
function publicMint(uint256 _numberOfTokens) external payable {
require(publicMintActive, "Sale not active");
require(msg.sender == tx.origin, "Caller cannot be a contract");
require(_numberOfTokens <= maxTokenPurchase, "Exceeds max token purchase");
require(totalSupply() + _numberOfTokens <= MAX_TOKENS - TOKEN_RESERVE, "Max supply exceeded");
uint256 cost = _numberOfTokens * publicMintPrice;
require(msg.value >= cost, "Insufficient payment");
_mint(msg.sender, _numberOfTokens);
}
function _mint(address to, uint256 quantity) internal virtual override {
uint256 nextTokenId = _nextTokenId();
for (uint256 i = 0; i < quantity;) {
_onMinted(to, nextTokenId + i);
unchecked {
++i;
}
}
super._mint(to, quantity);
}
function _baseURI() internal view virtual override returns (string memory) {
return baseTokenURI;
}
function setBaseURI(string memory baseURI) external onlyOwner {
baseTokenURI = baseURI;
}
function setTokenURI(uint256 tokenId, string memory _uri) external onlyOwner {
require(_exists(tokenId), "ERC721URIStorage: token doesn't exist");
_tokenURIs[tokenId] = _uri;
}
function removeTokenURI(uint256 tokenId) external onlyOwner {
require(_exists(tokenId), "ERC721Metadata: unique URI removal for token");
delete _tokenURIs[tokenId];
}
// Override tokenURI function to return custom URI if set
function tokenURI(uint256 tokenId) public view override returns (string memory) {
require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
string memory _uri = _tokenURIs[tokenId];
if (bytes(_uri).length > 0) {
return _uri;
}
return string(abi.encodePacked(super.tokenURI(tokenId), ".json"));
}
function togglePublicMint() external onlyOwner {
publicMintActive = !publicMintActive;
}
function setPublicMintPrice(uint256 _newPrice) external onlyOwner {
publicMintPrice = _newPrice;
}
function setMaxTokenPurchase(uint256 _newMaxTokenPurchase) external onlyOwner {
maxTokenPurchase = _newMaxTokenPurchase;
}
function setTokenReserve(uint256 _newTokenReserve) external onlyOwner {
TOKEN_RESERVE = _newTokenReserve;
}
function remainingSupply() external view returns (uint256) {
return MAX_TOKENS - totalSupply();
}
function setMaxSupply(uint256 _newMax) external onlyOwner {
require(MAX_TOKENS > totalSupply(), "Can't set below current");
MAX_TOKENS = _newMax;
}
function withdrawBalance() external onlyOwner {
payable(owner()).transfer(address(this).balance);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./OwnablePermissions.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract OwnableBasic is OwnablePermissions, Ownable {
function _requireCallerIsContractOwner() internal view virtual override {
_checkOwner();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Context.sol";
abstract contract OwnablePermissions is Context {
function _requireCallerIsContractOwner() internal view virtual;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../utils/CreatorTokenBase.sol";
import "erc721a/contracts/ERC721A.sol";
/**
* @title ERC721AC
* @author Limit Break, Inc.
* @notice Extends Azuki's ERC721-A implementation with Creator Token functionality, which
* allows the contract owner to update the transfer validation logic by managing a security policy in
* an external transfer validation security policy registry. See {CreatorTokenTransferValidator}.
*/
abstract contract ERC721AC is ERC721A, CreatorTokenBase {
constructor(string memory name_, string memory symbol_) CreatorTokenBase() ERC721A(name_, symbol_) {}
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
}
/// @dev Ties the erc721a _beforeTokenTransfers hook to more granular transfer validation logic
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual override {
for (uint256 i = 0; i < quantity;) {
_validateBeforeTransfer(from, to, startTokenId + i);
unchecked {
++i;
}
}
}
/// @dev Ties the erc721a _afterTokenTransfer hook to more granular transfer validation logic
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual override {
for (uint256 i = 0; i < quantity;) {
_validateAfterTransfer(from, to, startTokenId + i);
unchecked {
++i;
}
}
}
function _msgSenderERC721A() internal view virtual override returns (address) {
return _msgSender();
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../interfaces/ICreatorTokenTransferValidator.sol";
interface ICreatorToken {
event TransferValidatorUpdated(address oldValidator, address newValidator);
function getTransferValidator() external view returns (ICreatorTokenTransferValidator);
function getSecurityPolicy() external view returns (CollectionSecurityPolicy memory);
function getWhitelistedOperators() external view returns (address[] memory);
function getPermittedContractReceivers() external view returns (address[] memory);
function isOperatorWhitelisted(address operator) external view returns (bool);
function isContractReceiverPermitted(address receiver) external view returns (bool);
function isTransferAllowed(address caller, address from, address to) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./IEOARegistry.sol";
import "./ITransferSecurityRegistry.sol";
import "./ITransferValidator.sol";
interface ICreatorTokenTransferValidator is ITransferSecurityRegistry, ITransferValidator, IEOARegistry {}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
interface IEOARegistry is IERC165 {
function isVerifiedEOA(address account) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../utils/TransferPolicy.sol";
interface ITransferSecurityRegistry {
event AddedToAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
event CreatedAllowlist(AllowlistTypes indexed kind, uint256 indexed id, string indexed name);
event ReassignedAllowlistOwnership(AllowlistTypes indexed kind, uint256 indexed id, address indexed newOwner);
event RemovedFromAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
event SetAllowlist(AllowlistTypes indexed kind, address indexed collection, uint120 indexed id);
event SetTransferSecurityLevel(address indexed collection, TransferSecurityLevels level);
function createOperatorWhitelist(string calldata name) external returns (uint120);
function createPermittedContractReceiverAllowlist(string calldata name) external returns (uint120);
function reassignOwnershipOfOperatorWhitelist(uint120 id, address newOwner) external;
function reassignOwnershipOfPermittedContractReceiverAllowlist(uint120 id, address newOwner) external;
function renounceOwnershipOfOperatorWhitelist(uint120 id) external;
function renounceOwnershipOfPermittedContractReceiverAllowlist(uint120 id) external;
function setTransferSecurityLevelOfCollection(address collection, TransferSecurityLevels level) external;
function setOperatorWhitelistOfCollection(address collection, uint120 id) external;
function setPermittedContractReceiverAllowlistOfCollection(address collection, uint120 id) external;
function addOperatorToWhitelist(uint120 id, address operator) external;
function addPermittedContractReceiverToAllowlist(uint120 id, address receiver) external;
function removeOperatorFromWhitelist(uint120 id, address operator) external;
function removePermittedContractReceiverFromAllowlist(uint120 id, address receiver) external;
function getCollectionSecurityPolicy(address collection) external view returns (CollectionSecurityPolicy memory);
function getWhitelistedOperators(uint120 id) external view returns (address[] memory);
function getPermittedContractReceivers(uint120 id) external view returns (address[] memory);
function isOperatorWhitelisted(uint120 id, address operator) external view returns (bool);
function isContractReceiverPermitted(uint120 id, address receiver) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../utils/TransferPolicy.sol";
interface ITransferValidator {
function applyCollectionTransferPolicy(address caller, address from, address to) external view;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../access/OwnablePermissions.sol";
import "../interfaces/ICreatorToken.sol";
import "../interfaces/ICreatorTokenTransferValidator.sol";
import "../utils/TransferValidation.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
/**
* @title CreatorTokenBase
* @author Limit Break, Inc.
* @notice CreatorTokenBase is an abstract contract that provides basic functionality for managing token
* transfer policies through an implementation of ICreatorTokenTransferValidator. This contract is intended to be used
* as a base for creator-specific token contracts, enabling customizable transfer restrictions and security policies.
*
* <h4>Features:</h4>
* <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul>
* <ul>TransferValidation: Implements the basic token transfer validation interface.</ul>
* <ul>ICreatorToken: Implements the interface for creator tokens, providing view functions for token security policies.</ul>
*
* <h4>Benefits:</h4>
* <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul>
* <ul>Allows creators to enforce policies such as whitelisted operators and permitted contract receivers.</ul>
* <ul>Can be easily integrated into other token contracts as a base contract.</ul>
*
* <h4>Intended Usage:</h4>
* <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and
* security policies.</ul>
* <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the
* creator token.</ul>
*/
abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken {
error CreatorTokenBase__InvalidTransferValidatorContract();
error CreatorTokenBase__SetTransferValidatorFirst();
address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x0000721C310194CcfC01E523fc93C9cCcFa2A0Ac);
TransferSecurityLevels public constant DEFAULT_TRANSFER_SECURITY_LEVEL = TransferSecurityLevels.One;
uint120 public constant DEFAULT_OPERATOR_WHITELIST_ID = uint120(1);
ICreatorTokenTransferValidator private transferValidator;
/**
* @notice Allows the contract owner to set the transfer validator to the official validator contract
* and set the security policy to the recommended default settings.
* @dev May be overridden to change the default behavior of an individual collection.
*/
function setToDefaultSecurityPolicy() public virtual {
_requireCallerIsContractOwner();
setTransferValidator(DEFAULT_TRANSFER_VALIDATOR);
ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setTransferSecurityLevelOfCollection(address(this), DEFAULT_TRANSFER_SECURITY_LEVEL);
ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setOperatorWhitelistOfCollection(address(this), DEFAULT_OPERATOR_WHITELIST_ID);
}
/**
* @notice Allows the contract owner to set the transfer validator to a custom validator contract
* and set the security policy to their own custom settings.
*/
function setToCustomValidatorAndSecurityPolicy(
address validator,
TransferSecurityLevels level,
uint120 operatorWhitelistId,
uint120 permittedContractReceiversAllowlistId) public {
_requireCallerIsContractOwner();
setTransferValidator(validator);
ICreatorTokenTransferValidator(validator).
setTransferSecurityLevelOfCollection(address(this), level);
ICreatorTokenTransferValidator(validator).
setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);
ICreatorTokenTransferValidator(validator).
setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
}
/**
* @notice Allows the contract owner to set the security policy to their own custom settings.
* @dev Reverts if the transfer validator has not been set.
*/
function setToCustomSecurityPolicy(
TransferSecurityLevels level,
uint120 operatorWhitelistId,
uint120 permittedContractReceiversAllowlistId) public {
_requireCallerIsContractOwner();
ICreatorTokenTransferValidator validator = getTransferValidator();
if (address(validator) == address(0)) {
revert CreatorTokenBase__SetTransferValidatorFirst();
}
validator.setTransferSecurityLevelOfCollection(address(this), level);
validator.setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);
validator.setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
}
/**
* @notice Sets the transfer validator for the token contract.
*
* @dev Throws when provided validator contract is not the zero address and doesn't support
* the ICreatorTokenTransferValidator interface.
* @dev Throws when the caller is not the contract owner.
*
* @dev <h4>Postconditions:</h4>
* 1. The transferValidator address is updated.
* 2. The `TransferValidatorUpdated` event is emitted.
*
* @param transferValidator_ The address of the transfer validator contract.
*/
function setTransferValidator(address transferValidator_) public {
_requireCallerIsContractOwner();
bool isValidTransferValidator = false;
if(transferValidator_.code.length > 0) {
try IERC165(transferValidator_).supportsInterface(type(ICreatorTokenTransferValidator).interfaceId)
returns (bool supportsInterface) {
isValidTransferValidator = supportsInterface;
} catch {}
}
if(transferValidator_ != address(0) && !isValidTransferValidator) {
revert CreatorTokenBase__InvalidTransferValidatorContract();
}
emit TransferValidatorUpdated(address(transferValidator), transferValidator_);
transferValidator = ICreatorTokenTransferValidator(transferValidator_);
}
/**
* @notice Returns the transfer validator contract address for this token contract.
*/
function getTransferValidator() public view override returns (ICreatorTokenTransferValidator) {
return transferValidator;
}
/**
* @notice Returns the security policy for this token contract, which includes:
* Transfer security level, operator whitelist id, permitted contract receiver allowlist id.
*/
function getSecurityPolicy() public view override returns (CollectionSecurityPolicy memory) {
if (address(transferValidator) != address(0)) {
return transferValidator.getCollectionSecurityPolicy(address(this));
}
return CollectionSecurityPolicy({
transferSecurityLevel: TransferSecurityLevels.Zero,
operatorWhitelistId: 0,
permittedContractReceiversId: 0
});
}
/**
* @notice Returns the list of all whitelisted operators for this token contract.
* @dev This can be an expensive call and should only be used in view-only functions.
*/
function getWhitelistedOperators() public view override returns (address[] memory) {
if (address(transferValidator) != address(0)) {
return transferValidator.getWhitelistedOperators(
transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId);
}
return new address[](0);
}
/**
* @notice Returns the list of permitted contract receivers for this token contract.
* @dev This can be an expensive call and should only be used in view-only functions.
*/
function getPermittedContractReceivers() public view override returns (address[] memory) {
if (address(transferValidator) != address(0)) {
return transferValidator.getPermittedContractReceivers(
transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId);
}
return new address[](0);
}
/**
* @notice Checks if an operator is whitelisted for this token contract.
* @param operator The address of the operator to check.
*/
function isOperatorWhitelisted(address operator) public view override returns (bool) {
if (address(transferValidator) != address(0)) {
return transferValidator.isOperatorWhitelisted(
transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId, operator);
}
return false;
}
/**
* @notice Checks if a contract receiver is permitted for this token contract.
* @param receiver The address of the receiver to check.
*/
function isContractReceiverPermitted(address receiver) public view override returns (bool) {
if (address(transferValidator) != address(0)) {
return transferValidator.isContractReceiverPermitted(
transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId, receiver);
}
return false;
}
/**
* @notice Determines if a transfer is allowed based on the token contract's security policy. Use this function
* to simulate whether or not a transfer made by the specified `caller` from the `from` address to the `to`
* address would be allowed by this token's security policy.
*
* @notice This function only checks the security policy restrictions and does not check whether token ownership
* or approvals are in place.
*
* @param caller The address of the simulated caller.
* @param from The address of the sender.
* @param to The address of the receiver.
* @return True if the transfer is allowed, false otherwise.
*/
function isTransferAllowed(address caller, address from, address to) public view override returns (bool) {
if (address(transferValidator) != address(0)) {
try transferValidator.applyCollectionTransferPolicy(caller, from, to) {
return true;
} catch {
return false;
}
}
return true;
}
/**
* @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy.
* Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent
* and calling _validateBeforeTransfer so that checks can be properly applied during token transfers.
*
* @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is
* set to a non-zero address.
*
* @param caller The address of the caller.
* @param from The address of the sender.
* @param to The address of the receiver.
*/
function _preValidateTransfer(
address caller,
address from,
address to,
uint256 /*tokenId*/,
uint256 /*value*/) internal virtual override {
if (address(transferValidator) != address(0)) {
transferValidator.applyCollectionTransferPolicy(caller, from, to);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
enum AllowlistTypes {
Operators,
PermittedContractReceivers
}
enum ReceiverConstraints {
None,
NoCode,
EOA
}
enum CallerConstraints {
None,
OperatorWhitelistEnableOTC,
OperatorWhitelistDisableOTC
}
enum StakerConstraints {
None,
CallerIsTxOrigin,
EOA
}
enum TransferSecurityLevels {
Zero,
One,
Two,
Three,
Four,
Five,
Six
}
struct TransferSecurityPolicy {
CallerConstraints callerConstraints;
ReceiverConstraints receiverConstraints;
}
struct CollectionSecurityPolicy {
TransferSecurityLevels transferSecurityLevel;
uint120 operatorWhitelistId;
uint120 permittedContractReceiversId;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Context.sol";
/**
* @title TransferValidation
* @author Limit Break, Inc.
* @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks.
* Openzeppelin's ERC721 contract only provides hooks for before and after transfer. This allows
* developers to validate or customize transfers within the context of a mint, a burn, or a transfer.
*/
abstract contract TransferValidation is Context {
error ShouldNotMintToBurnAddress();
/// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks.
function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual {
bool fromZeroAddress = from == address(0);
bool toZeroAddress = to == address(0);
if(fromZeroAddress && toZeroAddress) {
revert ShouldNotMintToBurnAddress();
} else if(fromZeroAddress) {
_preValidateMint(_msgSender(), to, tokenId, msg.value);
} else if(toZeroAddress) {
_preValidateBurn(_msgSender(), from, tokenId, msg.value);
} else {
_preValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
}
}
/// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks.
function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual {
bool fromZeroAddress = from == address(0);
bool toZeroAddress = to == address(0);
if(fromZeroAddress && toZeroAddress) {
revert ShouldNotMintToBurnAddress();
} else if(fromZeroAddress) {
_postValidateMint(_msgSender(), to, tokenId, msg.value);
} else if(toZeroAddress) {
_postValidateBurn(_msgSender(), from, tokenId, msg.value);
} else {
_postValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
}
}
/// @dev Optional validation hook that fires before a mint
function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires after a mint
function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires before a burn
function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires after a burn
function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires before a transfer
function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires after a transfer
function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}
}// 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 v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// 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 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 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
pragma solidity ^0.8.4;
import "@limitbreak/creator-token-contracts/contracts/access/OwnablePermissions.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
/**
* @title MutableMinterRoyaltiesBase
* @author Limit Break, Inc.
* @dev Base functionality of an NFT mix-in contract implementing programmable royalties for minters, allowing the minter of each token ID to
* update the royalty fee percentage.
*/
abstract contract MutableMinterRoyaltiesBase is IERC2981, ERC165 {
error MutableMinterRoyalties__MinterCannotBeZeroAddress();
error MutableMinterRoyalties__MinterHasAlreadyBeenAssignedToTokenId();
error MutableMinterRoyalties__OnlyMinterCanChangeRoyaltyFee();
error MutableMinterRoyalties__RoyaltyFeeWillExceedSalePrice();
error MutableMinterRoyalties__RoyaltyFeeGreaterThanMaximumAllowed();
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
uint96 public constant CREATOR_MAX_ROYALTY = 1000; // Can be set to a maximum of 10%
uint96 public constant FEE_DENOMINATOR = 10_000;
uint96 private _defaultRoyaltyFeeNumerator;
mapping (uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/// @dev Emitted when royalty is set.
event RoyaltySet(uint256 indexed tokenId, address indexed receiver, uint96 feeNumerator);
/**
* @notice Allows the minter to update the royalty fee percentage for a specific token ID.
* @dev The caller must be the minter of the specified token ID.
* @dev Throws when royaltyFeeNumerator is greater than FEE_DENOMINATOR
* @dev Throws when the caller is not the minter of the specified token ID
* @param tokenId The token ID
* @param royaltyFeeNumerator The new royalty fee numerator
*/
function setRoyaltyFee(uint256 tokenId, uint96 royaltyFeeNumerator) external {
if (royaltyFeeNumerator > CREATOR_MAX_ROYALTY) {
revert MutableMinterRoyalties__RoyaltyFeeGreaterThanMaximumAllowed();
}
RoyaltyInfo storage royalty = _tokenRoyaltyInfo[tokenId];
if (royalty.receiver != msg.sender) {
revert MutableMinterRoyalties__OnlyMinterCanChangeRoyaltyFee();
}
royalty.royaltyFraction = royaltyFeeNumerator;
emit RoyaltySet(tokenId, msg.sender, royaltyFeeNumerator);
}
/**
* @notice Indicates whether the contract implements the specified interface.
* @dev Overrides supportsInterface in ERC165.
* @param interfaceId The interface id
* @return true if the contract implements the specified interface, false otherwise
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
function defaultRoyaltyFeeNumerator() public virtual view returns (uint96) {
return _defaultRoyaltyFeeNumerator;
}
/**
* @notice Returns the royalty info for a given token ID and sale price.
* @dev Implements the IERC2981 interface.
* @param tokenId The token ID
* @param salePrice The sale price
* @return receiver The minter's address
* @return royaltyAmount The royalty amount
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) external view override returns (address receiver, uint256 royaltyAmount) {
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];
if (royalty.receiver == address(0)) {
royalty.royaltyFraction = defaultRoyaltyFeeNumerator();
}
return (royalty.receiver, (salePrice * royalty.royaltyFraction) / FEE_DENOMINATOR);
}
/**
* @dev Sets the minter's address and royalty fraction for the specified token ID in the _tokenRoyaltyInfo mapping
* when a new token is minted.
* @dev Throws when minter is the zero address
* @dev Throws when the minter has already been assigned to the specified token ID
* @param minter The address of the minter
* @param tokenId The token ID
*/
function _onMinted(address minter, uint256 tokenId) internal {
if (minter == address(0)) {
revert MutableMinterRoyalties__MinterCannotBeZeroAddress();
}
if (_tokenRoyaltyInfo[tokenId].receiver != address(0)) {
revert MutableMinterRoyalties__MinterHasAlreadyBeenAssignedToTokenId();
}
uint96 defaultRoyaltyFeeNumerator_ = defaultRoyaltyFeeNumerator();
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo({
receiver: minter,
royaltyFraction: defaultRoyaltyFeeNumerator_
});
emit RoyaltySet(tokenId, minter, defaultRoyaltyFeeNumerator_);
}
/**
* @dev Removes the royalty information from the _tokenRoyaltyInfo mapping for the specified token ID when a token
* is burned.
* @param tokenId The token ID
*/
function _onBurned(uint256 tokenId) internal {
delete _tokenRoyaltyInfo[tokenId];
emit RoyaltySet(tokenId, address(0), defaultRoyaltyFeeNumerator());
}
function _setDefaultRoyaltyFee(uint96 defaultRoyaltyFeeNumerator_) internal {
if(defaultRoyaltyFeeNumerator_ > FEE_DENOMINATOR) {
revert MutableMinterRoyalties__RoyaltyFeeWillExceedSalePrice();
}
_defaultRoyaltyFeeNumerator = defaultRoyaltyFeeNumerator_;
}
}
/**
* @title MutableMinterRoyalties
* @author Limit Break, Inc.
* @notice Constructable MutableMinterRoyalties Contract implementation.
*/
abstract contract MutableMinterRoyalties is MutableMinterRoyaltiesBase {
uint96 private immutable _defaultRoyaltyFeeNumeratorImmutable;
constructor(uint96 defaultRoyaltyFeeNumerator_) {
_setDefaultRoyaltyFee(defaultRoyaltyFeeNumerator_);
_defaultRoyaltyFeeNumeratorImmutable = defaultRoyaltyFeeNumerator_;
}
function defaultRoyaltyFeeNumerator() public view override returns (uint96) {
return _defaultRoyaltyFeeNumeratorImmutable;
}
}
/**
* @title MutableMinterRoyaltiesInitializable
* @author Limit Break, Inc.
* @notice Initializable MutableMinterRoyalties Contract implementation to allow for EIP-1167 clones.
*/
abstract contract MutableMinterRoyaltiesInitializable is OwnablePermissions, MutableMinterRoyaltiesBase {
error MutableMinterRoyaltiesInitializable__DefaultMinterRoyaltyFeeAlreadyInitialized();
bool private _defaultMinterRoyaltyFeeInitialized;
function initializeDefaultMinterRoyaltyFee(uint96 defaultRoyaltyFeeNumerator_) public {
_requireCallerIsContractOwner();
if(_defaultMinterRoyaltyFeeInitialized) {
revert MutableMinterRoyaltiesInitializable__DefaultMinterRoyaltyFeeAlreadyInitialized();
}
_defaultMinterRoyaltyFeeInitialized = true;
_setDefaultRoyaltyFee(defaultRoyaltyFeeNumerator_);
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev Interface of ERC721 token receiver.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @title ERC721A
*
* @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
* Non-Fungible Token Standard, including the Metadata extension.
* Optimized for lower gas during batch mints.
*
* Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
* starting from `_startTokenId()`.
*
* Assumptions:
*
* - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
* - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
struct TokenApprovalRef {
address value;
}
// =============================================================
// CONSTANTS
// =============================================================
// Mask of an entry in packed address data.
uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant _BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant _BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant _BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant _BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant _BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;
// The bit position of `extraData` in packed ownership.
uint256 private constant _BITPOS_EXTRA_DATA = 232;
// Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;
// The mask of the lower 160 bits for addresses.
uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;
// The maximum `quantity` that can be minted with {_mintERC2309}.
// This limit is to prevent overflows on the address data entries.
// For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
// is required to cause an overflow, which is unrealistic.
uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;
// The `Transfer` event signature is given by:
// `keccak256(bytes("Transfer(address,address,uint256)"))`.
bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
// =============================================================
// STORAGE
// =============================================================
// The next token ID to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See {_packedOwnershipOf} implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
// - [232..255] `extraData`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => TokenApprovalRef) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// =============================================================
// CONSTRUCTOR
// =============================================================
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
// =============================================================
// TOKEN COUNTING OPERATIONS
// =============================================================
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view virtual returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() public view virtual override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256) {
// Counter underflow is impossible as `_currentIndex` does not decrement,
// and it is initialized to `_startTokenId()`.
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
// =============================================================
// ADDRESS DATA OPERATIONS
// =============================================================
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal virtual {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
_packedAddressData[owner] = packed;
}
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes
// of the XOR of all function selectors in the interface.
// See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
// (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the token collection symbol.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
}
/**
* @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, it can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
// =============================================================
// OWNERSHIPS OPERATIONS
// =============================================================
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around over time.
*/
function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal virtual {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & _BITMASK_BURNED == 0) {
// Invariant:
// There will always be an initialized ownership slot
// (i.e. `ownership.addr != address(0) && ownership.burned == false`)
// before an unintialized ownership slot
// (i.e. `ownership.addr == address(0) && ownership.burned == false`)
// Hence, `curr` will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed will be zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
ownership.burned = packed & _BITMASK_BURNED != 0;
ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
}
/**
* @dev Packs ownership data into a single uint256.
*/
function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
}
}
/**
* @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
*/
function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
// For branchless setting of the `nextInitialized` flag.
assembly {
// `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
}
}
// =============================================================
// APPROVAL OPERATIONS
// =============================================================
/**
* @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) public payable virtual override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId].value;
}
/**
* @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) public virtual override {
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @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. See {_mint}.
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
*/
function _isSenderApprovedOrOwner(
address approvedAddress,
address owner,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, _BITMASK_ADDRESS)
// `msgSender == owner || msgSender == approvedAddress`.
result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
}
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedSlotAndAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
assembly {
approvedAddressSlot := tokenApproval.slot
approvedAddress := sload(approvedAddressSlot)
}
}
// =============================================================
// TRANSFER OPERATIONS
// =============================================================
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* 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
) public payable virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
to,
_BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @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 memory _data
) public payable virtual override {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Hook that is called before a set of serially-ordered token IDs
* are about to be transferred. This includes minting.
* And also called before burning one token.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token IDs
* have been transferred. This includes minting.
* And also called after one token has been burned.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* `from` - Previous owner of the given token ID.
* `to` - Target address that will receive the token.
* `tokenId` - Token ID to be transferred.
* `_data` - Optional data to send along with the call.
*
* Returns whether the call correctly returned the expected magic value.
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
// =============================================================
// MINT OPERATIONS
// =============================================================
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` and `numberMinted` have a maximum limit of 2**64.
// `tokenId` has a maximum limit of 2**256.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
uint256 toMasked;
uint256 end = startTokenId + quantity;
// Use assembly to loop and emit the `Transfer` event for gas savings.
// The duplicated `log4` removes an extra check and reduces stack juggling.
// The assembly, together with the surrounding Solidity code, have been
// delicately arranged to nudge the compiler into producing optimized opcodes.
assembly {
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
toMasked := and(to, _BITMASK_ADDRESS)
// Emit the `Transfer` event.
log4(
0, // Start of data (0, since no data).
0, // End of data (0, since no data).
_TRANSFER_EVENT_SIGNATURE, // Signature.
0, // `address(0)`.
toMasked, // `to`.
startTokenId // `tokenId`.
)
// The `iszero(eq(,))` check ensures that large values of `quantity`
// that overflows uint256 will make the loop run out of gas.
// The compiler will optimize the `iszero` away for performance.
for {
let tokenId := add(startTokenId, 1)
} iszero(eq(tokenId, end)) {
tokenId := add(tokenId, 1)
} {
// Emit the `Transfer` event. Similar to above.
log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
}
}
if (toMasked == 0) revert MintToZeroAddress();
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
// =============================================================
// BURN OPERATIONS
// =============================================================
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
from,
(_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
// =============================================================
// EXTRA DATA OPERATIONS
// =============================================================
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev Called during each token transfer to set the 24bit `extraData` field.
* Intended to be overridden by the cosumer contract.
*
* `previousExtraData` - the value of `extraData` before transfer.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _extraData(
address from,
address to,
uint24 previousExtraData
) internal view virtual returns (uint24) {}
/**
* @dev Returns the next extra data for the packed ownership data.
* The returned result is shifted into position.
*/
function _nextExtraData(
address from,
address to,
uint256 prevOwnershipPacked
) private view returns (uint256) {
uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
}
// =============================================================
// OTHER OPERATIONS
// =============================================================
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a uint256 to its ASCII string decimal representation.
*/
function _toString(uint256 value) internal pure virtual returns (string memory str) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit), but
// we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
// We will need 1 word for the trailing zeros padding, 1 word for the length,
// and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
let m := add(mload(0x40), 0xa0)
// Update the free memory pointer to allocate.
mstore(0x40, m)
// Assign the `str` to the end.
str := sub(m, 0x20)
// Zeroize the slot after the string.
mstore(str, 0)
// Cache the end of the memory to calculate the length later.
let end := str
// We write the string from rightmost digit to leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// prettier-ignore
for { let temp := value } 1 {} {
str := sub(str, 1)
// Write the character to the pointer.
// The ASCII index of the '0' character is 48.
mstore8(str, add(48, mod(temp, 10)))
// Keep dividing `temp` until zero.
temp := div(temp, 10)
// prettier-ignore
if iszero(temp) { break }
}
let length := sub(end, str)
// Move the pointer 32 bytes leftwards to make room for the length.
str := sub(str, 0x20)
// Store the length.
mstore(str, length)
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721A.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the
* ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
/**
* The `quantity` minted with ERC2309 exceeds the safety limit.
*/
error MintERC2309QuantityExceedsLimit();
/**
* The `extraData` cannot be set on an unintialized ownership slot.
*/
error OwnershipNotInitializedForExtraData();
// =============================================================
// STRUCTS
// =============================================================
struct TokenOwnership {
// The address of the owner.
address addr;
// Stores the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
uint24 extraData;
}
// =============================================================
// TOKEN COUNTERS
// =============================================================
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() external view returns (uint256);
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// =============================================================
// IERC721
// =============================================================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables
* (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`,
* checking first that contract recipients are aware of the ERC721 protocol
* to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move
* this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external payable;
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom}
* whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @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 payable;
/**
* @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);
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @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);
// =============================================================
// IERC2309
// =============================================================
/**
* @dev Emitted when tokens in `fromTokenId` to `toTokenId`
* (inclusive) is transferred from `from` to `to`, as defined in the
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
*
* See {_mintERC2309} for more details.
*/
event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}{
"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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"CreatorTokenBase__SetTransferValidatorFirst","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MutableMinterRoyalties__MinterCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"MutableMinterRoyalties__MinterHasAlreadyBeenAssignedToTokenId","type":"error"},{"inputs":[],"name":"MutableMinterRoyalties__OnlyMinterCanChangeRoyaltyFee","type":"error"},{"inputs":[],"name":"MutableMinterRoyalties__RoyaltyFeeGreaterThanMaximumAllowed","type":"error"},{"inputs":[],"name":"MutableMinterRoyalties__RoyaltyFeeWillExceedSalePrice","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"RoyaltySet","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"inputs":[],"name":"CREATOR_MAX_ROYALTY","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_OPERATOR_WHITELIST_ID","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_SECURITY_LEVEL","outputs":[{"internalType":"enum TransferSecurityLevels","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_PERCENT","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltyFeeNumerator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPermittedContractReceivers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSecurityPolicy","outputs":[{"components":[{"internalType":"enum TransferSecurityLevels","name":"transferSecurityLevel","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversId","type":"uint120"}],"internalType":"struct CollectionSecurityPolicy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"contract ICreatorTokenTransferValidator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"isContractReceiverPermitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isOperatorWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"isTransferAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenPurchase","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMax","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxTokenPurchase","type":"uint256"}],"name":"setMaxTokenPurchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint96","name":"royaltyFeeNumerator","type":"uint96"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomValidatorAndSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToDefaultSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTokenReserve","type":"uint256"}],"name":"setTokenReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","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":[],"name":"togglePublicMint","outputs":[],"stateMutability":"nonpayable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040526115b3600b556107f9600c556103e8600d60006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055506000600f60006101000a81548160ff0219169083151502179055506802b5e3af16b1880000601055600a6011553480156200007d57600080fd5b50600d60009054906101000a90046bffffffffffffffffffffffff166040518060400160405280601681526020017f48616e67727920416e696d616c732047656e65736973000000000000000000008152506040518060400160405280600681526020017f48414e4752590000000000000000000000000000000000000000000000000000815250818181600290816200011891906200057f565b5080600390816200012a91906200057f565b506200013b620001a160201b60201c565b60008190555050506200016362000157620001aa60201b60201c565b620001b260201b60201c565b505062000176816200027860201b60201c565b806bffffffffffffffffffffffff166080816bffffffffffffffffffffffff16815250505062000666565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6127106bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620002d1576040517f16fc4d9700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600960146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200038757607f821691505b6020821081036200039d576200039c6200033f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004077fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003c8565b620004138683620003c8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004606200045a62000454846200042b565b62000435565b6200042b565b9050919050565b6000819050919050565b6200047c836200043f565b620004946200048b8262000467565b848454620003d5565b825550505050565b600090565b620004ab6200049c565b620004b881848462000471565b505050565b5b81811015620004e057620004d4600082620004a1565b600181019050620004be565b5050565b601f8211156200052f57620004f981620003a3565b6200050484620003b8565b8101602085101562000514578190505b6200052c6200052385620003b8565b830182620004bd565b50505b505050565b600082821c905092915050565b6000620005546000198460080262000534565b1980831691505092915050565b60006200056f838362000541565b9150826002028217905092915050565b6200058a8262000305565b67ffffffffffffffff811115620005a657620005a562000310565b5b620005b282546200036e565b620005bf828285620004e4565b600060209050601f831160018114620005f75760008415620005e2578287015190505b620005ee858262000561565b8655506200065e565b601f1984166200060786620003a3565b60005b8281101562000631578489015182556001820191506020850194506020810190506200060a565b868310156200065157848901516200064d601f89168262000541565b8355505b6001600288020188555050505b505050505050565b608051615aaf620006826000396000611c900152615aaf6000f3fe6080604052600436106103505760003560e01c80636c3b8699116101c6578063be537f43116100f7578063dc53fd9211610095578063e985e9c51161006f578063e985e9c514610bd6578063f2fde38b14610c13578063f47c84c514610c3c578063fd762d9214610c6757610350565b8063dc53fd9214610b57578063e02eada514610b82578063e5dec55214610bab57610350565b8063d007af5c116100d1578063d007af5c14610aab578063d547cfb714610ad6578063d73792a914610b01578063da0239a614610b2c57610350565b8063be537f4314610a18578063c87b56dd14610a43578063cdcd897e14610a8057610350565b806395d89b4111610164578063a9fc664e1161013e578063a9fc664e1461097f578063b67c25a3146109a8578063b88d4fde146109d3578063bd7ccb34146109ef57610350565b806395d89b41146108ee5780639d645a4414610919578063a22cb4651461095657610350565b806370a08231116101a057806370a0823114610846578063715018a61461088357806378cf19e91461089a5780638da5cb5b146108c357610350565b80636c3b8699146107dd5780636e4af0ab146107f45780636f8b44b01461081d57610350565b80632db11544116102a057806355f804b31161023e5780635fd8c710116102185780635fd8c71014610735578063613471621461074c5780636352211e1461077557806369a07980146107b257610350565b806355f804b3146106b85780635d4c1d46146106e15780635d82cf6e1461070c57610350565b806342842e0e1161027a57806342842e0e1461061d578063495c8bf9146106395780634ef6225314610664578063521f5e6a1461068d57610350565b80632db11544146105ad5780632e8da829146105c95780634047638d1461060657610350565b806309aa3dcf1161030d5780631b25b077116102e75780631b25b077146104eb5780631c33b3281461052857806323b872dd146105535780632a55205a1461056f57610350565b806309aa3dcf1461046c578063162094c41461049757806318160ddd146104c057610350565b8063014635461461035557806301ffc9a71461038057806306fdde03146103bd578063081812fc146103e8578063095ea7b314610425578063098144d414610441575b600080fd5b34801561036157600080fd5b5061036a610c90565b6040516103779190614006565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a2919061408d565b610ca6565b6040516103b491906140d5565b60405180910390f35b3480156103c957600080fd5b506103d2610cb8565b6040516103df9190614180565b60405180910390f35b3480156103f457600080fd5b5061040f600480360381019061040a91906141d8565b610d4a565b60405161041c9190614006565b60405180910390f35b61043f600480360381019061043a9190614231565b610dc9565b005b34801561044d57600080fd5b50610456610f0d565b60405161046391906142d0565b60405180910390f35b34801561047857600080fd5b50610481610f37565b60405161048e91906142fa565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b9919061444a565b610f3d565b005b3480156104cc57600080fd5b506104d5610fb2565b6040516104e291906142fa565b60405180910390f35b3480156104f757600080fd5b50610512600480360381019061050d91906144a6565b610fc9565b60405161051f91906140d5565b60405180910390f35b34801561053457600080fd5b5061053d6110ca565b60405161054a9190614570565b60405180910390f35b61056d6004803603810190610568919061458b565b6110cf565b005b34801561057b57600080fd5b50610596600480360381019061059191906145de565b6113f1565b6040516105a492919061461e565b60405180910390f35b6105c760048036038101906105c291906141d8565b61155c565b005b3480156105d557600080fd5b506105f060048036038101906105eb9190614647565b611725565b6040516105fd91906140d5565b60405180910390f35b34801561061257600080fd5b5061061b6118ca565b005b6106376004803603810190610632919061458b565b6118fe565b005b34801561064557600080fd5b5061064e61191e565b60405161065b9190614732565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190614798565b611b0d565b005b34801561069957600080fd5b506106a2611c8c565b6040516106af91906147e7565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190614802565b611cb4565b005b3480156106ed57600080fd5b506106f6611ccf565b6040516107039190614875565b60405180910390f35b34801561071857600080fd5b50610733600480360381019061072e91906141d8565b611cd4565b005b34801561074157600080fd5b5061074a611ce6565b005b34801561075857600080fd5b50610773600480360381019061076e91906148e1565b611d3e565b005b34801561078157600080fd5b5061079c600480360381019061079791906141d8565b611f05565b6040516107a99190614006565b60405180910390f35b3480156107be57600080fd5b506107c7611f17565b6040516107d491906147e7565b60405180910390f35b3480156107e957600080fd5b506107f2611f1d565b005b34801561080057600080fd5b5061081b600480360381019061081691906141d8565b612042565b005b34801561082957600080fd5b50610844600480360381019061083f91906141d8565b6120b4565b005b34801561085257600080fd5b5061086d60048036038101906108689190614647565b612111565b60405161087a91906142fa565b60405180910390f35b34801561088f57600080fd5b506108986121c9565b005b3480156108a657600080fd5b506108c160048036038101906108bc9190614231565b6121dd565b005b3480156108cf57600080fd5b506108d86122a8565b6040516108e59190614006565b60405180910390f35b3480156108fa57600080fd5b506109036122d2565b6040516109109190614180565b60405180910390f35b34801561092557600080fd5b50610940600480360381019061093b9190614647565b612364565b60405161094d91906140d5565b60405180910390f35b34801561096257600080fd5b5061097d60048036038101906109789190614960565b612509565b005b34801561098b57600080fd5b506109a660048036038101906109a19190614647565b612614565b005b3480156109b457600080fd5b506109bd6127ce565b6040516109ca91906140d5565b60405180910390f35b6109ed60048036038101906109e89190614a41565b6127e1565b005b3480156109fb57600080fd5b50610a166004803603810190610a1191906141d8565b612854565b005b348015610a2457600080fd5b50610a2d612866565b604051610a3a9190614b24565b60405180910390f35b348015610a4f57600080fd5b50610a6a6004803603810190610a6591906141d8565b6129bf565b604051610a779190614180565b60405180910390f35b348015610a8c57600080fd5b50610a95612aed565b604051610aa291906147e7565b60405180910390f35b348015610ab757600080fd5b50610ac0612b0b565b604051610acd9190614732565b60405180910390f35b348015610ae257600080fd5b50610aeb612cfa565b604051610af89190614180565b60405180910390f35b348015610b0d57600080fd5b50610b16612d88565b604051610b2391906147e7565b60405180910390f35b348015610b3857600080fd5b50610b41612d8e565b604051610b4e91906142fa565b60405180910390f35b348015610b6357600080fd5b50610b6c612daa565b604051610b7991906142fa565b60405180910390f35b348015610b8e57600080fd5b50610ba96004803603810190610ba491906141d8565b612db0565b005b348015610bb757600080fd5b50610bc0612dc2565b604051610bcd91906142fa565b60405180910390f35b348015610be257600080fd5b50610bfd6004803603810190610bf89190614b3f565b612dc8565b604051610c0a91906140d5565b60405180910390f35b348015610c1f57600080fd5b50610c3a6004803603810190610c359190614647565b612e5c565b005b348015610c4857600080fd5b50610c51612edf565b604051610c5e91906142fa565b60405180910390f35b348015610c7357600080fd5b50610c8e6004803603810190610c899190614b7f565b612ee5565b005b71721c310194ccfc01e523fc93c9cccfa2a0ac81565b6000610cb182613043565b9050919050565b606060028054610cc790614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390614c15565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b6000610d55826130bd565b610d8b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610dd482611f05565b90508073ffffffffffffffffffffffffffffffffffffffff16610df561311c565b73ffffffffffffffffffffffffffffffffffffffff1614610e5857610e2181610e1c61311c565b612dc8565b610e57576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b610f4561312b565b610f4e826130bd565b610f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8490614cb8565b60405180910390fd5b80601260008481526020019081526020016000209081610fad9190614e7a565b505050565b6000610fbc6131a9565b6001546000540303905090565b60008073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110be57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663285fb8c88585856040518463ffffffff1660e01b815260040161107f93929190614f4c565b60006040518083038186803b15801561109757600080fd5b505afa9250505080156110a8575060015b6110b557600090506110c3565b600190506110c3565b600190505b9392505050565b600181565b60006110da826131b2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611141576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061114d8461327e565b91509150611163818761115e61311c565b6132a5565b6111af576111788661117361311c565b612dc8565b6111ae576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611215576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61122286868660016132e9565b801561122d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112fb856112d788888761331c565b7c020000000000000000000000000000000000000000000000000000000017613344565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611381576000600185019050600060046000838152602001908152602001600020540361137f57600054811461137e578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113e9868686600161336f565b505050505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603611512576114ea611c8c565b81602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff16815250505b80600001516127106bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866115469190614fb2565b6115509190615023565b92509250509250929050565b600f60009054906101000a900460ff166115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a2906150a0565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611619576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116109061510c565b60405180910390fd5b60115481111561165e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165590615178565b60405180910390fd5b600c54600b5461166e9190615198565b81611677610fb2565b61168191906151cc565b11156116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b99061524c565b60405180910390fd5b6000601054826116d29190614fb2565b905080341015611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e906152b8565b60405180910390fd5b61172133836133a2565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118c057600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d72dde5e600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b81526004016118159190614006565b606060405180830381865afa158015611832573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611856919061536b565b60200151846040518363ffffffff1660e01b8152600401611878929190615398565b602060405180830381865afa158015611895573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b991906153d6565b90506118c5565b600090505b919050565b6118d261312b565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b611919838383604051806020016040528060008152506127e1565b505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611abd57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633fe5df99600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b8152600401611a0f9190614006565b606060405180830381865afa158015611a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a50919061536b565b602001516040518263ffffffff1660e01b8152600401611a709190614875565b600060405180830381865afa158015611a8d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ab691906154e0565b9050611b0a565b600067ffffffffffffffff811115611ad857611ad761431f565b5b604051908082528060200260200182016040528015611b065781602001602082028036833780820191505090505b5090505b90565b6103e86bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611b65576040517fe28d748f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600a600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c05576040517f130e6cf200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff16837f93c3d3c02f3e5b8ff28a98e2ff5dc3d9395f4f02af3a830c3789c8af2542025384604051611c7f91906147e7565b60405180910390a3505050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b611cbc61312b565b80600e9081611ccb9190614e7a565b5050565b600181565b611cdc61312b565b8060108190555050565b611cee61312b565b611cf66122a8565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611d3b573d6000803e3d6000fd5b50565b611d466133e9565b6000611d50610f0d565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611db8576040517f39ffc7ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663da0194c030866040518363ffffffff1660e01b8152600401611df3929190615529565b600060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff16632304aa0230856040518363ffffffff1660e01b8152600401611e60929190615552565b600060405180830381600087803b158015611e7a57600080fd5b505af1158015611e8e573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff16638d74431430846040518363ffffffff1660e01b8152600401611ecd929190615552565b600060405180830381600087803b158015611ee757600080fd5b505af1158015611efb573d6000803e3d6000fd5b5050505050505050565b6000611f10826131b2565b9050919050565b6103e881565b611f256133e9565b611f4071721c310194ccfc01e523fc93c9cccfa2a0ac612614565b71721c310194ccfc01e523fc93c9cccfa2a0ac73ffffffffffffffffffffffffffffffffffffffff1663da0194c03060016040518363ffffffff1660e01b8152600401611f8e929190615529565b600060405180830381600087803b158015611fa857600080fd5b505af1158015611fbc573d6000803e3d6000fd5b5050505071721c310194ccfc01e523fc93c9cccfa2a0ac73ffffffffffffffffffffffffffffffffffffffff16632304aa023060016040518363ffffffff1660e01b815260040161200e929190615552565b600060405180830381600087803b15801561202857600080fd5b505af115801561203c573d6000803e3d6000fd5b50505050565b61204a61312b565b612053816130bd565b612092576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612089906155ed565b60405180910390fd5b6012600082815260200190815260200160002060006120b19190613f13565b50565b6120bc61312b565b6120c4610fb2565b600b5411612107576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fe90615659565b60405180910390fd5b80600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612178576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6121d161312b565b6121db60006133f3565b565b6121e561312b565b600c5481111561222a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612221906156c5565b60405180910390fd5b600b5481612236610fb2565b61224091906151cc565b1115612281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122789061524c565b60405180910390fd5b61228b82826133a2565b80600c600082825461229d9190615198565b925050819055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546122e190614c15565b80601f016020809104026020016040519081016040528092919081815260200182805461230d90614c15565b801561235a5780601f1061232f5761010080835404028352916020019161235a565b820191906000526020600020905b81548152906001019060200180831161233d57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146124ff57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639445f530600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b81526004016124549190614006565b606060405180830381865afa158015612471573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612495919061536b565b60400151846040518363ffffffff1660e01b81526004016124b7929190615398565b602060405180830381865afa1580156124d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f891906153d6565b9050612504565b600090505b919050565b806007600061251661311c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166125c361311c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161260891906140d5565b60405180910390a35050565b61261c6133e9565b6000808273ffffffffffffffffffffffffffffffffffffffff163b11156126bc578173ffffffffffffffffffffffffffffffffffffffff166301ffc9a760006040518263ffffffff1660e01b815260040161267791906156f4565b602060405180830381865afa9250505080156126b157506040513d601f19601f820116820180604052508101906126ae91906153d6565b60015b156126bb57809150505b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156126f7575080155b1561272e576040517f32483afb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360405161278192919061570f565b60405180910390a181600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600f60009054906101000a900460ff1681565b6127ec8484846110cf565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461284e57612817848484846134b9565b61284d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61285c61312b565b8060118190555050565b61286e613f53565b600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461296757600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b815260040161291f9190614006565b606060405180830381865afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612960919061536b565b90506129bc565b604051806060016040528060006006811115612986576129856144f9565b5b815260200160006effffffffffffffffffffffffffffff16815260200160006effffffffffffffffffffffffffffff1681525090505b90565b60606129ca826130bd565b612a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a00906157aa565b60405180910390fd5b6000601260008481526020019081526020016000208054612a2990614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5590614c15565b8015612aa25780601f10612a7757610100808354040283529160200191612aa2565b820191906000526020600020905b815481529060010190602001808311612a8557829003601f168201915b50505050509050600081511115612abc5780915050612ae8565b612ac583613609565b604051602001612ad59190615852565b6040516020818303038152906040529150505b919050565b600d60009054906101000a90046bffffffffffffffffffffffff1681565b6060600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612caa57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166317e94a6c600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b8152600401612bfc9190614006565b606060405180830381865afa158015612c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c3d919061536b565b604001516040518263ffffffff1660e01b8152600401612c5d9190614875565b600060405180830381865afa158015612c7a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612ca391906154e0565b9050612cf7565b600067ffffffffffffffff811115612cc557612cc461431f565b5b604051908082528060200260200182016040528015612cf35781602001602082028036833780820191505090505b5090505b90565b600e8054612d0790614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3390614c15565b8015612d805780601f10612d5557610100808354040283529160200191612d80565b820191906000526020600020905b815481529060010190602001808311612d6357829003601f168201915b505050505081565b61271081565b6000612d98610fb2565b600b54612da59190615198565b905090565b60105481565b612db861312b565b80600c8190555050565b600c5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612e6461312b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eca906158e6565b60405180910390fd5b612edc816133f3565b50565b600b5481565b612eed6133e9565b612ef684612614565b8373ffffffffffffffffffffffffffffffffffffffff1663da0194c030856040518363ffffffff1660e01b8152600401612f31929190615529565b600060405180830381600087803b158015612f4b57600080fd5b505af1158015612f5f573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff16632304aa0230846040518363ffffffff1660e01b8152600401612f9e929190615552565b600060405180830381600087803b158015612fb857600080fd5b505af1158015612fcc573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff16638d74431430836040518363ffffffff1660e01b815260040161300b929190615552565b600060405180830381600087803b15801561302557600080fd5b505af1158015613039573d6000803e3d6000fd5b5050505050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806130b657506130b5826136a7565b5b9050919050565b6000816130c86131a9565b111580156130d7575060005482105b8015613115575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000613126613711565b905090565b613133613711565b73ffffffffffffffffffffffffffffffffffffffff166131516122a8565b73ffffffffffffffffffffffffffffffffffffffff16146131a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319e90615952565b60405180910390fd5b565b60006001905090565b600080829050806131c16131a9565b11613247576000548110156132465760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613244575b6000810361323a576004600083600190039350838152602001908152602001600020549050613210565b8092505050613279565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60005b818110156133155761330a8585838661330591906151cc565b613719565b8060010190506132ec565b5050505050565b60008060e883901c905060e8613333868684613819565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b60005b8181101561339b576133908585838661338b91906151cc565b613822565b806001019050613372565b5050505050565b60006133ac613922565b905060005b828110156133d9576133ce8482846133c991906151cc565b61392b565b8060010190506133b1565b506133e48383613b5a565b505050565b6133f161312b565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134df61311c565b8786866040518563ffffffff1660e01b815260040161350194939291906159c7565b6020604051808303816000875af192505050801561353d57506040513d601f19601f8201168201806040525081019061353a9190615a28565b60015b6135b6573d806000811461356d576040519150601f19603f3d011682016040523d82523d6000602084013e613572565b606091505b5060008151036135ae576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060613614826130bd565b61364a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613654613d15565b90506000815103613674576040518060200160405280600081525061369f565b8061367e84613da7565b60405160200161368f929190615a55565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156137895750805b156137c0576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156137de576137d96137d1613711565b858534613df7565b613812565b80156137fc576137f76137ef613711565b868534613dfd565b613811565b613810613807613711565b86868634613e03565b5b5b5050505050565b60009392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156138925750805b156138c9576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156138e7576138e26138da613711565b858534613ef0565b61391b565b8015613905576139006138f8613711565b868534613ef6565b61391a565b613919613910613711565b86868634613efc565b5b5b5050505050565b60008054905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613991576040517fddc3fc8700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613a2d576040517f3b2a1e5500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613a37611c8c565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050508273ffffffffffffffffffffffffffffffffffffffff16827f93c3d3c02f3e5b8ff28a98e2ff5dc3d9395f4f02af3a830c3789c8af2542025383604051613b4d91906147e7565b60405180910390a3505050565b60008054905060008203613b9a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613ba760008483856132e9565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613c1e83613c0f600086600061331c565b613c1885613f03565b17613344565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613cbf57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613c84565b5060008203613cfa576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613d10600084838561336f565b505050565b6060600e8054613d2490614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054613d5090614c15565b8015613d9d5780601f10613d7257610100808354040283529160200191613d9d565b820191906000526020600020905b815481529060010190602001808311613d8057829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115613de257600184039350600a81066030018453600a8104905080613dc0575b50828103602084039350808452505050919050565b50505050565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613ee957600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663285fb8c88686866040518463ffffffff1660e01b8152600401613eb893929190614f4c565b60006040518083038186803b158015613ed057600080fd5b505afa158015613ee4573d6000803e3d6000fd5b505050505b5050505050565b50505050565b50505050565b5050505050565b60006001821460e11b9050919050565b508054613f1f90614c15565b6000825580601f10613f315750613f50565b601f016020900490600052602060002090810190613f4f9190613fa8565b5b50565b604051806060016040528060006006811115613f7257613f716144f9565b5b815260200160006effffffffffffffffffffffffffffff16815260200160006effffffffffffffffffffffffffffff1681525090565b5b80821115613fc1576000816000905550600101613fa9565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ff082613fc5565b9050919050565b61400081613fe5565b82525050565b600060208201905061401b6000830184613ff7565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61406a81614035565b811461407557600080fd5b50565b60008135905061408781614061565b92915050565b6000602082840312156140a3576140a261402b565b5b60006140b184828501614078565b91505092915050565b60008115159050919050565b6140cf816140ba565b82525050565b60006020820190506140ea60008301846140c6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561412a57808201518184015260208101905061410f565b60008484015250505050565b6000601f19601f8301169050919050565b6000614152826140f0565b61415c81856140fb565b935061416c81856020860161410c565b61417581614136565b840191505092915050565b6000602082019050818103600083015261419a8184614147565b905092915050565b6000819050919050565b6141b5816141a2565b81146141c057600080fd5b50565b6000813590506141d2816141ac565b92915050565b6000602082840312156141ee576141ed61402b565b5b60006141fc848285016141c3565b91505092915050565b61420e81613fe5565b811461421957600080fd5b50565b60008135905061422b81614205565b92915050565b600080604083850312156142485761424761402b565b5b60006142568582860161421c565b9250506020614267858286016141c3565b9150509250929050565b6000819050919050565b600061429661429161428c84613fc5565b614271565b613fc5565b9050919050565b60006142a88261427b565b9050919050565b60006142ba8261429d565b9050919050565b6142ca816142af565b82525050565b60006020820190506142e560008301846142c1565b92915050565b6142f4816141a2565b82525050565b600060208201905061430f60008301846142eb565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61435782614136565b810181811067ffffffffffffffff821117156143765761437561431f565b5b80604052505050565b6000614389614021565b9050614395828261434e565b919050565b600067ffffffffffffffff8211156143b5576143b461431f565b5b6143be82614136565b9050602081019050919050565b82818337600083830152505050565b60006143ed6143e88461439a565b61437f565b9050828152602081018484840111156144095761440861431a565b5b6144148482856143cb565b509392505050565b600082601f83011261443157614430614315565b5b81356144418482602086016143da565b91505092915050565b600080604083850312156144615761446061402b565b5b600061446f858286016141c3565b925050602083013567ffffffffffffffff8111156144905761448f614030565b5b61449c8582860161441c565b9150509250929050565b6000806000606084860312156144bf576144be61402b565b5b60006144cd8682870161421c565b93505060206144de8682870161421c565b92505060406144ef8682870161421c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60078110614539576145386144f9565b5b50565b600081905061454a82614528565b919050565b600061455a8261453c565b9050919050565b61456a8161454f565b82525050565b60006020820190506145856000830184614561565b92915050565b6000806000606084860312156145a4576145a361402b565b5b60006145b28682870161421c565b93505060206145c38682870161421c565b92505060406145d4868287016141c3565b9150509250925092565b600080604083850312156145f5576145f461402b565b5b6000614603858286016141c3565b9250506020614614858286016141c3565b9150509250929050565b60006040820190506146336000830185613ff7565b61464060208301846142eb565b9392505050565b60006020828403121561465d5761465c61402b565b5b600061466b8482850161421c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a981613fe5565b82525050565b60006146bb83836146a0565b60208301905092915050565b6000602082019050919050565b60006146df82614674565b6146e9818561467f565b93506146f483614690565b8060005b8381101561472557815161470c88826146af565b9750614717836146c7565b9250506001810190506146f8565b5085935050505092915050565b6000602082019050818103600083015261474c81846146d4565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b61477581614754565b811461478057600080fd5b50565b6000813590506147928161476c565b92915050565b600080604083850312156147af576147ae61402b565b5b60006147bd858286016141c3565b92505060206147ce85828601614783565b9150509250929050565b6147e181614754565b82525050565b60006020820190506147fc60008301846147d8565b92915050565b6000602082840312156148185761481761402b565b5b600082013567ffffffffffffffff81111561483657614835614030565b5b6148428482850161441c565b91505092915050565b60006effffffffffffffffffffffffffffff82169050919050565b61486f8161484b565b82525050565b600060208201905061488a6000830184614866565b92915050565b6007811061489d57600080fd5b50565b6000813590506148af81614890565b92915050565b6148be8161484b565b81146148c957600080fd5b50565b6000813590506148db816148b5565b92915050565b6000806000606084860312156148fa576148f961402b565b5b6000614908868287016148a0565b9350506020614919868287016148cc565b925050604061492a868287016148cc565b9150509250925092565b61493d816140ba565b811461494857600080fd5b50565b60008135905061495a81614934565b92915050565b600080604083850312156149775761497661402b565b5b60006149858582860161421c565b92505060206149968582860161494b565b9150509250929050565b600067ffffffffffffffff8211156149bb576149ba61431f565b5b6149c482614136565b9050602081019050919050565b60006149e46149df846149a0565b61437f565b905082815260208101848484011115614a00576149ff61431a565b5b614a0b8482856143cb565b509392505050565b600082601f830112614a2857614a27614315565b5b8135614a388482602086016149d1565b91505092915050565b60008060008060808587031215614a5b57614a5a61402b565b5b6000614a698782880161421c565b9450506020614a7a8782880161421c565b9350506040614a8b878288016141c3565b925050606085013567ffffffffffffffff811115614aac57614aab614030565b5b614ab887828801614a13565b91505092959194509250565b614acd8161454f565b82525050565b614adc8161484b565b82525050565b606082016000820151614af86000850182614ac4565b506020820151614b0b6020850182614ad3565b506040820151614b1e6040850182614ad3565b50505050565b6000606082019050614b396000830184614ae2565b92915050565b60008060408385031215614b5657614b5561402b565b5b6000614b648582860161421c565b9250506020614b758582860161421c565b9150509250929050565b60008060008060808587031215614b9957614b9861402b565b5b6000614ba78782880161421c565b9450506020614bb8878288016148a0565b9350506040614bc9878288016148cc565b9250506060614bda878288016148cc565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614c2d57607f821691505b602082108103614c4057614c3f614be6565b5b50919050565b7f45524337323155524953746f726167653a20746f6b656e20646f65736e27742060008201527f6578697374000000000000000000000000000000000000000000000000000000602082015250565b6000614ca26025836140fb565b9150614cad82614c46565b604082019050919050565b60006020820190508181036000830152614cd181614c95565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614d3a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614cfd565b614d448683614cfd565b95508019841693508086168417925050509392505050565b6000614d77614d72614d6d846141a2565b614271565b6141a2565b9050919050565b6000819050919050565b614d9183614d5c565b614da5614d9d82614d7e565b848454614d0a565b825550505050565b600090565b614dba614dad565b614dc5818484614d88565b505050565b5b81811015614de957614dde600082614db2565b600181019050614dcb565b5050565b601f821115614e2e57614dff81614cd8565b614e0884614ced565b81016020851015614e17578190505b614e2b614e2385614ced565b830182614dca565b50505b505050565b600082821c905092915050565b6000614e5160001984600802614e33565b1980831691505092915050565b6000614e6a8383614e40565b9150826002028217905092915050565b614e83826140f0565b67ffffffffffffffff811115614e9c57614e9b61431f565b5b614ea68254614c15565b614eb1828285614ded565b600060209050601f831160018114614ee45760008415614ed2578287015190505b614edc8582614e5e565b865550614f44565b601f198416614ef286614cd8565b60005b82811015614f1a57848901518255600182019150602085019450602081019050614ef5565b86831015614f375784890151614f33601f891682614e40565b8355505b6001600288020188555050505b505050505050565b6000606082019050614f616000830186613ff7565b614f6e6020830185613ff7565b614f7b6040830184613ff7565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614fbd826141a2565b9150614fc8836141a2565b9250828202614fd6816141a2565b91508282048414831517614fed57614fec614f83565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061502e826141a2565b9150615039836141a2565b92508261504957615048614ff4565b5b828204905092915050565b7f53616c65206e6f74206163746976650000000000000000000000000000000000600082015250565b600061508a600f836140fb565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f43616c6c65722063616e6e6f74206265206120636f6e74726163740000000000600082015250565b60006150f6601b836140fb565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b9050919050565b7f45786365656473206d617820746f6b656e207075726368617365000000000000600082015250565b6000615162601a836140fb565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b60006151a3826141a2565b91506151ae836141a2565b92508282039050818111156151c6576151c5614f83565b5b92915050565b60006151d7826141a2565b91506151e2836141a2565b92508282019050808211156151fa576151f9614f83565b5b92915050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b60006152366013836140fb565b915061524182615200565b602082019050919050565b6000602082019050818103600083015261526581615229565b9050919050565b7f496e73756666696369656e74207061796d656e74000000000000000000000000600082015250565b60006152a26014836140fb565b91506152ad8261526c565b602082019050919050565b600060208201905081810360008301526152d181615295565b9050919050565b600080fd5b6000815190506152ec81614890565b92915050565b600081519050615301816148b5565b92915050565b60006060828403121561531d5761531c6152d8565b5b615327606061437f565b90506000615337848285016152dd565b600083015250602061534b848285016152f2565b602083015250604061535f848285016152f2565b60408301525092915050565b6000606082840312156153815761538061402b565b5b600061538f84828501615307565b91505092915050565b60006040820190506153ad6000830185614866565b6153ba6020830184613ff7565b9392505050565b6000815190506153d081614934565b92915050565b6000602082840312156153ec576153eb61402b565b5b60006153fa848285016153c1565b91505092915050565b600067ffffffffffffffff82111561541e5761541d61431f565b5b602082029050602081019050919050565b600080fd5b60008151905061544381614205565b92915050565b600061545c61545784615403565b61437f565b9050808382526020820190506020840283018581111561547f5761547e61542f565b5b835b818110156154a857806154948882615434565b845260208401935050602081019050615481565b5050509392505050565b600082601f8301126154c7576154c6614315565b5b81516154d7848260208601615449565b91505092915050565b6000602082840312156154f6576154f561402b565b5b600082015167ffffffffffffffff81111561551457615513614030565b5b615520848285016154b2565b91505092915050565b600060408201905061553e6000830185613ff7565b61554b6020830184614561565b9392505050565b60006040820190506155676000830185613ff7565b6155746020830184614866565b9392505050565b7f4552433732314d657461646174613a20756e69717565205552492072656d6f7660008201527f616c20666f7220746f6b656e0000000000000000000000000000000000000000602082015250565b60006155d7602c836140fb565b91506155e28261557b565b604082019050919050565b60006020820190508181036000830152615606816155ca565b9050919050565b7f43616e2774207365742062656c6f772063757272656e74000000000000000000600082015250565b60006156436017836140fb565b915061564e8261560d565b602082019050919050565b6000602082019050818103600083015261567281615636565b9050919050565b7f526573657276652065786365656473206c696d69740000000000000000000000600082015250565b60006156af6015836140fb565b91506156ba82615679565b602082019050919050565b600060208201905081810360008301526156de816156a2565b9050919050565b6156ee81614035565b82525050565b600060208201905061570960008301846156e5565b92915050565b60006040820190506157246000830185613ff7565b6157316020830184613ff7565b9392505050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b60006157946031836140fb565b915061579f82615738565b604082019050919050565b600060208201905081810360008301526157c381615787565b9050919050565b600081905092915050565b60006157e0826140f0565b6157ea81856157ca565b93506157fa81856020860161410c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061583c6005836157ca565b915061584782615806565b600582019050919050565b600061585e82846157d5565b91506158698261582f565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158d06026836140fb565b91506158db82615874565b604082019050919050565b600060208201905081810360008301526158ff816158c3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061593c6020836140fb565b915061594782615906565b602082019050919050565b6000602082019050818103600083015261596b8161592f565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061599982615972565b6159a3818561597d565b93506159b381856020860161410c565b6159bc81614136565b840191505092915050565b60006080820190506159dc6000830187613ff7565b6159e96020830186613ff7565b6159f660408301856142eb565b8181036060830152615a08818461598e565b905095945050505050565b600081519050615a2281614061565b92915050565b600060208284031215615a3e57615a3d61402b565b5b6000615a4c84828501615a13565b91505092915050565b6000615a6182856157d5565b9150615a6d82846157d5565b9150819050939250505056fea2646970667358221220bcdec6fe887e9755dc7e87534b705475426465c57a419bba5ce3a7f8f2b3937764736f6c63430008110033
Deployed Bytecode
0x6080604052600436106103505760003560e01c80636c3b8699116101c6578063be537f43116100f7578063dc53fd9211610095578063e985e9c51161006f578063e985e9c514610bd6578063f2fde38b14610c13578063f47c84c514610c3c578063fd762d9214610c6757610350565b8063dc53fd9214610b57578063e02eada514610b82578063e5dec55214610bab57610350565b8063d007af5c116100d1578063d007af5c14610aab578063d547cfb714610ad6578063d73792a914610b01578063da0239a614610b2c57610350565b8063be537f4314610a18578063c87b56dd14610a43578063cdcd897e14610a8057610350565b806395d89b4111610164578063a9fc664e1161013e578063a9fc664e1461097f578063b67c25a3146109a8578063b88d4fde146109d3578063bd7ccb34146109ef57610350565b806395d89b41146108ee5780639d645a4414610919578063a22cb4651461095657610350565b806370a08231116101a057806370a0823114610846578063715018a61461088357806378cf19e91461089a5780638da5cb5b146108c357610350565b80636c3b8699146107dd5780636e4af0ab146107f45780636f8b44b01461081d57610350565b80632db11544116102a057806355f804b31161023e5780635fd8c710116102185780635fd8c71014610735578063613471621461074c5780636352211e1461077557806369a07980146107b257610350565b806355f804b3146106b85780635d4c1d46146106e15780635d82cf6e1461070c57610350565b806342842e0e1161027a57806342842e0e1461061d578063495c8bf9146106395780634ef6225314610664578063521f5e6a1461068d57610350565b80632db11544146105ad5780632e8da829146105c95780634047638d1461060657610350565b806309aa3dcf1161030d5780631b25b077116102e75780631b25b077146104eb5780631c33b3281461052857806323b872dd146105535780632a55205a1461056f57610350565b806309aa3dcf1461046c578063162094c41461049757806318160ddd146104c057610350565b8063014635461461035557806301ffc9a71461038057806306fdde03146103bd578063081812fc146103e8578063095ea7b314610425578063098144d414610441575b600080fd5b34801561036157600080fd5b5061036a610c90565b6040516103779190614006565b60405180910390f35b34801561038c57600080fd5b506103a760048036038101906103a2919061408d565b610ca6565b6040516103b491906140d5565b60405180910390f35b3480156103c957600080fd5b506103d2610cb8565b6040516103df9190614180565b60405180910390f35b3480156103f457600080fd5b5061040f600480360381019061040a91906141d8565b610d4a565b60405161041c9190614006565b60405180910390f35b61043f600480360381019061043a9190614231565b610dc9565b005b34801561044d57600080fd5b50610456610f0d565b60405161046391906142d0565b60405180910390f35b34801561047857600080fd5b50610481610f37565b60405161048e91906142fa565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b9919061444a565b610f3d565b005b3480156104cc57600080fd5b506104d5610fb2565b6040516104e291906142fa565b60405180910390f35b3480156104f757600080fd5b50610512600480360381019061050d91906144a6565b610fc9565b60405161051f91906140d5565b60405180910390f35b34801561053457600080fd5b5061053d6110ca565b60405161054a9190614570565b60405180910390f35b61056d6004803603810190610568919061458b565b6110cf565b005b34801561057b57600080fd5b50610596600480360381019061059191906145de565b6113f1565b6040516105a492919061461e565b60405180910390f35b6105c760048036038101906105c291906141d8565b61155c565b005b3480156105d557600080fd5b506105f060048036038101906105eb9190614647565b611725565b6040516105fd91906140d5565b60405180910390f35b34801561061257600080fd5b5061061b6118ca565b005b6106376004803603810190610632919061458b565b6118fe565b005b34801561064557600080fd5b5061064e61191e565b60405161065b9190614732565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190614798565b611b0d565b005b34801561069957600080fd5b506106a2611c8c565b6040516106af91906147e7565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190614802565b611cb4565b005b3480156106ed57600080fd5b506106f6611ccf565b6040516107039190614875565b60405180910390f35b34801561071857600080fd5b50610733600480360381019061072e91906141d8565b611cd4565b005b34801561074157600080fd5b5061074a611ce6565b005b34801561075857600080fd5b50610773600480360381019061076e91906148e1565b611d3e565b005b34801561078157600080fd5b5061079c600480360381019061079791906141d8565b611f05565b6040516107a99190614006565b60405180910390f35b3480156107be57600080fd5b506107c7611f17565b6040516107d491906147e7565b60405180910390f35b3480156107e957600080fd5b506107f2611f1d565b005b34801561080057600080fd5b5061081b600480360381019061081691906141d8565b612042565b005b34801561082957600080fd5b50610844600480360381019061083f91906141d8565b6120b4565b005b34801561085257600080fd5b5061086d60048036038101906108689190614647565b612111565b60405161087a91906142fa565b60405180910390f35b34801561088f57600080fd5b506108986121c9565b005b3480156108a657600080fd5b506108c160048036038101906108bc9190614231565b6121dd565b005b3480156108cf57600080fd5b506108d86122a8565b6040516108e59190614006565b60405180910390f35b3480156108fa57600080fd5b506109036122d2565b6040516109109190614180565b60405180910390f35b34801561092557600080fd5b50610940600480360381019061093b9190614647565b612364565b60405161094d91906140d5565b60405180910390f35b34801561096257600080fd5b5061097d60048036038101906109789190614960565b612509565b005b34801561098b57600080fd5b506109a660048036038101906109a19190614647565b612614565b005b3480156109b457600080fd5b506109bd6127ce565b6040516109ca91906140d5565b60405180910390f35b6109ed60048036038101906109e89190614a41565b6127e1565b005b3480156109fb57600080fd5b50610a166004803603810190610a1191906141d8565b612854565b005b348015610a2457600080fd5b50610a2d612866565b604051610a3a9190614b24565b60405180910390f35b348015610a4f57600080fd5b50610a6a6004803603810190610a6591906141d8565b6129bf565b604051610a779190614180565b60405180910390f35b348015610a8c57600080fd5b50610a95612aed565b604051610aa291906147e7565b60405180910390f35b348015610ab757600080fd5b50610ac0612b0b565b604051610acd9190614732565b60405180910390f35b348015610ae257600080fd5b50610aeb612cfa565b604051610af89190614180565b60405180910390f35b348015610b0d57600080fd5b50610b16612d88565b604051610b2391906147e7565b60405180910390f35b348015610b3857600080fd5b50610b41612d8e565b604051610b4e91906142fa565b60405180910390f35b348015610b6357600080fd5b50610b6c612daa565b604051610b7991906142fa565b60405180910390f35b348015610b8e57600080fd5b50610ba96004803603810190610ba491906141d8565b612db0565b005b348015610bb757600080fd5b50610bc0612dc2565b604051610bcd91906142fa565b60405180910390f35b348015610be257600080fd5b50610bfd6004803603810190610bf89190614b3f565b612dc8565b604051610c0a91906140d5565b60405180910390f35b348015610c1f57600080fd5b50610c3a6004803603810190610c359190614647565b612e5c565b005b348015610c4857600080fd5b50610c51612edf565b604051610c5e91906142fa565b60405180910390f35b348015610c7357600080fd5b50610c8e6004803603810190610c899190614b7f565b612ee5565b005b71721c310194ccfc01e523fc93c9cccfa2a0ac81565b6000610cb182613043565b9050919050565b606060028054610cc790614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390614c15565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b6000610d55826130bd565b610d8b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610dd482611f05565b90508073ffffffffffffffffffffffffffffffffffffffff16610df561311c565b73ffffffffffffffffffffffffffffffffffffffff1614610e5857610e2181610e1c61311c565b612dc8565b610e57576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b610f4561312b565b610f4e826130bd565b610f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8490614cb8565b60405180910390fd5b80601260008481526020019081526020016000209081610fad9190614e7a565b505050565b6000610fbc6131a9565b6001546000540303905090565b60008073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110be57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663285fb8c88585856040518463ffffffff1660e01b815260040161107f93929190614f4c565b60006040518083038186803b15801561109757600080fd5b505afa9250505080156110a8575060015b6110b557600090506110c3565b600190506110c3565b600190505b9392505050565b600181565b60006110da826131b2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611141576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061114d8461327e565b91509150611163818761115e61311c565b6132a5565b6111af576111788661117361311c565b612dc8565b6111ae576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611215576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61122286868660016132e9565b801561122d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506112fb856112d788888761331c565b7c020000000000000000000000000000000000000000000000000000000017613344565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611381576000600185019050600060046000838152602001908152602001600020540361137f57600054811461137e578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113e9868686600161336f565b505050505050565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603611512576114ea611c8c565b81602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff16815250505b80600001516127106bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866115469190614fb2565b6115509190615023565b92509250509250929050565b600f60009054906101000a900460ff166115ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a2906150a0565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611619576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116109061510c565b60405180910390fd5b60115481111561165e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165590615178565b60405180910390fd5b600c54600b5461166e9190615198565b81611677610fb2565b61168191906151cc565b11156116c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b99061524c565b60405180910390fd5b6000601054826116d29190614fb2565b905080341015611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e906152b8565b60405180910390fd5b61172133836133a2565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118c057600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d72dde5e600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b81526004016118159190614006565b606060405180830381865afa158015611832573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611856919061536b565b60200151846040518363ffffffff1660e01b8152600401611878929190615398565b602060405180830381865afa158015611895573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b991906153d6565b90506118c5565b600090505b919050565b6118d261312b565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b611919838383604051806020016040528060008152506127e1565b505050565b6060600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611abd57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633fe5df99600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b8152600401611a0f9190614006565b606060405180830381865afa158015611a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a50919061536b565b602001516040518263ffffffff1660e01b8152600401611a709190614875565b600060405180830381865afa158015611a8d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ab691906154e0565b9050611b0a565b600067ffffffffffffffff811115611ad857611ad761431f565b5b604051908082528060200260200182016040528015611b065781602001602082028036833780820191505090505b5090505b90565b6103e86bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611b65576040517fe28d748f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600a600084815260200190815260200160002090503373ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c05576040517f130e6cf200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff16837f93c3d3c02f3e5b8ff28a98e2ff5dc3d9395f4f02af3a830c3789c8af2542025384604051611c7f91906147e7565b60405180910390a3505050565b60007f00000000000000000000000000000000000000000000000000000000000003e8905090565b611cbc61312b565b80600e9081611ccb9190614e7a565b5050565b600181565b611cdc61312b565b8060108190555050565b611cee61312b565b611cf66122a8565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611d3b573d6000803e3d6000fd5b50565b611d466133e9565b6000611d50610f0d565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611db8576040517f39ffc7ba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1663da0194c030866040518363ffffffff1660e01b8152600401611df3929190615529565b600060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff16632304aa0230856040518363ffffffff1660e01b8152600401611e60929190615552565b600060405180830381600087803b158015611e7a57600080fd5b505af1158015611e8e573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff16638d74431430846040518363ffffffff1660e01b8152600401611ecd929190615552565b600060405180830381600087803b158015611ee757600080fd5b505af1158015611efb573d6000803e3d6000fd5b5050505050505050565b6000611f10826131b2565b9050919050565b6103e881565b611f256133e9565b611f4071721c310194ccfc01e523fc93c9cccfa2a0ac612614565b71721c310194ccfc01e523fc93c9cccfa2a0ac73ffffffffffffffffffffffffffffffffffffffff1663da0194c03060016040518363ffffffff1660e01b8152600401611f8e929190615529565b600060405180830381600087803b158015611fa857600080fd5b505af1158015611fbc573d6000803e3d6000fd5b5050505071721c310194ccfc01e523fc93c9cccfa2a0ac73ffffffffffffffffffffffffffffffffffffffff16632304aa023060016040518363ffffffff1660e01b815260040161200e929190615552565b600060405180830381600087803b15801561202857600080fd5b505af115801561203c573d6000803e3d6000fd5b50505050565b61204a61312b565b612053816130bd565b612092576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612089906155ed565b60405180910390fd5b6012600082815260200190815260200160002060006120b19190613f13565b50565b6120bc61312b565b6120c4610fb2565b600b5411612107576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fe90615659565b60405180910390fd5b80600b8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612178576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6121d161312b565b6121db60006133f3565b565b6121e561312b565b600c5481111561222a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612221906156c5565b60405180910390fd5b600b5481612236610fb2565b61224091906151cc565b1115612281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122789061524c565b60405180910390fd5b61228b82826133a2565b80600c600082825461229d9190615198565b925050819055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546122e190614c15565b80601f016020809104026020016040519081016040528092919081815260200182805461230d90614c15565b801561235a5780601f1061232f5761010080835404028352916020019161235a565b820191906000526020600020905b81548152906001019060200180831161233d57829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146124ff57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639445f530600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b81526004016124549190614006565b606060405180830381865afa158015612471573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612495919061536b565b60400151846040518363ffffffff1660e01b81526004016124b7929190615398565b602060405180830381865afa1580156124d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f891906153d6565b9050612504565b600090505b919050565b806007600061251661311c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166125c361311c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161260891906140d5565b60405180910390a35050565b61261c6133e9565b6000808273ffffffffffffffffffffffffffffffffffffffff163b11156126bc578173ffffffffffffffffffffffffffffffffffffffff166301ffc9a760006040518263ffffffff1660e01b815260040161267791906156f4565b602060405180830381865afa9250505080156126b157506040513d601f19601f820116820180604052508101906126ae91906153d6565b60015b156126bb57809150505b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156126f7575080155b1561272e576040517f32483afb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360405161278192919061570f565b60405180910390a181600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600f60009054906101000a900460ff1681565b6127ec8484846110cf565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461284e57612817848484846134b9565b61284d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61285c61312b565b8060118190555050565b61286e613f53565b600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461296757600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b815260040161291f9190614006565b606060405180830381865afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612960919061536b565b90506129bc565b604051806060016040528060006006811115612986576129856144f9565b5b815260200160006effffffffffffffffffffffffffffff16815260200160006effffffffffffffffffffffffffffff1681525090505b90565b60606129ca826130bd565b612a09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a00906157aa565b60405180910390fd5b6000601260008481526020019081526020016000208054612a2990614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5590614c15565b8015612aa25780601f10612a7757610100808354040283529160200191612aa2565b820191906000526020600020905b815481529060010190602001808311612a8557829003601f168201915b50505050509050600081511115612abc5780915050612ae8565b612ac583613609565b604051602001612ad59190615852565b6040516020818303038152906040529150505b919050565b600d60009054906101000a90046bffffffffffffffffffffffff1681565b6060600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612caa57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166317e94a6c600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b9554552306040518263ffffffff1660e01b8152600401612bfc9190614006565b606060405180830381865afa158015612c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c3d919061536b565b604001516040518263ffffffff1660e01b8152600401612c5d9190614875565b600060405180830381865afa158015612c7a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612ca391906154e0565b9050612cf7565b600067ffffffffffffffff811115612cc557612cc461431f565b5b604051908082528060200260200182016040528015612cf35781602001602082028036833780820191505090505b5090505b90565b600e8054612d0790614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054612d3390614c15565b8015612d805780601f10612d5557610100808354040283529160200191612d80565b820191906000526020600020905b815481529060010190602001808311612d6357829003601f168201915b505050505081565b61271081565b6000612d98610fb2565b600b54612da59190615198565b905090565b60105481565b612db861312b565b80600c8190555050565b600c5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612e6461312b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612ed3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eca906158e6565b60405180910390fd5b612edc816133f3565b50565b600b5481565b612eed6133e9565b612ef684612614565b8373ffffffffffffffffffffffffffffffffffffffff1663da0194c030856040518363ffffffff1660e01b8152600401612f31929190615529565b600060405180830381600087803b158015612f4b57600080fd5b505af1158015612f5f573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff16632304aa0230846040518363ffffffff1660e01b8152600401612f9e929190615552565b600060405180830381600087803b158015612fb857600080fd5b505af1158015612fcc573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff16638d74431430836040518363ffffffff1660e01b815260040161300b929190615552565b600060405180830381600087803b15801561302557600080fd5b505af1158015613039573d6000803e3d6000fd5b5050505050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806130b657506130b5826136a7565b5b9050919050565b6000816130c86131a9565b111580156130d7575060005482105b8015613115575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000613126613711565b905090565b613133613711565b73ffffffffffffffffffffffffffffffffffffffff166131516122a8565b73ffffffffffffffffffffffffffffffffffffffff16146131a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319e90615952565b60405180910390fd5b565b60006001905090565b600080829050806131c16131a9565b11613247576000548110156132465760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613244575b6000810361323a576004600083600190039350838152602001908152602001600020549050613210565b8092505050613279565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60005b818110156133155761330a8585838661330591906151cc565b613719565b8060010190506132ec565b5050505050565b60008060e883901c905060e8613333868684613819565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b60005b8181101561339b576133908585838661338b91906151cc565b613822565b806001019050613372565b5050505050565b60006133ac613922565b905060005b828110156133d9576133ce8482846133c991906151cc565b61392b565b8060010190506133b1565b506133e48383613b5a565b505050565b6133f161312b565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134df61311c565b8786866040518563ffffffff1660e01b815260040161350194939291906159c7565b6020604051808303816000875af192505050801561353d57506040513d601f19601f8201168201806040525081019061353a9190615a28565b60015b6135b6573d806000811461356d576040519150601f19603f3d011682016040523d82523d6000602084013e613572565b606091505b5060008151036135ae576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060613614826130bd565b61364a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613654613d15565b90506000815103613674576040518060200160405280600081525061369f565b8061367e84613da7565b60405160200161368f929190615a55565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156137895750805b156137c0576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156137de576137d96137d1613711565b858534613df7565b613812565b80156137fc576137f76137ef613711565b868534613dfd565b613811565b613810613807613711565b86868634613e03565b5b5b5050505050565b60009392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156138925750805b156138c9576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156138e7576138e26138da613711565b858534613ef0565b61391b565b8015613905576139006138f8613711565b868534613ef6565b61391a565b613919613910613711565b86868634613efc565b5b5b5050505050565b60008054905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613991576040517fddc3fc8700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613a2d576040517f3b2a1e5500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613a37611c8c565b905060405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050508273ffffffffffffffffffffffffffffffffffffffff16827f93c3d3c02f3e5b8ff28a98e2ff5dc3d9395f4f02af3a830c3789c8af2542025383604051613b4d91906147e7565b60405180910390a3505050565b60008054905060008203613b9a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613ba760008483856132e9565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613c1e83613c0f600086600061331c565b613c1885613f03565b17613344565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613cbf57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613c84565b5060008203613cfa576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613d10600084838561336f565b505050565b6060600e8054613d2490614c15565b80601f0160208091040260200160405190810160405280929190818152602001828054613d5090614c15565b8015613d9d5780601f10613d7257610100808354040283529160200191613d9d565b820191906000526020600020905b815481529060010190602001808311613d8057829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115613de257600184039350600a81066030018453600a8104905080613dc0575b50828103602084039350808452505050919050565b50505050565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff16600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613ee957600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663285fb8c88686866040518463ffffffff1660e01b8152600401613eb893929190614f4c565b60006040518083038186803b158015613ed057600080fd5b505afa158015613ee4573d6000803e3d6000fd5b505050505b5050505050565b50505050565b50505050565b5050505050565b60006001821460e11b9050919050565b508054613f1f90614c15565b6000825580601f10613f315750613f50565b601f016020900490600052602060002090810190613f4f9190613fa8565b5b50565b604051806060016040528060006006811115613f7257613f716144f9565b5b815260200160006effffffffffffffffffffffffffffff16815260200160006effffffffffffffffffffffffffffff1681525090565b5b80821115613fc1576000816000905550600101613fa9565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ff082613fc5565b9050919050565b61400081613fe5565b82525050565b600060208201905061401b6000830184613ff7565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61406a81614035565b811461407557600080fd5b50565b60008135905061408781614061565b92915050565b6000602082840312156140a3576140a261402b565b5b60006140b184828501614078565b91505092915050565b60008115159050919050565b6140cf816140ba565b82525050565b60006020820190506140ea60008301846140c6565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561412a57808201518184015260208101905061410f565b60008484015250505050565b6000601f19601f8301169050919050565b6000614152826140f0565b61415c81856140fb565b935061416c81856020860161410c565b61417581614136565b840191505092915050565b6000602082019050818103600083015261419a8184614147565b905092915050565b6000819050919050565b6141b5816141a2565b81146141c057600080fd5b50565b6000813590506141d2816141ac565b92915050565b6000602082840312156141ee576141ed61402b565b5b60006141fc848285016141c3565b91505092915050565b61420e81613fe5565b811461421957600080fd5b50565b60008135905061422b81614205565b92915050565b600080604083850312156142485761424761402b565b5b60006142568582860161421c565b9250506020614267858286016141c3565b9150509250929050565b6000819050919050565b600061429661429161428c84613fc5565b614271565b613fc5565b9050919050565b60006142a88261427b565b9050919050565b60006142ba8261429d565b9050919050565b6142ca816142af565b82525050565b60006020820190506142e560008301846142c1565b92915050565b6142f4816141a2565b82525050565b600060208201905061430f60008301846142eb565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61435782614136565b810181811067ffffffffffffffff821117156143765761437561431f565b5b80604052505050565b6000614389614021565b9050614395828261434e565b919050565b600067ffffffffffffffff8211156143b5576143b461431f565b5b6143be82614136565b9050602081019050919050565b82818337600083830152505050565b60006143ed6143e88461439a565b61437f565b9050828152602081018484840111156144095761440861431a565b5b6144148482856143cb565b509392505050565b600082601f83011261443157614430614315565b5b81356144418482602086016143da565b91505092915050565b600080604083850312156144615761446061402b565b5b600061446f858286016141c3565b925050602083013567ffffffffffffffff8111156144905761448f614030565b5b61449c8582860161441c565b9150509250929050565b6000806000606084860312156144bf576144be61402b565b5b60006144cd8682870161421c565b93505060206144de8682870161421c565b92505060406144ef8682870161421c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60078110614539576145386144f9565b5b50565b600081905061454a82614528565b919050565b600061455a8261453c565b9050919050565b61456a8161454f565b82525050565b60006020820190506145856000830184614561565b92915050565b6000806000606084860312156145a4576145a361402b565b5b60006145b28682870161421c565b93505060206145c38682870161421c565b92505060406145d4868287016141c3565b9150509250925092565b600080604083850312156145f5576145f461402b565b5b6000614603858286016141c3565b9250506020614614858286016141c3565b9150509250929050565b60006040820190506146336000830185613ff7565b61464060208301846142eb565b9392505050565b60006020828403121561465d5761465c61402b565b5b600061466b8482850161421c565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6146a981613fe5565b82525050565b60006146bb83836146a0565b60208301905092915050565b6000602082019050919050565b60006146df82614674565b6146e9818561467f565b93506146f483614690565b8060005b8381101561472557815161470c88826146af565b9750614717836146c7565b9250506001810190506146f8565b5085935050505092915050565b6000602082019050818103600083015261474c81846146d4565b905092915050565b60006bffffffffffffffffffffffff82169050919050565b61477581614754565b811461478057600080fd5b50565b6000813590506147928161476c565b92915050565b600080604083850312156147af576147ae61402b565b5b60006147bd858286016141c3565b92505060206147ce85828601614783565b9150509250929050565b6147e181614754565b82525050565b60006020820190506147fc60008301846147d8565b92915050565b6000602082840312156148185761481761402b565b5b600082013567ffffffffffffffff81111561483657614835614030565b5b6148428482850161441c565b91505092915050565b60006effffffffffffffffffffffffffffff82169050919050565b61486f8161484b565b82525050565b600060208201905061488a6000830184614866565b92915050565b6007811061489d57600080fd5b50565b6000813590506148af81614890565b92915050565b6148be8161484b565b81146148c957600080fd5b50565b6000813590506148db816148b5565b92915050565b6000806000606084860312156148fa576148f961402b565b5b6000614908868287016148a0565b9350506020614919868287016148cc565b925050604061492a868287016148cc565b9150509250925092565b61493d816140ba565b811461494857600080fd5b50565b60008135905061495a81614934565b92915050565b600080604083850312156149775761497661402b565b5b60006149858582860161421c565b92505060206149968582860161494b565b9150509250929050565b600067ffffffffffffffff8211156149bb576149ba61431f565b5b6149c482614136565b9050602081019050919050565b60006149e46149df846149a0565b61437f565b905082815260208101848484011115614a00576149ff61431a565b5b614a0b8482856143cb565b509392505050565b600082601f830112614a2857614a27614315565b5b8135614a388482602086016149d1565b91505092915050565b60008060008060808587031215614a5b57614a5a61402b565b5b6000614a698782880161421c565b9450506020614a7a8782880161421c565b9350506040614a8b878288016141c3565b925050606085013567ffffffffffffffff811115614aac57614aab614030565b5b614ab887828801614a13565b91505092959194509250565b614acd8161454f565b82525050565b614adc8161484b565b82525050565b606082016000820151614af86000850182614ac4565b506020820151614b0b6020850182614ad3565b506040820151614b1e6040850182614ad3565b50505050565b6000606082019050614b396000830184614ae2565b92915050565b60008060408385031215614b5657614b5561402b565b5b6000614b648582860161421c565b9250506020614b758582860161421c565b9150509250929050565b60008060008060808587031215614b9957614b9861402b565b5b6000614ba78782880161421c565b9450506020614bb8878288016148a0565b9350506040614bc9878288016148cc565b9250506060614bda878288016148cc565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614c2d57607f821691505b602082108103614c4057614c3f614be6565b5b50919050565b7f45524337323155524953746f726167653a20746f6b656e20646f65736e27742060008201527f6578697374000000000000000000000000000000000000000000000000000000602082015250565b6000614ca26025836140fb565b9150614cad82614c46565b604082019050919050565b60006020820190508181036000830152614cd181614c95565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614d3a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614cfd565b614d448683614cfd565b95508019841693508086168417925050509392505050565b6000614d77614d72614d6d846141a2565b614271565b6141a2565b9050919050565b6000819050919050565b614d9183614d5c565b614da5614d9d82614d7e565b848454614d0a565b825550505050565b600090565b614dba614dad565b614dc5818484614d88565b505050565b5b81811015614de957614dde600082614db2565b600181019050614dcb565b5050565b601f821115614e2e57614dff81614cd8565b614e0884614ced565b81016020851015614e17578190505b614e2b614e2385614ced565b830182614dca565b50505b505050565b600082821c905092915050565b6000614e5160001984600802614e33565b1980831691505092915050565b6000614e6a8383614e40565b9150826002028217905092915050565b614e83826140f0565b67ffffffffffffffff811115614e9c57614e9b61431f565b5b614ea68254614c15565b614eb1828285614ded565b600060209050601f831160018114614ee45760008415614ed2578287015190505b614edc8582614e5e565b865550614f44565b601f198416614ef286614cd8565b60005b82811015614f1a57848901518255600182019150602085019450602081019050614ef5565b86831015614f375784890151614f33601f891682614e40565b8355505b6001600288020188555050505b505050505050565b6000606082019050614f616000830186613ff7565b614f6e6020830185613ff7565b614f7b6040830184613ff7565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614fbd826141a2565b9150614fc8836141a2565b9250828202614fd6816141a2565b91508282048414831517614fed57614fec614f83565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061502e826141a2565b9150615039836141a2565b92508261504957615048614ff4565b5b828204905092915050565b7f53616c65206e6f74206163746976650000000000000000000000000000000000600082015250565b600061508a600f836140fb565b915061509582615054565b602082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f43616c6c65722063616e6e6f74206265206120636f6e74726163740000000000600082015250565b60006150f6601b836140fb565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b9050919050565b7f45786365656473206d617820746f6b656e207075726368617365000000000000600082015250565b6000615162601a836140fb565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b60006151a3826141a2565b91506151ae836141a2565b92508282039050818111156151c6576151c5614f83565b5b92915050565b60006151d7826141a2565b91506151e2836141a2565b92508282019050808211156151fa576151f9614f83565b5b92915050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b60006152366013836140fb565b915061524182615200565b602082019050919050565b6000602082019050818103600083015261526581615229565b9050919050565b7f496e73756666696369656e74207061796d656e74000000000000000000000000600082015250565b60006152a26014836140fb565b91506152ad8261526c565b602082019050919050565b600060208201905081810360008301526152d181615295565b9050919050565b600080fd5b6000815190506152ec81614890565b92915050565b600081519050615301816148b5565b92915050565b60006060828403121561531d5761531c6152d8565b5b615327606061437f565b90506000615337848285016152dd565b600083015250602061534b848285016152f2565b602083015250604061535f848285016152f2565b60408301525092915050565b6000606082840312156153815761538061402b565b5b600061538f84828501615307565b91505092915050565b60006040820190506153ad6000830185614866565b6153ba6020830184613ff7565b9392505050565b6000815190506153d081614934565b92915050565b6000602082840312156153ec576153eb61402b565b5b60006153fa848285016153c1565b91505092915050565b600067ffffffffffffffff82111561541e5761541d61431f565b5b602082029050602081019050919050565b600080fd5b60008151905061544381614205565b92915050565b600061545c61545784615403565b61437f565b9050808382526020820190506020840283018581111561547f5761547e61542f565b5b835b818110156154a857806154948882615434565b845260208401935050602081019050615481565b5050509392505050565b600082601f8301126154c7576154c6614315565b5b81516154d7848260208601615449565b91505092915050565b6000602082840312156154f6576154f561402b565b5b600082015167ffffffffffffffff81111561551457615513614030565b5b615520848285016154b2565b91505092915050565b600060408201905061553e6000830185613ff7565b61554b6020830184614561565b9392505050565b60006040820190506155676000830185613ff7565b6155746020830184614866565b9392505050565b7f4552433732314d657461646174613a20756e69717565205552492072656d6f7660008201527f616c20666f7220746f6b656e0000000000000000000000000000000000000000602082015250565b60006155d7602c836140fb565b91506155e28261557b565b604082019050919050565b60006020820190508181036000830152615606816155ca565b9050919050565b7f43616e2774207365742062656c6f772063757272656e74000000000000000000600082015250565b60006156436017836140fb565b915061564e8261560d565b602082019050919050565b6000602082019050818103600083015261567281615636565b9050919050565b7f526573657276652065786365656473206c696d69740000000000000000000000600082015250565b60006156af6015836140fb565b91506156ba82615679565b602082019050919050565b600060208201905081810360008301526156de816156a2565b9050919050565b6156ee81614035565b82525050565b600060208201905061570960008301846156e5565b92915050565b60006040820190506157246000830185613ff7565b6157316020830184613ff7565b9392505050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b60006157946031836140fb565b915061579f82615738565b604082019050919050565b600060208201905081810360008301526157c381615787565b9050919050565b600081905092915050565b60006157e0826140f0565b6157ea81856157ca565b93506157fa81856020860161410c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061583c6005836157ca565b915061584782615806565b600582019050919050565b600061585e82846157d5565b91506158698261582f565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158d06026836140fb565b91506158db82615874565b604082019050919050565b600060208201905081810360008301526158ff816158c3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061593c6020836140fb565b915061594782615906565b602082019050919050565b6000602082019050818103600083015261596b8161592f565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061599982615972565b6159a3818561597d565b93506159b381856020860161410c565b6159bc81614136565b840191505092915050565b60006080820190506159dc6000830187613ff7565b6159e96020830186613ff7565b6159f660408301856142eb565b8181036060830152615a08818461598e565b905095945050505050565b600081519050615a2281614061565b92915050565b600060208284031215615a3e57615a3d61402b565b5b6000615a4c84828501615a13565b91505092915050565b6000615a6182856157d5565b9150615a6d82846157d5565b9150819050939250505056fea2646970667358221220bcdec6fe887e9755dc7e87534b705475426465c57a419bba5ce3a7f8f2b3937764736f6c63430008110033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$119.94
Net Worth in POL
Token Allocations
POL
100.00%
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| POL | 100.00% | $0.088842 | 1,350 | $119.94 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.