Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 16,309 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 23621850 | 12 days ago | IN | 0 ETH | 0.00000468 | ||||
| Set Approval For... | 23615627 | 13 days ago | IN | 0 ETH | 0.00004021 | ||||
| Set Approval For... | 23561857 | 20 days ago | IN | 0 ETH | 0.00001273 | ||||
| Set Approval For... | 23523835 | 26 days ago | IN | 0 ETH | 0.00002992 | ||||
| Set Approval For... | 23523834 | 26 days ago | IN | 0 ETH | 0.00005211 | ||||
| Set Approval For... | 23497402 | 29 days ago | IN | 0 ETH | 0.00001452 | ||||
| Set Approval For... | 23463630 | 34 days ago | IN | 0 ETH | 0.00000798 | ||||
| Set Approval For... | 23456911 | 35 days ago | IN | 0 ETH | 0.00003207 | ||||
| Set Approval For... | 23380605 | 46 days ago | IN | 0 ETH | 0.00000597 | ||||
| Set Approval For... | 23376757 | 46 days ago | IN | 0 ETH | 0.00004594 | ||||
| Set Approval For... | 23376422 | 46 days ago | IN | 0 ETH | 0.00007128 | ||||
| Set Approval For... | 23366775 | 48 days ago | IN | 0 ETH | 0.00001692 | ||||
| Set Approval For... | 23331935 | 52 days ago | IN | 0 ETH | 0.00000831 | ||||
| Set Approval For... | 23327549 | 53 days ago | IN | 0 ETH | 0.00001841 | ||||
| Set Approval For... | 23323161 | 54 days ago | IN | 0 ETH | 0.00000625 | ||||
| Set Approval For... | 23322829 | 54 days ago | IN | 0 ETH | 0.00000808 | ||||
| Set Approval For... | 23322024 | 54 days ago | IN | 0 ETH | 0.00000926 | ||||
| Set Approval For... | 23311224 | 55 days ago | IN | 0 ETH | 0.00005247 | ||||
| Set Approval For... | 23303716 | 56 days ago | IN | 0 ETH | 0.00000722 | ||||
| Set Approval For... | 23303556 | 56 days ago | IN | 0 ETH | 0.00000886 | ||||
| Set Approval For... | 23279740 | 60 days ago | IN | 0 ETH | 0.00001247 | ||||
| Set Approval For... | 23276503 | 60 days ago | IN | 0 ETH | 0.00003574 | ||||
| Set Approval For... | 23243189 | 65 days ago | IN | 0 ETH | 0.00000699 | ||||
| Set Approval For... | 23062418 | 90 days ago | IN | 0 ETH | 0.00000939 | ||||
| Set Approval For... | 22870915 | 117 days ago | IN | 0 ETH | 0.0000189 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MekaRhinos
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// ............................................................................................................................~
// :::::::::::::::::::::::::.........::::....!777:.:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.~
// ::::::::::.......::::::::~~JPPP!~^....:!PPPPPPG~.:::::::::::::::::::::::::::::....:::::::::::::::::::::::::::::::::::::::::.~
// ::::::::..^:7YYY~:.::::.^BGPPPGBBPYJ^7PG5YJ??JP5!.:::::::::::::::::::::::::::.:^^^..:::::::::::::::::::::::::::::::::::::::.~
// :::::.:.^?PG5YJJPJ~.::.^75YY5G##BGG#GGP555YYJJ?GP!:::::::::::::::::::::::::::!YPGGJ~..:::::::::::::::::::::::::::::::::::::.~
// :::..!YPPPYYJJJJ?J5P:..7#??JP@BGB##GPPGBGGGPP5YJG#.::::::::::::::::::::::::::5PPBPPPY~:::::::::::::::::::::::::::::::::::::.~
// ::.~5P555555YYYYYJYG^.!YPJJPBBGGG#&PB##BP55PGGP5BG.::::::::::::::::::::::::::.Y&GBB5P#:.:::::........::::::::::::::::::::::.~
// ::.7@5PPPB#BBBGP5YJJ&YGB?JJB#PPGGB#B###G?7YPPPBP7::::::::::::::::::::..::..::.!5GP#PG#:.:..::!JJJJJJ?:..:::::::::::::::::::.~
// ::.7@GPB####BPJBBPJY@##BY?JMUTANTGB#@&P~?GBP5!:..::::::::::::::::::.:!55??GP7~J&PBPG#:..^?PPPPGPPPPPP7:.::::::::::::::::::.~
// ::.^?GBBB###5JYGBG55&BGB#J??P#GGPPGB#P?7GB@5 ..........:::::.......7P55JG&BGBBBBBG5G#:.?MTNTRHNCLLCTNPG?.:::::::::::::::::.~
// :::..:?PBB##YJBBBB##GPPPGBGYJ5GGBBBP?~Y@@GBPYYJY7:::::::.....::::::?PGYYJG&GGGGGGGPGGJ:.P#5PGGPPGGP55YJ#5.:::::::::::::::::.~
// :::::..:!YG&5J@BBYJPBPPPPPG#BP55PBB!?P#&GPPB@BBBBGBBBBBG?777?GBBBBBB#BYYYYP&BBGPPPP#P.:.:J&GGBG555PGPPP7^.:::::::::::::::::.~
// ::::::.:?&G&5J@BP?~7B#BGB###BB##$RHNOGB#PPB#BGBGGGGGGGGG###############PP55PPGBBBG#Y^....^?G&Y^.:.5#5!...::::::::::::::::::.~
// ::::::.Y&PP&5!5#BBBGPP#&#BBGGGGB#BGPP555555PBBBBBBGGGPPGGGGG#GYJJJ??YPPPPGBG55YY5GPYJJ^^:.:5Y~..::P#YYY!:::::::::::::::::::.~
// ::::::.Y&PPP#P~PBGG#GBBBGGGGGGPPPPPP55YY5555Y55PPGBBBBGPPPB#5J???777!!!77JYYPGPYYYJY55PPJ?JP:...:B#BBBG#Y.:::::::::::::::::.~
// ::::::.Y&GPPGBB!?5B&#BGGGGGGGPPP5555YYYYYYYYYYYY5555GGBBP#BP5YJ?!::~7?!7777??BG5YYYYYYYJY5YY!:.^GGPGBGP#5.:::::::::::::::::.~
// ::::::.Y&RHNOGBP?YG#BGGGGGPPPP55555555YYYYYYYYYYYYYY555PG&B55YYJ?~^^13J08?77??G#YYYYYYYYJJ??557!#~.~J!GYJY..:::::::::::::::.~
// ::::::.7PBGGGPPB#&#GGGGGPPPPP55555555555YYYYYYYYYYYYYYY55PB#P5YYYJ5PGG577777??5GGYYYYYYYYJ???J5PY~7YJJ&?Y&?^..:::::::::::::.~
// :::::::.!@GGGPPGBBGGGGGGPPP55555555555555YYJJJYJJYYYYYYY555PBGGP5YY55YJJJJJJJJ?5&5YYYYYYJJ??JJYPG#J^~@Y!5&J5?~.::::::::::::.~
// :::::::.^?#BGGB#BGGGGGGPPPP5555555YYY5PPPPP555555YYYYYYYYYYYYPGGBBPPP5Y5YYY555PBG555YYYYJJJY5PPPPB7.~@?77JG?G5^::::::::::::.~
// ::::::::.:JGGB&BGGGGPPPPPPP55555YYY555PPPPPPPPPPPPPP5YYJJJJJYYYY5PGBBBBBBBB####G55P55YYJJYPPPPP5YJJ7?&?7~!&5JPG.:::::::::::.~
// ::::::::::.^YBBBGGGGGPPPPPP55555YY555PPPP5YYJJJ55PPPPPPP5YYJJYJJYYYY55PPPGGBBBBGPGPPPYYY5PPP5YJ?7JJP#Y77!^!5BY^::::::::::::.~
// ::::::::::.7P#BGGGGGGPP555555555YY55PP5J???JYYYYYYY5PPGPPP555YJJJYYYY555555PGBBGB@7YBP55PP5YYJYPPG#BY77!~^^^J?.::::::::::::.~
// ::::::::.:?GBBBGGGGGPPPPP555555YYY5PPP5JJJ5GGBGBBBGGPGGPPPPPP55YYYYY55555555PBGJ?@7!Y#PP5YYGBB###&&G7777!^^^Y?.::::::::::::.~
// ::::::::.:JB#BBGGB5~~5GPPP55555555PPPP5YJYGBB##BGG$RHNOBBGPPPPPP55555555555P&YJYGG!^J&P55PBBGY?JPB5?77!~~^^~Y?.::::::::::::.~
// ::::::::.:PB###BBY~^PGGGPPPPPPPPPPPPPPP5J5GB#&PY?21^^~07?##GPPPPPPP55555PPGBYPGPJ7~^J&55BB5YJJ5G5?7777~~~^~75?.::::::::::::.~
// :::::::.^Y#BBB###G?^?PGGGGPPPPPGPGPPPPPP55GBBG5YJ21~^^JULYGBGGPP555Y5PGBBG5J77777!~~Y&PP##5GGGPJ777777~~~~77PJ.::::::::::::.~
// :::::...7@BBBBBBB#GJ~~?5BGGGGGGGGGGGGPPPP55PGGP5YYJ?YPGGPJ?5&G555PPGGB&5YJJJJ777!~~!5&GG##G55YJJ77777!~~!777GY.::::::::::::.~
// ::..:!!?5BBBBBBBBBBB5~:?&BBBB##BBBBBBBGGGPPPPGBGGPY5YY5YJJ5BG55PGBB5?JBPYYYJJ77!~~77Y&P#G5JJJJ?77777!~~~!777B5.::::::::::::.~
// :.:!5BB##BBBBBBBBB57^~JGB####BPPP5YJJ5PBGGGGGPPG#&BBBBBBGPPP555B#5YJ??7J5555Y7!!7775##B#G5Y5JJJJ777!~~!7777GP7..:::::::::::.~
// :.J#GGBBBBBBBBBB57^~YGBBBB&#GGBGPPPG5Y5PGPPPPPPPPPPPPGGGPPPPPGB##5J5GGGP5555GYYYJ?5GBBY?GB55YYJ77!!!77777?5PJ!~7:.:::::::::.~
// .5P5GG##BBBBBBB5^~YGBBBBBB&#GPP5J??J#YJP?5PPPPPPGBBBBBBBBBBBB&#GP5Y&#PPPPGGYYGBBBGP5PBPPYYPGG5YYJJJJJ?YY55YB#57G:.:::::::::.~
// ~PPYB#BBBBBBBBG!~Y#BBBBBBB&#GGPYJ??J#YJP?PPP55PB&#GGPPPPPPPPPG5YYYY5PPYYJJ5GB5YY5BYJJ5&&GJ?Y5GBBGGGGGG55J7!#@5~55~.::::::::.~
// &5YPB&BBBBBBBBBP5B#BBBBBBB&BGGBGGPPGYY5GGB#BGPP7YY55555YJ7J???????JP&BGGBG5J7?#Y7Y&P5#B?77???!!!!!?7?!~5PPY~^&7.::::::::.~
// &PYPB#BBBBBBBBB###BBBBBBBBB##BP5YYJJ5PGGPPPGB###BGPG&#BBGGPPYYYG#GGPPPGBP55YYJ7JBJ7!Y@5Y#G!!J?!!JJJJ5BBBPY#5JY5J&7.::::::::.~
// PBPYG#BBBBBBBBBBBBBBBBBBBBBBBBGBBBBB#&&#BG555PP55PPB&BYYJ?7JGBBBGYYY?Y@BP5YYJ?!?B7!~J&Y?YPGGBBBGBGGGGPBP5P5PY?JBJ^.::::::::.~
// ^GGYP#BBBBBBBBBBBBBBBBBBBBGGGGBB##BB&GB&5GBBBGGBGPPB&GYY?!^7G5PB#YJ!!Y#GBGGPJ?Y5Y?77Y#Y7!?5PG##P5YJ?JP#5?7?PB577#7.::::::::.~
// &&GYY#BBBBBBBBBBB#BBBGPGBBBBBBGGGGGG&GGBGYJJ?77BB5BGYJ?7JJP#55PY??YJPBP&G55PGGBBGGBP55J!!7YGBPPGGY7!~?BP?!J&GGB!#7.::::::::.~
// &&GYY#BBBBBBBBGPGPPGGBBBBBGGGGGGGGGG&B5P@&PYYYJBBYPPGGGPP5##JY5GBP5YY#B5J??J5GBBGPYJ77?5&5YY5&5?7!?#BGGB#GB#?&7.::::::::.~
// B#GYJY##BBBGG57!75#BBBGGGGGGGGGGGGGG&B5Y5#@@@@@@BYYY5YYYYYG#J?YPBBYBGYJJ5BG?!!5BPYY5GBPPPG#P5YY5P#P?75&#GGGP5G#PY57.:::::::.~
// BBBPJ?B#BGPBBBBY!?5GGGGGGGPPPPGGGGGGG#BY7?5PGB#&BY55YY5555YP&YJPBB&PYYYYJGB?77G#YJYPBBBB&&GYYYPBGBB5?BBPY5PP5P#&7B5.:::::::.~
// BG#BY?J5PPBBBBG5?!?GGGGGGPGGGGPPGGGGGGBB5?7!!77GGYYYY555555Y5GG55#PYYYYJJYG#JBG5PGBGPPGB#BPY5PBBPY#B5&5YPG5BBGP&Y#Y.:::::::.~
// BBB#GY?5#BGGGY7!7YPGGGGGPP##BGPPPP5JYPGGBB5YYYY##555P55Y5555YJ?5BPYYYY?7JPBPBPYP@G5JJJY5PB@GBGP5PB&BP&P5BB~!7^^BPBJ.:::::::.~
// BBBB#5YG#GGBJ!!YPGGGGGGGPPBBG5Y5YJYPYJYPG#BBBGGGGGGGGBBBBBBBBGG#&GG5YJ~~~P#YYY5G@G5Y555PB&&G55PBBPPGBBPPGG?:..::?^.::::::::.~
// BBBBBG5PBBGBJ!7GBGGGGGGGPPPPPP5Y5PGGGPY?JPP55YY55555YB&P555555#B555#GJ!!~P#Y55YG@BBBBBBBBG55GBG555GGGP5#5:.::::...:::::::::.~
// BBBGG&GPG&GBY7!7YPGGGGPPGPPPPPGGGGGGB#PJ??YP5Y5555Y5BBPYY55555BGYY5&GJY5PPP5YB#GPPB&&BBYGBPPGGPPPP##PP5BP~:::::::::::::::::.~
// BBBGBB#GGB#BGPY77?YGPPPPPPPPGGGGGGG#BGP5J5PP5Y555P5B&#BBP555Y&PYY55PGB#&BBGBG&#BBGGGGPGY#P.: 5&PPGB#GPPG#G:::::::::::::::::.~
// BBGGBG#BPP#BGGGPPGB#PPPPGPPGGGGGGGB@BGPPGPP5Y55GBBGYYY5PBBP5GB5Y55YYYG&P5555555G&Y55YYGB&P.:?GB55&?~5B#P7::::::::::::::::::.~
// STKSYSTMBPG#BGGGB##BPPPPPPGGGGGGGGGB##BBBPP5YP&BPYJJJY555&B5&5Y555Y5PGB5555Y55B#PY5PGGPP5PG:#B5YP&?.:~~:..:::::::::::::::::.~
// BGGGBGBB##GGBBGGGPPPPPPPGGGGGGGGGGGGGGB#PP555P#BP555PPGBBGGBG5555Y55B#5Y555Y55BB55BG5JYGBP!:GBG5G@?.:...:::::::::::::::::::.~
// BBBBBBBBBGPYPBBGGPPPPPPPGGGGGGGGGGGGGBBGP5Y5PPYGB####BBB55B#5Y55YY55BB5Y55555GGPP&G55GBP&P.::75BBY~.:::::::::::::::::::::::.~
// BBBBGG5PGPPYJJ5GGBGPGPGGGGGGGGGGGGGGB7Y5PP5YPBBP5PP55YBB5Y5555GG&#GY5555PG#GG#P5PB#PGG?.::.:~^..::::::::::::::::::::::::.~
// #BGPPBBBBBBBGPYY5PGB#BGGGGGGGGGGGGGB&BP5Y5PP5Y5##5555P5Y5#BY555G#G555GBGP55P&PG#G5#BGPP&?.::::...::::::::::::::::::::::::::.~
// GGGBBBBBGGGGBBBBGP55PGBBBGGGGGGGGGBGPP555PP5Y5BBG555PP5YBBPY55YB&5JJJ5G@P5PP&GB#GBGGGBB&J::::::::::::::::::::::::::::::::::.~
// BBBBBBGGGGGGGGGGBBBBGP55PGBBBBGGBBBPP555PP5Y5B#G555PP5YP&PY55Y5G#BGPPGBBP5MTNTRHNCLLCTNB#5.::::::::::::::::::::::::::::::::.~
// #BBBBBGGGGGGGGGGGGGBBBBGP55PGGB&BPPP5Y5P55YPB#P555PP5YP#G55P5Y5B#GB##BGY5B#BBP5YJ13/08?5Y^.::::::::::::::::::::::::::::::::.~
// BBBBBBBBBGGGGGGGGGGGGGBBB#BGP55GBGP5Y5P5Y5PB#PP55PPP55G#5555Y5BBG555PPPGBGP5YYY5PPG##B?:..:::::::::::::::::::::::::::::::::.~
// BBBBBBBBBBBGGGGGGGGGGGGGB&BBBGP5PBBGP55Y5GBGP555PP5Y5B#P55P55P&B555GBBBP5YYY13MTNTRHNO:..:::::::::::::::::::::::::::::::::::.~
pragma solidity ^0.8.7;
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MekaRhinos is ERC721AQueryable, Ownable {
string public baseURI;
string public notRevealedUri;
string public baseExtension = ".json";
uint256 public maxSupply = 3333;
uint256 public maxMintAmount = 2;
bool public publicsale = false;
mapping(address => uint256) public mintedBalance;
constructor() ERC721A("Meka Rhinos", "RHNO") {
setBaseURI("ipfs://bafybeidr47rw7ez5sd5joiocl7d7je6korfvriju5rql7pqll6chatuzva/");
}
// ====== Settings ======
modifier callerIsUser() {
require(tx.origin == msg.sender, "cannot be called by a contract");
_;
}
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
function _startTokenId() internal pure override returns (uint256){
return 1;
}
//
// ====== public ======
function mint(uint256 _mintAmount) public callerIsUser {
// Is publicsale active
require(publicsale, "publicsale is not active");
//
// Amount control
uint256 supply = totalSupply();
require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
require(mintedBalance[msg.sender] + _mintAmount <= maxMintAmount, "max NFT limit exceeded for this user");
//
mintedBalance[msg.sender] += _mintAmount;
_safeMint(msg.sender, _mintAmount);
}
function ownerMint(uint256 _mintAmount) public onlyOwner {
// Amount Control
uint256 supply = totalSupply();
require(_mintAmount > 0, "need to mint at least 1 NFT");
require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
//
_safeMint(msg.sender, _mintAmount);
}
// ====== View ======
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0
? string(abi.encodePacked(currentBaseURI, _toString(tokenId), baseExtension))
: "";
}
// ====== Only Owner ======
function setPublicsale() public onlyOwner {
publicsale = !publicsale;
}
function setMaxMintAmount(uint256 _newMaxMintAmount) public onlyOwner {
maxMintAmount = _newMaxMintAmount;
}
// Metadata
function setBaseURI(string memory _newBaseURI) public onlyOwner {
baseURI = _newBaseURI;
}
function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
baseExtension = _newBaseExtension;
}
//
function withdraw() public onlyOwner {
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
require(os);
}
}// 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.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721AQueryable.sol';
import '../ERC721A.sol';
/**
* @title ERC721A Queryable
* @dev ERC721A subclass with convenience query functions.
*/
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
/**
* @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
*
* If the `tokenId` is out of bounds:
* - `addr` = `address(0)`
* - `startTimestamp` = `0`
* - `burned` = `false`
* - `extraData` = `0`
*
* If the `tokenId` is burned:
* - `addr` = `<Address of owner before token was burned>`
* - `startTimestamp` = `<Timestamp when token was burned>`
* - `burned = `true`
* - `extraData` = `<Extra data when token was burned>`
*
* Otherwise:
* - `addr` = `<Address of owner>`
* - `startTimestamp` = `<Timestamp of start of ownership>`
* - `burned = `false`
* - `extraData` = `<Extra data at start of ownership>`
*/
function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
TokenOwnership memory ownership;
if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
return ownership;
}
ownership = _ownershipAt(tokenId);
if (ownership.burned) {
return ownership;
}
return _ownershipOf(tokenId);
}
/**
* @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
* See {ERC721AQueryable-explicitOwnershipOf}
*/
function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
unchecked {
uint256 tokenIdsLength = tokenIds.length;
TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
for (uint256 i; i != tokenIdsLength; ++i) {
ownerships[i] = explicitOwnershipOf(tokenIds[i]);
}
return ownerships;
}
}
/**
* @dev Returns an array of token IDs owned by `owner`,
* in the range [`start`, `stop`)
* (i.e. `start <= tokenId < stop`).
*
* This function allows for tokens to be queried if the collection
* grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
*
* Requirements:
*
* - `start` < `stop`
*/
function tokensOfOwnerIn(
address owner,
uint256 start,
uint256 stop
) external view override returns (uint256[] memory) {
unchecked {
if (start >= stop) revert InvalidQueryRange();
uint256 tokenIdsIdx;
uint256 stopLimit = _nextTokenId();
// Set `start = max(start, _startTokenId())`.
if (start < _startTokenId()) {
start = _startTokenId();
}
// Set `stop = min(stop, stopLimit)`.
if (stop > stopLimit) {
stop = stopLimit;
}
uint256 tokenIdsMaxLength = balanceOf(owner);
// Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
// to cater for cases where `balanceOf(owner)` is too big.
if (start < stop) {
uint256 rangeLength = stop - start;
if (rangeLength < tokenIdsMaxLength) {
tokenIdsMaxLength = rangeLength;
}
} else {
tokenIdsMaxLength = 0;
}
uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
if (tokenIdsMaxLength == 0) {
return tokenIds;
}
// We need to call `explicitOwnershipOf(start)`,
// because the slot at `start` may not be initialized.
TokenOwnership memory ownership = explicitOwnershipOf(start);
address currOwnershipAddr;
// If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
// `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
if (!ownership.burned) {
currOwnershipAddr = ownership.addr;
}
for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
ownership = _ownershipAt(i);
if (ownership.burned) {
continue;
}
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
tokenIds[tokenIdsIdx++] = i;
}
}
// Downsize the array to fit.
assembly {
mstore(tokenIds, tokenIdsIdx)
}
return tokenIds;
}
}
/**
* @dev Returns an array of token IDs owned by `owner`.
*
* This function scans the ownership mapping and is O(totalSupply) in complexity.
* It is meant to be called off-chain.
*
* See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
* multiple smaller scans if the collection is large enough to cause
* an out-of-gas error (10K pfp collections should be fine).
*/
function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
unchecked {
uint256 tokenIdsIdx;
address currOwnershipAddr;
uint256 tokenIdsLength = balanceOf(owner);
uint256[] memory tokenIds = new uint256[](tokenIdsLength);
TokenOwnership memory ownership;
for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
ownership = _ownershipAt(i);
if (ownership.burned) {
continue;
}
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
tokenIds[tokenIdsIdx++] = i;
}
}
return tokenIds;
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev ERC721 token receiver interface.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard,
* including the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at `_startTokenId()`
* (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// 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 tokenId of the next token 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 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* @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 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 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 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 returns (uint256) {
return _burnCounter;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
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: 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.
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view 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 {
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;
}
/**
* 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 ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed is zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* 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);
}
/**
* Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @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 See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _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 '';
}
/**
* @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))
}
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSenderERC721A()) revert ApproveToCaller();
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
transferFrom(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* See {_mint}.
*
* Emits a {Transfer} event for each mint.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_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 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 {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// `balance` 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 tokenId = startTokenId;
uint256 end = startTokenId + quantity;
do {
emit Transfer(address(0), to, tokenId++);
} while (tokenId < end);
_currentIndex = end;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* This function is intended for efficient minting only during contract creation.
*
* It emits only one {ConsecutiveTransfer} as defined in
* [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
* instead of a sequence of {Transfer} event(s).
*
* Calling this function outside of contract creation WILL make your contract
* non-compliant with the ERC721 standard.
* For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
* {ConsecutiveTransfer} event is only permissible during contract creation.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {ConsecutiveTransfer} event.
*/
function _mintERC2309(address to, uint256 quantity) internal {
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 Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals;
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
assembly {
// Compute the slot.
mstore(0x00, tokenId)
mstore(0x20, tokenApprovalsPtr.slot)
approvedAddressSlot := keccak256(0x00, 0x40)
// Load the slot's value from storage.
approvedAddress := sload(approvedAddressSlot)
}
}
/**
* @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`.
*/
function _isOwnerOrApproved(
address approvedAddress,
address from,
address msgSender
) private pure returns (bool result) {
assembly {
// Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
from := and(from, BITMASK_ADDRESS)
// Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
msgSender := and(msgSender, BITMASK_ADDRESS)
// `msgSender == from || msgSender == approvedAddress`.
result := or(eq(msgSender, from), eq(msgSender, approvedAddress))
}
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
(uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId);
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId);
if (approvalCheck) {
// The nested ifs save around 20+ gas over a compound boolean condition.
if (!_isOwnerOrApproved(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++;
}
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try 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))
}
}
}
}
/**
* @dev Directly sets the extra data for the ownership data `index`.
*/
function _setExtraDataAt(uint256 index, uint24 extraData) internal {
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 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;
}
/**
* @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 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 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 returns (string memory ptr) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit),
// but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
// We will need 1 32-byte word to store the length,
// and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
ptr := add(mload(0x40), 128)
// Update the free memory pointer to allocate.
mstore(0x40, ptr)
// Cache the end of the memory to calculate the length later.
let end := ptr
// We write the string from the rightmost digit to the leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// Costs a bit more than early returning for the zero case,
// but cheaper in terms of deployment and overall runtime costs.
for {
// Initialize and perform the first pass without check.
let temp := value
// Move the pointer 1 byte leftwards to point to an empty character slot.
ptr := sub(ptr, 1)
// Write the character to the pointer. 48 is the ASCII index of '0'.
mstore8(ptr, add(48, mod(temp, 10)))
temp := div(temp, 10)
} temp {
// Keep dividing `temp` until zero.
temp := div(temp, 10)
} {
// Body of the for loop.
ptr := sub(ptr, 1)
mstore8(ptr, add(48, mod(temp, 10)))
}
let length := sub(end, ptr)
// Move the pointer 32 bytes leftwards to make room for the length.
ptr := sub(ptr, 32)
// Store the length.
mstore(ptr, length)
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import '../IERC721A.sol';
/**
* @dev Interface of an ERC721AQueryable compliant contract.
*/
interface IERC721AQueryable is IERC721A {
/**
* Invalid query range (`start` >= `stop`).
*/
error InvalidQueryRange();
/**
* @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
*
* If the `tokenId` is out of bounds:
* - `addr` = `address(0)`
* - `startTimestamp` = `0`
* - `burned` = `false`
*
* If the `tokenId` is burned:
* - `addr` = `<Address of owner before token was burned>`
* - `startTimestamp` = `<Timestamp when token was burned>`
* - `burned = `true`
*
* Otherwise:
* - `addr` = `<Address of owner>`
* - `startTimestamp` = `<Timestamp of start of ownership>`
* - `burned = `false`
*/
function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);
/**
* @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
* See {ERC721AQueryable-explicitOwnershipOf}
*/
function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);
/**
* @dev Returns an array of token IDs owned by `owner`,
* in the range [`start`, `stop`)
* (i.e. `start <= tokenId < stop`).
*
* This function allows for tokens to be queried if the collection
* grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
*
* Requirements:
*
* - `start` < `stop`
*/
function tokensOfOwnerIn(
address owner,
uint256 start,
uint256 stop
) external view returns (uint256[] memory);
/**
* @dev Returns an array of token IDs owned by `owner`.
*
* This function scans the ownership mapping and is O(totalSupply) in complexity.
* It is meant to be called off-chain.
*
* See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
* multiple smaller scans if the collection is large enough to cause
* an out-of-gas error (10K pfp collections should be fine).
*/
function tokensOfOwner(address owner) external view returns (uint256[] memory);
}// 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.1.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of an ERC721A compliant contract.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* The caller cannot approve to their own address.
*/
error ApproveToCaller();
/**
* 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();
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
// Arbitrary data similar to `startTimestamp` that can be set through `_extraData`.
uint24 extraData;
}
/**
* @dev Returns the total amount of tokens stored by the contract.
*
* Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
*/
function totalSupply() external view returns (uint256);
// ==============================
// 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);
// ==============================
// 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`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must 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
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
// ==============================
// 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 standard. See `_mintERC2309` for more details.
*/
event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedBalance","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":"notRevealedUri","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":"_mintAmount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicsale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicsale","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600b9080519060200190620000519291906200034a565b50610d05600c556002600d556000600e60006101000a81548160ff0219169083151502179055503480156200008557600080fd5b506040518060400160405280600b81526020017f4d656b61205268696e6f730000000000000000000000000000000000000000008152506040518060400160405280600481526020017f52484e4f0000000000000000000000000000000000000000000000000000000081525081600290805190602001906200010a9291906200034a565b508060039080519060200190620001239291906200034a565b50620001346200018c60201b60201c565b60008190555050506200015c620001506200019560201b60201c565b6200019d60201b60201c565b6200018660405180608001604052806043815260200162003dcb604391396200026360201b60201c565b620004e2565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002736200028f60201b60201c565b80600990805190602001906200028b9291906200034a565b5050565b6200029f6200019560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002c56200032060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200031e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003159062000421565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003589062000454565b90600052602060002090601f0160209004810192826200037c5760008555620003c8565b82601f106200039757805160ff1916838001178555620003c8565b82800160010185558215620003c8579182015b82811115620003c7578251825591602001919060010190620003aa565b5b509050620003d79190620003db565b5090565b5b80821115620003f6576000816000905550600101620003dc565b5090565b60006200040960208362000443565b91506200041682620004b9565b602082019050919050565b600060208201905081810360008301526200043c81620003fa565b9050919050565b600082825260208201905092915050565b600060028204905060018216806200046d57607f821691505b602082108114156200048457620004836200048a565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6138d980620004f26000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80638462151c11610125578063c6682862116100ad578063e051b4161161007c578063e051b41614610602578063e652422414610632578063e985e9c51461063c578063f19e75d41461066c578063f2fde38b1461068857610211565b8063c66828621461057a578063c87b56dd14610598578063d5abeb01146105c8578063da3ef23f146105e657610211565b8063a0712d68116100f4578063a0712d68146104d8578063a22cb465146104f4578063b88d4fde14610510578063b94805a21461052c578063c23dc68f1461054a57610211565b80638462151c1461043c5780638da5cb5b1461046c57806395d89b411461048a57806399a2557a146104a857610211565b806323b872dd116101a85780635bbb2177116101775780635bbb2177146103845780636352211e146103b45780636c0360eb146103e457806370a0823114610402578063715018a61461043257610211565b806323b872dd146103265780633ccfd60b1461034257806342842e0e1461034c57806355f804b31461036857610211565b8063088a4ed0116101e4578063088a4ed0146102b2578063095ea7b3146102ce57806318160ddd146102ea578063239c70ae1461030857610211565b806301ffc9a71461021657806306fdde0314610246578063081812fc14610264578063081c8c4414610294575b600080fd5b610230600480360381019061022b9190612aeb565b6106a4565b60405161023d9190613117565b60405180910390f35b61024e610736565b60405161025b9190613132565b60405180910390f35b61027e60048036038101906102799190612b8e565b6107c8565b60405161028b919061306c565b60405180910390f35b61029c610844565b6040516102a99190613132565b60405180910390f35b6102cc60048036038101906102c79190612b8e565b6108d2565b005b6102e860048036038101906102e39190612a0f565b6108e4565b005b6102f2610a25565b6040516102ff919061326f565b60405180910390f35b610310610a3c565b60405161031d919061326f565b60405180910390f35b610340600480360381019061033b91906128f9565b610a42565b005b61034a610d67565b005b610366600480360381019061036191906128f9565b610def565b005b610382600480360381019061037d9190612b45565b610e0f565b005b61039e60048036038101906103999190612aa2565b610e31565b6040516103ab91906130d3565b60405180910390f35b6103ce60048036038101906103c99190612b8e565b610ef2565b6040516103db919061306c565b60405180910390f35b6103ec610f04565b6040516103f99190613132565b60405180910390f35b61041c6004803603810190610417919061288c565b610f92565b604051610429919061326f565b60405180910390f35b61043a61104b565b005b6104566004803603810190610451919061288c565b61105f565b60405161046391906130f5565b60405180910390f35b6104746111a9565b604051610481919061306c565b60405180910390f35b6104926111d3565b60405161049f9190613132565b60405180910390f35b6104c260048036038101906104bd9190612a4f565b611265565b6040516104cf91906130f5565b60405180910390f35b6104f260048036038101906104ed9190612b8e565b611479565b005b61050e600480360381019061050991906129cf565b611685565b005b61052a6004803603810190610525919061294c565b6117fd565b005b610534611870565b6040516105419190613117565b60405180910390f35b610564600480360381019061055f9190612b8e565b611883565b6040516105719190613254565b60405180910390f35b6105826118ed565b60405161058f9190613132565b60405180910390f35b6105b260048036038101906105ad9190612b8e565b61197b565b6040516105bf9190613132565b60405180910390f35b6105d0611a25565b6040516105dd919061326f565b60405180910390f35b61060060048036038101906105fb9190612b45565b611a2b565b005b61061c6004803603810190610617919061288c565b611a4d565b604051610629919061326f565b60405180910390f35b61063a611a65565b005b610656600480360381019061065191906128b9565b611a99565b6040516106639190613117565b60405180910390f35b61068660048036038101906106819190612b8e565b611b2d565b005b6106a2600480360381019061069d919061288c565b611be2565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ff57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061072f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461074590613541565b80601f016020809104026020016040519081016040528092919081815260200182805461077190613541565b80156107be5780601f10610793576101008083540402835291602001916107be565b820191906000526020600020905b8154815290600101906020018083116107a157829003601f168201915b5050505050905090565b60006107d382611c66565b610809576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600a805461085190613541565b80601f016020809104026020016040519081016040528092919081815260200182805461087d90613541565b80156108ca5780601f1061089f576101008083540402835291602001916108ca565b820191906000526020600020905b8154815290600101906020018083116108ad57829003601f168201915b505050505081565b6108da611cc5565b80600d8190555050565b60006108ef82610ef2565b90508073ffffffffffffffffffffffffffffffffffffffff16610910611d43565b73ffffffffffffffffffffffffffffffffffffffff16146109735761093c81610937611d43565b611a99565b610972576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610a2f611d4b565b6001546000540303905090565b600d5481565b6000610a4d82611d54565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ac084611e22565b91509150610ad68187610ad1611d43565b611e44565b610b2257610aeb86610ae6611d43565b611a99565b610b21576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610b89576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b968686866001611e88565b8015610ba157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c6f85610c4b888887611e8e565b7c020000000000000000000000000000000000000000000000000000000017611eb6565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610cf7576000600185019050600060046000838152602001908152602001600020541415610cf5576000548114610cf4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d5f8686866001611ee1565b505050505050565b610d6f611cc5565b6000610d796111a9565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d9c90613057565b60006040518083038185875af1925050503d8060008114610dd9576040519150601f19603f3d011682016040523d82523d6000602084013e610dde565b606091505b5050905080610dec57600080fd5b50565b610e0a838383604051806020016040528060008152506117fd565b505050565b610e17611cc5565b8060099080519060200190610e2d9291906125b3565b5050565b606060008251905060008167ffffffffffffffff811115610e5557610e54613631565b5b604051908082528060200260200182016040528015610e8e57816020015b610e7b612639565b815260200190600190039081610e735790505b50905060005b828114610ee757610ebe858281518110610eb157610eb0613602565b5b6020026020010151611883565b828281518110610ed157610ed0613602565b5b6020026020010181905250806001019050610e94565b508092505050919050565b6000610efd82611d54565b9050919050565b60098054610f1190613541565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3d90613541565b8015610f8a5780601f10610f5f57610100808354040283529160200191610f8a565b820191906000526020600020905b815481529060010190602001808311610f6d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ffa576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611053611cc5565b61105d6000611ee7565b565b6060600080600061106f85610f92565b905060008167ffffffffffffffff81111561108d5761108c613631565b5b6040519080825280602002602001820160405280156110bb5781602001602082028036833780820191505090505b5090506110c6612639565b60006110d0611d4b565b90505b83861461119b576110e381611fad565b91508160400151156110f457611190565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461113457816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561118f578083878060010198508151811061118257611181613602565b5b6020026020010181815250505b5b8060010190506110d3565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546111e290613541565b80601f016020809104026020016040519081016040528092919081815260200182805461120e90613541565b801561125b5780601f106112305761010080835404028352916020019161125b565b820191906000526020600020905b81548152906001019060200180831161123e57829003601f168201915b5050505050905090565b60608183106112a0576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112ab611fd8565b90506112b5611d4b565b8510156112c7576112c4611d4b565b94505b808411156112d3578093505b60006112de87610f92565b9050848610156113015760008686039050818110156112fb578091505b50611306565b600090505b60008167ffffffffffffffff81111561132257611321613631565b5b6040519080825280602002602001820160405280156113505781602001602082028036833780820191505090505b50905060008214156113685780945050505050611472565b600061137388611883565b90506000816040015161138857816000015190505b60008990505b88811415801561139e5750848714155b15611464576113ac81611fad565b92508260400151156113bd57611459565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146113fd57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611458578084888060010199508151811061144b5761144a613602565b5b6020026020010181815250505b5b80600101905061138e565b508583528296505050505050505b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90613214565b60405180910390fd5b600e60009054906101000a900460ff16611536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152d906131b4565b60405180910390fd5b6000611540610a25565b9050600c5482826115519190613412565b1115611592576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158990613194565b60405180910390fd5b600d5482600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115e09190613412565b1115611621576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161890613154565b60405180910390fd5b81600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116709190613412565b925050819055506116813383611fe1565b5050565b61168d611d43565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116f2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116ff611d43565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117ac611d43565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117f19190613117565b60405180910390a35050565b611808848484610a42565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461186a5761183384848484611fff565b611869576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e60009054906101000a900460ff1681565b61188b612639565b611893612639565b61189b611d4b565b8310806118af57506118ab611fd8565b8310155b156118bd57809150506118e8565b6118c683611fad565b90508060400151156118db57809150506118e8565b6118e48361215f565b9150505b919050565b600b80546118fa90613541565b80601f016020809104026020016040519081016040528092919081815260200182805461192690613541565b80156119735780601f1061194857610100808354040283529160200191611973565b820191906000526020600020905b81548152906001019060200180831161195657829003601f168201915b505050505081565b606061198682611c66565b6119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc906131f4565b60405180910390fd5b60006119cf61217f565b905060008151116119ef5760405180602001604052806000815250611a1d565b806119f984612211565b600b604051602001611a0d93929190613026565b6040516020818303038152906040525b915050919050565b600c5481565b611a33611cc5565b80600b9080519060200190611a499291906125b3565b5050565b600f6020528060005260406000206000915090505481565b611a6d611cc5565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b35611cc5565b6000611b3f610a25565b905060008211611b84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7b90613234565b60405180910390fd5b600c548282611b939190613412565b1115611bd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcb90613194565b60405180910390fd5b611bde3383611fe1565b5050565b611bea611cc5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5190613174565b60405180910390fd5b611c6381611ee7565b50565b600081611c71611d4b565b11158015611c80575060005482105b8015611cbe575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b611ccd61226b565b73ffffffffffffffffffffffffffffffffffffffff16611ceb6111a9565b73ffffffffffffffffffffffffffffffffffffffff1614611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d38906131d4565b60405180910390fd5b565b600033905090565b60006001905090565b60008082905080611d63611d4b565b11611deb57600054811015611dea5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611de8575b6000811415611dde576004600083600190039350838152602001908152602001600020549050611db3565b8092505050611e1d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611ea5868684612273565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611fb5612639565b611fd1600460008481526020019081526020016000205461227c565b9050919050565b60008054905090565b611ffb828260405180602001604052806000815250612332565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612025611d43565b8786866040518563ffffffff1660e01b81526004016120479493929190613087565b602060405180830381600087803b15801561206157600080fd5b505af192505050801561209257506040513d601f19601f8201168201806040525081019061208f9190612b18565b60015b61210c573d80600081146120c2576040519150601f19603f3d011682016040523d82523d6000602084013e6120c7565b606091505b50600081511415612104576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612167612639565b61217861217383611d54565b61227c565b9050919050565b60606009805461218e90613541565b80601f01602080910402602001604051908101604052809291908181526020018280546121ba90613541565b80156122075780601f106121dc57610100808354040283529160200191612207565b820191906000526020600020905b8154815290600101906020018083116121ea57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561225757600183039250600a81066030018353600a81049050612237565b508181036020830392508083525050919050565b600033905090565b60009392505050565b612284612639565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b61233c83836123cf565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123ca57600080549050600083820390505b61237c6000868380600101945086611fff565b6123b2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123695781600054146123c757600080fd5b50505b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561243c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612477576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124846000848385611e88565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124fb836124ec6000866000611e8e565b6124f5856125a3565b17611eb6565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061251f5780600081905550505061259e6000848385611ee1565b505050565b60006001821460e11b9050919050565b8280546125bf90613541565b90600052602060002090601f0160209004810192826125e15760008555612628565b82601f106125fa57805160ff1916838001178555612628565b82800160010185558215612628579182015b8281111561262757825182559160200191906001019061260c565b5b5090506126359190612688565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b808211156126a1576000816000905550600101612689565b5090565b60006126b86126b3846132af565b61328a565b905080838252602082019050828560208602820111156126db576126da613665565b5b60005b8581101561270b57816126f18882612877565b8452602084019350602083019250506001810190506126de565b5050509392505050565b6000612728612723846132db565b61328a565b9050828152602081018484840111156127445761274361366a565b5b61274f8482856134ff565b509392505050565b600061276a6127658461330c565b61328a565b9050828152602081018484840111156127865761278561366a565b5b6127918482856134ff565b509392505050565b6000813590506127a881613847565b92915050565b600082601f8301126127c3576127c2613660565b5b81356127d38482602086016126a5565b91505092915050565b6000813590506127eb8161385e565b92915050565b60008135905061280081613875565b92915050565b60008151905061281581613875565b92915050565b600082601f8301126128305761282f613660565b5b8135612840848260208601612715565b91505092915050565b600082601f83011261285e5761285d613660565b5b813561286e848260208601612757565b91505092915050565b6000813590506128868161388c565b92915050565b6000602082840312156128a2576128a1613674565b5b60006128b084828501612799565b91505092915050565b600080604083850312156128d0576128cf613674565b5b60006128de85828601612799565b92505060206128ef85828601612799565b9150509250929050565b60008060006060848603121561291257612911613674565b5b600061292086828701612799565b935050602061293186828701612799565b925050604061294286828701612877565b9150509250925092565b6000806000806080858703121561296657612965613674565b5b600061297487828801612799565b945050602061298587828801612799565b935050604061299687828801612877565b925050606085013567ffffffffffffffff8111156129b7576129b661366f565b5b6129c38782880161281b565b91505092959194509250565b600080604083850312156129e6576129e5613674565b5b60006129f485828601612799565b9250506020612a05858286016127dc565b9150509250929050565b60008060408385031215612a2657612a25613674565b5b6000612a3485828601612799565b9250506020612a4585828601612877565b9150509250929050565b600080600060608486031215612a6857612a67613674565b5b6000612a7686828701612799565b9350506020612a8786828701612877565b9250506040612a9886828701612877565b9150509250925092565b600060208284031215612ab857612ab7613674565b5b600082013567ffffffffffffffff811115612ad657612ad561366f565b5b612ae2848285016127ae565b91505092915050565b600060208284031215612b0157612b00613674565b5b6000612b0f848285016127f1565b91505092915050565b600060208284031215612b2e57612b2d613674565b5b6000612b3c84828501612806565b91505092915050565b600060208284031215612b5b57612b5a613674565b5b600082013567ffffffffffffffff811115612b7957612b7861366f565b5b612b8584828501612849565b91505092915050565b600060208284031215612ba457612ba3613674565b5b6000612bb284828501612877565b91505092915050565b6000612bc78383612f40565b60808301905092915050565b6000612bdf8383612ff9565b60208301905092915050565b612bf481613468565b82525050565b612c0381613468565b82525050565b6000612c1482613372565b612c1e81856133b8565b9350612c298361333d565b8060005b83811015612c5a578151612c418882612bbb565b9750612c4c8361339e565b925050600181019050612c2d565b5085935050505092915050565b6000612c728261337d565b612c7c81856133c9565b9350612c878361334d565b8060005b83811015612cb8578151612c9f8882612bd3565b9750612caa836133ab565b925050600181019050612c8b565b5085935050505092915050565b612cce8161347a565b82525050565b612cdd8161347a565b82525050565b6000612cee82613388565b612cf881856133da565b9350612d0881856020860161350e565b612d1181613679565b840191505092915050565b6000612d2782613393565b612d3181856133f6565b9350612d4181856020860161350e565b612d4a81613679565b840191505092915050565b6000612d6082613393565b612d6a8185613407565b9350612d7a81856020860161350e565b80840191505092915050565b60008154612d9381613541565b612d9d8186613407565b94506001821660008114612db85760018114612dc957612dfc565b60ff19831686528186019350612dfc565b612dd28561335d565b60005b83811015612df457815481890152600182019150602081019050612dd5565b838801955050505b50505092915050565b6000612e126024836133f6565b9150612e1d8261368a565b604082019050919050565b6000612e356026836133f6565b9150612e40826136d9565b604082019050919050565b6000612e586016836133f6565b9150612e6382613728565b602082019050919050565b6000612e7b6018836133f6565b9150612e8682613751565b602082019050919050565b6000612e9e6020836133f6565b9150612ea98261377a565b602082019050919050565b6000612ec1602f836133f6565b9150612ecc826137a3565b604082019050919050565b6000612ee46000836133eb565b9150612eef826137f2565b600082019050919050565b6000612f07601e836133f6565b9150612f12826137f5565b602082019050919050565b6000612f2a601b836133f6565b9150612f358261381e565b602082019050919050565b608082016000820151612f566000850182612beb565b506020820151612f696020850182613017565b506040820151612f7c6040850182612cc5565b506060820151612f8f6060850182612fea565b50505050565b608082016000820151612fab6000850182612beb565b506020820151612fbe6020850182613017565b506040820151612fd16040850182612cc5565b506060820151612fe46060850182612fea565b50505050565b612ff3816134d2565b82525050565b613002816134e1565b82525050565b613011816134e1565b82525050565b613020816134eb565b82525050565b60006130328286612d55565b915061303e8285612d55565b915061304a8284612d86565b9150819050949350505050565b600061306282612ed7565b9150819050919050565b60006020820190506130816000830184612bfa565b92915050565b600060808201905061309c6000830187612bfa565b6130a96020830186612bfa565b6130b66040830185613008565b81810360608301526130c88184612ce3565b905095945050505050565b600060208201905081810360008301526130ed8184612c09565b905092915050565b6000602082019050818103600083015261310f8184612c67565b905092915050565b600060208201905061312c6000830184612cd4565b92915050565b6000602082019050818103600083015261314c8184612d1c565b905092915050565b6000602082019050818103600083015261316d81612e05565b9050919050565b6000602082019050818103600083015261318d81612e28565b9050919050565b600060208201905081810360008301526131ad81612e4b565b9050919050565b600060208201905081810360008301526131cd81612e6e565b9050919050565b600060208201905081810360008301526131ed81612e91565b9050919050565b6000602082019050818103600083015261320d81612eb4565b9050919050565b6000602082019050818103600083015261322d81612efa565b9050919050565b6000602082019050818103600083015261324d81612f1d565b9050919050565b60006080820190506132696000830184612f95565b92915050565b60006020820190506132846000830184613008565b92915050565b60006132946132a5565b90506132a08282613573565b919050565b6000604051905090565b600067ffffffffffffffff8211156132ca576132c9613631565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156132f6576132f5613631565b5b6132ff82613679565b9050602081019050919050565b600067ffffffffffffffff82111561332757613326613631565b5b61333082613679565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061341d826134e1565b9150613428836134e1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561345d5761345c6135a4565b5b828201905092915050565b6000613473826134b2565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561352c578082015181840152602081019050613511565b8381111561353b576000848401525b50505050565b6000600282049050600182168061355957607f821691505b6020821081141561356d5761356c6135d3565b5b50919050565b61357c82613679565b810181811067ffffffffffffffff8211171561359b5761359a613631565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f6d6178204e4654206c696d697420657863656564656420666f7220746869732060008201527f7573657200000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f7075626c696373616c65206973206e6f74206163746976650000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f63616e6e6f742062652063616c6c6564206279206120636f6e74726163740000600082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b61385081613468565b811461385b57600080fd5b50565b6138678161347a565b811461387257600080fd5b50565b61387e81613486565b811461388957600080fd5b50565b613895816134e1565b81146138a057600080fd5b5056fea2646970667358221220b0c397b0697c56c4e6bda0d379bc35961579a8669f951901bf9add420fea19ff64736f6c63430008070033697066733a2f2f6261667962656964723437727737657a357364356a6f696f636c3764376a65366b6f72667672696a753572716c3770716c6c3663686174757a76612f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102115760003560e01c80638462151c11610125578063c6682862116100ad578063e051b4161161007c578063e051b41614610602578063e652422414610632578063e985e9c51461063c578063f19e75d41461066c578063f2fde38b1461068857610211565b8063c66828621461057a578063c87b56dd14610598578063d5abeb01146105c8578063da3ef23f146105e657610211565b8063a0712d68116100f4578063a0712d68146104d8578063a22cb465146104f4578063b88d4fde14610510578063b94805a21461052c578063c23dc68f1461054a57610211565b80638462151c1461043c5780638da5cb5b1461046c57806395d89b411461048a57806399a2557a146104a857610211565b806323b872dd116101a85780635bbb2177116101775780635bbb2177146103845780636352211e146103b45780636c0360eb146103e457806370a0823114610402578063715018a61461043257610211565b806323b872dd146103265780633ccfd60b1461034257806342842e0e1461034c57806355f804b31461036857610211565b8063088a4ed0116101e4578063088a4ed0146102b2578063095ea7b3146102ce57806318160ddd146102ea578063239c70ae1461030857610211565b806301ffc9a71461021657806306fdde0314610246578063081812fc14610264578063081c8c4414610294575b600080fd5b610230600480360381019061022b9190612aeb565b6106a4565b60405161023d9190613117565b60405180910390f35b61024e610736565b60405161025b9190613132565b60405180910390f35b61027e60048036038101906102799190612b8e565b6107c8565b60405161028b919061306c565b60405180910390f35b61029c610844565b6040516102a99190613132565b60405180910390f35b6102cc60048036038101906102c79190612b8e565b6108d2565b005b6102e860048036038101906102e39190612a0f565b6108e4565b005b6102f2610a25565b6040516102ff919061326f565b60405180910390f35b610310610a3c565b60405161031d919061326f565b60405180910390f35b610340600480360381019061033b91906128f9565b610a42565b005b61034a610d67565b005b610366600480360381019061036191906128f9565b610def565b005b610382600480360381019061037d9190612b45565b610e0f565b005b61039e60048036038101906103999190612aa2565b610e31565b6040516103ab91906130d3565b60405180910390f35b6103ce60048036038101906103c99190612b8e565b610ef2565b6040516103db919061306c565b60405180910390f35b6103ec610f04565b6040516103f99190613132565b60405180910390f35b61041c6004803603810190610417919061288c565b610f92565b604051610429919061326f565b60405180910390f35b61043a61104b565b005b6104566004803603810190610451919061288c565b61105f565b60405161046391906130f5565b60405180910390f35b6104746111a9565b604051610481919061306c565b60405180910390f35b6104926111d3565b60405161049f9190613132565b60405180910390f35b6104c260048036038101906104bd9190612a4f565b611265565b6040516104cf91906130f5565b60405180910390f35b6104f260048036038101906104ed9190612b8e565b611479565b005b61050e600480360381019061050991906129cf565b611685565b005b61052a6004803603810190610525919061294c565b6117fd565b005b610534611870565b6040516105419190613117565b60405180910390f35b610564600480360381019061055f9190612b8e565b611883565b6040516105719190613254565b60405180910390f35b6105826118ed565b60405161058f9190613132565b60405180910390f35b6105b260048036038101906105ad9190612b8e565b61197b565b6040516105bf9190613132565b60405180910390f35b6105d0611a25565b6040516105dd919061326f565b60405180910390f35b61060060048036038101906105fb9190612b45565b611a2b565b005b61061c6004803603810190610617919061288c565b611a4d565b604051610629919061326f565b60405180910390f35b61063a611a65565b005b610656600480360381019061065191906128b9565b611a99565b6040516106639190613117565b60405180910390f35b61068660048036038101906106819190612b8e565b611b2d565b005b6106a2600480360381019061069d919061288c565b611be2565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806106ff57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061072f5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461074590613541565b80601f016020809104026020016040519081016040528092919081815260200182805461077190613541565b80156107be5780601f10610793576101008083540402835291602001916107be565b820191906000526020600020905b8154815290600101906020018083116107a157829003601f168201915b5050505050905090565b60006107d382611c66565b610809576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600a805461085190613541565b80601f016020809104026020016040519081016040528092919081815260200182805461087d90613541565b80156108ca5780601f1061089f576101008083540402835291602001916108ca565b820191906000526020600020905b8154815290600101906020018083116108ad57829003601f168201915b505050505081565b6108da611cc5565b80600d8190555050565b60006108ef82610ef2565b90508073ffffffffffffffffffffffffffffffffffffffff16610910611d43565b73ffffffffffffffffffffffffffffffffffffffff16146109735761093c81610937611d43565b611a99565b610972576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610a2f611d4b565b6001546000540303905090565b600d5481565b6000610a4d82611d54565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ab4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ac084611e22565b91509150610ad68187610ad1611d43565b611e44565b610b2257610aeb86610ae6611d43565b611a99565b610b21576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610b89576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b968686866001611e88565b8015610ba157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610c6f85610c4b888887611e8e565b7c020000000000000000000000000000000000000000000000000000000017611eb6565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610cf7576000600185019050600060046000838152602001908152602001600020541415610cf5576000548114610cf4578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d5f8686866001611ee1565b505050505050565b610d6f611cc5565b6000610d796111a9565b73ffffffffffffffffffffffffffffffffffffffff1647604051610d9c90613057565b60006040518083038185875af1925050503d8060008114610dd9576040519150601f19603f3d011682016040523d82523d6000602084013e610dde565b606091505b5050905080610dec57600080fd5b50565b610e0a838383604051806020016040528060008152506117fd565b505050565b610e17611cc5565b8060099080519060200190610e2d9291906125b3565b5050565b606060008251905060008167ffffffffffffffff811115610e5557610e54613631565b5b604051908082528060200260200182016040528015610e8e57816020015b610e7b612639565b815260200190600190039081610e735790505b50905060005b828114610ee757610ebe858281518110610eb157610eb0613602565b5b6020026020010151611883565b828281518110610ed157610ed0613602565b5b6020026020010181905250806001019050610e94565b508092505050919050565b6000610efd82611d54565b9050919050565b60098054610f1190613541565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3d90613541565b8015610f8a5780601f10610f5f57610100808354040283529160200191610f8a565b820191906000526020600020905b815481529060010190602001808311610f6d57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ffa576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611053611cc5565b61105d6000611ee7565b565b6060600080600061106f85610f92565b905060008167ffffffffffffffff81111561108d5761108c613631565b5b6040519080825280602002602001820160405280156110bb5781602001602082028036833780820191505090505b5090506110c6612639565b60006110d0611d4b565b90505b83861461119b576110e381611fad565b91508160400151156110f457611190565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461113457816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561118f578083878060010198508151811061118257611181613602565b5b6020026020010181815250505b5b8060010190506110d3565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546111e290613541565b80601f016020809104026020016040519081016040528092919081815260200182805461120e90613541565b801561125b5780601f106112305761010080835404028352916020019161125b565b820191906000526020600020905b81548152906001019060200180831161123e57829003601f168201915b5050505050905090565b60608183106112a0576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806112ab611fd8565b90506112b5611d4b565b8510156112c7576112c4611d4b565b94505b808411156112d3578093505b60006112de87610f92565b9050848610156113015760008686039050818110156112fb578091505b50611306565b600090505b60008167ffffffffffffffff81111561132257611321613631565b5b6040519080825280602002602001820160405280156113505781602001602082028036833780820191505090505b50905060008214156113685780945050505050611472565b600061137388611883565b90506000816040015161138857816000015190505b60008990505b88811415801561139e5750848714155b15611464576113ac81611fad565b92508260400151156113bd57611459565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146113fd57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611458578084888060010199508151811061144b5761144a613602565b5b6020026020010181815250505b5b80600101905061138e565b508583528296505050505050505b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90613214565b60405180910390fd5b600e60009054906101000a900460ff16611536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152d906131b4565b60405180910390fd5b6000611540610a25565b9050600c5482826115519190613412565b1115611592576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158990613194565b60405180910390fd5b600d5482600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115e09190613412565b1115611621576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161890613154565b60405180910390fd5b81600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116709190613412565b925050819055506116813383611fe1565b5050565b61168d611d43565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116f2576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006116ff611d43565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117ac611d43565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117f19190613117565b60405180910390a35050565b611808848484610a42565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461186a5761183384848484611fff565b611869576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600e60009054906101000a900460ff1681565b61188b612639565b611893612639565b61189b611d4b565b8310806118af57506118ab611fd8565b8310155b156118bd57809150506118e8565b6118c683611fad565b90508060400151156118db57809150506118e8565b6118e48361215f565b9150505b919050565b600b80546118fa90613541565b80601f016020809104026020016040519081016040528092919081815260200182805461192690613541565b80156119735780601f1061194857610100808354040283529160200191611973565b820191906000526020600020905b81548152906001019060200180831161195657829003601f168201915b505050505081565b606061198682611c66565b6119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc906131f4565b60405180910390fd5b60006119cf61217f565b905060008151116119ef5760405180602001604052806000815250611a1d565b806119f984612211565b600b604051602001611a0d93929190613026565b6040516020818303038152906040525b915050919050565b600c5481565b611a33611cc5565b80600b9080519060200190611a499291906125b3565b5050565b600f6020528060005260406000206000915090505481565b611a6d611cc5565b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b35611cc5565b6000611b3f610a25565b905060008211611b84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7b90613234565b60405180910390fd5b600c548282611b939190613412565b1115611bd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bcb90613194565b60405180910390fd5b611bde3383611fe1565b5050565b611bea611cc5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5190613174565b60405180910390fd5b611c6381611ee7565b50565b600081611c71611d4b565b11158015611c80575060005482105b8015611cbe575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b611ccd61226b565b73ffffffffffffffffffffffffffffffffffffffff16611ceb6111a9565b73ffffffffffffffffffffffffffffffffffffffff1614611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d38906131d4565b60405180910390fd5b565b600033905090565b60006001905090565b60008082905080611d63611d4b565b11611deb57600054811015611dea5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611de8575b6000811415611dde576004600083600190039350838152602001908152602001600020549050611db3565b8092505050611e1d565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611ea5868684612273565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611fb5612639565b611fd1600460008481526020019081526020016000205461227c565b9050919050565b60008054905090565b611ffb828260405180602001604052806000815250612332565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612025611d43565b8786866040518563ffffffff1660e01b81526004016120479493929190613087565b602060405180830381600087803b15801561206157600080fd5b505af192505050801561209257506040513d601f19601f8201168201806040525081019061208f9190612b18565b60015b61210c573d80600081146120c2576040519150601f19603f3d011682016040523d82523d6000602084013e6120c7565b606091505b50600081511415612104576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612167612639565b61217861217383611d54565b61227c565b9050919050565b60606009805461218e90613541565b80601f01602080910402602001604051908101604052809291908181526020018280546121ba90613541565b80156122075780601f106121dc57610100808354040283529160200191612207565b820191906000526020600020905b8154815290600101906020018083116121ea57829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561225757600183039250600a81066030018353600a81049050612237565b508181036020830392508083525050919050565b600033905090565b60009392505050565b612284612639565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b61233c83836123cf565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123ca57600080549050600083820390505b61237c6000868380600101945086611fff565b6123b2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123695781600054146123c757600080fd5b50505b505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561243c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612477576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124846000848385611e88565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124fb836124ec6000866000611e8e565b6124f5856125a3565b17611eb6565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061251f5780600081905550505061259e6000848385611ee1565b505050565b60006001821460e11b9050919050565b8280546125bf90613541565b90600052602060002090601f0160209004810192826125e15760008555612628565b82601f106125fa57805160ff1916838001178555612628565b82800160010185558215612628579182015b8281111561262757825182559160200191906001019061260c565b5b5090506126359190612688565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b808211156126a1576000816000905550600101612689565b5090565b60006126b86126b3846132af565b61328a565b905080838252602082019050828560208602820111156126db576126da613665565b5b60005b8581101561270b57816126f18882612877565b8452602084019350602083019250506001810190506126de565b5050509392505050565b6000612728612723846132db565b61328a565b9050828152602081018484840111156127445761274361366a565b5b61274f8482856134ff565b509392505050565b600061276a6127658461330c565b61328a565b9050828152602081018484840111156127865761278561366a565b5b6127918482856134ff565b509392505050565b6000813590506127a881613847565b92915050565b600082601f8301126127c3576127c2613660565b5b81356127d38482602086016126a5565b91505092915050565b6000813590506127eb8161385e565b92915050565b60008135905061280081613875565b92915050565b60008151905061281581613875565b92915050565b600082601f8301126128305761282f613660565b5b8135612840848260208601612715565b91505092915050565b600082601f83011261285e5761285d613660565b5b813561286e848260208601612757565b91505092915050565b6000813590506128868161388c565b92915050565b6000602082840312156128a2576128a1613674565b5b60006128b084828501612799565b91505092915050565b600080604083850312156128d0576128cf613674565b5b60006128de85828601612799565b92505060206128ef85828601612799565b9150509250929050565b60008060006060848603121561291257612911613674565b5b600061292086828701612799565b935050602061293186828701612799565b925050604061294286828701612877565b9150509250925092565b6000806000806080858703121561296657612965613674565b5b600061297487828801612799565b945050602061298587828801612799565b935050604061299687828801612877565b925050606085013567ffffffffffffffff8111156129b7576129b661366f565b5b6129c38782880161281b565b91505092959194509250565b600080604083850312156129e6576129e5613674565b5b60006129f485828601612799565b9250506020612a05858286016127dc565b9150509250929050565b60008060408385031215612a2657612a25613674565b5b6000612a3485828601612799565b9250506020612a4585828601612877565b9150509250929050565b600080600060608486031215612a6857612a67613674565b5b6000612a7686828701612799565b9350506020612a8786828701612877565b9250506040612a9886828701612877565b9150509250925092565b600060208284031215612ab857612ab7613674565b5b600082013567ffffffffffffffff811115612ad657612ad561366f565b5b612ae2848285016127ae565b91505092915050565b600060208284031215612b0157612b00613674565b5b6000612b0f848285016127f1565b91505092915050565b600060208284031215612b2e57612b2d613674565b5b6000612b3c84828501612806565b91505092915050565b600060208284031215612b5b57612b5a613674565b5b600082013567ffffffffffffffff811115612b7957612b7861366f565b5b612b8584828501612849565b91505092915050565b600060208284031215612ba457612ba3613674565b5b6000612bb284828501612877565b91505092915050565b6000612bc78383612f40565b60808301905092915050565b6000612bdf8383612ff9565b60208301905092915050565b612bf481613468565b82525050565b612c0381613468565b82525050565b6000612c1482613372565b612c1e81856133b8565b9350612c298361333d565b8060005b83811015612c5a578151612c418882612bbb565b9750612c4c8361339e565b925050600181019050612c2d565b5085935050505092915050565b6000612c728261337d565b612c7c81856133c9565b9350612c878361334d565b8060005b83811015612cb8578151612c9f8882612bd3565b9750612caa836133ab565b925050600181019050612c8b565b5085935050505092915050565b612cce8161347a565b82525050565b612cdd8161347a565b82525050565b6000612cee82613388565b612cf881856133da565b9350612d0881856020860161350e565b612d1181613679565b840191505092915050565b6000612d2782613393565b612d3181856133f6565b9350612d4181856020860161350e565b612d4a81613679565b840191505092915050565b6000612d6082613393565b612d6a8185613407565b9350612d7a81856020860161350e565b80840191505092915050565b60008154612d9381613541565b612d9d8186613407565b94506001821660008114612db85760018114612dc957612dfc565b60ff19831686528186019350612dfc565b612dd28561335d565b60005b83811015612df457815481890152600182019150602081019050612dd5565b838801955050505b50505092915050565b6000612e126024836133f6565b9150612e1d8261368a565b604082019050919050565b6000612e356026836133f6565b9150612e40826136d9565b604082019050919050565b6000612e586016836133f6565b9150612e6382613728565b602082019050919050565b6000612e7b6018836133f6565b9150612e8682613751565b602082019050919050565b6000612e9e6020836133f6565b9150612ea98261377a565b602082019050919050565b6000612ec1602f836133f6565b9150612ecc826137a3565b604082019050919050565b6000612ee46000836133eb565b9150612eef826137f2565b600082019050919050565b6000612f07601e836133f6565b9150612f12826137f5565b602082019050919050565b6000612f2a601b836133f6565b9150612f358261381e565b602082019050919050565b608082016000820151612f566000850182612beb565b506020820151612f696020850182613017565b506040820151612f7c6040850182612cc5565b506060820151612f8f6060850182612fea565b50505050565b608082016000820151612fab6000850182612beb565b506020820151612fbe6020850182613017565b506040820151612fd16040850182612cc5565b506060820151612fe46060850182612fea565b50505050565b612ff3816134d2565b82525050565b613002816134e1565b82525050565b613011816134e1565b82525050565b613020816134eb565b82525050565b60006130328286612d55565b915061303e8285612d55565b915061304a8284612d86565b9150819050949350505050565b600061306282612ed7565b9150819050919050565b60006020820190506130816000830184612bfa565b92915050565b600060808201905061309c6000830187612bfa565b6130a96020830186612bfa565b6130b66040830185613008565b81810360608301526130c88184612ce3565b905095945050505050565b600060208201905081810360008301526130ed8184612c09565b905092915050565b6000602082019050818103600083015261310f8184612c67565b905092915050565b600060208201905061312c6000830184612cd4565b92915050565b6000602082019050818103600083015261314c8184612d1c565b905092915050565b6000602082019050818103600083015261316d81612e05565b9050919050565b6000602082019050818103600083015261318d81612e28565b9050919050565b600060208201905081810360008301526131ad81612e4b565b9050919050565b600060208201905081810360008301526131cd81612e6e565b9050919050565b600060208201905081810360008301526131ed81612e91565b9050919050565b6000602082019050818103600083015261320d81612eb4565b9050919050565b6000602082019050818103600083015261322d81612efa565b9050919050565b6000602082019050818103600083015261324d81612f1d565b9050919050565b60006080820190506132696000830184612f95565b92915050565b60006020820190506132846000830184613008565b92915050565b60006132946132a5565b90506132a08282613573565b919050565b6000604051905090565b600067ffffffffffffffff8211156132ca576132c9613631565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156132f6576132f5613631565b5b6132ff82613679565b9050602081019050919050565b600067ffffffffffffffff82111561332757613326613631565b5b61333082613679565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061341d826134e1565b9150613428836134e1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561345d5761345c6135a4565b5b828201905092915050565b6000613473826134b2565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561352c578082015181840152602081019050613511565b8381111561353b576000848401525b50505050565b6000600282049050600182168061355957607f821691505b6020821081141561356d5761356c6135d3565b5b50919050565b61357c82613679565b810181811067ffffffffffffffff8211171561359b5761359a613631565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f6d6178204e4654206c696d697420657863656564656420666f7220746869732060008201527f7573657200000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f7075626c696373616c65206973206e6f74206163746976650000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f63616e6e6f742062652063616c6c6564206279206120636f6e74726163740000600082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b61385081613468565b811461385b57600080fd5b50565b6138678161347a565b811461387257600080fd5b50565b61387e81613486565b811461388957600080fd5b50565b613895816134e1565b81146138a057600080fd5b5056fea2646970667358221220b0c397b0697c56c4e6bda0d379bc35961579a8669f951901bf9add420fea19ff64736f6c63430008070033
Loading...
Loading
Loading...
Loading
OVERVIEW
Welcome to the Meka Land 🌃 PROJECT EXTINCTION AWARENESS, #SaveRhinoshttps://discord.gg/mekarhinos (only holders)Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.