Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Multichain Info
Latest 25 from a total of 47 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 8378657 | 376 days ago | IN | 0 APE | 0.00077843 | ||||
| Set Data Source | 8369062 | 376 days ago | IN | 0 APE | 0.00074406 | ||||
| Mint | 8350341 | 376 days ago | IN | 5 APE | 0.00207819 | ||||
| Mint | 8350339 | 376 days ago | IN | 5 APE | 0.00207819 | ||||
| Mint | 8350333 | 376 days ago | IN | 5 APE | 0.00207819 | ||||
| Set Price | 8350284 | 376 days ago | IN | 0 APE | 0.00073948 | ||||
| Withdraw | 8329106 | 377 days ago | IN | 0 APE | 0.00077843 | ||||
| Mint | 8328141 | 377 days ago | IN | 15 APE | 0.00231684 | ||||
| Withdraw | 8328080 | 377 days ago | IN | 0 APE | 0.00077843 | ||||
| Mint | 8326810 | 377 days ago | IN | 2.5 APE | 0.00163709 | ||||
| Mint | 8326801 | 377 days ago | IN | 10 APE | 0.00221881 | ||||
| Withdraw | 8326375 | 377 days ago | IN | 0 APE | 0.00077843 | ||||
| Set Approval For... | 8326318 | 377 days ago | IN | 0 APE | 0.00118658 | ||||
| Mint | 8326133 | 377 days ago | IN | 10 APE | 0.00178412 | ||||
| Mint | 8326070 | 377 days ago | IN | 7.5 APE | 0.0021698 | ||||
| Withdraw | 8325941 | 377 days ago | IN | 0 APE | 0.00077843 | ||||
| Mint | 8325846 | 377 days ago | IN | 2.5 APE | 0.00207178 | ||||
| Mint | 8325741 | 377 days ago | IN | 5 APE | 0.00212079 | ||||
| Mint | 8325523 | 377 days ago | IN | 7.5 APE | 0.00173511 | ||||
| Mint | 8325335 | 377 days ago | IN | 2.5 APE | 0.00207178 | ||||
| Withdraw | 8325280 | 377 days ago | IN | 0 APE | 0.00077843 | ||||
| Mint | 8325265 | 377 days ago | IN | 10 APE | 0.00221881 | ||||
| Mint | 8325213 | 377 days ago | IN | 7.5 APE | 0.0021698 | ||||
| Withdraw | 8325152 | 377 days ago | IN | 0 APE | 0.00077843 | ||||
| Set Approval For... | 8324977 | 377 days ago | IN | 0 APE | 0.00118658 |
Latest 10 internal transactions
Cross-Chain Transactions
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: FSL-1.1-MIT
// SettleMint.com
pragma solidity ^0.8.24;
import { IERC721A, ERC721A } from "erc721a/contracts/ERC721A.sol";
import { ERC2981 } from "@openzeppelin/contracts/token/common/ERC2981.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
interface ITokenDataSource {
function tokenData(uint256 tokenId) external view returns (uint256, uint256, uint256, uint256, uint256);
}
interface IMainRenderer {
function getMetadata(string memory name, string memory description, uint256 tokenId, uint256 headId, uint256 bodyId, uint256 clothId, uint256 accessoryId, uint256 backgroundId) external view returns(string memory);
}
contract GooPunks is ERC721A, Ownable, ReentrancyGuard, ERC2981 {
//////////////////////////////////////////////////////////////////
// CONFIGURATION //
//////////////////////////////////////////////////////////////////
uint256 public constant RESERVES = 50; // amount of tokens for the team, or to sell afterwards
uint256 public constant MAX_PER_TX = 10; // maximum amount of tokens one can mint in one transaction
uint256 public constant MAX_SUPPLY = 2222; // the total amount of tokens for this NFT
uint256 public PRICE = 5 ether; // price per token in the public sale
string public description;
//////////////////////////////////////////////////////////////////
// CROWDSALE STORAGE //
//////////////////////////////////////////////////////////////////
address private dataSource;
address private mainRenderer;
mapping(address => uint256) private _addressToMinted; // the amount of tokens an address has minted
bool private _publicSaleOpen = false; // is the public sale open?
constructor()
ERC721A("GooPunks", "GP")
Ownable(msg.sender)
{
_setDefaultRoyalty(msg.sender, 100);
}
//////////////////////////////////////////////////////////////////
// SET FUNCTIONS //
//////////////////////////////////////////////////////////////////
function setPrice(uint256 _newPrice) public onlyOwner {
PRICE = _newPrice;
}
function setDataSource(address _dataSource) public onlyOwner {
dataSource = _dataSource;
}
function setMainRenderer(address _mainRenderer) public onlyOwner {
mainRenderer = _mainRenderer;
}
function setDescription(string memory _description) public onlyOwner {
description = _description;
}
//////////////////////////////////////////////////////////////////
// CORE FUNCTIONS //
//////////////////////////////////////////////////////////////////
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) _revert(URIQueryForNonexistentToken.selector);
(uint256 headId, uint256 bodyId, uint256 clothId, uint256 accessoryId, uint256 backgroundId) = ITokenDataSource(dataSource).tokenData(tokenId);
string memory tokenUri = IMainRenderer(mainRenderer).getMetadata("GooPunks", description, tokenId, headId, bodyId, clothId, accessoryId, backgroundId);
return tokenUri;
}
//////////////////////////////////////////////////////////////////
// RESERVE TOKENS //
//////////////////////////////////////////////////////////////////
function collectReserves() public onlyOwner {
require(_totalMinted() == 0, "Reserves already collected");
_safeMint(owner(), RESERVES);
}
function gift(address[] calldata recipients_) external onlyOwner {
require(_totalMinted() > 0, "Reserves not taken yet");
uint256 recipients = recipients_.length;
require(_totalMinted() + recipients <= MAX_SUPPLY, "Excedes max supply");
for (uint256 i = 0; i < recipients; i++) {
_safeMint(recipients_[i], 1);
}
}
//////////////////////////////////////////////////////////////////
// PUBLIC SALE //
//////////////////////////////////////////////////////////////////
function startPublicSale() external onlyOwner {
_publicSaleOpen = true;
}
function mint(uint256 count) public payable nonReentrant {
require(_publicSaleOpen, "Public sale not active");
require(_totalMinted() > 0, "Reserves not taken yet");
require(_totalMinted() + count <= MAX_SUPPLY, "Exceeds max supply");
require(count <= MAX_PER_TX, "Exceeds max per transaction");
require(count * PRICE == msg.value, "Invalid funds provided");
_safeMint(_msgSender(), count);
}
//////////////////////////////////////////////////////////////////
// POST SALE MANAGEMENT //
//////////////////////////////////////////////////////////////////
function withdraw() public onlyOwner {
payable(owner()).transfer(address(this).balance);
}
//////////////////////////////////////////////////////////////////
// Royalty //
//////////////////////////////////////////////////////////////////
function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
_setDefaultRoyalty(receiver, feeNumerator);
}
function deleteDefaultRoyalty() public onlyOwner {
_deleteDefaultRoyalty();
}
function setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) public onlyOwner {
_setTokenRoyalty(tokenId, receiver, feeNumerator);
}
//////////////////////////////////////////////////////////////////
// ERC165 //
//////////////////////////////////////////////////////////////////
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721A, ERC2981)
returns (bool)
{
return interfaceId == type(Ownable).interfaceId || interfaceId == type(IERC721A).interfaceId
|| ERC721A.supportsInterface(interfaceId)
|| interfaceId == type(ERC2981).interfaceId || super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant NOT_ENTERED = 1;
uint256 private constant ENTERED = 2;
uint256 private _status;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
constructor() {
_status = NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be NOT_ENTERED
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// Any calls to nonReentrant after this point will fail
_status = ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling 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 {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.20;
import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the ERC. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
*/
error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);
/**
* @dev The default royalty receiver is invalid.
*/
error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);
/**
* @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
*/
error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);
/**
* @dev The royalty receiver for `tokenId` is invalid.
*/
error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) public view virtual returns (address receiver, uint256 amount) {
RoyaltyInfo storage _royaltyInfo = _tokenRoyaltyInfo[tokenId];
address royaltyReceiver = _royaltyInfo.receiver;
uint96 royaltyFraction = _royaltyInfo.royaltyFraction;
if (royaltyReceiver == address(0)) {
royaltyReceiver = _defaultRoyaltyInfo.receiver;
royaltyFraction = _defaultRoyaltyInfo.royaltyFraction;
}
uint256 royaltyAmount = (salePrice * royaltyFraction) / _feeDenominator();
return (royaltyReceiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
uint256 denominator = _feeDenominator();
if (feeNumerator > denominator) {
// Royalty fee will exceed the sale price
revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
}
if (receiver == address(0)) {
revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
}
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
uint256 denominator = _feeDenominator();
if (feeNumerator > denominator) {
// Royalty fee will exceed the sale price
revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
}
if (receiver == address(0)) {
revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
}
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// 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()`.
*
* The `_sequentialUpTo()` function can be overriden to enable spot mints
* (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.
*
* 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;
// The amount of tokens minted above `_sequentialUpTo()`.
// We call these spot mints (i.e. non-sequential mints).
uint256 private _spotMinted;
// =============================================================
// CONSTRUCTOR
// =============================================================
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector);
}
// =============================================================
// TOKEN COUNTING OPERATIONS
// =============================================================
/**
* @dev Returns the starting token ID for sequential mints.
*
* Override this function to change the starting token ID for sequential mints.
*
* Note: The value returned must never change after any tokens have been minted.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the maximum token ID (inclusive) for sequential mints.
*
* Override this function to return a value less than 2**256 - 1,
* but greater than `_startTokenId()`, to enable spot (non-sequential) mints.
*
* Note: The value returned must never change after any tokens have been minted.
*/
function _sequentialUpTo() internal view virtual returns (uint256) {
return type(uint256).max;
}
/**
* @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 result) {
// Counter underflow is impossible as `_burnCounter` cannot be incremented
// more than `_currentIndex + _spotMinted - _startTokenId()` times.
unchecked {
// With spot minting, the intermediate `result` can be temporarily negative,
// and the computation must be unchecked.
result = _currentIndex - _burnCounter - _startTokenId();
if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256 result) {
// Counter underflow is impossible as `_currentIndex` does not decrement,
// and it is initialized to `_startTokenId()`.
unchecked {
result = _currentIndex - _startTokenId();
if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
/**
* @dev Returns the total number of tokens that are spot-minted.
*/
function _totalSpotMinted() internal view virtual returns (uint256) {
return _spotMinted;
}
// =============================================================
// 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.selector);
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.selector);
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 Returns whether the ownership slot at `index` is initialized.
* An uninitialized slot does not necessarily mean that the slot has no owner.
*/
function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
return _packedOwnerships[index] != 0;
}
/**
* @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);
}
}
/**
* @dev Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
if (_startTokenId() <= tokenId) {
packed = _packedOwnerships[tokenId];
if (tokenId > _sequentialUpTo()) {
if (_packedOwnershipExists(packed)) return packed;
_revert(OwnerQueryForNonexistentToken.selector);
}
// If the data at the starting slot does not exist, start the scan.
if (packed == 0) {
if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
// 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, `tokenId` will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed will be zero.
for (;;) {
unchecked {
packed = _packedOwnerships[--tokenId];
}
if (packed == 0) continue;
if (packed & _BITMASK_BURNED == 0) return packed;
// Otherwise, the token is burned, and we must revert.
// This handles the case of batch burned tokens, where only the burned bit
// of the starting slot is set, and remaining slots are left uninitialized.
_revert(OwnerQueryForNonexistentToken.selector);
}
}
// Otherwise, the data exists and we can skip the scan.
// This is possible because we have already achieved the target condition.
// This saves 2143 gas on transfers of initialized tokens.
// If the token is not burned, return `packed`. Otherwise, revert.
if (packed & _BITMASK_BURNED == 0) return packed;
}
_revert(OwnerQueryForNonexistentToken.selector);
}
/**
* @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. See {ERC721A-_approve}.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
*/
function approve(address to, uint256 tokenId) public payable virtual override {
_approve(to, tokenId, true);
}
/**
* @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.selector);
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 result) {
if (_startTokenId() <= tokenId) {
if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]);
if (tokenId < _currentIndex) {
uint256 packed;
while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
result = packed & _BITMASK_BURNED == 0;
}
}
}
/**
* @dev Returns whether `packed` represents a token that exists.
*/
function _packedOwnershipExists(uint256 packed) private pure returns (bool result) {
assembly {
// The following is equivalent to `owner != address(0) && burned == false`.
// Symbolically tested.
result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_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);
// Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));
if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);
(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.selector);
_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;
}
}
}
}
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
assembly {
// 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.
from, // `from`.
toMasked, // `to`.
tokenId // `tokenId`.
)
}
if (toMasked == 0) _revert(TransferToZeroAddress.selector);
_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.selector);
}
}
/**
* @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.selector);
}
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.selector);
_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:
// - `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)
);
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
if (toMasked == 0) _revert(MintToZeroAddress.selector);
uint256 end = startTokenId + quantity;
uint256 tokenId = startTokenId;
if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);
do {
assembly {
// 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`.
tokenId // `tokenId`.
)
}
// The `!=` check ensures that large values of `quantity`
// that overflows uint256 will make the loop run out of gas.
} while (++tokenId != end);
_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.selector);
if (quantity == 0) _revert(MintZeroQuantity.selector);
if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);
_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)
);
if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);
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.selector);
}
} while (index < end);
// This prevents reentrancy to `_safeMint`.
// It does not prevent reentrancy to `_safeMintSpot`.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
/**
* @dev Mints a single token at `tokenId`.
*
* Note: A spot-minted `tokenId` that has been burned can be re-minted again.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` must be greater than `_sequentialUpTo()`.
* - `tokenId` must not exist.
*
* Emits a {Transfer} event for each mint.
*/
function _mintSpot(address to, uint256 tokenId) internal virtual {
if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector);
uint256 prevOwnershipPacked = _packedOwnerships[tokenId];
if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector);
_beforeTokenTransfers(address(0), to, tokenId, 1);
// Overflows are incredibly unrealistic.
// The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1.
// `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1.
unchecked {
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `true` (as `quantity == 1`).
_packedOwnerships[tokenId] = _packOwnershipData(
to,
_nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked)
);
// Updates:
// - `balance += 1`.
// - `numberMinted += 1`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1;
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
if (toMasked == 0) _revert(MintToZeroAddress.selector);
assembly {
// 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`.
tokenId // `tokenId`.
)
}
++_spotMinted;
}
_afterTokenTransfers(address(0), to, tokenId, 1);
}
/**
* @dev Safely mints a single token at `tokenId`.
*
* Note: A spot-minted `tokenId` that has been burned can be re-minted again.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.
* - `tokenId` must be greater than `_sequentialUpTo()`.
* - `tokenId` must not exist.
*
* See {_mintSpot}.
*
* Emits a {Transfer} event.
*/
function _safeMintSpot(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mintSpot(to, tokenId);
unchecked {
if (to.code.length != 0) {
uint256 currentSpotMinted = _spotMinted;
if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) {
_revert(TransferToNonERC721ReceiverImplementer.selector);
}
// This prevents reentrancy to `_safeMintSpot`.
// It does not prevent reentrancy to `_safeMint`.
if (_spotMinted != currentSpotMinted) revert();
}
}
}
/**
* @dev Equivalent to `_safeMintSpot(to, tokenId, '')`.
*/
function _safeMintSpot(address to, uint256 tokenId) internal virtual {
_safeMintSpot(to, tokenId, '');
}
// =============================================================
// APPROVAL OPERATIONS
// =============================================================
/**
* @dev Equivalent to `_approve(to, tokenId, false)`.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_approve(to, tokenId, false);
}
/**
* @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:
*
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
bool approvalCheck
) internal virtual {
address owner = ownerOf(tokenId);
if (approvalCheck && _msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
_revert(ApprovalCallerNotOwnerNorApproved.selector);
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
// =============================================================
// 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.selector);
}
_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 + _spotMinted` 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.selector);
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)
}
}
/**
* @dev For more efficient reverts.
*/
function _revert(bytes4 errorSelector) internal pure {
assembly {
mstore(0x00, errorSelector)
revert(0x00, 0x04)
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// 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();
/**
* `_sequentialUpTo()` must be greater than `_startTokenId()`.
*/
error SequentialUpToTooSmall();
/**
* The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.
*/
error SequentialMintExceedsLimit();
/**
* Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.
*/
error SpotMintTokenIdTooSmall();
/**
* Cannot mint over a token that already exists.
*/
error TokenAlreadyExists();
/**
* The feature is not compatible with spot mints.
*/
error NotCompatibleWithSpotMints();
// =============================================================
// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 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);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../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.
*/
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.
*
* NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the
* royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
) external view returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}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":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVES","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":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients_","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","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":"address","name":"_dataSource","type":"address"}],"name":"setDataSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mainRenderer","type":"address"}],"name":"setMainRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052674563918244f40000600d555f60125f6101000a81548160ff021916908315150217905550348015610034575f80fd5b50336040518060400160405280600881526020017f476f6f50756e6b730000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f475000000000000000000000000000000000000000000000000000000000000081525081600290816100b19190610688565b5080600390816100c19190610688565b506100d06101ae60201b60201c565b5f819055506100e36101ae60201b60201c565b6100f16101b260201b60201c565b101561010e5761010d63fed8210f60e01b6101d960201b60201c565b5b50505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610180575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016101779190610796565b60405180910390fd5b61018f816101e160201b60201c565b506001600a819055506101a93360646102a460201b60201c565b61082c565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b805f5260045ffd5b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f6102b361044560201b60201c565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff1611156103185781816040517f6f483d0900000000000000000000000000000000000000000000000000000000815260040161030f929190610805565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610388575f6040517fb6d9900a00000000000000000000000000000000000000000000000000000000815260040161037f9190610796565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600b5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b5f612710905090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806104c957607f821691505b6020821081036104dc576104db610485565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261053e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610503565b6105488683610503565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61058c61058761058284610560565b610569565b610560565b9050919050565b5f819050919050565b6105a583610572565b6105b96105b182610593565b84845461050f565b825550505050565b5f90565b6105cd6105c1565b6105d881848461059c565b505050565b5b818110156105fb576105f05f826105c5565b6001810190506105de565b5050565b601f82111561064057610611816104e2565b61061a846104f4565b81016020851015610629578190505b61063d610635856104f4565b8301826105dd565b50505b505050565b5f82821c905092915050565b5f6106605f1984600802610645565b1980831691505092915050565b5f6106788383610651565b9150826002028217905092915050565b6106918261044e565b67ffffffffffffffff8111156106aa576106a9610458565b5b6106b482546104b2565b6106bf8282856105ff565b5f60209050601f8311600181146106f0575f84156106de578287015190505b6106e8858261066d565b86555061074f565b601f1984166106fe866104e2565b5f5b8281101561072557848901518255600182019150602085019450602081019050610700565b86831015610742578489015161073e601f891682610651565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61078082610757565b9050919050565b61079081610776565b82525050565b5f6020820190506107a95f830184610787565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b5f6107e06107db6107d6846107af565b610569565b610560565b9050919050565b6107f0816107c6565b82525050565b6107ff81610560565b82525050565b5f6040820190506108185f8301856107e7565b61082560208301846107f6565b9392505050565b613a5d806108395f395ff3fe608060405260043610610203575f3560e01c80636352211e1161011757806395d89b411161009f578063b88d4fde1161006e578063b88d4fde146106a2578063c87b56dd146106be578063e985e9c5146106fa578063f2fde38b14610736578063f43a22dc1461075e57610203565b806395d89b411461061e578063a0712d6814610648578063a22cb46514610664578063aa1b103f1461068c57610203565b8063755e67b1116100e6578063755e67b1146105525780638d859f3e1461057a5780638da5cb5b146105a457806390c3f38f146105ce57806391b7f5ed146105f657610203565b80636352211e1461049a57806370a08231146104d6578063715018a6146105125780637284e4161461052857610203565b8063163e1e611161019a57806332cb6b0c1161016957806332cb6b0c146103ee5780633ccfd60b1461041857806342842e0e1461042e5780634ddb39611461044a5780635944c7531461047257610203565b8063163e1e611461034357806318160ddd1461036b57806323b872dd146103955780632a55205a146103b157610203565b8063081812fc116101d6578063081812fc146102ab5780630922f9c5146102e7578063095ea7b3146103115780630c1c972a1461032d57610203565b806301ffc9a714610207578063029877b61461024357806304634d8d1461025957806306fdde0314610281575b5f80fd5b348015610212575f80fd5b5061022d60048036038101906102289190612751565b610788565b60405161023a9190612796565b60405180910390f35b34801561024e575f80fd5b506102576108e1565b005b348015610264575f80fd5b5061027f600480360381019061027a919061284a565b610946565b005b34801561028c575f80fd5b5061029561095c565b6040516102a291906128f8565b60405180910390f35b3480156102b6575f80fd5b506102d160048036038101906102cc919061294b565b6109ec565b6040516102de9190612985565b60405180910390f35b3480156102f2575f80fd5b506102fb610a45565b60405161030891906129ad565b60405180910390f35b61032b600480360381019061032691906129c6565b610a4a565b005b348015610338575f80fd5b50610341610a5a565b005b34801561034e575f80fd5b5061036960048036038101906103649190612a65565b610a7e565b005b348015610376575f80fd5b5061037f610b7c565b60405161038c91906129ad565b60405180910390f35b6103af60048036038101906103aa9190612ab0565b610bc7565b005b3480156103bc575f80fd5b506103d760048036038101906103d29190612b00565b610e72565b6040516103e5929190612b3e565b60405180910390f35b3480156103f9575f80fd5b50610402610f94565b60405161040f91906129ad565b60405180910390f35b348015610423575f80fd5b5061042c610f9a565b005b61044860048036038101906104439190612ab0565b610fef565b005b348015610455575f80fd5b50610470600480360381019061046b9190612b65565b61100e565b005b34801561047d575f80fd5b5061049860048036038101906104939190612b90565b611059565b005b3480156104a5575f80fd5b506104c060048036038101906104bb919061294b565b611071565b6040516104cd9190612985565b60405180910390f35b3480156104e1575f80fd5b506104fc60048036038101906104f79190612b65565b611082565b60405161050991906129ad565b60405180910390f35b34801561051d575f80fd5b50610526611116565b005b348015610533575f80fd5b5061053c611129565b60405161054991906128f8565b60405180910390f35b34801561055d575f80fd5b5061057860048036038101906105739190612b65565b6111b5565b005b348015610585575f80fd5b5061058e611200565b60405161059b91906129ad565b60405180910390f35b3480156105af575f80fd5b506105b8611206565b6040516105c59190612985565b60405180910390f35b3480156105d9575f80fd5b506105f460048036038101906105ef9190612d08565b61122e565b005b348015610601575f80fd5b5061061c6004803603810190610617919061294b565b611249565b005b348015610629575f80fd5b5061063261125b565b60405161063f91906128f8565b60405180910390f35b610662600480360381019061065d919061294b565b6112eb565b005b34801561066f575f80fd5b5061068a60048036038101906106859190612d79565b611490565b005b348015610697575f80fd5b506106a0611596565b005b6106bc60048036038101906106b79190612e55565b6115a8565b005b3480156106c9575f80fd5b506106e460048036038101906106df919061294b565b6115f9565b6040516106f191906128f8565b60405180910390f35b348015610705575f80fd5b50610720600480360381019061071b9190612ed5565b61177b565b60405161072d9190612796565b60405180910390f35b348015610741575f80fd5b5061075c60048036038101906107579190612b65565b611809565b005b348015610769575f80fd5b5061077261188d565b60405161077f91906129ad565b60405180910390f35b5f7f0e083076000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085257507fc21b8f28000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610862575061086182611892565b5b806108ca57507f2baae9fd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108da57506108d982611923565b5b9050919050565b6108e961199c565b5f6108f2611a23565b14610932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092990612f5d565b60405180910390fd5b61094461093d611206565b6032611a6a565b565b61094e61199c565b6109588282611a87565b5050565b60606002805461096b90612fa8565b80601f016020809104026020016040519081016040528092919081815260200182805461099790612fa8565b80156109e25780601f106109b9576101008083540402835291602001916109e2565b820191905f5260205f20905b8154815290600101906020018083116109c557829003601f168201915b5050505050905090565b5f6109f682611c22565b610a0b57610a0a63cf4700e460e01b611cc5565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b603281565b610a5682826001611ccd565b5050565b610a6261199c565b600160125f6101000a81548160ff021916908315150217905550565b610a8661199c565b5f610a8f611a23565b11610acf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac690613022565b60405180910390fd5b5f8282905090506108ae81610ae2611a23565b610aec919061306d565b1115610b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b24906130ea565b60405180910390fd5b5f5b81811015610b7657610b69848483818110610b4d57610b4c613108565b5b9050602002016020810190610b629190612b65565b6001611a6a565b8080600101915050610b2f565b50505050565b5f610b85611df7565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610bb7611dfb565b14610bc457600854810190505b90565b5f610bd182611e22565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c4657610c4563a114810060e01b611cc5565b5b5f80610c5184611f31565b91509150610c678187610c62611f54565b611f5b565b610c9257610c7c86610c77611f54565b61177b565b610c9157610c906359c896be60e01b611cc5565b5b5b610c9f8686866001611f9e565b8015610ca9575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610d7185610d4d888887611fa4565b7c020000000000000000000000000000000000000000000000000000000017611fcb565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610ded575f6001850190505f60045f8381526020019081526020015f205403610deb575f548114610dea578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610e5c57610e5b63ea553b3460e01b611cc5565b5b610e698787876001611ff5565b50505050505050565b5f805f600c5f8681526020019081526020015f2090505f815f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f825f0160149054906101000a90046bffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4657600b5f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600b5f0160149054906101000a90046bffffffffffffffffffffffff1690505b5f610f4f611ffb565b6bffffffffffffffffffffffff16826bffffffffffffffffffffffff1688610f779190613135565b610f8191906131a3565b9050828195509550505050509250929050565b6108ae81565b610fa261199c565b610faa611206565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610fec573d5f803e3d5ffd5b50565b61100983838360405180602001604052805f8152506115a8565b505050565b61101661199c565b8060105f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61106161199c565b61106c838383612004565b505050565b5f61107b82611e22565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c7576110c6638f4eb60460e01b611cc5565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b61111e61199c565b6111275f6121b3565b565b600e805461113690612fa8565b80601f016020809104026020016040519081016040528092919081815260200182805461116290612fa8565b80156111ad5780601f10611184576101008083540402835291602001916111ad565b820191905f5260205f20905b81548152906001019060200180831161119057829003601f168201915b505050505081565b6111bd61199c565b80600f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d5481565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61123661199c565b80600e90816112459190613370565b5050565b61125161199c565b80600d8190555050565b60606003805461126a90612fa8565b80601f016020809104026020016040519081016040528092919081815260200182805461129690612fa8565b80156112e15780601f106112b8576101008083540402835291602001916112e1565b820191905f5260205f20905b8154815290600101906020018083116112c457829003601f168201915b5050505050905090565b6112f3612276565b60125f9054906101000a900460ff16611341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133890613489565b60405180910390fd5b5f61134a611a23565b1161138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138190613022565b60405180910390fd5b6108ae81611396611a23565b6113a0919061306d565b11156113e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d8906134f1565b60405180910390fd5b600a811115611425576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141c90613559565b60405180910390fd5b34600d54826114349190613135565b14611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146b906135c1565b60405180910390fd5b61148561147f6122bc565b82611a6a565b61148d6122c3565b50565b8060075f61149c611f54565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611545611f54565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161158a9190612796565b60405180910390a35050565b61159e61199c565b6115a66122cd565b565b6115b3848484610bc7565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146115f3576115dd84848484612317565b6115f2576115f163d1a57ed660e01b611cc5565b5b5b50505050565b606061160482611c22565b6116195761161863a14c4b5060e01b611cc5565b5b5f805f805f600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b815260040161167891906129ad565b60a060405180830381865afa158015611693573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116b791906135f3565b945094509450945094505f60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638801f363600e8a89898989896040518863ffffffff1660e01b81526004016117299796959493929190613735565b5f60405180830381865afa158015611743573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f8201168201806040525081019061176b919061382b565b9050809650505050505050919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61181161199c565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611881575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016118789190612985565b60405180910390fd5b61188a816121b3565b50565b600a81565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806118ec57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061191c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611995575061199482612441565b5b9050919050565b6119a46122bc565b73ffffffffffffffffffffffffffffffffffffffff166119c2611206565b73ffffffffffffffffffffffffffffffffffffffff1614611a21576119e56122bc565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611a189190612985565b60405180910390fd5b565b5f611a2c611df7565b5f540390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611a5a611dfb565b14611a6757600854810190505b90565b611a83828260405180602001604052805f8152506124aa565b5050565b5f611a90611ffb565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115611af55781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401611aec9291906138a2565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b65575f6040517fb6d9900a000000000000000000000000000000000000000000000000000000008152600401611b5c9190612985565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600b5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b5f81611c2c611df7565b11611cbf57611c39611dfb565b821115611c6157611c5a60045f8481526020019081526020015f2054612520565b9050611cc0565b5f54821015611cbe575f5b5f60045f8581526020019081526020015f205491508103611c985782611c91906138c9565b9250611c6c565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f611cd783611071565b9050818015611d1957508073ffffffffffffffffffffffffffffffffffffffff16611d00611f54565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611d4557611d2f81611d2a611f54565b61177b565b611d4457611d4363cfb3b94260e01b611cc5565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f81611e2c611df7565b11611f1b5760045f8381526020019081526020015f20549050611e4d611dfb565b821115611e7257611e5d81612520565b611f2c57611e7163df2d9b4260e01b611cc5565b5b5f8103611ef3575f548210611e9257611e9163df2d9b4260e01b611cc5565b5b5b60045f836001900393508381526020019081526020015f205490505f810315611eee575f7c010000000000000000000000000000000000000000000000000000000082160315611f2c57611eed63df2d9b4260e01b611cc5565b5b611e93565b5f7c010000000000000000000000000000000000000000000000000000000082160315611f2c575b611f2b63df2d9b4260e01b611cc5565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611fba868684612560565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f612710905090565b5f61200d611ffb565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115612074578382826040517fdfd1fc1b00000000000000000000000000000000000000000000000000000000815260040161206b939291906138f0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120e657835f6040517f969f08520000000000000000000000000000000000000000000000000000000081526004016120dd929190613925565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600c5f8681526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555090505050505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600a54036122b2576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600a81905550565b5f33905090565b6001600a81905550565b600b5f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f820160146101000a8154906bffffffffffffffffffffffff02191690555050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261233c611f54565b8786866040518563ffffffff1660e01b815260040161235e949392919061399e565b6020604051808303815f875af192505050801561239957506040513d601f19601f8201168201806040525081019061239691906139fc565b60015b6123ee573d805f81146123c7576040519150601f19603f3d011682016040523d82523d5f602084013e6123cc565b606091505b505f8151036123e6576123e563d1a57ed660e01b611cc5565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6124b48383612568565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1461251b575f805490505f83820390505b6124f05f868380600101945086612317565b6125055761250463d1a57ed660e01b611cc5565b5b8181106124de57815f5414612518575f80fd5b50505b505050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f9392505050565b5f805490505f82036125855761258463b562e8dd60e01b611cc5565b5b6125915f848385611f9e565b6125af836125a05f865f611fa4565b6125a9856126dc565b17611fcb565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f81036126605761265f632e07630060e01b611cc5565b5b5f83830190505f839050612672611dfb565b60018303111561268d5761268c6381647e3a60e01b611cc5565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a481816001019150810361268e57815f819055505050506126d75f848385611ff5565b505050565b5f6001821460e11b9050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612730816126fc565b811461273a575f80fd5b50565b5f8135905061274b81612727565b92915050565b5f60208284031215612766576127656126f4565b5b5f6127738482850161273d565b91505092915050565b5f8115159050919050565b6127908161277c565b82525050565b5f6020820190506127a95f830184612787565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6127d8826127af565b9050919050565b6127e8816127ce565b81146127f2575f80fd5b50565b5f81359050612803816127df565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b61282981612809565b8114612833575f80fd5b50565b5f8135905061284481612820565b92915050565b5f80604083850312156128605761285f6126f4565b5b5f61286d858286016127f5565b925050602061287e85828601612836565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6128ca82612888565b6128d48185612892565b93506128e48185602086016128a2565b6128ed816128b0565b840191505092915050565b5f6020820190508181035f83015261291081846128c0565b905092915050565b5f819050919050565b61292a81612918565b8114612934575f80fd5b50565b5f8135905061294581612921565b92915050565b5f602082840312156129605761295f6126f4565b5b5f61296d84828501612937565b91505092915050565b61297f816127ce565b82525050565b5f6020820190506129985f830184612976565b92915050565b6129a781612918565b82525050565b5f6020820190506129c05f83018461299e565b92915050565b5f80604083850312156129dc576129db6126f4565b5b5f6129e9858286016127f5565b92505060206129fa85828601612937565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612a2557612a24612a04565b5b8235905067ffffffffffffffff811115612a4257612a41612a08565b5b602083019150836020820283011115612a5e57612a5d612a0c565b5b9250929050565b5f8060208385031215612a7b57612a7a6126f4565b5b5f83013567ffffffffffffffff811115612a9857612a976126f8565b5b612aa485828601612a10565b92509250509250929050565b5f805f60608486031215612ac757612ac66126f4565b5b5f612ad4868287016127f5565b9350506020612ae5868287016127f5565b9250506040612af686828701612937565b9150509250925092565b5f8060408385031215612b1657612b156126f4565b5b5f612b2385828601612937565b9250506020612b3485828601612937565b9150509250929050565b5f604082019050612b515f830185612976565b612b5e602083018461299e565b9392505050565b5f60208284031215612b7a57612b796126f4565b5b5f612b87848285016127f5565b91505092915050565b5f805f60608486031215612ba757612ba66126f4565b5b5f612bb486828701612937565b9350506020612bc5868287016127f5565b9250506040612bd686828701612836565b9150509250925092565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612c1a826128b0565b810181811067ffffffffffffffff82111715612c3957612c38612be4565b5b80604052505050565b5f612c4b6126eb565b9050612c578282612c11565b919050565b5f67ffffffffffffffff821115612c7657612c75612be4565b5b612c7f826128b0565b9050602081019050919050565b828183375f83830152505050565b5f612cac612ca784612c5c565b612c42565b905082815260208101848484011115612cc857612cc7612be0565b5b612cd3848285612c8c565b509392505050565b5f82601f830112612cef57612cee612a04565b5b8135612cff848260208601612c9a565b91505092915050565b5f60208284031215612d1d57612d1c6126f4565b5b5f82013567ffffffffffffffff811115612d3a57612d396126f8565b5b612d4684828501612cdb565b91505092915050565b612d588161277c565b8114612d62575f80fd5b50565b5f81359050612d7381612d4f565b92915050565b5f8060408385031215612d8f57612d8e6126f4565b5b5f612d9c858286016127f5565b9250506020612dad85828601612d65565b9150509250929050565b5f67ffffffffffffffff821115612dd157612dd0612be4565b5b612dda826128b0565b9050602081019050919050565b5f612df9612df484612db7565b612c42565b905082815260208101848484011115612e1557612e14612be0565b5b612e20848285612c8c565b509392505050565b5f82601f830112612e3c57612e3b612a04565b5b8135612e4c848260208601612de7565b91505092915050565b5f805f8060808587031215612e6d57612e6c6126f4565b5b5f612e7a878288016127f5565b9450506020612e8b878288016127f5565b9350506040612e9c87828801612937565b925050606085013567ffffffffffffffff811115612ebd57612ebc6126f8565b5b612ec987828801612e28565b91505092959194509250565b5f8060408385031215612eeb57612eea6126f4565b5b5f612ef8858286016127f5565b9250506020612f09858286016127f5565b9150509250929050565b7f526573657276657320616c726561647920636f6c6c65637465640000000000005f82015250565b5f612f47601a83612892565b9150612f5282612f13565b602082019050919050565b5f6020820190508181035f830152612f7481612f3b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612fbf57607f821691505b602082108103612fd257612fd1612f7b565b5b50919050565b7f5265736572766573206e6f742074616b656e20796574000000000000000000005f82015250565b5f61300c601683612892565b915061301782612fd8565b602082019050919050565b5f6020820190508181035f83015261303981613000565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61307782612918565b915061308283612918565b925082820190508082111561309a57613099613040565b5b92915050565b7f45786365646573206d617820737570706c7900000000000000000000000000005f82015250565b5f6130d4601283612892565b91506130df826130a0565b602082019050919050565b5f6020820190508181035f830152613101816130c8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f61313f82612918565b915061314a83612918565b925082820261315881612918565b9150828204841483151761316f5761316e613040565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131ad82612918565b91506131b883612918565b9250826131c8576131c7613176565b5b828204905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261322f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826131f4565b61323986836131f4565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61327461326f61326a84612918565b613251565b612918565b9050919050565b5f819050919050565b61328d8361325a565b6132a16132998261327b565b848454613200565b825550505050565b5f90565b6132b56132a9565b6132c0818484613284565b505050565b5b818110156132e3576132d85f826132ad565b6001810190506132c6565b5050565b601f821115613328576132f9816131d3565b613302846131e5565b81016020851015613311578190505b61332561331d856131e5565b8301826132c5565b50505b505050565b5f82821c905092915050565b5f6133485f198460080261332d565b1980831691505092915050565b5f6133608383613339565b9150826002028217905092915050565b61337982612888565b67ffffffffffffffff81111561339257613391612be4565b5b61339c8254612fa8565b6133a78282856132e7565b5f60209050601f8311600181146133d8575f84156133c6578287015190505b6133d08582613355565b865550613437565b601f1984166133e6866131d3565b5f5b8281101561340d578489015182556001820191506020850194506020810190506133e8565b8683101561342a5784890151613426601f891682613339565b8355505b6001600288020188555050505b505050505050565b7f5075626c69632073616c65206e6f7420616374697665000000000000000000005f82015250565b5f613473601683612892565b915061347e8261343f565b602082019050919050565b5f6020820190508181035f8301526134a081613467565b9050919050565b7f45786365656473206d617820737570706c7900000000000000000000000000005f82015250565b5f6134db601283612892565b91506134e6826134a7565b602082019050919050565b5f6020820190508181035f830152613508816134cf565b9050919050565b7f45786365656473206d617820706572207472616e73616374696f6e00000000005f82015250565b5f613543601b83612892565b915061354e8261350f565b602082019050919050565b5f6020820190508181035f83015261357081613537565b9050919050565b7f496e76616c69642066756e64732070726f7669646564000000000000000000005f82015250565b5f6135ab601683612892565b91506135b682613577565b602082019050919050565b5f6020820190508181035f8301526135d88161359f565b9050919050565b5f815190506135ed81612921565b92915050565b5f805f805f60a0868803121561360c5761360b6126f4565b5b5f613619888289016135df565b955050602061362a888289016135df565b945050604061363b888289016135df565b935050606061364c888289016135df565b925050608061365d888289016135df565b9150509295509295909350565b7f476f6f50756e6b730000000000000000000000000000000000000000000000005f82015250565b5f61369e600883612892565b91506136a98261366a565b602082019050919050565b5f81546136c081612fa8565b6136ca8186612892565b9450600182165f81146136e457600181146136fa5761372c565b60ff19831686528115156020028601935061372c565b613703856131d3565b5f5b8381101561372457815481890152600182019150602081019050613705565b808801955050505b50505092915050565b5f610100820190508181035f83015261374d81613692565b90508181036020830152613761818a6136b4565b9050613770604083018961299e565b61377d606083018861299e565b61378a608083018761299e565b61379760a083018661299e565b6137a460c083018561299e565b6137b160e083018461299e565b98975050505050505050565b5f6137cf6137ca84612c5c565b612c42565b9050828152602081018484840111156137eb576137ea612be0565b5b6137f68482856128a2565b509392505050565b5f82601f83011261381257613811612a04565b5b81516138228482602086016137bd565b91505092915050565b5f602082840312156138405761383f6126f4565b5b5f82015167ffffffffffffffff81111561385d5761385c6126f8565b5b613869848285016137fe565b91505092915050565b5f61388c61388761388284612809565b613251565b612918565b9050919050565b61389c81613872565b82525050565b5f6040820190506138b55f830185613893565b6138c2602083018461299e565b9392505050565b5f6138d382612918565b91505f82036138e5576138e4613040565b5b600182039050919050565b5f6060820190506139035f83018661299e565b6139106020830185613893565b61391d604083018461299e565b949350505050565b5f6040820190506139385f83018561299e565b6139456020830184612976565b9392505050565b5f81519050919050565b5f82825260208201905092915050565b5f6139708261394c565b61397a8185613956565b935061398a8185602086016128a2565b613993816128b0565b840191505092915050565b5f6080820190506139b15f830187612976565b6139be6020830186612976565b6139cb604083018561299e565b81810360608301526139dd8184613966565b905095945050505050565b5f815190506139f681612727565b92915050565b5f60208284031215613a1157613a106126f4565b5b5f613a1e848285016139e8565b9150509291505056fea2646970667358221220eeeea2da9a9f88a779aab5c30040791a2a05d970b0e804cb4f4823cec4aba5b864736f6c634300081a0033
Deployed Bytecode
0x608060405260043610610203575f3560e01c80636352211e1161011757806395d89b411161009f578063b88d4fde1161006e578063b88d4fde146106a2578063c87b56dd146106be578063e985e9c5146106fa578063f2fde38b14610736578063f43a22dc1461075e57610203565b806395d89b411461061e578063a0712d6814610648578063a22cb46514610664578063aa1b103f1461068c57610203565b8063755e67b1116100e6578063755e67b1146105525780638d859f3e1461057a5780638da5cb5b146105a457806390c3f38f146105ce57806391b7f5ed146105f657610203565b80636352211e1461049a57806370a08231146104d6578063715018a6146105125780637284e4161461052857610203565b8063163e1e611161019a57806332cb6b0c1161016957806332cb6b0c146103ee5780633ccfd60b1461041857806342842e0e1461042e5780634ddb39611461044a5780635944c7531461047257610203565b8063163e1e611461034357806318160ddd1461036b57806323b872dd146103955780632a55205a146103b157610203565b8063081812fc116101d6578063081812fc146102ab5780630922f9c5146102e7578063095ea7b3146103115780630c1c972a1461032d57610203565b806301ffc9a714610207578063029877b61461024357806304634d8d1461025957806306fdde0314610281575b5f80fd5b348015610212575f80fd5b5061022d60048036038101906102289190612751565b610788565b60405161023a9190612796565b60405180910390f35b34801561024e575f80fd5b506102576108e1565b005b348015610264575f80fd5b5061027f600480360381019061027a919061284a565b610946565b005b34801561028c575f80fd5b5061029561095c565b6040516102a291906128f8565b60405180910390f35b3480156102b6575f80fd5b506102d160048036038101906102cc919061294b565b6109ec565b6040516102de9190612985565b60405180910390f35b3480156102f2575f80fd5b506102fb610a45565b60405161030891906129ad565b60405180910390f35b61032b600480360381019061032691906129c6565b610a4a565b005b348015610338575f80fd5b50610341610a5a565b005b34801561034e575f80fd5b5061036960048036038101906103649190612a65565b610a7e565b005b348015610376575f80fd5b5061037f610b7c565b60405161038c91906129ad565b60405180910390f35b6103af60048036038101906103aa9190612ab0565b610bc7565b005b3480156103bc575f80fd5b506103d760048036038101906103d29190612b00565b610e72565b6040516103e5929190612b3e565b60405180910390f35b3480156103f9575f80fd5b50610402610f94565b60405161040f91906129ad565b60405180910390f35b348015610423575f80fd5b5061042c610f9a565b005b61044860048036038101906104439190612ab0565b610fef565b005b348015610455575f80fd5b50610470600480360381019061046b9190612b65565b61100e565b005b34801561047d575f80fd5b5061049860048036038101906104939190612b90565b611059565b005b3480156104a5575f80fd5b506104c060048036038101906104bb919061294b565b611071565b6040516104cd9190612985565b60405180910390f35b3480156104e1575f80fd5b506104fc60048036038101906104f79190612b65565b611082565b60405161050991906129ad565b60405180910390f35b34801561051d575f80fd5b50610526611116565b005b348015610533575f80fd5b5061053c611129565b60405161054991906128f8565b60405180910390f35b34801561055d575f80fd5b5061057860048036038101906105739190612b65565b6111b5565b005b348015610585575f80fd5b5061058e611200565b60405161059b91906129ad565b60405180910390f35b3480156105af575f80fd5b506105b8611206565b6040516105c59190612985565b60405180910390f35b3480156105d9575f80fd5b506105f460048036038101906105ef9190612d08565b61122e565b005b348015610601575f80fd5b5061061c6004803603810190610617919061294b565b611249565b005b348015610629575f80fd5b5061063261125b565b60405161063f91906128f8565b60405180910390f35b610662600480360381019061065d919061294b565b6112eb565b005b34801561066f575f80fd5b5061068a60048036038101906106859190612d79565b611490565b005b348015610697575f80fd5b506106a0611596565b005b6106bc60048036038101906106b79190612e55565b6115a8565b005b3480156106c9575f80fd5b506106e460048036038101906106df919061294b565b6115f9565b6040516106f191906128f8565b60405180910390f35b348015610705575f80fd5b50610720600480360381019061071b9190612ed5565b61177b565b60405161072d9190612796565b60405180910390f35b348015610741575f80fd5b5061075c60048036038101906107579190612b65565b611809565b005b348015610769575f80fd5b5061077261188d565b60405161077f91906129ad565b60405180910390f35b5f7f0e083076000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061085257507fc21b8f28000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610862575061086182611892565b5b806108ca57507f2baae9fd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108da57506108d982611923565b5b9050919050565b6108e961199c565b5f6108f2611a23565b14610932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092990612f5d565b60405180910390fd5b61094461093d611206565b6032611a6a565b565b61094e61199c565b6109588282611a87565b5050565b60606002805461096b90612fa8565b80601f016020809104026020016040519081016040528092919081815260200182805461099790612fa8565b80156109e25780601f106109b9576101008083540402835291602001916109e2565b820191905f5260205f20905b8154815290600101906020018083116109c557829003601f168201915b5050505050905090565b5f6109f682611c22565b610a0b57610a0a63cf4700e460e01b611cc5565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b603281565b610a5682826001611ccd565b5050565b610a6261199c565b600160125f6101000a81548160ff021916908315150217905550565b610a8661199c565b5f610a8f611a23565b11610acf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac690613022565b60405180910390fd5b5f8282905090506108ae81610ae2611a23565b610aec919061306d565b1115610b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b24906130ea565b60405180910390fd5b5f5b81811015610b7657610b69848483818110610b4d57610b4c613108565b5b9050602002016020810190610b629190612b65565b6001611a6a565b8080600101915050610b2f565b50505050565b5f610b85611df7565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610bb7611dfb565b14610bc457600854810190505b90565b5f610bd182611e22565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c4657610c4563a114810060e01b611cc5565b5b5f80610c5184611f31565b91509150610c678187610c62611f54565b611f5b565b610c9257610c7c86610c77611f54565b61177b565b610c9157610c906359c896be60e01b611cc5565b5b5b610c9f8686866001611f9e565b8015610ca9575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610d7185610d4d888887611fa4565b7c020000000000000000000000000000000000000000000000000000000017611fcb565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610ded575f6001850190505f60045f8381526020019081526020015f205403610deb575f548114610dea578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610e5c57610e5b63ea553b3460e01b611cc5565b5b610e698787876001611ff5565b50505050505050565b5f805f600c5f8681526020019081526020015f2090505f815f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f825f0160149054906101000a90046bffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f4657600b5f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600b5f0160149054906101000a90046bffffffffffffffffffffffff1690505b5f610f4f611ffb565b6bffffffffffffffffffffffff16826bffffffffffffffffffffffff1688610f779190613135565b610f8191906131a3565b9050828195509550505050509250929050565b6108ae81565b610fa261199c565b610faa611206565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610fec573d5f803e3d5ffd5b50565b61100983838360405180602001604052805f8152506115a8565b505050565b61101661199c565b8060105f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61106161199c565b61106c838383612004565b505050565b5f61107b82611e22565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c7576110c6638f4eb60460e01b611cc5565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b61111e61199c565b6111275f6121b3565b565b600e805461113690612fa8565b80601f016020809104026020016040519081016040528092919081815260200182805461116290612fa8565b80156111ad5780601f10611184576101008083540402835291602001916111ad565b820191905f5260205f20905b81548152906001019060200180831161119057829003601f168201915b505050505081565b6111bd61199c565b80600f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d5481565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61123661199c565b80600e90816112459190613370565b5050565b61125161199c565b80600d8190555050565b60606003805461126a90612fa8565b80601f016020809104026020016040519081016040528092919081815260200182805461129690612fa8565b80156112e15780601f106112b8576101008083540402835291602001916112e1565b820191905f5260205f20905b8154815290600101906020018083116112c457829003601f168201915b5050505050905090565b6112f3612276565b60125f9054906101000a900460ff16611341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133890613489565b60405180910390fd5b5f61134a611a23565b1161138a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138190613022565b60405180910390fd5b6108ae81611396611a23565b6113a0919061306d565b11156113e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d8906134f1565b60405180910390fd5b600a811115611425576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141c90613559565b60405180910390fd5b34600d54826114349190613135565b14611474576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146b906135c1565b60405180910390fd5b61148561147f6122bc565b82611a6a565b61148d6122c3565b50565b8060075f61149c611f54565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611545611f54565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161158a9190612796565b60405180910390a35050565b61159e61199c565b6115a66122cd565b565b6115b3848484610bc7565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146115f3576115dd84848484612317565b6115f2576115f163d1a57ed660e01b611cc5565b5b5b50505050565b606061160482611c22565b6116195761161863a14c4b5060e01b611cc5565b5b5f805f805f600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b815260040161167891906129ad565b60a060405180830381865afa158015611693573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116b791906135f3565b945094509450945094505f60105f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638801f363600e8a89898989896040518863ffffffff1660e01b81526004016117299796959493929190613735565b5f60405180830381865afa158015611743573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f8201168201806040525081019061176b919061382b565b9050809650505050505050919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61181161199c565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611881575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016118789190612985565b60405180910390fd5b61188a816121b3565b50565b600a81565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806118ec57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061191c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611995575061199482612441565b5b9050919050565b6119a46122bc565b73ffffffffffffffffffffffffffffffffffffffff166119c2611206565b73ffffffffffffffffffffffffffffffffffffffff1614611a21576119e56122bc565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611a189190612985565b60405180910390fd5b565b5f611a2c611df7565b5f540390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611a5a611dfb565b14611a6757600854810190505b90565b611a83828260405180602001604052805f8152506124aa565b5050565b5f611a90611ffb565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115611af55781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401611aec9291906138a2565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b65575f6040517fb6d9900a000000000000000000000000000000000000000000000000000000008152600401611b5c9190612985565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600b5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b5f81611c2c611df7565b11611cbf57611c39611dfb565b821115611c6157611c5a60045f8481526020019081526020015f2054612520565b9050611cc0565b5f54821015611cbe575f5b5f60045f8581526020019081526020015f205491508103611c985782611c91906138c9565b9250611c6c565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f611cd783611071565b9050818015611d1957508073ffffffffffffffffffffffffffffffffffffffff16611d00611f54565b73ffffffffffffffffffffffffffffffffffffffff1614155b15611d4557611d2f81611d2a611f54565b61177b565b611d4457611d4363cfb3b94260e01b611cc5565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f81611e2c611df7565b11611f1b5760045f8381526020019081526020015f20549050611e4d611dfb565b821115611e7257611e5d81612520565b611f2c57611e7163df2d9b4260e01b611cc5565b5b5f8103611ef3575f548210611e9257611e9163df2d9b4260e01b611cc5565b5b5b60045f836001900393508381526020019081526020015f205490505f810315611eee575f7c010000000000000000000000000000000000000000000000000000000082160315611f2c57611eed63df2d9b4260e01b611cc5565b5b611e93565b5f7c010000000000000000000000000000000000000000000000000000000082160315611f2c575b611f2b63df2d9b4260e01b611cc5565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611fba868684612560565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f612710905090565b5f61200d611ffb565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115612074578382826040517fdfd1fc1b00000000000000000000000000000000000000000000000000000000815260040161206b939291906138f0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120e657835f6040517f969f08520000000000000000000000000000000000000000000000000000000081526004016120dd929190613925565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600c5f8681526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555090505050505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600a54036122b2576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600a81905550565b5f33905090565b6001600a81905550565b600b5f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f820160146101000a8154906bffffffffffffffffffffffff02191690555050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261233c611f54565b8786866040518563ffffffff1660e01b815260040161235e949392919061399e565b6020604051808303815f875af192505050801561239957506040513d601f19601f8201168201806040525081019061239691906139fc565b60015b6123ee573d805f81146123c7576040519150601f19603f3d011682016040523d82523d5f602084013e6123cc565b606091505b505f8151036123e6576123e563d1a57ed660e01b611cc5565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6124b48383612568565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1461251b575f805490505f83820390505b6124f05f868380600101945086612317565b6125055761250463d1a57ed660e01b611cc5565b5b8181106124de57815f5414612518575f80fd5b50505b505050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f9392505050565b5f805490505f82036125855761258463b562e8dd60e01b611cc5565b5b6125915f848385611f9e565b6125af836125a05f865f611fa4565b6125a9856126dc565b17611fcb565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f81036126605761265f632e07630060e01b611cc5565b5b5f83830190505f839050612672611dfb565b60018303111561268d5761268c6381647e3a60e01b611cc5565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a481816001019150810361268e57815f819055505050506126d75f848385611ff5565b505050565b5f6001821460e11b9050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612730816126fc565b811461273a575f80fd5b50565b5f8135905061274b81612727565b92915050565b5f60208284031215612766576127656126f4565b5b5f6127738482850161273d565b91505092915050565b5f8115159050919050565b6127908161277c565b82525050565b5f6020820190506127a95f830184612787565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6127d8826127af565b9050919050565b6127e8816127ce565b81146127f2575f80fd5b50565b5f81359050612803816127df565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b61282981612809565b8114612833575f80fd5b50565b5f8135905061284481612820565b92915050565b5f80604083850312156128605761285f6126f4565b5b5f61286d858286016127f5565b925050602061287e85828601612836565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6128ca82612888565b6128d48185612892565b93506128e48185602086016128a2565b6128ed816128b0565b840191505092915050565b5f6020820190508181035f83015261291081846128c0565b905092915050565b5f819050919050565b61292a81612918565b8114612934575f80fd5b50565b5f8135905061294581612921565b92915050565b5f602082840312156129605761295f6126f4565b5b5f61296d84828501612937565b91505092915050565b61297f816127ce565b82525050565b5f6020820190506129985f830184612976565b92915050565b6129a781612918565b82525050565b5f6020820190506129c05f83018461299e565b92915050565b5f80604083850312156129dc576129db6126f4565b5b5f6129e9858286016127f5565b92505060206129fa85828601612937565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612a2557612a24612a04565b5b8235905067ffffffffffffffff811115612a4257612a41612a08565b5b602083019150836020820283011115612a5e57612a5d612a0c565b5b9250929050565b5f8060208385031215612a7b57612a7a6126f4565b5b5f83013567ffffffffffffffff811115612a9857612a976126f8565b5b612aa485828601612a10565b92509250509250929050565b5f805f60608486031215612ac757612ac66126f4565b5b5f612ad4868287016127f5565b9350506020612ae5868287016127f5565b9250506040612af686828701612937565b9150509250925092565b5f8060408385031215612b1657612b156126f4565b5b5f612b2385828601612937565b9250506020612b3485828601612937565b9150509250929050565b5f604082019050612b515f830185612976565b612b5e602083018461299e565b9392505050565b5f60208284031215612b7a57612b796126f4565b5b5f612b87848285016127f5565b91505092915050565b5f805f60608486031215612ba757612ba66126f4565b5b5f612bb486828701612937565b9350506020612bc5868287016127f5565b9250506040612bd686828701612836565b9150509250925092565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612c1a826128b0565b810181811067ffffffffffffffff82111715612c3957612c38612be4565b5b80604052505050565b5f612c4b6126eb565b9050612c578282612c11565b919050565b5f67ffffffffffffffff821115612c7657612c75612be4565b5b612c7f826128b0565b9050602081019050919050565b828183375f83830152505050565b5f612cac612ca784612c5c565b612c42565b905082815260208101848484011115612cc857612cc7612be0565b5b612cd3848285612c8c565b509392505050565b5f82601f830112612cef57612cee612a04565b5b8135612cff848260208601612c9a565b91505092915050565b5f60208284031215612d1d57612d1c6126f4565b5b5f82013567ffffffffffffffff811115612d3a57612d396126f8565b5b612d4684828501612cdb565b91505092915050565b612d588161277c565b8114612d62575f80fd5b50565b5f81359050612d7381612d4f565b92915050565b5f8060408385031215612d8f57612d8e6126f4565b5b5f612d9c858286016127f5565b9250506020612dad85828601612d65565b9150509250929050565b5f67ffffffffffffffff821115612dd157612dd0612be4565b5b612dda826128b0565b9050602081019050919050565b5f612df9612df484612db7565b612c42565b905082815260208101848484011115612e1557612e14612be0565b5b612e20848285612c8c565b509392505050565b5f82601f830112612e3c57612e3b612a04565b5b8135612e4c848260208601612de7565b91505092915050565b5f805f8060808587031215612e6d57612e6c6126f4565b5b5f612e7a878288016127f5565b9450506020612e8b878288016127f5565b9350506040612e9c87828801612937565b925050606085013567ffffffffffffffff811115612ebd57612ebc6126f8565b5b612ec987828801612e28565b91505092959194509250565b5f8060408385031215612eeb57612eea6126f4565b5b5f612ef8858286016127f5565b9250506020612f09858286016127f5565b9150509250929050565b7f526573657276657320616c726561647920636f6c6c65637465640000000000005f82015250565b5f612f47601a83612892565b9150612f5282612f13565b602082019050919050565b5f6020820190508181035f830152612f7481612f3b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612fbf57607f821691505b602082108103612fd257612fd1612f7b565b5b50919050565b7f5265736572766573206e6f742074616b656e20796574000000000000000000005f82015250565b5f61300c601683612892565b915061301782612fd8565b602082019050919050565b5f6020820190508181035f83015261303981613000565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61307782612918565b915061308283612918565b925082820190508082111561309a57613099613040565b5b92915050565b7f45786365646573206d617820737570706c7900000000000000000000000000005f82015250565b5f6130d4601283612892565b91506130df826130a0565b602082019050919050565b5f6020820190508181035f830152613101816130c8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f61313f82612918565b915061314a83612918565b925082820261315881612918565b9150828204841483151761316f5761316e613040565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6131ad82612918565b91506131b883612918565b9250826131c8576131c7613176565b5b828204905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261322f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826131f4565b61323986836131f4565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61327461326f61326a84612918565b613251565b612918565b9050919050565b5f819050919050565b61328d8361325a565b6132a16132998261327b565b848454613200565b825550505050565b5f90565b6132b56132a9565b6132c0818484613284565b505050565b5b818110156132e3576132d85f826132ad565b6001810190506132c6565b5050565b601f821115613328576132f9816131d3565b613302846131e5565b81016020851015613311578190505b61332561331d856131e5565b8301826132c5565b50505b505050565b5f82821c905092915050565b5f6133485f198460080261332d565b1980831691505092915050565b5f6133608383613339565b9150826002028217905092915050565b61337982612888565b67ffffffffffffffff81111561339257613391612be4565b5b61339c8254612fa8565b6133a78282856132e7565b5f60209050601f8311600181146133d8575f84156133c6578287015190505b6133d08582613355565b865550613437565b601f1984166133e6866131d3565b5f5b8281101561340d578489015182556001820191506020850194506020810190506133e8565b8683101561342a5784890151613426601f891682613339565b8355505b6001600288020188555050505b505050505050565b7f5075626c69632073616c65206e6f7420616374697665000000000000000000005f82015250565b5f613473601683612892565b915061347e8261343f565b602082019050919050565b5f6020820190508181035f8301526134a081613467565b9050919050565b7f45786365656473206d617820737570706c7900000000000000000000000000005f82015250565b5f6134db601283612892565b91506134e6826134a7565b602082019050919050565b5f6020820190508181035f830152613508816134cf565b9050919050565b7f45786365656473206d617820706572207472616e73616374696f6e00000000005f82015250565b5f613543601b83612892565b915061354e8261350f565b602082019050919050565b5f6020820190508181035f83015261357081613537565b9050919050565b7f496e76616c69642066756e64732070726f7669646564000000000000000000005f82015250565b5f6135ab601683612892565b91506135b682613577565b602082019050919050565b5f6020820190508181035f8301526135d88161359f565b9050919050565b5f815190506135ed81612921565b92915050565b5f805f805f60a0868803121561360c5761360b6126f4565b5b5f613619888289016135df565b955050602061362a888289016135df565b945050604061363b888289016135df565b935050606061364c888289016135df565b925050608061365d888289016135df565b9150509295509295909350565b7f476f6f50756e6b730000000000000000000000000000000000000000000000005f82015250565b5f61369e600883612892565b91506136a98261366a565b602082019050919050565b5f81546136c081612fa8565b6136ca8186612892565b9450600182165f81146136e457600181146136fa5761372c565b60ff19831686528115156020028601935061372c565b613703856131d3565b5f5b8381101561372457815481890152600182019150602081019050613705565b808801955050505b50505092915050565b5f610100820190508181035f83015261374d81613692565b90508181036020830152613761818a6136b4565b9050613770604083018961299e565b61377d606083018861299e565b61378a608083018761299e565b61379760a083018661299e565b6137a460c083018561299e565b6137b160e083018461299e565b98975050505050505050565b5f6137cf6137ca84612c5c565b612c42565b9050828152602081018484840111156137eb576137ea612be0565b5b6137f68482856128a2565b509392505050565b5f82601f83011261381257613811612a04565b5b81516138228482602086016137bd565b91505092915050565b5f602082840312156138405761383f6126f4565b5b5f82015167ffffffffffffffff81111561385d5761385c6126f8565b5b613869848285016137fe565b91505092915050565b5f61388c61388761388284612809565b613251565b612918565b9050919050565b61389c81613872565b82525050565b5f6040820190506138b55f830185613893565b6138c2602083018461299e565b9392505050565b5f6138d382612918565b91505f82036138e5576138e4613040565b5b600182039050919050565b5f6060820190506139035f83018661299e565b6139106020830185613893565b61391d604083018461299e565b949350505050565b5f6040820190506139385f83018561299e565b6139456020830184612976565b9392505050565b5f81519050919050565b5f82825260208201905092915050565b5f6139708261394c565b61397a8185613956565b935061398a8185602086016128a2565b613993816128b0565b840191505092915050565b5f6080820190506139b15f830187612976565b6139be6020830186612976565b6139cb604083018561299e565b81810360608301526139dd8184613966565b905095945050505050565b5f815190506139f681612727565b92915050565b5f60208284031215613a1157613a106126f4565b5b5f613a1e848285016139e8565b9150509291505056fea2646970667358221220eeeea2da9a9f88a779aab5c30040791a2a05d970b0e804cb4f4823cec4aba5b864736f6c634300081a0033
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.