Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 818 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer From | 24020439 | 73 days ago | IN | 0 ETH | 0.00012788 | ||||
| Safe Transfer Fr... | 20386013 | 581 days ago | IN | 0 ETH | 0.00026118 | ||||
| Set Approval For... | 18167315 | 892 days ago | IN | 0 ETH | 0.00037324 | ||||
| Safe Transfer Fr... | 18069934 | 906 days ago | IN | 0 ETH | 0.00071459 | ||||
| Presale Mint | 16799913 | 1084 days ago | IN | 0 ETH | 0.00131394 | ||||
| Set Approval For... | 16537073 | 1121 days ago | IN | 0 ETH | 0.00182245 | ||||
| Set Approval For... | 16523523 | 1123 days ago | IN | 0 ETH | 0.00092194 | ||||
| Safe Transfer Fr... | 16452756 | 1133 days ago | IN | 0 ETH | 0.00112547 | ||||
| Safe Transfer Fr... | 16452750 | 1133 days ago | IN | 0 ETH | 0.00107434 | ||||
| Set Approval For... | 16452680 | 1133 days ago | IN | 0 ETH | 0.00078753 | ||||
| Safe Transfer Fr... | 16452164 | 1133 days ago | IN | 0 ETH | 0.00113891 | ||||
| Safe Transfer Fr... | 16452156 | 1133 days ago | IN | 0 ETH | 0.00114312 | ||||
| Safe Transfer Fr... | 16452145 | 1133 days ago | IN | 0 ETH | 0.00086099 | ||||
| Safe Transfer Fr... | 16452140 | 1133 days ago | IN | 0 ETH | 0.00085395 | ||||
| Set Approval For... | 16430353 | 1136 days ago | IN | 0 ETH | 0.00105319 | ||||
| Set Approval For... | 16385501 | 1142 days ago | IN | 0 ETH | 0.00127002 | ||||
| Safe Transfer Fr... | 16317213 | 1152 days ago | IN | 0 ETH | 0.00096373 | ||||
| Safe Transfer Fr... | 16317182 | 1152 days ago | IN | 0 ETH | 0.00079552 | ||||
| Safe Transfer Fr... | 16317176 | 1152 days ago | IN | 0 ETH | 0.00114928 | ||||
| Safe Transfer Fr... | 16279787 | 1157 days ago | IN | 0 ETH | 0.00087243 | ||||
| Safe Transfer Fr... | 16279778 | 1157 days ago | IN | 0 ETH | 0.00096495 | ||||
| Safe Transfer Fr... | 16277540 | 1157 days ago | IN | 0 ETH | 0.00095214 | ||||
| Set Approval For... | 16258388 | 1160 days ago | IN | 0 ETH | 0.00025209 | ||||
| Set Approval For... | 16258365 | 1160 days ago | IN | 0 ETH | 0.00026359 | ||||
| Safe Transfer Fr... | 16244629 | 1162 days ago | IN | 0 ETH | 0.00077219 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 16133919 | 1177 days ago | 3.47 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TIALSWorldMembershipPass
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "erc721a/contracts/ERC721A.sol";
contract TIALSWorldMembershipPass is
ERC721A,
ERC2981,
Ownable,
ReentrancyGuard
{
uint256 public constant MAX_SUPPLY = 5000;
uint256 public constant PUBLIC_SALE_MINT_LIMIT = 10;
string private _baseTokenUri;
uint256 public maxSaleSupply = 2222;
string public previewUri;
bool public isRevealed = false;
// Presale
bool public isPresaleActive = false;
bytes32 public presaleMerkleRoot;
// Public sale
bool public isPublicSaleActive = false;
bytes32 public publicSaleMerkleRoot;
uint256 public publicSalePrice = 0.06 ether;
constructor(string memory _previewUri, uint96 _feeNumerator)
ERC721A("TIALS.World Membership Pass", "TIALS")
{
previewUri = _previewUri;
_setDefaultRoyalty(_msgSender(), _feeNumerator);
}
function publicSaleMint(uint256 quantity, address to)
external
payable
nonReentrant
{
require(isPublicSaleActive, "Public sale not active");
require(
totalSupply() + quantity <= maxSaleSupply,
"Max supply reached"
);
require(
_getAux(to) + quantity <= PUBLIC_SALE_MINT_LIMIT,
"Mint limit reached"
);
require(publicSalePrice * quantity == msg.value, "Incorrect payment");
_safeMint(to, quantity);
_setAux(to, uint64(_getAux(to) + quantity));
}
function publicSaleAllowlistMint(
bytes32[] calldata merkleProof,
uint256 quantityAllowed,
uint256 quantity,
address to
) external payable nonReentrant {
require(isPublicSaleActive, "Public sale not active");
require(
totalSupply() + quantity <= maxSaleSupply,
"Max supply reached"
);
require(
calculateMintPrice(to, quantity) == msg.value,
"Incorrect payment"
);
require(
MerkleProof.verify(
merkleProof,
publicSaleMerkleRoot,
keccak256(abi.encodePacked(to, quantityAllowed))
),
"Incorrect merkle proof"
);
require(
_getAux(to) + quantity <= quantityAllowed,
"Mint limit reached"
);
_safeMint(to, quantity);
_setAux(to, uint64(_getAux(to) + quantity));
}
function presaleMint(
bytes32[] calldata merkleProof,
uint256 quantityAllowed,
uint256 quantity,
address to
) external payable nonReentrant {
require(isPresaleActive, "Presale sale not active");
require(
totalSupply() + quantity <= maxSaleSupply,
"Max supply reached"
);
require(
calculateMintPrice(to, quantity) == msg.value,
"Incorrect payment"
);
require(
MerkleProof.verify(
merkleProof,
presaleMerkleRoot,
keccak256(abi.encodePacked(to, quantityAllowed))
),
"Incorrect merkle proof"
);
require(
_getAux(to) + quantity <= quantityAllowed,
"Mint limit reached"
);
_safeMint(to, quantity);
_setAux(to, uint64(_getAux(to) + quantity));
}
// Price helpers
function getPrice(uint256 quantity) public pure returns (uint256 price) {
if (quantity <= 1) price = 0 ether;
else if (quantity == 2) price = 0.06 ether;
else if (quantity == 3) price = 0.10 ether;
else if (quantity == 4) price = 0.12 ether;
else price = (quantity - 1) * 0.03 ether;
}
function calculateMintPrice(address owner, uint256 quantity)
public
view
returns (uint256 price)
{
uint256 amountMinted = _getAux(owner);
if (amountMinted > 0) price = getPrice(quantity + 1);
else price = getPrice(quantity);
}
function getAmountMinted(address owner) external view returns (uint256) {
return _getAux(owner);
}
// Paper helpers
function getPublicSaleAllowlistEligibility(
bytes32[] calldata merkleProof,
uint256 quantityAllowed,
uint256 quantity,
address to
) external view returns (string memory) {
if (!isPublicSaleActive) return "Public sale not active";
if (totalSupply() + quantity > maxSaleSupply)
return "Max supply reached";
if (
!MerkleProof.verify(
merkleProof,
publicSaleMerkleRoot,
keccak256(abi.encodePacked(to, quantityAllowed))
)
) return "Incorrect merkle proof";
if (_getAux(to) + quantity > quantityAllowed)
return "Mint limit reached";
return "";
}
function getPresaleEligibility(
bytes32[] calldata merkleProof,
uint256 quantityAllowed,
uint256 quantity,
address to
) external view returns (string memory) {
if (!isPresaleActive) return "Presale not active";
if (totalSupply() + quantity > maxSaleSupply)
return "Max supply reached";
if (
!MerkleProof.verify(
merkleProof,
presaleMerkleRoot,
keccak256(abi.encodePacked(to, quantityAllowed))
)
) return "Incorrect merkle proof";
if (_getAux(to) + quantity > quantityAllowed)
return "Mint limit reached";
return "";
}
function getPublicSaleEligibility(uint256 quantity, address to)
external
view
returns (string memory)
{
if (!isPublicSaleActive) return "Public sale not active";
if (totalSupply() + quantity > maxSaleSupply)
return "Max supply reached";
if (_getAux(to) + quantity > PUBLIC_SALE_MINT_LIMIT)
return "Mint limit reached";
return "";
}
// Admin
function adminMint(uint256 quantity, address to) public onlyOwner {
require(totalSupply() + quantity <= MAX_SUPPLY, "Max supply reached");
_safeMint(to, quantity);
}
function adminBatchMint(
uint256[] calldata quantities,
address[] calldata receivers
) external onlyOwner {
for (uint256 i = 0; i < receivers.length; i++) {
adminMint(quantities[i], receivers[i]);
}
}
// Sale config
function setMaxSaleSupply(uint256 supply) external onlyOwner {
maxSaleSupply = supply > MAX_SUPPLY ? MAX_SUPPLY : supply;
}
function setPublicSalePrice(uint256 price) external onlyOwner {
publicSalePrice = price;
}
function setPublicSaleActive(bool isActive) external onlyOwner {
isPublicSaleActive = isActive;
}
function setPresaleActive(bool isActive) external onlyOwner {
isPresaleActive = isActive;
}
function setPresaleMerkleRoot(bytes32 merkleRoot) external onlyOwner {
presaleMerkleRoot = merkleRoot;
}
function setPublicSaleMerkleRoot(bytes32 merkleRoot) external onlyOwner {
publicSaleMerkleRoot = merkleRoot;
}
// Token URI
function setPreviewUri(string memory uri) external onlyOwner {
previewUri = uri;
}
function setIsRevealed(bool revealed) external onlyOwner {
isRevealed = revealed;
}
function setBaseURI(string memory baseURI_) external onlyOwner {
_baseTokenUri = baseURI_;
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenUri;
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
if (!isRevealed) return previewUri;
return super.tokenURI(tokenId);
}
// Royalty
function setDefaultRoyalty(address receiver, uint96 feeNumerator)
external
onlyOwner
{
_setDefaultRoyalty(receiver, feeNumerator);
}
function withdraw() external onlyOwner {
payable(owner()).transfer(address(this).balance);
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721A, ERC2981)
returns (bool)
{
// Supports the following `interfaceId`s:
// - IERC165: 0x01ffc9a7
// - IERC721: 0x80ac58cd
// - IERC721Metadata: 0x5b5e139f
// - IERC2981: 0x2a55205a
return
ERC721A.supportsInterface(interfaceId) ||
ERC2981.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev Interface of ERC721 token receiver.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @title ERC721A
*
* @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
* Non-Fungible Token Standard, including the Metadata extension.
* Optimized for lower gas during batch mints.
*
* Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
* starting from `_startTokenId()`.
*
* Assumptions:
*
* - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
* - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
struct TokenApprovalRef {
address value;
}
// =============================================================
// CONSTANTS
// =============================================================
// Mask of an entry in packed address data.
uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant _BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant _BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant _BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant _BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant _BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;
// The bit position of `extraData` in packed ownership.
uint256 private constant _BITPOS_EXTRA_DATA = 232;
// Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;
// The mask of the lower 160 bits for addresses.
uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;
// The maximum `quantity` that can be minted with {_mintERC2309}.
// This limit is to prevent overflows on the address data entries.
// For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
// is required to cause an overflow, which is unrealistic.
uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;
// The `Transfer` event signature is given by:
// `keccak256(bytes("Transfer(address,address,uint256)"))`.
bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;
// =============================================================
// STORAGE
// =============================================================
// The next token ID to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See {_packedOwnershipOf} implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
// - [232..255] `extraData`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => TokenApprovalRef) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
// =============================================================
// CONSTRUCTOR
// =============================================================
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
// =============================================================
// TOKEN COUNTING OPERATIONS
// =============================================================
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view virtual returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() public view virtual override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256) {
// Counter underflow is impossible as `_currentIndex` does not decrement,
// and it is initialized to `_startTokenId()`.
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
// =============================================================
// ADDRESS DATA OPERATIONS
// =============================================================
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal virtual {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
_packedAddressData[owner] = packed;
}
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes
// of the XOR of all function selectors in the interface.
// See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
// (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the token collection symbol.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, it can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
// =============================================================
// OWNERSHIPS OPERATIONS
// =============================================================
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around over time.
*/
function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal virtual {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & _BITMASK_BURNED == 0) {
// Invariant:
// There will always be an initialized ownership slot
// (i.e. `ownership.addr != address(0) && ownership.burned == false`)
// before an unintialized ownership slot
// (i.e. `ownership.addr == address(0) && ownership.burned == false`)
// Hence, `curr` will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed will be zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
ownership.burned = packed & _BITMASK_BURNED != 0;
ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
}
/**
* @dev Packs ownership data into a single uint256.
*/
function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
}
}
/**
* @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
*/
function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
// For branchless setting of the `nextInitialized` flag.
assembly {
// `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
}
}
// =============================================================
// APPROVAL OPERATIONS
// =============================================================
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the
* zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) public payable virtual override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId].value;
}
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted. See {_mint}.
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
*/
function _isSenderApprovedOrOwner(
address approvedAddress,
address owner,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
owner := and(owner, _BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, _BITMASK_ADDRESS)
// `msgSender == owner || msgSender == approvedAddress`.
result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
}
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedSlotAndAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
assembly {
approvedAddressSlot := tokenApproval.slot
approvedAddress := sload(approvedAddressSlot)
}
}
// =============================================================
// TRANSFER OPERATIONS
// =============================================================
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
to,
_BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public payable virtual override {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Hook that is called before a set of serially-ordered token IDs
* are about to be transferred. This includes minting.
* And also called before burning one token.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token IDs
* have been transferred. This includes minting.
* And also called after one token has been burned.
*
* `startTokenId` - the first token ID to be transferred.
* `quantity` - the amount to be transferred.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* `from` - Previous owner of the given token ID.
* `to` - Target address that will receive the token.
* `tokenId` - Token ID to be transferred.
* `_data` - Optional data to send along with the call.
*
* Returns whether the call correctly returned the expected magic value.
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
// =============================================================
// MINT OPERATIONS
// =============================================================
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` and `numberMinted` have a maximum limit of 2**64.
// `tokenId` has a maximum limit of 2**256.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
uint256 toMasked;
uint256 end = startTokenId + quantity;
// Use assembly to loop and emit the `Transfer` event for gas savings.
// The duplicated `log4` removes an extra check and reduces stack juggling.
// The assembly, together with the surrounding Solidity code, have been
// delicately arranged to nudge the compiler into producing optimized opcodes.
assembly {
// Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
toMasked := and(to, _BITMASK_ADDRESS)
// Emit the `Transfer` event.
log4(
0, // Start of data (0, since no data).
0, // End of data (0, since no data).
_TRANSFER_EVENT_SIGNATURE, // Signature.
0, // `address(0)`.
toMasked, // `to`.
startTokenId // `tokenId`.
)
// The `iszero(eq(,))` check ensures that large values of `quantity`
// that overflows uint256 will make the loop run out of gas.
// The compiler will optimize the `iszero` away for performance.
for {
let tokenId := add(startTokenId, 1)
} iszero(eq(tokenId, end)) {
tokenId := add(tokenId, 1)
} {
// Emit the `Transfer` event. Similar to above.
log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
}
}
if (toMasked == 0) revert MintToZeroAddress();
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal virtual {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal virtual {
_safeMint(to, quantity, '');
}
// =============================================================
// BURN OPERATIONS
// =============================================================
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
assembly {
if approvedAddress {
// This is equivalent to `delete _tokenApprovals[tokenId]`.
sstore(approvedAddressSlot, 0)
}
}
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] = _packOwnershipData(
from,
(_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
);
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
// =============================================================
// EXTRA DATA OPERATIONS
// =============================================================
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev Called during each token transfer to set the 24bit `extraData` field.
* Intended to be overridden by the cosumer contract.
*
* `previousExtraData` - the value of `extraData` before transfer.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _extraData(
address from,
address to,
uint24 previousExtraData
) internal view virtual returns (uint24) {}
/**
* @dev Returns the next extra data for the packed ownership data.
* The returned result is shifted into position.
*/
function _nextExtraData(
address from,
address to,
uint256 prevOwnershipPacked
) private view returns (uint256) {
uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
}
// =============================================================
// OTHER OPERATIONS
// =============================================================
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a uint256 to its ASCII string decimal representation.
*/
function _toString(uint256 value) internal pure virtual returns (string memory str) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit), but
// we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
// We will need 1 word for the trailing zeros padding, 1 word for the length,
// and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
let m := add(mload(0x40), 0xa0)
// Update the free memory pointer to allocate.
mstore(0x40, m)
// Assign the `str` to the end.
str := sub(m, 0x20)
// Zeroize the slot after the string.
mstore(str, 0)
// Cache the end of the memory to calculate the length later.
let end := str
// We write the string from rightmost digit to leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// prettier-ignore
for { let temp := value } 1 {} {
str := sub(str, 1)
// Write the character to the pointer.
// The ASCII index of the '0' character is 48.
mstore8(str, add(48, mod(temp, 10)))
// Keep dividing `temp` until zero.
temp := div(temp, 10)
// prettier-ignore
if iszero(temp) { break }
}
let length := sub(end, str)
// Move the pointer 32 bytes leftwards to make room for the length.
str := sub(str, 0x20)
// Store the length.
mstore(str, length)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)
pragma solidity ^0.8.0;
import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
*
* Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
* specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
*
* Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
* fee is specified in basis points by default.
*
* IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
* https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
* voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
*
* _Available since v4.5._
*/
abstract contract ERC2981 is IERC2981, ERC165 {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @inheritdoc IERC2981
*/
function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];
if (royalty.receiver == address(0)) {
royalty = _defaultRoyaltyInfo;
}
uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();
return (royalty.receiver, royaltyAmount);
}
/**
* @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
* fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
* override.
*/
function _feeDenominator() internal pure virtual returns (uint96) {
return 10000;
}
/**
* @dev Sets the royalty information that all ids in this contract will default to.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: invalid receiver");
_defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Removes default royalty information.
*/
function _deleteDefaultRoyalty() internal virtual {
delete _defaultRoyaltyInfo;
}
/**
* @dev Sets the royalty information for a specific token id, overriding the global default.
*
* Requirements:
*
* - `receiver` cannot be the zero address.
* - `feeNumerator` cannot be greater than the fee denominator.
*/
function _setTokenRoyalty(
uint256 tokenId,
address receiver,
uint96 feeNumerator
) internal virtual {
require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
require(receiver != address(0), "ERC2981: Invalid parameters");
_tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
}
/**
* @dev Resets royalty information for the token id back to the global default.
*/
function _resetTokenRoyalty(uint256 tokenId) internal virtual {
delete _tokenRoyaltyInfo[tokenId];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*
* WARNING: You should avoid using leaf values that are 64 bytes long prior to
* hashing, or use a hash function other than keccak256 for hashing leaves.
* This is because the concatenation of a sorted pair of internal nodes in
* the merkle tree could be reinterpreted as a leaf value.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Calldata version of {verify}
*
* _Available since v4.7._
*/
function verifyCalldata(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Calldata version of {processProof}
*
* _Available since v4.7._
*/
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* _Available since v4.7._
*/
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
/**
* @dev Calldata version of {multiProofVerify}
*
* _Available since v4.7._
*/
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
* consuming from one or the other at each step according to the instructions given by
* `proofFlags`.
*
* _Available since v4.7._
*/
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Calldata version of {processMultiProof}
*
* _Available since v4.7._
*/
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721A.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the
* ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
/**
* The `quantity` minted with ERC2309 exceeds the safety limit.
*/
error MintERC2309QuantityExceedsLimit();
/**
* The `extraData` cannot be set on an unintialized ownership slot.
*/
error OwnershipNotInitializedForExtraData();
// =============================================================
// STRUCTS
// =============================================================
struct TokenOwnership {
// The address of the owner.
address addr;
// Stores the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
uint24 extraData;
}
// =============================================================
// TOKEN COUNTERS
// =============================================================
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see {_totalMinted}.
*/
function totalSupply() external view returns (uint256);
// =============================================================
// IERC165
// =============================================================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
* to learn more about how these ids are created.
*
* This function call must use less than 30000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// =============================================================
// IERC721
// =============================================================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables
* (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in `owner`'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`,
* checking first that contract recipients are aware of the ERC721 protocol
* to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move
* this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external payable;
/**
* @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom}
* whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token
* by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external payable;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the
* zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external payable;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom}
* for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
// =============================================================
// IERC721Metadata
// =============================================================
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
// =============================================================
// IERC2309
// =============================================================
/**
* @dev Emitted when tokens in `fromTokenId` to `toTokenId`
* (inclusive) is transferred from `from` to `to`, as defined in the
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
*
* See {_mintERC2309} for more details.
*/
event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard.
*
* A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
* support for royalty payments across all NFT marketplaces and ecosystem participants.
*
* _Available since v4.5._
*/
interface IERC2981 is IERC165 {
/**
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_previewUri","type":"string"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"adminBatchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"calculateMintPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getAmountMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityAllowed","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"getPresaleEligibility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityAllowed","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"getPublicSaleAllowlistEligibility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"getPublicSaleEligibility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSaleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityAllowed","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"previewUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityAllowed","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"publicSaleAllowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"revealed","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSaleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setPreviewUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPublicSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPublicSalePrice","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":"","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
60806040526108ae600d556000600f60006101000a81548160ff0219169083151502179055506000600f60016101000a81548160ff0219169083151502179055506000601160006101000a81548160ff02191690831515021790555066d529ae9e8600006013553480156200007357600080fd5b50604051620052a8380380620052a8833981810160405281019062000099919062000573565b6040518060400160405280601b81526020017f5449414c532e576f726c64204d656d62657273686970205061737300000000008152506040518060400160405280600581526020017f5449414c5300000000000000000000000000000000000000000000000000000081525081600290805190602001906200011d9291906200043a565b508060039080519060200190620001369291906200043a565b5062000147620001b960201b60201c565b60008190555050506200016f62000163620001be60201b60201c565b620001c660201b60201c565b6001600b8190555081600e90805190602001906200018f9291906200043a565b50620001b1620001a4620001be60201b60201c565b826200028c60201b60201c565b50506200088a565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200029c6200043060201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620002fd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f4906200061b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000367906200063d565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b82805462000448906200071d565b90600052602060002090601f0160209004810192826200046c5760008555620004b8565b82601f106200048757805160ff1916838001178555620004b8565b82800160010185558215620004b8579182015b82811115620004b75782518255916020019190600101906200049a565b5b509050620004c79190620004cb565b5090565b5b80821115620004e6576000816000905550600101620004cc565b5090565b600062000501620004fb8462000688565b6200065f565b9050828152602081018484840111156200051a57600080fd5b62000527848285620006e7565b509392505050565b600082601f8301126200054157600080fd5b815162000553848260208601620004ea565b91505092915050565b6000815190506200056d8162000870565b92915050565b600080604083850312156200058757600080fd5b600083015167ffffffffffffffff811115620005a257600080fd5b620005b0858286016200052f565b9250506020620005c3858286016200055c565b9150509250929050565b6000620005dc602a83620006be565b9150620005e982620007f8565b604082019050919050565b600062000603601983620006be565b9150620006108262000847565b602082019050919050565b600060208201905081810360008301526200063681620005cd565b9050919050565b600060208201905081810360008301526200065881620005f4565b9050919050565b60006200066b6200067e565b905062000679828262000753565b919050565b6000604051905090565b600067ffffffffffffffff821115620006a657620006a5620007b8565b5b620006b182620007e7565b9050602081019050919050565b600082825260208201905092915050565b60006bffffffffffffffffffffffff82169050919050565b60005b8381101562000707578082015181840152602081019050620006ea565b8381111562000717576000848401525b50505050565b600060028204905060018216806200073657607f821691505b602082108114156200074d576200074c62000789565b5b50919050565b6200075e82620007e7565b810181811067ffffffffffffffff8211171562000780576200077f620007b8565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6200087b81620006cf565b81146200088757600080fd5b50565b614a0e806200089a6000396000f3fe6080604052600436106102c95760003560e01c806360d938dc11610175578063a22cb465116100dc578063caa6495311610095578063e43870511161006f578063e438705114610ab3578063e757223014610acf578063e985e9c514610b0c578063f2fde38b14610b49576102c9565b8063caa6495314610a22578063d1b5a3e314610a5f578063e2e06fa314610a8a576102c9565b8063a22cb4651461090f578063aa1906e714610938578063b184177614610961578063b29418d51461099e578063b88d4fde146109c9578063c87b56dd146109e5576102c9565b8063791a25191161012e578063791a2519146107ff57806385ea468c146108285780638da5cb5b1461085157806395d89b411461087c57806398317f05146108a75780639b6860c8146108e4576102c9565b806360d938dc146106ea5780636352211e146107155780636eb168011461075257806370a082311461076e578063715018a6146107ab57806376d8183c146107c2576102c9565b80632a55205a116102345780633f8121a2116101ed5780634889b940116101c75780634889b9401461064257806349a5980a1461066d57806354214f691461069657806355f804b3146106c1576102c9565b80633f8121a2146105d457806342842e0e146105fd57806346d2150614610619576102c9565b80632a55205a146104e45780632ae322f81461052257806332cb6b0c1461054d57806338257dd8146105785780633ccfd60b146105a15780633ed0371e146105b8576102c9565b80630dc28efe116102865780630dc28efe146103f557806318160ddd1461041e5780631e84c4131461044957806322212e2b1461047457806323b872dd1461049f57806328d7b276146104bb576102c9565b806301ffc9a7146102ce578063030cdd4f1461030b57806304634d8d1461034857806306fdde0314610371578063081812fc1461039c578063095ea7b3146103d9575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190613c5f565b610b72565b6040516103029190614101565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190613935565b610b94565b60405161033f91906142b9565b60405180910390f35b34801561035457600080fd5b5061036f600480360381019061036a9190613adc565b610bb0565b005b34801561037d57600080fd5b50610386610bc6565b6040516103939190614137565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be9190613cf2565b610c58565b6040516103d09190614071565b60405180910390f35b6103f360048036038101906103ee9190613aa0565b610cd7565b005b34801561040157600080fd5b5061041c60048036038101906104179190613d1b565b610e1b565b005b34801561042a57600080fd5b50610433610e88565b60405161044091906142b9565b60405180910390f35b34801561045557600080fd5b5061045e610e9f565b60405161046b9190614101565b60405180910390f35b34801561048057600080fd5b50610489610eb2565b604051610496919061411c565b60405180910390f35b6104b960048036038101906104b4919061399a565b610eb8565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190613c36565b6111dd565b005b3480156104f057600080fd5b5061050b60048036038101906105069190613d57565b6111ef565b6040516105199291906140d8565b60405180910390f35b34801561052e57600080fd5b506105376113da565b604051610544919061411c565b60405180910390f35b34801561055957600080fd5b506105626113e0565b60405161056f91906142b9565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613cb1565b6113e6565b005b3480156105ad57600080fd5b506105b6611408565b005b6105d260048036038101906105cd9190613b18565b611460565b005b3480156105e057600080fd5b506105fb60048036038101906105f69190613c0d565b6116f4565b005b6106176004803603810190610612919061399a565b611719565b005b34801561062557600080fd5b50610640600480360381019061063b9190613b98565b611739565b005b34801561064e57600080fd5b506106576117ff565b60405161066491906142b9565b60405180910390f35b34801561067957600080fd5b50610694600480360381019061068f9190613c0d565b611804565b005b3480156106a257600080fd5b506106ab611829565b6040516106b89190614101565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e39190613cb1565b61183c565b005b3480156106f657600080fd5b506106ff61185e565b60405161070c9190614101565b60405180910390f35b34801561072157600080fd5b5061073c60048036038101906107379190613cf2565b611871565b6040516107499190614071565b60405180910390f35b61076c60048036038101906107679190613b18565b611883565b005b34801561077a57600080fd5b5061079560048036038101906107909190613935565b611b17565b6040516107a291906142b9565b60405180910390f35b3480156107b757600080fd5b506107c0611bd0565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190613b18565b611be4565b6040516107f69190614137565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190613cf2565b611dc5565b005b34801561083457600080fd5b5061084f600480360381019061084a9190613c36565b611dd7565b005b34801561085d57600080fd5b50610866611de9565b6040516108739190614071565b60405180910390f35b34801561088857600080fd5b50610891611e13565b60405161089e9190614137565b60405180910390f35b3480156108b357600080fd5b506108ce60048036038101906108c99190613aa0565b611ea5565b6040516108db91906142b9565b60405180910390f35b3480156108f057600080fd5b506108f9611ef5565b60405161090691906142b9565b60405180910390f35b34801561091b57600080fd5b5061093660048036038101906109319190613a64565b611efb565b005b34801561094457600080fd5b5061095f600480360381019061095a9190613cf2565b612006565b005b34801561096d57600080fd5b5061098860048036038101906109839190613b18565b61202a565b6040516109959190614137565b60405180910390f35b3480156109aa57600080fd5b506109b361220b565b6040516109c091906142b9565b60405180910390f35b6109e360048036038101906109de91906139e9565b612211565b005b3480156109f157600080fd5b50610a0c6004803603810190610a079190613cf2565b612284565b604051610a199190614137565b60405180910390f35b348015610a2e57600080fd5b50610a496004803603810190610a449190613d1b565b61233d565b604051610a569190614137565b60405180910390f35b348015610a6b57600080fd5b50610a74612465565b604051610a819190614137565b60405180910390f35b348015610a9657600080fd5b50610ab16004803603810190610aac9190613c0d565b6124f3565b005b610acd6004803603810190610ac89190613d1b565b612518565b005b348015610adb57600080fd5b50610af66004803603810190610af19190613cf2565b6126f9565b604051610b0391906142b9565b60405180910390f35b348015610b1857600080fd5b50610b336004803603810190610b2e919061395e565b612780565b604051610b409190614101565b60405180910390f35b348015610b5557600080fd5b50610b706004803603810190610b6b9190613935565b612814565b005b6000610b7d82612898565b80610b8d5750610b8c8261292a565b5b9050919050565b6000610b9f826129a4565b67ffffffffffffffff169050919050565b610bb86129f1565b610bc28282612a6f565b5050565b606060028054610bd59061458b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c019061458b565b8015610c4e5780601f10610c2357610100808354040283529160200191610c4e565b820191906000526020600020905b815481529060010190602001808311610c3157829003601f168201915b5050505050905090565b6000610c6382612c05565b610c99576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ce282611871565b90508073ffffffffffffffffffffffffffffffffffffffff16610d03612c64565b73ffffffffffffffffffffffffffffffffffffffff1614610d6657610d2f81610d2a612c64565b612780565b610d65576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610e236129f1565b61138882610e2f610e88565b610e39919061439e565b1115610e7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7190614239565b60405180910390fd5b610e848183612c6c565b5050565b6000610e92612c8a565b6001546000540303905090565b601160009054906101000a900460ff1681565b60105481565b6000610ec382612c8f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f3684612d5d565b91509150610f4c8187610f47612c64565b612d84565b610f9857610f6186610f5c612c64565b612780565b610f97576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fff576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61100c8686866001612dc8565b801561101757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110e5856110c1888887612dce565b7c020000000000000000000000000000000000000000000000000000000017612df6565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561116d57600060018501905060006004600083815260200190815260200160002054141561116b57600054811461116a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111d58686866001612e21565b505050505050565b6111e56129f1565b8060108190555050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156113855760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061138f612e27565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866113bb9190614425565b6113c591906143f4565b90508160000151819350935050509250929050565b60125481565b61138881565b6113ee6129f1565b80600e9080519060200190611404929190613651565b5050565b6114106129f1565b611418611de9565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561145d573d6000803e3d6000fd5b50565b6002600b5414156114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d90614279565b60405180910390fd5b6002600b81905550600f60019054906101000a900460ff166114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f490614219565b60405180910390fd5b600d5482611509610e88565b611513919061439e565b1115611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154b90614239565b60405180910390fd5b3461155f8284611ea5565b1461159f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159690614159565b60405180910390fd5b611615858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483866040516020016115fa929190614021565b60405160208183030381529060405280519060200120612e31565b611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b906141b9565b60405180910390fd5b828261165f836129a4565b67ffffffffffffffff16611673919061439e565b11156116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ab90614179565b60405180910390fd5b6116be8183612c6c565b6116e581836116cc846129a4565b67ffffffffffffffff166116e0919061439e565b612e48565b6001600b819055505050505050565b6116fc6129f1565b80600f60016101000a81548160ff02191690831515021790555050565b61173483838360405180602001604052806000815250612211565b505050565b6117416129f1565b60005b828290508110156117f8576117e585858381811061178b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358484848181106117cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906117e09190613935565b610e1b565b80806117f0906145ee565b915050611744565b5050505050565b600a81565b61180c6129f1565b80600f60006101000a81548160ff02191690831515021790555050565b600f60009054906101000a900460ff1681565b6118446129f1565b80600c908051906020019061185a929190613651565b5050565b600f60019054906101000a900460ff1681565b600061187c82612c8f565b9050919050565b6002600b5414156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c090614279565b60405180910390fd5b6002600b81905550601160009054906101000a900460ff16611920576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611917906141d9565b60405180910390fd5b600d548261192c610e88565b611936919061439e565b1115611977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196e90614239565b60405180910390fd5b346119828284611ea5565b146119c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b990614159565b60405180910390fd5b611a38858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548386604051602001611a1d929190614021565b60405160208183030381529060405280519060200120612e31565b611a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6e906141b9565b60405180910390fd5b8282611a82836129a4565b67ffffffffffffffff16611a96919061439e565b1115611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90614179565b60405180910390fd5b611ae18183612c6c565b611b088183611aef846129a4565b67ffffffffffffffff16611b03919061439e565b612e48565b6001600b819055505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b7f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611bd86129f1565b611be26000612efe565b565b6060600f60019054906101000a900460ff16611c37576040518060400160405280601281526020017f50726573616c65206e6f742061637469766500000000000000000000000000008152509050611dbc565b600d5483611c43610e88565b611c4d919061439e565b1115611c90576040518060400160405280601281526020017f4d617820737570706c79207265616368656400000000000000000000000000008152509050611dbc565b611d06868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010548487604051602001611ceb929190614021565b60405160208183030381529060405280519060200120612e31565b611d47576040518060400160405280601681526020017f496e636f7272656374206d65726b6c652070726f6f66000000000000000000008152509050611dbc565b8383611d52846129a4565b67ffffffffffffffff16611d66919061439e565b1115611da9576040518060400160405280601281526020017f4d696e74206c696d6974207265616368656400000000000000000000000000008152509050611dbc565b6040518060200160405280600081525090505b95945050505050565b611dcd6129f1565b8060138190555050565b611ddf6129f1565b8060128190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611e229061458b565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4e9061458b565b8015611e9b5780601f10611e7057610100808354040283529160200191611e9b565b820191906000526020600020905b815481529060010190602001808311611e7e57829003601f168201915b5050505050905090565b600080611eb1846129a4565b67ffffffffffffffff1690506000811115611ee257611edb600184611ed6919061439e565b6126f9565b9150611eee565b611eeb836126f9565b91505b5092915050565b60135481565b8060076000611f08612c64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611fb5612c64565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ffa9190614101565b60405180910390a35050565b61200e6129f1565b611388811161201d5780612021565b6113885b600d8190555050565b6060601160009054906101000a900460ff1661207d576040518060400160405280601681526020017f5075626c69632073616c65206e6f7420616374697665000000000000000000008152509050612202565b600d5483612089610e88565b612093919061439e565b11156120d6576040518060400160405280601281526020017f4d617820737570706c79207265616368656400000000000000000000000000008152509050612202565b61214c868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548487604051602001612131929190614021565b60405160208183030381529060405280519060200120612e31565b61218d576040518060400160405280601681526020017f496e636f7272656374206d65726b6c652070726f6f66000000000000000000008152509050612202565b8383612198846129a4565b67ffffffffffffffff166121ac919061439e565b11156121ef576040518060400160405280601281526020017f4d696e74206c696d6974207265616368656400000000000000000000000000008152509050612202565b6040518060200160405280600081525090505b95945050505050565b600d5481565b61221c848484610eb8565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461227e5761224784848484612fc4565b61227d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600f60009054906101000a900460ff1661232c57600e80546122a79061458b565b80601f01602080910402602001604051908101604052809291908181526020018280546122d39061458b565b80156123205780601f106122f557610100808354040283529160200191612320565b820191906000526020600020905b81548152906001019060200180831161230357829003601f168201915b50505050509050612338565b61233582613124565b90505b919050565b6060601160009054906101000a900460ff16612390576040518060400160405280601681526020017f5075626c69632073616c65206e6f742061637469766500000000000000000000815250905061245f565b600d548361239c610e88565b6123a6919061439e565b11156123e9576040518060400160405280601281526020017f4d617820737570706c7920726561636865640000000000000000000000000000815250905061245f565b600a836123f5846129a4565b67ffffffffffffffff16612409919061439e565b111561244c576040518060400160405280601281526020017f4d696e74206c696d697420726561636865640000000000000000000000000000815250905061245f565b6040518060200160405280600081525090505b92915050565b600e80546124729061458b565b80601f016020809104026020016040519081016040528092919081815260200182805461249e9061458b565b80156124eb5780601f106124c0576101008083540402835291602001916124eb565b820191906000526020600020905b8154815290600101906020018083116124ce57829003601f168201915b505050505081565b6124fb6129f1565b80601160006101000a81548160ff02191690831515021790555050565b6002600b54141561255e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255590614279565b60405180910390fd5b6002600b81905550601160009054906101000a900460ff166125b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ac906141d9565b60405180910390fd5b600d54826125c1610e88565b6125cb919061439e565b111561260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614239565b60405180910390fd5b600a82612618836129a4565b67ffffffffffffffff1661262c919061439e565b111561266d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266490614179565b60405180910390fd5b348260135461267c9190614425565b146126bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b390614159565b60405180910390fd5b6126c68183612c6c565b6126ed81836126d4846129a4565b67ffffffffffffffff166126e8919061439e565b612e48565b6001600b819055505050565b60006001821161270c576000905061277b565b60028214156127245766d529ae9e860000905061277a565b600382141561273d5767016345785d8a00009050612779565b6004821415612756576701aa535d3d0c00009050612778565b666a94d74f43000060018361276b919061447f565b6127759190614425565b90505b5b5b5b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61281c6129f1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561288c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288390614199565b60405180910390fd5b61289581612efe565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128f357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806129235750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061299d575061299c826131c3565b5b9050919050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6129f961322d565b73ffffffffffffffffffffffffffffffffffffffff16612a17611de9565b73ffffffffffffffffffffffffffffffffffffffff1614612a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a64906141f9565b60405180910390fd5b565b612a77612e27565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acc90614259565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3c90614299565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081612c10612c8a565b11158015612c1f575060005482105b8015612c5d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b612c86828260405180602001604052806000815250613235565b5050565b600090565b60008082905080612c9e612c8a565b11612d2657600054811015612d255760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612d23575b6000811415612d19576004600083600190039350838152602001908152602001600020549050612cee565b8092505050612d58565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612de58686846132d2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b600082612e3e85846132db565b1490509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fea612c64565b8786866040518563ffffffff1660e01b815260040161300c949392919061408c565b602060405180830381600087803b15801561302657600080fd5b505af192505050801561305757506040513d601f19601f820116820180604052508101906130549190613c88565b60015b6130d1573d8060008114613087576040519150601f19603f3d011682016040523d82523d6000602084013e61308c565b606091505b506000815114156130c9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606061312f82612c05565b613165576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061316f613357565b905060008151141561319057604051806020016040528060008152506131bb565b8061319a846133e9565b6040516020016131ab92919061404d565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b61323f8383613442565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132cd57600080549050600083820390505b61327f6000868380600101945086612fc4565b6132b5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061326c5781600054146132ca57600080fd5b50505b505050565b60009392505050565b60008082905060005b845181101561334c576133378286838151811061332a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516135ff565b91508080613344906145ee565b9150506132e4565b508091505092915050565b6060600c80546133669061458b565b80601f01602080910402602001604051908101604052809291908181526020018280546133929061458b565b80156133df5780601f106133b4576101008083540402835291602001916133df565b820191906000526020600020905b8154815290600101906020018083116133c257829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561342d57600184039350600a81066030018453600a81049050806134285761342d565b613402565b50828103602084039350808452505050919050565b6000805490506000821415613483576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134906000848385612dc8565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613507836134f86000866000612dce565b6135018561362a565b17612df6565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146135a857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061356d565b5060008214156135e4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506135fa6000848385612e21565b505050565b600081831061361757613612828461363a565b613622565b613621838361363a565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b82805461365d9061458b565b90600052602060002090601f01602090048101928261367f57600085556136c6565b82601f1061369857805160ff19168380011785556136c6565b828001600101855582156136c6579182015b828111156136c55782518255916020019190600101906136aa565b5b5090506136d391906136d7565b5090565b5b808211156136f05760008160009055506001016136d8565b5090565b6000613707613702846142f9565b6142d4565b90508281526020810184848401111561371f57600080fd5b61372a848285614549565b509392505050565b60006137456137408461432a565b6142d4565b90508281526020810184848401111561375d57600080fd5b613768848285614549565b509392505050565b60008135905061377f8161494e565b92915050565b60008083601f84011261379757600080fd5b8235905067ffffffffffffffff8111156137b057600080fd5b6020830191508360208202830111156137c857600080fd5b9250929050565b60008083601f8401126137e157600080fd5b8235905067ffffffffffffffff8111156137fa57600080fd5b60208301915083602082028301111561381257600080fd5b9250929050565b60008083601f84011261382b57600080fd5b8235905067ffffffffffffffff81111561384457600080fd5b60208301915083602082028301111561385c57600080fd5b9250929050565b60008135905061387281614965565b92915050565b6000813590506138878161497c565b92915050565b60008135905061389c81614993565b92915050565b6000815190506138b181614993565b92915050565b600082601f8301126138c857600080fd5b81356138d88482602086016136f4565b91505092915050565b600082601f8301126138f257600080fd5b8135613902848260208601613732565b91505092915050565b60008135905061391a816149aa565b92915050565b60008135905061392f816149c1565b92915050565b60006020828403121561394757600080fd5b600061395584828501613770565b91505092915050565b6000806040838503121561397157600080fd5b600061397f85828601613770565b925050602061399085828601613770565b9150509250929050565b6000806000606084860312156139af57600080fd5b60006139bd86828701613770565b93505060206139ce86828701613770565b92505060406139df8682870161390b565b9150509250925092565b600080600080608085870312156139ff57600080fd5b6000613a0d87828801613770565b9450506020613a1e87828801613770565b9350506040613a2f8782880161390b565b925050606085013567ffffffffffffffff811115613a4c57600080fd5b613a58878288016138b7565b91505092959194509250565b60008060408385031215613a7757600080fd5b6000613a8585828601613770565b9250506020613a9685828601613863565b9150509250929050565b60008060408385031215613ab357600080fd5b6000613ac185828601613770565b9250506020613ad28582860161390b565b9150509250929050565b60008060408385031215613aef57600080fd5b6000613afd85828601613770565b9250506020613b0e85828601613920565b9150509250929050565b600080600080600060808688031215613b3057600080fd5b600086013567ffffffffffffffff811115613b4a57600080fd5b613b56888289016137cf565b95509550506020613b698882890161390b565b9350506040613b7a8882890161390b565b9250506060613b8b88828901613770565b9150509295509295909350565b60008060008060408587031215613bae57600080fd5b600085013567ffffffffffffffff811115613bc857600080fd5b613bd487828801613819565b9450945050602085013567ffffffffffffffff811115613bf357600080fd5b613bff87828801613785565b925092505092959194509250565b600060208284031215613c1f57600080fd5b6000613c2d84828501613863565b91505092915050565b600060208284031215613c4857600080fd5b6000613c5684828501613878565b91505092915050565b600060208284031215613c7157600080fd5b6000613c7f8482850161388d565b91505092915050565b600060208284031215613c9a57600080fd5b6000613ca8848285016138a2565b91505092915050565b600060208284031215613cc357600080fd5b600082013567ffffffffffffffff811115613cdd57600080fd5b613ce9848285016138e1565b91505092915050565b600060208284031215613d0457600080fd5b6000613d128482850161390b565b91505092915050565b60008060408385031215613d2e57600080fd5b6000613d3c8582860161390b565b9250506020613d4d85828601613770565b9150509250929050565b60008060408385031215613d6a57600080fd5b6000613d788582860161390b565b9250506020613d898582860161390b565b9150509250929050565b613d9c816144b3565b82525050565b613db3613dae826144b3565b614637565b82525050565b613dc2816144c5565b82525050565b613dd1816144d1565b82525050565b6000613de28261435b565b613dec8185614371565b9350613dfc818560208601614558565b613e0581614721565b840191505092915050565b6000613e1b82614366565b613e258185614382565b9350613e35818560208601614558565b613e3e81614721565b840191505092915050565b6000613e5482614366565b613e5e8185614393565b9350613e6e818560208601614558565b80840191505092915050565b6000613e87601183614382565b9150613e928261473f565b602082019050919050565b6000613eaa601283614382565b9150613eb582614768565b602082019050919050565b6000613ecd602683614382565b9150613ed882614791565b604082019050919050565b6000613ef0601683614382565b9150613efb826147e0565b602082019050919050565b6000613f13601683614382565b9150613f1e82614809565b602082019050919050565b6000613f36602083614382565b9150613f4182614832565b602082019050919050565b6000613f59601783614382565b9150613f648261485b565b602082019050919050565b6000613f7c601283614382565b9150613f8782614884565b602082019050919050565b6000613f9f602a83614382565b9150613faa826148ad565b604082019050919050565b6000613fc2601f83614382565b9150613fcd826148fc565b602082019050919050565b6000613fe5601983614382565b9150613ff082614925565b602082019050919050565b61400481614527565b82525050565b61401b61401682614527565b61465b565b82525050565b600061402d8285613da2565b60148201915061403d828461400a565b6020820191508190509392505050565b60006140598285613e49565b91506140658284613e49565b91508190509392505050565b60006020820190506140866000830184613d93565b92915050565b60006080820190506140a16000830187613d93565b6140ae6020830186613d93565b6140bb6040830185613ffb565b81810360608301526140cd8184613dd7565b905095945050505050565b60006040820190506140ed6000830185613d93565b6140fa6020830184613ffb565b9392505050565b60006020820190506141166000830184613db9565b92915050565b60006020820190506141316000830184613dc8565b92915050565b600060208201905081810360008301526141518184613e10565b905092915050565b6000602082019050818103600083015261417281613e7a565b9050919050565b6000602082019050818103600083015261419281613e9d565b9050919050565b600060208201905081810360008301526141b281613ec0565b9050919050565b600060208201905081810360008301526141d281613ee3565b9050919050565b600060208201905081810360008301526141f281613f06565b9050919050565b6000602082019050818103600083015261421281613f29565b9050919050565b6000602082019050818103600083015261423281613f4c565b9050919050565b6000602082019050818103600083015261425281613f6f565b9050919050565b6000602082019050818103600083015261427281613f92565b9050919050565b6000602082019050818103600083015261429281613fb5565b9050919050565b600060208201905081810360008301526142b281613fd8565b9050919050565b60006020820190506142ce6000830184613ffb565b92915050565b60006142de6142ef565b90506142ea82826145bd565b919050565b6000604051905090565b600067ffffffffffffffff821115614314576143136146f2565b5b61431d82614721565b9050602081019050919050565b600067ffffffffffffffff821115614345576143446146f2565b5b61434e82614721565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006143a982614527565b91506143b483614527565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143e9576143e8614665565b5b828201905092915050565b60006143ff82614527565b915061440a83614527565b92508261441a57614419614694565b5b828204905092915050565b600061443082614527565b915061443b83614527565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561447457614473614665565b5b828202905092915050565b600061448a82614527565b915061449583614527565b9250828210156144a8576144a7614665565b5b828203905092915050565b60006144be82614507565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561457657808201518184015260208101905061455b565b83811115614585576000848401525b50505050565b600060028204905060018216806145a357607f821691505b602082108114156145b7576145b66146c3565b5b50919050565b6145c682614721565b810181811067ffffffffffffffff821117156145e5576145e46146f2565b5b80604052505050565b60006145f982614527565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561462c5761462b614665565b5b600182019050919050565b600061464282614649565b9050919050565b600061465482614732565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f496e636f7272656374207061796d656e74000000000000000000000000000000600082015250565b7f4d696e74206c696d697420726561636865640000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e636f7272656374206d65726b6c652070726f6f6600000000000000000000600082015250565b7f5075626c69632073616c65206e6f742061637469766500000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f50726573616c652073616c65206e6f7420616374697665000000000000000000600082015250565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b614957816144b3565b811461496257600080fd5b50565b61496e816144c5565b811461497957600080fd5b50565b614985816144d1565b811461499057600080fd5b50565b61499c816144db565b81146149a757600080fd5b50565b6149b381614527565b81146149be57600080fd5b50565b6149ca81614531565b81146149d557600080fd5b5056fea2646970667358221220544339d424e9490b6470b3f19bf50679f6426c33eba3ab0d2704d985b16dc35d64736f6c63430008040033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961363234623562723769736937726168636a7a33376d72627037636d707a66366561673265726f75336f77786364746236673569000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c806360d938dc11610175578063a22cb465116100dc578063caa6495311610095578063e43870511161006f578063e438705114610ab3578063e757223014610acf578063e985e9c514610b0c578063f2fde38b14610b49576102c9565b8063caa6495314610a22578063d1b5a3e314610a5f578063e2e06fa314610a8a576102c9565b8063a22cb4651461090f578063aa1906e714610938578063b184177614610961578063b29418d51461099e578063b88d4fde146109c9578063c87b56dd146109e5576102c9565b8063791a25191161012e578063791a2519146107ff57806385ea468c146108285780638da5cb5b1461085157806395d89b411461087c57806398317f05146108a75780639b6860c8146108e4576102c9565b806360d938dc146106ea5780636352211e146107155780636eb168011461075257806370a082311461076e578063715018a6146107ab57806376d8183c146107c2576102c9565b80632a55205a116102345780633f8121a2116101ed5780634889b940116101c75780634889b9401461064257806349a5980a1461066d57806354214f691461069657806355f804b3146106c1576102c9565b80633f8121a2146105d457806342842e0e146105fd57806346d2150614610619576102c9565b80632a55205a146104e45780632ae322f81461052257806332cb6b0c1461054d57806338257dd8146105785780633ccfd60b146105a15780633ed0371e146105b8576102c9565b80630dc28efe116102865780630dc28efe146103f557806318160ddd1461041e5780631e84c4131461044957806322212e2b1461047457806323b872dd1461049f57806328d7b276146104bb576102c9565b806301ffc9a7146102ce578063030cdd4f1461030b57806304634d8d1461034857806306fdde0314610371578063081812fc1461039c578063095ea7b3146103d9575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190613c5f565b610b72565b6040516103029190614101565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190613935565b610b94565b60405161033f91906142b9565b60405180910390f35b34801561035457600080fd5b5061036f600480360381019061036a9190613adc565b610bb0565b005b34801561037d57600080fd5b50610386610bc6565b6040516103939190614137565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be9190613cf2565b610c58565b6040516103d09190614071565b60405180910390f35b6103f360048036038101906103ee9190613aa0565b610cd7565b005b34801561040157600080fd5b5061041c60048036038101906104179190613d1b565b610e1b565b005b34801561042a57600080fd5b50610433610e88565b60405161044091906142b9565b60405180910390f35b34801561045557600080fd5b5061045e610e9f565b60405161046b9190614101565b60405180910390f35b34801561048057600080fd5b50610489610eb2565b604051610496919061411c565b60405180910390f35b6104b960048036038101906104b4919061399a565b610eb8565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190613c36565b6111dd565b005b3480156104f057600080fd5b5061050b60048036038101906105069190613d57565b6111ef565b6040516105199291906140d8565b60405180910390f35b34801561052e57600080fd5b506105376113da565b604051610544919061411c565b60405180910390f35b34801561055957600080fd5b506105626113e0565b60405161056f91906142b9565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613cb1565b6113e6565b005b3480156105ad57600080fd5b506105b6611408565b005b6105d260048036038101906105cd9190613b18565b611460565b005b3480156105e057600080fd5b506105fb60048036038101906105f69190613c0d565b6116f4565b005b6106176004803603810190610612919061399a565b611719565b005b34801561062557600080fd5b50610640600480360381019061063b9190613b98565b611739565b005b34801561064e57600080fd5b506106576117ff565b60405161066491906142b9565b60405180910390f35b34801561067957600080fd5b50610694600480360381019061068f9190613c0d565b611804565b005b3480156106a257600080fd5b506106ab611829565b6040516106b89190614101565b60405180910390f35b3480156106cd57600080fd5b506106e860048036038101906106e39190613cb1565b61183c565b005b3480156106f657600080fd5b506106ff61185e565b60405161070c9190614101565b60405180910390f35b34801561072157600080fd5b5061073c60048036038101906107379190613cf2565b611871565b6040516107499190614071565b60405180910390f35b61076c60048036038101906107679190613b18565b611883565b005b34801561077a57600080fd5b5061079560048036038101906107909190613935565b611b17565b6040516107a291906142b9565b60405180910390f35b3480156107b757600080fd5b506107c0611bd0565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190613b18565b611be4565b6040516107f69190614137565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190613cf2565b611dc5565b005b34801561083457600080fd5b5061084f600480360381019061084a9190613c36565b611dd7565b005b34801561085d57600080fd5b50610866611de9565b6040516108739190614071565b60405180910390f35b34801561088857600080fd5b50610891611e13565b60405161089e9190614137565b60405180910390f35b3480156108b357600080fd5b506108ce60048036038101906108c99190613aa0565b611ea5565b6040516108db91906142b9565b60405180910390f35b3480156108f057600080fd5b506108f9611ef5565b60405161090691906142b9565b60405180910390f35b34801561091b57600080fd5b5061093660048036038101906109319190613a64565b611efb565b005b34801561094457600080fd5b5061095f600480360381019061095a9190613cf2565b612006565b005b34801561096d57600080fd5b5061098860048036038101906109839190613b18565b61202a565b6040516109959190614137565b60405180910390f35b3480156109aa57600080fd5b506109b361220b565b6040516109c091906142b9565b60405180910390f35b6109e360048036038101906109de91906139e9565b612211565b005b3480156109f157600080fd5b50610a0c6004803603810190610a079190613cf2565b612284565b604051610a199190614137565b60405180910390f35b348015610a2e57600080fd5b50610a496004803603810190610a449190613d1b565b61233d565b604051610a569190614137565b60405180910390f35b348015610a6b57600080fd5b50610a74612465565b604051610a819190614137565b60405180910390f35b348015610a9657600080fd5b50610ab16004803603810190610aac9190613c0d565b6124f3565b005b610acd6004803603810190610ac89190613d1b565b612518565b005b348015610adb57600080fd5b50610af66004803603810190610af19190613cf2565b6126f9565b604051610b0391906142b9565b60405180910390f35b348015610b1857600080fd5b50610b336004803603810190610b2e919061395e565b612780565b604051610b409190614101565b60405180910390f35b348015610b5557600080fd5b50610b706004803603810190610b6b9190613935565b612814565b005b6000610b7d82612898565b80610b8d5750610b8c8261292a565b5b9050919050565b6000610b9f826129a4565b67ffffffffffffffff169050919050565b610bb86129f1565b610bc28282612a6f565b5050565b606060028054610bd59061458b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c019061458b565b8015610c4e5780601f10610c2357610100808354040283529160200191610c4e565b820191906000526020600020905b815481529060010190602001808311610c3157829003601f168201915b5050505050905090565b6000610c6382612c05565b610c99576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ce282611871565b90508073ffffffffffffffffffffffffffffffffffffffff16610d03612c64565b73ffffffffffffffffffffffffffffffffffffffff1614610d6657610d2f81610d2a612c64565b612780565b610d65576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610e236129f1565b61138882610e2f610e88565b610e39919061439e565b1115610e7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7190614239565b60405180910390fd5b610e848183612c6c565b5050565b6000610e92612c8a565b6001546000540303905090565b601160009054906101000a900460ff1681565b60105481565b6000610ec382612c8f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f2a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610f3684612d5d565b91509150610f4c8187610f47612c64565b612d84565b610f9857610f6186610f5c612c64565b612780565b610f97576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610fff576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61100c8686866001612dc8565b801561101757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110e5856110c1888887612dce565b7c020000000000000000000000000000000000000000000000000000000017612df6565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416141561116d57600060018501905060006004600083815260200190815260200160002054141561116b57600054811461116a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111d58686866001612e21565b505050505050565b6111e56129f1565b8060108190555050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156113855760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b600061138f612e27565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866113bb9190614425565b6113c591906143f4565b90508160000151819350935050509250929050565b60125481565b61138881565b6113ee6129f1565b80600e9080519060200190611404929190613651565b5050565b6114106129f1565b611418611de9565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561145d573d6000803e3d6000fd5b50565b6002600b5414156114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d90614279565b60405180910390fd5b6002600b81905550600f60019054906101000a900460ff166114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f490614219565b60405180910390fd5b600d5482611509610e88565b611513919061439e565b1115611554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154b90614239565b60405180910390fd5b3461155f8284611ea5565b1461159f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159690614159565b60405180910390fd5b611615858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483866040516020016115fa929190614021565b60405160208183030381529060405280519060200120612e31565b611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b906141b9565b60405180910390fd5b828261165f836129a4565b67ffffffffffffffff16611673919061439e565b11156116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ab90614179565b60405180910390fd5b6116be8183612c6c565b6116e581836116cc846129a4565b67ffffffffffffffff166116e0919061439e565b612e48565b6001600b819055505050505050565b6116fc6129f1565b80600f60016101000a81548160ff02191690831515021790555050565b61173483838360405180602001604052806000815250612211565b505050565b6117416129f1565b60005b828290508110156117f8576117e585858381811061178b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201358484848181106117cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906117e09190613935565b610e1b565b80806117f0906145ee565b915050611744565b5050505050565b600a81565b61180c6129f1565b80600f60006101000a81548160ff02191690831515021790555050565b600f60009054906101000a900460ff1681565b6118446129f1565b80600c908051906020019061185a929190613651565b5050565b600f60019054906101000a900460ff1681565b600061187c82612c8f565b9050919050565b6002600b5414156118c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c090614279565b60405180910390fd5b6002600b81905550601160009054906101000a900460ff16611920576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611917906141d9565b60405180910390fd5b600d548261192c610e88565b611936919061439e565b1115611977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196e90614239565b60405180910390fd5b346119828284611ea5565b146119c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b990614159565b60405180910390fd5b611a38858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548386604051602001611a1d929190614021565b60405160208183030381529060405280519060200120612e31565b611a77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6e906141b9565b60405180910390fd5b8282611a82836129a4565b67ffffffffffffffff16611a96919061439e565b1115611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90614179565b60405180910390fd5b611ae18183612c6c565b611b088183611aef846129a4565b67ffffffffffffffff16611b03919061439e565b612e48565b6001600b819055505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b7f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611bd86129f1565b611be26000612efe565b565b6060600f60019054906101000a900460ff16611c37576040518060400160405280601281526020017f50726573616c65206e6f742061637469766500000000000000000000000000008152509050611dbc565b600d5483611c43610e88565b611c4d919061439e565b1115611c90576040518060400160405280601281526020017f4d617820737570706c79207265616368656400000000000000000000000000008152509050611dbc565b611d06868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010548487604051602001611ceb929190614021565b60405160208183030381529060405280519060200120612e31565b611d47576040518060400160405280601681526020017f496e636f7272656374206d65726b6c652070726f6f66000000000000000000008152509050611dbc565b8383611d52846129a4565b67ffffffffffffffff16611d66919061439e565b1115611da9576040518060400160405280601281526020017f4d696e74206c696d6974207265616368656400000000000000000000000000008152509050611dbc565b6040518060200160405280600081525090505b95945050505050565b611dcd6129f1565b8060138190555050565b611ddf6129f1565b8060128190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611e229061458b565b80601f0160208091040260200160405190810160405280929190818152602001828054611e4e9061458b565b8015611e9b5780601f10611e7057610100808354040283529160200191611e9b565b820191906000526020600020905b815481529060010190602001808311611e7e57829003601f168201915b5050505050905090565b600080611eb1846129a4565b67ffffffffffffffff1690506000811115611ee257611edb600184611ed6919061439e565b6126f9565b9150611eee565b611eeb836126f9565b91505b5092915050565b60135481565b8060076000611f08612c64565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611fb5612c64565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ffa9190614101565b60405180910390a35050565b61200e6129f1565b611388811161201d5780612021565b6113885b600d8190555050565b6060601160009054906101000a900460ff1661207d576040518060400160405280601681526020017f5075626c69632073616c65206e6f7420616374697665000000000000000000008152509050612202565b600d5483612089610e88565b612093919061439e565b11156120d6576040518060400160405280601281526020017f4d617820737570706c79207265616368656400000000000000000000000000008152509050612202565b61214c868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506012548487604051602001612131929190614021565b60405160208183030381529060405280519060200120612e31565b61218d576040518060400160405280601681526020017f496e636f7272656374206d65726b6c652070726f6f66000000000000000000008152509050612202565b8383612198846129a4565b67ffffffffffffffff166121ac919061439e565b11156121ef576040518060400160405280601281526020017f4d696e74206c696d6974207265616368656400000000000000000000000000008152509050612202565b6040518060200160405280600081525090505b95945050505050565b600d5481565b61221c848484610eb8565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461227e5761224784848484612fc4565b61227d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600f60009054906101000a900460ff1661232c57600e80546122a79061458b565b80601f01602080910402602001604051908101604052809291908181526020018280546122d39061458b565b80156123205780601f106122f557610100808354040283529160200191612320565b820191906000526020600020905b81548152906001019060200180831161230357829003601f168201915b50505050509050612338565b61233582613124565b90505b919050565b6060601160009054906101000a900460ff16612390576040518060400160405280601681526020017f5075626c69632073616c65206e6f742061637469766500000000000000000000815250905061245f565b600d548361239c610e88565b6123a6919061439e565b11156123e9576040518060400160405280601281526020017f4d617820737570706c7920726561636865640000000000000000000000000000815250905061245f565b600a836123f5846129a4565b67ffffffffffffffff16612409919061439e565b111561244c576040518060400160405280601281526020017f4d696e74206c696d697420726561636865640000000000000000000000000000815250905061245f565b6040518060200160405280600081525090505b92915050565b600e80546124729061458b565b80601f016020809104026020016040519081016040528092919081815260200182805461249e9061458b565b80156124eb5780601f106124c0576101008083540402835291602001916124eb565b820191906000526020600020905b8154815290600101906020018083116124ce57829003601f168201915b505050505081565b6124fb6129f1565b80601160006101000a81548160ff02191690831515021790555050565b6002600b54141561255e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255590614279565b60405180910390fd5b6002600b81905550601160009054906101000a900460ff166125b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ac906141d9565b60405180910390fd5b600d54826125c1610e88565b6125cb919061439e565b111561260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614239565b60405180910390fd5b600a82612618836129a4565b67ffffffffffffffff1661262c919061439e565b111561266d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266490614179565b60405180910390fd5b348260135461267c9190614425565b146126bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b390614159565b60405180910390fd5b6126c68183612c6c565b6126ed81836126d4846129a4565b67ffffffffffffffff166126e8919061439e565b612e48565b6001600b819055505050565b60006001821161270c576000905061277b565b60028214156127245766d529ae9e860000905061277a565b600382141561273d5767016345785d8a00009050612779565b6004821415612756576701aa535d3d0c00009050612778565b666a94d74f43000060018361276b919061447f565b6127759190614425565b90505b5b5b5b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61281c6129f1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561288c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288390614199565b60405180910390fd5b61289581612efe565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128f357506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806129235750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061299d575061299c826131c3565b5b9050919050565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b6129f961322d565b73ffffffffffffffffffffffffffffffffffffffff16612a17611de9565b73ffffffffffffffffffffffffffffffffffffffff1614612a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a64906141f9565b60405180910390fd5b565b612a77612e27565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acc90614259565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3c90614299565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600081612c10612c8a565b11158015612c1f575060005482105b8015612c5d575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b612c86828260405180602001604052806000815250613235565b5050565b600090565b60008082905080612c9e612c8a565b11612d2657600054811015612d255760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612d23575b6000811415612d19576004600083600190039350838152602001908152602001600020549050612cee565b8092505050612d58565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612de58686846132d2565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b600082612e3e85846132db565b1490509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fea612c64565b8786866040518563ffffffff1660e01b815260040161300c949392919061408c565b602060405180830381600087803b15801561302657600080fd5b505af192505050801561305757506040513d601f19601f820116820180604052508101906130549190613c88565b60015b6130d1573d8060008114613087576040519150601f19603f3d011682016040523d82523d6000602084013e61308c565b606091505b506000815114156130c9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606061312f82612c05565b613165576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061316f613357565b905060008151141561319057604051806020016040528060008152506131bb565b8061319a846133e9565b6040516020016131ab92919061404d565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b61323f8383613442565b60008373ffffffffffffffffffffffffffffffffffffffff163b146132cd57600080549050600083820390505b61327f6000868380600101945086612fc4565b6132b5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061326c5781600054146132ca57600080fd5b50505b505050565b60009392505050565b60008082905060005b845181101561334c576133378286838151811061332a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516135ff565b91508080613344906145ee565b9150506132e4565b508091505092915050565b6060600c80546133669061458b565b80601f01602080910402602001604051908101604052809291908181526020018280546133929061458b565b80156133df5780601f106133b4576101008083540402835291602001916133df565b820191906000526020600020905b8154815290600101906020018083116133c257829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561342d57600184039350600a81066030018453600a81049050806134285761342d565b613402565b50828103602084039350808452505050919050565b6000805490506000821415613483576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134906000848385612dc8565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613507836134f86000866000612dce565b6135018561362a565b17612df6565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146135a857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061356d565b5060008214156135e4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506135fa6000848385612e21565b505050565b600081831061361757613612828461363a565b613622565b613621838361363a565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b82805461365d9061458b565b90600052602060002090601f01602090048101928261367f57600085556136c6565b82601f1061369857805160ff19168380011785556136c6565b828001600101855582156136c6579182015b828111156136c55782518255916020019190600101906136aa565b5b5090506136d391906136d7565b5090565b5b808211156136f05760008160009055506001016136d8565b5090565b6000613707613702846142f9565b6142d4565b90508281526020810184848401111561371f57600080fd5b61372a848285614549565b509392505050565b60006137456137408461432a565b6142d4565b90508281526020810184848401111561375d57600080fd5b613768848285614549565b509392505050565b60008135905061377f8161494e565b92915050565b60008083601f84011261379757600080fd5b8235905067ffffffffffffffff8111156137b057600080fd5b6020830191508360208202830111156137c857600080fd5b9250929050565b60008083601f8401126137e157600080fd5b8235905067ffffffffffffffff8111156137fa57600080fd5b60208301915083602082028301111561381257600080fd5b9250929050565b60008083601f84011261382b57600080fd5b8235905067ffffffffffffffff81111561384457600080fd5b60208301915083602082028301111561385c57600080fd5b9250929050565b60008135905061387281614965565b92915050565b6000813590506138878161497c565b92915050565b60008135905061389c81614993565b92915050565b6000815190506138b181614993565b92915050565b600082601f8301126138c857600080fd5b81356138d88482602086016136f4565b91505092915050565b600082601f8301126138f257600080fd5b8135613902848260208601613732565b91505092915050565b60008135905061391a816149aa565b92915050565b60008135905061392f816149c1565b92915050565b60006020828403121561394757600080fd5b600061395584828501613770565b91505092915050565b6000806040838503121561397157600080fd5b600061397f85828601613770565b925050602061399085828601613770565b9150509250929050565b6000806000606084860312156139af57600080fd5b60006139bd86828701613770565b93505060206139ce86828701613770565b92505060406139df8682870161390b565b9150509250925092565b600080600080608085870312156139ff57600080fd5b6000613a0d87828801613770565b9450506020613a1e87828801613770565b9350506040613a2f8782880161390b565b925050606085013567ffffffffffffffff811115613a4c57600080fd5b613a58878288016138b7565b91505092959194509250565b60008060408385031215613a7757600080fd5b6000613a8585828601613770565b9250506020613a9685828601613863565b9150509250929050565b60008060408385031215613ab357600080fd5b6000613ac185828601613770565b9250506020613ad28582860161390b565b9150509250929050565b60008060408385031215613aef57600080fd5b6000613afd85828601613770565b9250506020613b0e85828601613920565b9150509250929050565b600080600080600060808688031215613b3057600080fd5b600086013567ffffffffffffffff811115613b4a57600080fd5b613b56888289016137cf565b95509550506020613b698882890161390b565b9350506040613b7a8882890161390b565b9250506060613b8b88828901613770565b9150509295509295909350565b60008060008060408587031215613bae57600080fd5b600085013567ffffffffffffffff811115613bc857600080fd5b613bd487828801613819565b9450945050602085013567ffffffffffffffff811115613bf357600080fd5b613bff87828801613785565b925092505092959194509250565b600060208284031215613c1f57600080fd5b6000613c2d84828501613863565b91505092915050565b600060208284031215613c4857600080fd5b6000613c5684828501613878565b91505092915050565b600060208284031215613c7157600080fd5b6000613c7f8482850161388d565b91505092915050565b600060208284031215613c9a57600080fd5b6000613ca8848285016138a2565b91505092915050565b600060208284031215613cc357600080fd5b600082013567ffffffffffffffff811115613cdd57600080fd5b613ce9848285016138e1565b91505092915050565b600060208284031215613d0457600080fd5b6000613d128482850161390b565b91505092915050565b60008060408385031215613d2e57600080fd5b6000613d3c8582860161390b565b9250506020613d4d85828601613770565b9150509250929050565b60008060408385031215613d6a57600080fd5b6000613d788582860161390b565b9250506020613d898582860161390b565b9150509250929050565b613d9c816144b3565b82525050565b613db3613dae826144b3565b614637565b82525050565b613dc2816144c5565b82525050565b613dd1816144d1565b82525050565b6000613de28261435b565b613dec8185614371565b9350613dfc818560208601614558565b613e0581614721565b840191505092915050565b6000613e1b82614366565b613e258185614382565b9350613e35818560208601614558565b613e3e81614721565b840191505092915050565b6000613e5482614366565b613e5e8185614393565b9350613e6e818560208601614558565b80840191505092915050565b6000613e87601183614382565b9150613e928261473f565b602082019050919050565b6000613eaa601283614382565b9150613eb582614768565b602082019050919050565b6000613ecd602683614382565b9150613ed882614791565b604082019050919050565b6000613ef0601683614382565b9150613efb826147e0565b602082019050919050565b6000613f13601683614382565b9150613f1e82614809565b602082019050919050565b6000613f36602083614382565b9150613f4182614832565b602082019050919050565b6000613f59601783614382565b9150613f648261485b565b602082019050919050565b6000613f7c601283614382565b9150613f8782614884565b602082019050919050565b6000613f9f602a83614382565b9150613faa826148ad565b604082019050919050565b6000613fc2601f83614382565b9150613fcd826148fc565b602082019050919050565b6000613fe5601983614382565b9150613ff082614925565b602082019050919050565b61400481614527565b82525050565b61401b61401682614527565b61465b565b82525050565b600061402d8285613da2565b60148201915061403d828461400a565b6020820191508190509392505050565b60006140598285613e49565b91506140658284613e49565b91508190509392505050565b60006020820190506140866000830184613d93565b92915050565b60006080820190506140a16000830187613d93565b6140ae6020830186613d93565b6140bb6040830185613ffb565b81810360608301526140cd8184613dd7565b905095945050505050565b60006040820190506140ed6000830185613d93565b6140fa6020830184613ffb565b9392505050565b60006020820190506141166000830184613db9565b92915050565b60006020820190506141316000830184613dc8565b92915050565b600060208201905081810360008301526141518184613e10565b905092915050565b6000602082019050818103600083015261417281613e7a565b9050919050565b6000602082019050818103600083015261419281613e9d565b9050919050565b600060208201905081810360008301526141b281613ec0565b9050919050565b600060208201905081810360008301526141d281613ee3565b9050919050565b600060208201905081810360008301526141f281613f06565b9050919050565b6000602082019050818103600083015261421281613f29565b9050919050565b6000602082019050818103600083015261423281613f4c565b9050919050565b6000602082019050818103600083015261425281613f6f565b9050919050565b6000602082019050818103600083015261427281613f92565b9050919050565b6000602082019050818103600083015261429281613fb5565b9050919050565b600060208201905081810360008301526142b281613fd8565b9050919050565b60006020820190506142ce6000830184613ffb565b92915050565b60006142de6142ef565b90506142ea82826145bd565b919050565b6000604051905090565b600067ffffffffffffffff821115614314576143136146f2565b5b61431d82614721565b9050602081019050919050565b600067ffffffffffffffff821115614345576143446146f2565b5b61434e82614721565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006143a982614527565b91506143b483614527565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143e9576143e8614665565b5b828201905092915050565b60006143ff82614527565b915061440a83614527565b92508261441a57614419614694565b5b828204905092915050565b600061443082614527565b915061443b83614527565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561447457614473614665565b5b828202905092915050565b600061448a82614527565b915061449583614527565b9250828210156144a8576144a7614665565b5b828203905092915050565b60006144be82614507565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561457657808201518184015260208101905061455b565b83811115614585576000848401525b50505050565b600060028204905060018216806145a357607f821691505b602082108114156145b7576145b66146c3565b5b50919050565b6145c682614721565b810181811067ffffffffffffffff821117156145e5576145e46146f2565b5b80604052505050565b60006145f982614527565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561462c5761462b614665565b5b600182019050919050565b600061464282614649565b9050919050565b600061465482614732565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f496e636f7272656374207061796d656e74000000000000000000000000000000600082015250565b7f4d696e74206c696d697420726561636865640000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e636f7272656374206d65726b6c652070726f6f6600000000000000000000600082015250565b7f5075626c69632073616c65206e6f742061637469766500000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f50726573616c652073616c65206e6f7420616374697665000000000000000000600082015250565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b614957816144b3565b811461496257600080fd5b50565b61496e816144c5565b811461497957600080fd5b50565b614985816144d1565b811461499057600080fd5b50565b61499c816144db565b81146149a757600080fd5b50565b6149b381614527565b81146149be57600080fd5b50565b6149ca81614531565b81146149d557600080fd5b5056fea2646970667358221220544339d424e9490b6470b3f19bf50679f6426c33eba3ab0d2704d985b16dc35d64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961363234623562723769736937726168636a7a33376d72627037636d707a66366561673265726f75336f77786364746236673569000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _previewUri (string): ipfs://bafkreia624b5br7isi7rahcjz37mrbp7cmpzf6eag2erou3owxcdtb6g5i
Arg [1] : _feeNumerator (uint96): 1000
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [3] : 697066733a2f2f6261666b72656961363234623562723769736937726168636a
Arg [4] : 7a33376d72627037636d707a66366561673265726f75336f7778636474623667
Arg [5] : 3569000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.