ERC-721
Source Code
NFT
Overview
Max Total Supply
7,000 LBL
Holders
3,187
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LBLLoading...
Loading
Loading...
Loading
Loading...
Loading
| # | Exchange | Pair | Price | 24H Volume | % Volume |
|---|
Contract Name:
LaidBackLlamas
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/***
* ██╗ █████╗ ██╗██████╗ ██████╗ █████╗ ██████╗██╗ ██╗
* ██║ ██╔══██╗██║██╔══██╗ ██╔══██╗██╔══██╗██╔════╝██║ ██╔╝
* ██║ ███████║██║██║ ██║ ██████╔╝███████║██║ █████╔╝
* ██║ ██╔══██║██║██║ ██║ ██╔══██╗██╔══██║██║ ██╔═██╗
* ███████╗██║ ██║██║██████╔╝ ██████╔╝██║ ██║╚██████╗██║ ██╗
* ╚══════╝╚═╝ ╚═╝╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
*
* ██╗ ██╗ █████╗ ███╗ ███╗ █████╗ ███████╗
* ██║ ██║ ██╔══██╗████╗ ████║██╔══██╗██╔════╝
* ██║ ██║ ███████║██╔████╔██║███████║███████╗
* ██║ ██║ ██╔══██║██║╚██╔╝██║██╔══██║╚════██║
* ███████╗███████╗██║ ██║██║ ╚═╝ ██║██║ ██║███████║
* ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./access/Developer.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./interface/IMAX721.sol";
import "./modules/Whitelist.sol";
import "./interface/IMAX721Whitelist.sol";
import "./modules/PaymentSplitter.sol";
import "./modules/BAYC.sol";
import "./modules/ContractURI.sol";
contract LaidBackLlamas is ERC721, BAYC, ContractURI, IMAX721, IMAX721Whitelist, Whitelist, ERC165Storage, ReentrancyGuard, PaymentSplitter, Developer, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
Counters.Counter private _teamMintCounter;
uint private mintStartID;
uint private constant MINT_FEES = 0.1 ether;
uint private constant PRESALE_MINT_FEES = 0.07 ether;
uint private endOfPresale;
uint private constant MINT_SIZE = 7000;
uint private teamMintSize;
string private base;
bool private enableMinter;
bool private enableWhiteList;
bool private lockedProvenance;
bool private lockedPayees;
event UpdatedBaseURI(string _old, string _new);
event UpdatedMintSize(uint _old, uint _new);
event UpdatedMintStatus(bool _old, bool _new);
event UpdatedTeamMintSize(uint _old, uint _new);
event UpdatedWhitelistStatus(bool _old, bool _new);
event UpdatedPresaleEnd(uint _old, uint _new);
event ProvenanceLocked(bool _status);
event PayeesLocked(bool _status);
// bytes4 constants for ERC165
bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
bytes4 private constant _INTERFACE_ID_IBAYC = 0xdee68dd1;
bytes4 private constant _INTERFACE_ID_IContractURI = 0xe8a3d485;
bytes4 private constant _INTERFACE_ID_IMAX721 = 0x29499a25;
bytes4 private constant _INTERFACE_ID_IMAX721Whitelist = 0x22699a34;
bytes4 private constant _INTERFACE_ID_Whitelist = 0xc683630d;
bytes4 private constant _INTERFACE_ID_Developer = 0x18f19aba;
bytes4 private constant _INTERFACE_ID_PaymentSplitter = 0x4a7f18f2;
constructor() ERC721("Laid Back Llamas", "LBL") {
// ECR165 Interfaces Supported
_registerInterface(_INTERFACE_ID_ERC721);
_registerInterface(_INTERFACE_ID_IBAYC);
_registerInterface(_INTERFACE_ID_IContractURI);
_registerInterface(_INTERFACE_ID_IMAX721);
_registerInterface(_INTERFACE_ID_IMAX721Whitelist);
_registerInterface(_INTERFACE_ID_Whitelist);
_registerInterface(_INTERFACE_ID_Developer);
_registerInterface(_INTERFACE_ID_PaymentSplitter);
}
/***
* ███╗ ███╗██╗███╗ ██╗████████╗
* ████╗ ████║██║████╗ ██║╚══██╔══╝
* ██╔████╔██║██║██╔██╗ ██║ ██║
* ██║╚██╔╝██║██║██║╚██╗██║ ██║
* ██║ ╚═╝ ██║██║██║ ╚████║ ██║
* ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═╝
*/
function publicMint(uint amount) public payable nonReentrant(){
require(lockedProvenance, "Set Providence hashes");
require(enableMinter, "Minter not active");
require(_tokenIdCounter.current() + amount <= MINT_SIZE, "Can not mint that many");
uint yourBalance = IERC721(address(this)).balanceOf(msg.sender);
if(enableWhiteList) {
require(msg.value == PRESALE_MINT_FEES * amount, "Wrong amount of Native Token");
require(isWhitelist[msg.sender], "You are not Whitelisted");
require(yourBalance < 3 && amount + yourBalance <= 3, "You can not get that many!");
checkTime();
// locks them out of whitelist, soft reentrancy guard
_removeWhitelist(msg.sender);
for (uint i = 0; i < amount; i++) {
_safeMint(msg.sender, mintID());
_tokenIdCounter.increment();
}
} else {
require(msg.value == MINT_FEES * amount, "Wrong amount of Native Token");
require(yourBalance < 5 && amount + yourBalance <= 5, "You can not get that many!");
for (uint i = 0; i < amount; i++) {
_safeMint(msg.sender, mintID());
_tokenIdCounter.increment();
}
}
}
function teamMint(address _address) public onlyOwner {
require(lockedProvenance, "Set Providence hashes");
require(teamMintSize != 0, "Team minting not enabled");
require(_tokenIdCounter.current() < MINT_SIZE, "Can not mint that many");
require(_teamMintCounter.current() < teamMintSize, "Can not team mint anymore");
_safeMint(_address, mintID());
_tokenIdCounter.increment();
_teamMintCounter.increment();
}
// @notice this shifts the _tokenIdCounter to proper mint number
function mintID() internal view returns (uint) {
return (mintStartID + _tokenIdCounter.current()) % MINT_SIZE;
}
// @notice this will check time and set whitelist to disabled
function checkTime() private {
if(endOfPresale <= block.timestamp) {
enableWhiteList = !enableWhiteList;
}
}
// Function to receive ether, msg.data must be empty
receive() external payable {
// From PaymentSplitter.sol, 99% of the time won't register
emit PaymentReceived(msg.sender, msg.value);
}
// Function to receive ether, msg.data is not empty
fallback() external payable {
// From PaymentSplitter.sol, 99% of the time won't register
emit PaymentReceived(msg.sender, msg.value);
}
function getBalance() external view returns (uint) {
return address(this).balance;
}
/***
* ██████╗ ██╗ ██╗███╗ ██╗███████╗██████╗
* ██╔═══██╗██║ ██║████╗ ██║██╔════╝██╔══██╗
* ██║ ██║██║ █╗ ██║██╔██╗ ██║█████╗ ██████╔╝
* ██║ ██║██║███╗██║██║╚██╗██║██╔══╝ ██╔══██╗
* ╚██████╔╝╚███╔███╔╝██║ ╚████║███████╗██║ ██║
* ╚═════╝ ╚══╝╚══╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝
* This section will have all the internals set to onlyOwner
*/
// @notice click this to start it up initally, for ease by onlyOwner
function startMinting() public onlyOwner {
require(lockedProvenance && lockedPayees, "Prerequisites not met");
// This is the initial setting
// Set Presale end time and emit
uint prevEndOfPresale = endOfPresale;
endOfPresale = block.timestamp + 1 days;
emit UpdatedPresaleEnd(prevEndOfPresale, endOfPresale);
// Set Whitelist status and emit
bool prevWhitelist = enableWhiteList;
enableWhiteList = true;
emit UpdatedWhitelistStatus(prevWhitelist, enableWhiteList);
// Set Minter Status and emit
bool prevMintStatus = enableMinter;
enableMinter = true;
emit UpdatedMintStatus(prevMintStatus, enableMinter);
}
// @notice this will enable publicMint()
function enableMinting() public onlyOwner {
bool old = enableMinter;
enableMinter = true;
emit UpdatedMintStatus(old, enableMinter);
}
// @notice this will disable publicMint()
function disableMinting() public onlyOwner {
bool old = enableMinter;
enableMinter = false;
emit UpdatedMintStatus(old, enableMinter);
}
// @notice this will enable whitelist or "if" in publicMint()
function enableWhitelist() public onlyOwner {
// Set Presale end time and emit
uint prevEndOfPresale = endOfPresale;
endOfPresale = block.timestamp + 1 days;
emit UpdatedPresaleEnd(prevEndOfPresale, endOfPresale);
// Set Whitelist status and emit
bool prevWhitelist = enableWhiteList;
enableWhiteList = true;
emit UpdatedWhitelistStatus(prevWhitelist, enableWhiteList);
}
// @notice this will disable whitelist or "else" in publicMint()
function disableWhitelist() public onlyOwner {
bool old = enableWhiteList;
enableWhiteList = false;
emit UpdatedWhitelistStatus(old, enableWhiteList);
}
// @notice adding functions to mapping
function addWhitelistBatch(address [] memory _addresses) public onlyOwner {
_addWhitelistBatch(_addresses);
}
// @notice adding functions to mapping
function addWhitelist(address _address) public onlyOwner {
_addWhitelist(_address);
}
// @notice removing functions to mapping
function removeWhitelistBatch(address [] memory _addresses) public onlyOwner {
_removeWhitelistBatch(_addresses);
}
// @notice removing functions to mapping
function removeWhitelist(address _address) public onlyOwner {
_removeWhitelist(_address);
}
/***
* ██████╗ ███████╗██╗ ██╗
* ██╔══██╗██╔════╝██║ ██║
* ██║ ██║█████╗ ██║ ██║
* ██║ ██║██╔══╝ ╚██╗ ██╔╝
* ██████╔╝███████╗ ╚████╔╝
* ╚═════╝ ╚══════╝ ╚═══╝
* This section will have all the internals set to onlyDev
* also contains all overrides required for funtionality
*/
// @notice will add an address to PaymentSplitter by onlyDev role
function addPayee(address newAddy, uint newShares) public onlyDev {
require(!lockedPayees, "Can not set, payees locked");
_addPayee(newAddy, newShares);
}
// @notice will lock payees on PaymentSplitter.sol
function lockPayees() public onlyDev {
require(!lockedPayees, "Can not set, payees locked");
lockedPayees = true;
emit PayeesLocked(lockedPayees);
}
// @notice will update _baseURI() by onlyDev role
function setBaseURI(string memory _base) public onlyDev {
string memory old = base;
base = _base;
emit UpdatedBaseURI(old, base);
}
// @notice will set the ContractURI for OpenSea
function setContractURI(string memory _contractURI) public onlyDev {
_setContractURI(_contractURI);
}
// @notice will set "team minting" by onlyDev role
function setTeamMinting(uint _amount) public onlyDev {
uint old = teamMintSize;
teamMintSize = _amount;
emit UpdatedTeamMintSize(old, teamMintSize);
}
// @notice this will set the Provenance Hashes
// This will also set the starting order as well!
// Only one shot to do this, otherwise it shows as invalid
function setProvenance(string memory _images, string memory _json) public onlyDev {
require(lockedPayees, "Can not set, payees unlocked");
require(!lockedProvenance, "Already Set!");
// This is the initial setting
_setProvenanceImages(_images);
_setProvenanceJSON(_json);
// Now to psuedo-random the starting number
// Your API should be a random before this step!
mintStartID = uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, _images, _json, block.difficulty))) % MINT_SIZE;
_setStartNumber(mintStartID);
// @notice Locks sequence
lockedProvenance = true;
emit ProvenanceLocked(lockedProvenance);
}
// @notice this will set the reveal timestamp
// This is more for your API and not on chain...
function setRevealTimestamp(uint _time) public onlyDev {
_setRevealTimestamp(_time);
}
// @notice function useful for accidental ETH transfers to contract (to user address)
// wraps _user in payable to fix address -> address payable
// Set to onlyOwner, this is case of a foulup on PaymentSplitter or minting
function sweepEthToAddress(address _user, uint _amount) public onlyOwner {
payable(_user).transfer(_amount);
}
///
/// Developer, these are the overrides
///
// @notice solidity required override for _baseURI()
function _baseURI() internal view override returns (string memory) {
return base;
}
// @notice solidity required override for supportsInterface(bytes4)
function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC165Storage, IERC165) returns (bool) {
return super.supportsInterface(interfaceId);
}
// @notice will return status of Minter
function minterStatus() external view override(IMAX721) returns (bool) {
return enableMinter;
}
// @notice will return minting fees
function minterFees() external pure override(IMAX721) returns (uint) {
return MINT_FEES;
}
// @notice will return presale minting fees
function presaleMinterFees() external pure returns (uint) {
return PRESALE_MINT_FEES;
}
// @notice will return maximum mint capacity
function minterMaximumCapacity() external pure override(IMAX721) returns (uint) {
return MINT_SIZE;
}
// @notice will return maximum "team minting" capacity
function minterMaximumTeamMints() external view override(IMAX721) returns (uint) {
return teamMintSize;
}
// @notice will return "team mints" left
function minterTeamMintsRemaining() external view override(IMAX721) returns (uint) {
return teamMintSize - _teamMintCounter.current();
}
// @notice will return "team mints" count
function minterTeamMintsCount() external view override(IMAX721) returns (uint) {
return _teamMintCounter.current();
}
// @notice will return current token count
function totalSupply() external view override(IMAX721) returns (uint) {
return _tokenIdCounter.current();
}
// @notice will return whitelist end timestamp
function whitelistEnd() external view override(IMAX721Whitelist) returns (uint256) {
return endOfPresale;
}
// @notice will return whitelist status of Minter
function whitelistStatus() external view override(IMAX721Whitelist) returns (bool) {
return enableWhiteList;
}
}/***
* ██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗███████╗████████╗
* ██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔════╝╚══██╔══╝
* ██║ █╗ ██║███████║██║ ██║ █████╗ ██║ ██║███████╗ ██║
* ██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║ ██║╚════██║ ██║
* ╚███╔███╔╝██║ ██║██║ ██║ ███████╗███████╗██║███████║ ██║
* ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚══════╝ ╚═╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
abstract contract Whitelist {
// ERC165 data
// Public getter isWhitelist(address) => 0xc683630d
// Whitelist is 0xc683630d
// set contract mapping
mapping(address => bool) public isWhitelist;
// only event needed
event ChangeToWhitelist(address _address, bool old, bool update);
// adding functions to mapping
function _addWhitelistBatch(address [] memory _addresses) internal {
for (uint i = 0; i < _addresses.length; i++) {
_addWhitelist(_addresses[i]);
}
}
function _addWhitelist(address _address) internal {
require(!isWhitelist[_address], "Already on Whitelist");
bool old = isWhitelist[_address];
isWhitelist[_address] = true;
emit ChangeToWhitelist(_address, old, isWhitelist[_address]);
}
// removing functions to mapping
function _removeWhitelistBatch(address [] memory _addresses) internal {
for (uint i = 0; i < _addresses.length; i++) {
_removeWhitelist(_addresses[i]);
}
}
function _removeWhitelist(address _address) internal {
require(isWhitelist[_address], "Already off Whitelist");
bool old = isWhitelist[_address];
isWhitelist[_address] = false;
emit ChangeToWhitelist(_address, old, isWhitelist[_address]);
}
}/***
* ██████╗ █████╗ ██╗ ██╗███╗ ███╗███████╗███╗ ██╗████████╗
* ██╔══██╗██╔══██╗╚██╗ ██╔╝████╗ ████║██╔════╝████╗ ██║╚══██╔══╝
* ██████╔╝███████║ ╚████╔╝ ██╔████╔██║█████╗ ██╔██╗ ██║ ██║
* ██╔═══╝ ██╔══██║ ╚██╔╝ ██║╚██╔╝██║██╔══╝ ██║╚██╗██║ ██║
* ██║ ██║ ██║ ██║ ██║ ╚═╝ ██║███████╗██║ ╚████║ ██║
* ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝ ╚═╝
*
* ███████╗██████╗ ██╗ ██╗████████╗████████╗███████╗██████╗
* ██╔════╝██╔══██╗██║ ██║╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗
* ███████╗██████╔╝██║ ██║ ██║ ██║ █████╗ ██████╔╝
* ╚════██║██╔═══╝ ██║ ██║ ██║ ██║ ██╔══╝ ██╔══██╗
* ███████║██║ ███████╗██║ ██║ ██║ ███████╗██║ ██║
* ╚══════╝╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
* This is a re-write of @openzeppelin/contracts/finance/PaymentSplitter.sol
* Rewritten by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
// Removal of SafeMath due to ^0.8.0 standards, not needed
/**
* @title PaymentSplitter
* @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
* that the Ether will be split in this way, since it is handled transparently by the contract.
*
* The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
* account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
* an amount proportional to the percentage of total shares they were assigned.
*
* `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
* accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
* function.
*/
abstract contract PaymentSplitter is Context {
// ERC165 data
// totalShares() => 0x3a98ef39
// totalReleased() => 0xe33b7de3
// shares(address) => 0xce7c2ac2
// released(address) => 0x9852595c
// payee(uint256) => 0x8b83209b
// claim() => 0x4e71d92d
// PaymentSplitter => 0x4a7f18f2
event PayeeAdded(address account, uint256 shares);
event PaymentReleased(address to, uint256 amount);
event PaymentReceived(address from, uint256 amount);
uint256 private _totalShares;
uint256 private _totalReleased;
mapping(address => uint256) private _shares;
mapping(address => uint256) private _released;
address[] private _payees;
/**
* @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
* reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
* reliability of the events, and not the actual splitting of Ether.
*
* To learn more about this see the Solidity documentation for
* https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
* functions].
*
* receive() external payable virtual {
* emit PaymentReceived(_msgSender(), msg.value);
* }
*
* // Fallback function is called when msg.data is not empty
* // Added to PaymentSplitter.sol
* fallback() external payable {
* emit PaymentReceived(_msgSender(), msg.value);
* }
*
* receive() and fallback() to be handled at final contract
*/
/**
* @dev Getter for the total shares held by payees.
*/
// totalShares() => 0x3a98ef39
function totalShares() public view returns (uint256) {
return _totalShares;
}
/**
* @dev Getter for the total amount of Ether already released.
*/
// totalReleased() => 0xe33b7de3
function totalReleased() public view returns (uint256) {
return _totalReleased;
}
/**
* @dev Getter for the amount of shares held by an account.
*/
// shares(address) => 0xce7c2ac2
function shares(address account) public view returns (uint256) {
return _shares[account];
}
/**
* @dev Getter for the amount of Ether already released to a payee.
*/
// released(address) => 0x9852595c
function released(address account) public view returns (uint256) {
return _released[account];
}
/**
* @dev Getter for the address of the payee number `index`.
*/
// payee(uint256) => 0x8b83209b
function payee(uint256 index) public view returns (address) {
return _payees[index];
}
/**
* @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
* total shares and their previous withdrawals.
*/
// This function was updated from "account" to msg.sender
// claim() => 0x4e71d92d
function claim() public virtual {
require(_shares[msg.sender] > 0, "PaymentSplitter: msg.sender has no shares");
uint256 totalReceived = address(this).balance + _totalReleased;
uint256 payment = (totalReceived * _shares[msg.sender]) / _totalShares - _released[msg.sender];
require(payment != 0, "PaymentSplitter: msg.sender is not due payment");
_released[msg.sender] = _released[msg.sender] + payment;
_totalReleased = _totalReleased + payment;
Address.sendValue(payable(msg.sender), payment);
emit PaymentReleased(msg.sender, payment);
}
/**
* @dev Add a new payee to the contract.
* @param account The address of the payee to add.
* @param shares_ The number of shares owned by the payee.
*/
// This function was updated to internal
function _addPayee(address account, uint256 shares_) internal {
require(account != address(0), "PaymentSplitter: account is the zero address");
require(shares_ > 0, "PaymentSplitter: shares are 0");
require(_shares[account] == 0, "PaymentSplitter: account already has shares");
_payees.push(account);
_shares[account] = shares_;
_totalShares = _totalShares + shares_;
emit PayeeAdded(account, shares_);
}
}/***
* ██████╗ ██████╗ ███╗ ██╗████████╗██████╗ █████╗ ██████╗████████╗ ██╗ ██╗██████╗ ██╗
* ██╔════╝██╔═══██╗████╗ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝ ██║ ██║██╔══██╗██║
* ██║ ██║ ██║██╔██╗ ██║ ██║ ██████╔╝███████║██║ ██║ ██║ ██║██████╔╝██║
* ██║ ██║ ██║██║╚██╗██║ ██║ ██╔══██╗██╔══██║██║ ██║ ██║ ██║██╔══██╗██║
* ╚██████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║██║ ██║╚██████╗ ██║ ╚██████╔╝██║ ██║██║
* ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*
* Purpose: OpenSea compliance on chain ID #1-5
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "../interface/IContractURI.sol";
abstract contract ContractURI is IContractURI {
// ERC165 stuff to be added
// all internals are not calculated
// contractURI() => 0xe8a3d485
// ContractURI => 0xe8a3d485
event ContractURIChange(string _old, string _new);
string private thisContractURI;
// @notice this sets the contractURI
function _setContractURI(string memory newURI) internal {
string memory old = thisContractURI;
thisContractURI = newURI;
emit ContractURIChange(old, thisContractURI);
}
// @notice will return string _ContractURI
// contractURI() => 0xe8a3d485
function contractURI() external view override(IContractURI) returns (string memory) {
return thisContractURI;
}
}/***
* ██████╗ █████╗ ██╗ ██╗ ██████╗
* ██╔══██╗██╔══██╗╚██╗ ██╔╝██╔════╝
* ██████╔╝███████║ ╚████╔╝ ██║
* ██╔══██╗██╔══██║ ╚██╔╝ ██║
* ██████╔╝██║ ██║ ██║ ╚██████╗
* ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*
* Purpose: Insipired by BAYC on Ethereum, Sets Provential Hashes and More
* Source: https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "../interface/IBAYC.sol";
abstract contract BAYC is IBAYC {
// ERC165
// RevealTimestamp() => 0x83ba7c1d
// RevealProvenanceImages() => 0xd792d2a0
// RevealProvenanceJSON() => 0x94352676
// RevealStartNumber() => 0x1efb051a
// BAYC => 0xdee68dd1
event SetProvenanceImages(string _old, string _new);
event SetProvenanceJSON(string _old, string _new);
event SetTimestamp(uint _old, uint _new);
event SetStartNumber(uint _old, uint _new);
uint256 private timestamp;
uint256 private startNumber;
string private ProvenanceImages;
string private ProvenanceJSON;
// @notice will set reveal timestamp
// _setRevealTimestamp(uint256) => 0x20add1a4
function _setRevealTimestamp(uint256 _timestamp) internal {
uint256 old = timestamp;
timestamp = _timestamp;
emit SetTimestamp(old, timestamp);
}
// @notice will set start number
// _setStartNumber(uint256) => 0x4266377e
function _setStartNumber(uint256 _startNumber) internal {
uint256 old = startNumber;
startNumber = _startNumber;
emit SetStartNumber(old, startNumber);
}
// @notice will set JSON Provenance
// _setProvenanceJSON(string) => 0xf3808eb1
function _setProvenanceJSON(string memory _ProvenanceJSON) internal {
string memory old = ProvenanceJSON;
ProvenanceJSON = _ProvenanceJSON;
emit SetProvenanceJSON(old, ProvenanceJSON);
}
// @notice will set Images Provenance
// _setProvenanceImages(string) => 0x1ef799c6
function _setProvenanceImages(string memory _ProvenanceImages) internal {
string memory old = ProvenanceImages;
ProvenanceImages = _ProvenanceImages;
emit SetProvenanceImages(old, ProvenanceImages);
}
// @notice will return timestamp of reveal
// RevealTimestamp() => 0x83ba7c1d
function RevealTimestamp() external view override(IBAYC) returns (uint256) {
return timestamp;
}
// @notice will return Provenance hash of images
// RevealProvenanceImages() => 0xd792d2a0
function RevealProvenanceImages() external view override(IBAYC) returns (string memory) {
return ProvenanceImages;
}
// @notice will return Provenance hash of metadata
// RevealProvenanceJSON() => 0x94352676
function RevealProvenanceJSON() external view override(IBAYC) returns (string memory) {
return ProvenanceJSON;
}
// @notice will return starting number for mint
// RevealStartNumber() => 0x1efb051a
function RevealStartNumber() external view override(IBAYC) returns (uint256) {
return startNumber;
}
}/***
* ██╗███╗ ██╗████████╗███████╗██████╗ ███████╗ █████╗ ██████╗███████╗
* ██║████╗ ██║╚══██╔══╝██╔════╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝
* ██║██╔██╗ ██║ ██║ █████╗ ██████╔╝█████╗ ███████║██║ █████╗
* ██║██║╚██╗██║ ██║ ██╔══╝ ██╔══██╗██╔══╝ ██╔══██║██║ ██╔══╝
* ██║██║ ╚████║ ██║ ███████╗██║ ██║██║ ██║ ██║╚██████╗███████╗
* ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
*
* ███╗ ███╗ █████╗ ██╗ ██╗ ███████╗██████╗ ██╗
* ████╗ ████║██╔══██╗╚██╗██╔╝ ╚════██║╚════██╗███║
* ██╔████╔██║███████║ ╚███╔╝█████╗ ██╔╝ █████╔╝╚██║
* ██║╚██╔╝██║██╔══██║ ██╔██╗╚════╝██╔╝ ██╔═══╝ ██║
* ██║ ╚═╝ ██║██║ ██║██╔╝ ██╗ ██║ ███████╗ ██║
* ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝
*
* ██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗███████╗████████╗
* ██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔════╝╚══██╔══╝
* ██║ █╗ ██║███████║██║ ██║ █████╗ ██║ ██║███████╗ ██║
* ██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║ ██║╚════██║ ██║
* ╚███╔███╔╝██║ ██║██║ ██║ ███████╗███████╗██║███████║ ██║
* ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚══════╝ ╚═╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
///
/// Developer this is the standard interface for all ERC721's written by myself
///
interface IMAX721Whitelist is IERC165 {
// ERC165 data
// whitelistStatus() => 0x9ddf7ad3
// whitelistEnd() => 0xbfb6e0e7
// IMAX721Whitelist => 0x22699a34
// @notice will return status of whitelist
function whitelistStatus() external view returns (bool);
// @notice will return whitelist end (quantity or time)
function whitelistEnd() external view returns (uint256);
}/***
* ██╗███╗ ██╗████████╗███████╗██████╗ ███████╗ █████╗ ██████╗███████╗
* ██║████╗ ██║╚══██╔══╝██╔════╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝
* ██║██╔██╗ ██║ ██║ █████╗ ██████╔╝█████╗ ███████║██║ █████╗
* ██║██║╚██╗██║ ██║ ██╔══╝ ██╔══██╗██╔══╝ ██╔══██║██║ ██╔══╝
* ██║██║ ╚████║ ██║ ███████╗██║ ██║██║ ██║ ██║╚██████╗███████╗
* ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
*
* ███╗ ███╗ █████╗ ██╗ ██╗ ███████╗██████╗ ██╗
* ████╗ ████║██╔══██╗╚██╗██╔╝ ╚════██║╚════██╗███║
* ██╔████╔██║███████║ ╚███╔╝█████╗ ██╔╝ █████╔╝╚██║
* ██║╚██╔╝██║██╔══██║ ██╔██╗╚════╝██╔╝ ██╔═══╝ ██║
* ██║ ╚═╝ ██║██║ ██║██╔╝ ██╗ ██║ ███████╗ ██║
* ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
///
/// Developer this is the standard interface for all ERC721's written by myself
///
interface IMAX721 is IERC165 {
// ERC165 data
// minterStatus() => 0x2ecd28ab
// minterFees() => 0xd95ae162
// minterMaximumCapacity() => 0x78c5939b
// minterMaximumTeamMints() => 0x049157bb
// minterTeamMintsRemaining() => 0x5c17e370
// minterTeamMintsCount() => 0xe68b7961
// totalSupply() => 0x18160ddd
// IMAX721 => 0x29499a25
// @notice will return status of Minter
// minterStatus() => 0x2ecd28ab
function minterStatus() external view returns (bool);
// @notice will return minting fees
// minterFees() => 0xd95ae162
function minterFees() external view returns (uint256);
// @notice will return maximum mint capacity
// minterMaximumCapacity() => 0x78c5939b
function minterMaximumCapacity() external view returns (uint256);
// @notice will return maximum "team minting" capacity
// minterMaximumTeamMints() => 0x049157bb
function minterMaximumTeamMints() external view returns (uint256);
// @notice will return "team mints" left
// minterTeamMintsRemaining() => 0x5c17e370
function minterTeamMintsRemaining() external view returns (uint256);
// @notice will return "team mints" count
// minterTeamMintsCount() => 0xe68b7961
function minterTeamMintsCount() external view returns (uint256);
// @notice will return current token count
// totalSupply() => 0x18160ddd
function totalSupply() external view returns (uint256);
}/***
* ██╗ ██████╗ ██████╗ ███╗ ██╗████████╗██████╗ █████╗ ██████╗████████╗ ██╗ ██╗██████╗ ██╗
* ██║██╔════╝██╔═══██╗████╗ ██║╚══██╔══╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝ ██║ ██║██╔══██╗██║
* ██║██║ ██║ ██║██╔██╗ ██║ ██║ ██████╔╝███████║██║ ██║ ██║ ██║██████╔╝██║
* ██║██║ ██║ ██║██║╚██╗██║ ██║ ██╔══██╗██╔══██║██║ ██║ ██║ ██║██╔══██╗██║
* ██║╚██████╗╚██████╔╝██║ ╚████║ ██║ ██║ ██║██║ ██║╚██████╗ ██║ ╚██████╔╝██║ ██║██║
* ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*
* Purpose: OpenSea compliance on chain ID #1-5
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
interface IContractURI is IERC165{
// contractURI() => 0xe8a3d485
// IContractURI => 0xe8a3d485
// @notice this is the contractURI() for OpeanSea compliance
// contractURI() => 0xe8a3d485
function contractURI() external view returns (string memory);
}/***
* ██╗██████╗ █████╗ ██╗ ██╗ ██████╗
* ██║██╔══██╗██╔══██╗╚██╗ ██╔╝██╔════╝
* ██║██████╔╝███████║ ╚████╔╝ ██║
* ██║██╔══██╗██╔══██║ ╚██╔╝ ██║
* ██║██████╔╝██║ ██║ ██║ ╚██████╗
* ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝
* Written by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*
* Purpose: Insipired by BAYC on Ethereum, Sets Provential Hashes and More
* Source: https://etherscan.io/address/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d#code
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
interface IBAYC is IERC165{
// ERC165
// RevealTimestamp() => 0x83ba7c1d
// RevealProvenanceImages() => 0xd792d2a0
// RevealProvenanceJSON() => 0x94352676
// RevealStartNumber() => 0x1efb051a
// IBAYC => 0x515a7c7c
// @notice will return timestamp of reveal
// RevealTimestamp() => 0x83ba7c1d
function RevealTimestamp() external view returns (uint256);
// @notice will return Provenance hash of images
// RevealProvenanceImages() => 0xd792d2a0
function RevealProvenanceImages() external view returns (string memory);
// @notice will return Provenance hash of metadata
// RevealProvenanceJSON() => 0x94352676
function RevealProvenanceJSON() external view returns (string memory);
// @notice will return starting number for mint
// RevealStartNumber() => 0x1efb051a
function RevealStartNumber() external view returns (uint256);
}/***
* ██████╗ ███████╗██╗ ██╗███████╗██╗ ██████╗ ██████╗ ███████╗██████╗
* ██╔══██╗██╔════╝██║ ██║██╔════╝██║ ██╔═══██╗██╔══██╗██╔════╝██╔══██╗
* ██║ ██║█████╗ ██║ ██║█████╗ ██║ ██║ ██║██████╔╝█████╗ ██████╔╝
* ██║ ██║██╔══╝ ╚██╗ ██╔╝██╔══╝ ██║ ██║ ██║██╔═══╝ ██╔══╝ ██╔══██╗
* ██████╔╝███████╗ ╚████╔╝ ███████╗███████╗╚██████╔╝██║ ███████╗██║ ██║
* ╚═════╝ ╚══════╝ ╚═══╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
* This is a re-write of @openzeppelin/contracts/access/Ownable.sol
* Rewritten by MaxFlowO2, Senior Developer and Partner of G&M² Labs
* Follow me on https://github.com/MaxflowO2 or Twitter @MaxFlowO2
* email: cryptobymaxflowO2@gmail.com
*/
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2
// Rewritten for onlyDev modifier
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (a developer) that can be granted exclusive access to
* specific functions.
*
* By default, the developer account will be the one that deploys the contract. This
* can later be changed with {transferDeveloper}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyDev`, which can be applied to your functions to restrict their use to
* the developer.
*/
abstract contract Developer is Context {
// ERC165
// developer() => 0xca4b208b
// renounceDeveloper() => 0xad6d9c17
// transferDeveloper(address) => 0xb671f4ea
// Developer => 0x18f19aba
address private _developer;
event DeveloperTransferred(address indexed previousDeveloper, address indexed newDeveloper);
/**
* @dev Initializes the contract setting the deployer as the initial developer.
*/
constructor() {
_transferDeveloper(_msgSender());
}
/**
* @dev Returns the address of the current developer.
*/
// developer() => 0xca4b208b
function developer() public view virtual returns (address) {
return _developer;
}
/**
* @dev Throws if called by any account other than the developer.
*/
modifier onlyDev() {
require(developer() == _msgSender(), "Developer: caller is not the developer");
_;
}
/**
* @dev Leaves the contract without developer. It will not be possible to call
* `onlyDev` functions anymore. Can only be called by the current developer.
*
* NOTE: Renouncing developership will leave the contract without an developer,
* thereby removing any functionality that is only available to the developer.
*/
// renounceDeveloper() => 0xad6d9c17
function renounceDeveloper() public virtual onlyDev {
_transferDeveloper(address(0));
}
/**
* @dev Transfers Developer of the contract to a new account (`newDeveloper`).
* Can only be called by the current developer.
*/
// transferDeveloper(address) => 0x64cb4edb
function transferDeveloper(address newDeveloper) public virtual onlyDev {
require(newDeveloper != address(0), "Developer: new developer is the zero address");
_transferDeveloper(newDeveloper);
}
/**
* @dev Transfers Developer of the contract to a new account (`newDeveloper`).
* Internal function without access restriction.
*/
function _transferDeveloper(address newDeveloper) internal virtual {
address oldDeveloper = _developer;
_developer = newDeveloper;
emit DeveloperTransferred(oldDeveloper, newDeveloper);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165Storage.sol)
pragma solidity ^0.8.0;
import "./ERC165.sol";
/**
* @dev Storage based implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
abstract contract ERC165Storage is ERC165 {
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, 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 Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @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 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);
/**
* @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;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// 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;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param 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 _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* 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, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
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);
}
}{
"remappings": [],
"optimizer": {
"enabled": true,
"runs": 100
},
"evmVersion": "london",
"libraries": {},
"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"},{"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":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"old","type":"bool"},{"indexed":false,"internalType":"bool","name":"update","type":"bool"}],"name":"ChangeToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_old","type":"string"},{"indexed":false,"internalType":"string","name":"_new","type":"string"}],"name":"ContractURIChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousDeveloper","type":"address"},{"indexed":true,"internalType":"address","name":"newDeveloper","type":"address"}],"name":"DeveloperTransferred","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"PayeesLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"ProvenanceLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_old","type":"string"},{"indexed":false,"internalType":"string","name":"_new","type":"string"}],"name":"SetProvenanceImages","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_old","type":"string"},{"indexed":false,"internalType":"string","name":"_new","type":"string"}],"name":"SetProvenanceJSON","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"SetStartNumber","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"SetTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_old","type":"string"},{"indexed":false,"internalType":"string","name":"_new","type":"string"}],"name":"UpdatedBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedMintSize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_old","type":"bool"},{"indexed":false,"internalType":"bool","name":"_new","type":"bool"}],"name":"UpdatedMintStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedPresaleEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"UpdatedTeamMintSize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_old","type":"bool"},{"indexed":false,"internalType":"bool","name":"_new","type":"bool"}],"name":"UpdatedWhitelistStatus","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"RevealProvenanceImages","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RevealProvenanceJSON","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RevealStartNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RevealTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAddy","type":"address"},{"internalType":"uint256","name":"newShares","type":"uint256"}],"name":"addPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockPayees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minterFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"minterMaximumCapacity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"minterMaximumTeamMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterTeamMintsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterTeamMintsRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMinterFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeWhitelistBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceDeveloper","outputs":[],"stateMutability":"nonpayable","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":"_base","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_images","type":"string"},{"internalType":"string","name":"_json","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setRevealTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTeamMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startMinting","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":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sweepEthToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":"newDeveloper","type":"address"}],"name":"transferDeveloper","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601081526f4c616964204261636b204c6c616d617360801b60208083019182528351808501909452600384526213109360ea1b908401528151919291620000659160009162000257565b5080516200007b90600190602084019062000257565b50506001600d55506200008e336200012f565b620000993362000181565b620000ab6380ac58cd60e01b620001d3565b620000bd63dee68dd160e01b620001d3565b620000cf63e8a3d48560e01b620001d3565b620000e16329499a2560e01b620001d3565b620000f363089a668d60e21b620001d3565b6200010563c683630d60e01b620001d3565b62000117630c78cd5d60e11b620001d3565b6200012963253f8c7960e11b620001d3565b6200033a565b601380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f2cfca82ac51c2fc6b6db547820d28d526a505e12d230afb8bf112a5aeefa9a4c90600090a35050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b03198082161415620002325760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015260640160405180910390fd5b6001600160e01b0319166000908152600c60205260409020805460ff19166001179055565b8280546200026590620002fd565b90600052602060002090601f016020900481019282620002895760008555620002d4565b82601f10620002a457805160ff1916838001178555620002d4565b82800160010185558215620002d4579182015b82811115620002d4578251825591602001919060010190620002b7565b50620002e2929150620002e6565b5090565b5b80821115620002e25760008155600101620002e7565b600181811c908216806200031257607f821691505b602082108114156200033457634e487b7160e01b600052602260045260246000fd5b50919050565b613c4f806200034a6000396000f3fe6080604052600436106103265760003560e01c80638b83209b116101a7578063bfb6e0e7116100ed578063d95ae16211610090578063d95ae1621461099c578063e33b7de3146109b7578063e68b7961146109cc578063e797ec1b146109e1578063e8a3d485146109f6578063e985e9c514610a0b578063f2fde38b14610a2b578063f80f5dd514610a4b57610366565b8063bfb6e0e7146108ad578063c683630d146108c2578063c87b56dd146108f2578063ca4b208b14610912578063cdfb2b4e14610927578063ce7c2ac21461093c578063d6b0f48414610972578063d792d2a01461098757610366565b80639ddf7ad3116101555780639ddf7ad3146107bb578063a22cb465146107d8578063aaf8042b146107f8578063ad6d9c1714610818578063b1362ba11461082d578063b44d73741461084d578063b6a1dba11461086d578063b88d4fde1461088d57610366565b80638b83209b146106f15780638da5cb5b14610711578063938e3d7b14610726578063943526761461074657806395d89b411461075b5780639852595c146107705780639a65ea26146107a657610366565b806338c410b51161026c57806364cb4edb1161021a57806364cb4edb1461062357806370a0823114610643578063715018a61461066357806372e961dc1461067857806378c5939b1461069257806378c8cda7146106a75780637e5cd5c1146106c757806383ba7c1d146106dc57610366565b806338c410b5146105645780633a98ef391461058457806342842e0e146105995780634e71d92d146105b957806355f804b3146105ce5780635c17e370146105ee5780636352211e1461060357610366565b806312065fe0116102d457806312065fe0146104a757806318160ddd146104ba57806318f9b023146104cf578063197874c4146104ef5780631efb051a1461050457806323b872dd146105195780632db11544146105395780632ecd28ab1461054c57610366565b8063018a2c371461039757806301ffc9a7146103b9578063049157bb146103ee578063068405ae1461040d57806306fdde031461042d578063081812fc1461044f578063095ea7b31461048757610366565b36610366577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161035c929190613272565b60405180910390a1005b7f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161035c929190613272565b3480156103a357600080fd5b506103b76103b236600461328b565b610a6b565b005b3480156103c557600080fd5b506103d96103d43660046132ba565b610aaf565b60405190151581526020015b60405180910390f35b3480156103fa57600080fd5b506019545b6040519081526020016103e5565b34801561041957600080fd5b506103b7610428366004613339565b610ac0565b34801561043957600080fd5b50610442610af8565b6040516103e5919061343d565b34801561045b57600080fd5b5061046f61046a36600461328b565b610b8a565b6040516001600160a01b0390911681526020016103e5565b34801561049357600080fd5b506103b76104a2366004613450565b610c12565b3480156104b357600080fd5b50476103ff565b3480156104c657600080fd5b506103ff610d23565b3480156104db57600080fd5b506103b76104ea366004613450565b610d33565b3480156104fb57600080fd5b506103b7610d9a565b34801561051057600080fd5b506007546103ff565b34801561052557600080fd5b506103b761053436600461347a565b610e4c565b6103b761054736600461328b565b610e7d565b34801561055857600080fd5b50601b5460ff166103d9565b34801561057057600080fd5b506103b761057f36600461352d565b6111a6565b34801561059057600080fd5b50600e546103ff565b3480156105a557600080fd5b506103b76105b436600461347a565b61132e565b3480156105c557600080fd5b506103b7611349565b3480156105da57600080fd5b506103b76105e9366004613590565b6114e6565b3480156105fa57600080fd5b506103ff6115ec565b34801561060f57600080fd5b5061046f61061e36600461328b565b611604565b34801561062f57600080fd5b506103b761063e3660046135c4565b61167b565b34801561064f57600080fd5b506103ff61065e3660046135c4565b61171e565b34801561066f57600080fd5b506103b76117a5565b34801561068457600080fd5b5066f8b0a10e4700006103ff565b34801561069e57600080fd5b50611b586103ff565b3480156106b357600080fd5b506103b76106c23660046135c4565b6117e0565b3480156106d357600080fd5b506103b7611818565b3480156106e857600080fd5b506006546103ff565b3480156106fd57600080fd5b5061046f61070c36600461328b565b611886565b34801561071d57600080fd5b5061046f6118b6565b34801561073257600080fd5b506103b7610741366004613590565b6118c5565b34801561075257600080fd5b506104426118fd565b34801561076757600080fd5b5061044261190c565b34801561077c57600080fd5b506103ff61078b3660046135c4565b6001600160a01b031660009081526011602052604090205490565b3480156107b257600080fd5b506103b761191b565b3480156107c757600080fd5b50601b54610100900460ff166103d9565b3480156107e457600080fd5b506103b76107f33660046135df565b611a8f565b34801561080457600080fd5b506103b7610813366004613450565b611a9a565b34801561082457600080fd5b506103b7611aff565b34801561083957600080fd5b506103b761084836600461328b565b611b38565b34801561085957600080fd5b506103b7610868366004613339565b611ba5565b34801561087957600080fd5b506103b76108883660046135c4565b611bdd565b34801561089957600080fd5b506103b76108a836600461361b565b611d1e565b3480156108b957600080fd5b506018546103ff565b3480156108ce57600080fd5b506103d96108dd3660046135c4565b600b6020526000908152604090205460ff1681565b3480156108fe57600080fd5b5061044261090d36600461328b565b611d56565b34801561091e57600080fd5b5061046f611e21565b34801561093357600080fd5b506103b7611e30565b34801561094857600080fd5b506103ff6109573660046135c4565b6001600160a01b031660009081526010602052604090205490565b34801561097e57600080fd5b506103b7611ef8565b34801561099357600080fd5b50610442611f6f565b3480156109a857600080fd5b5067016345785d8a00006103ff565b3480156109c357600080fd5b50600f546103ff565b3480156109d857600080fd5b506103ff611f7e565b3480156109ed57600080fd5b506103b7611f89565b348015610a0257600080fd5b50610442611ff4565b348015610a1757600080fd5b506103d9610a26366004613696565b612003565b348015610a3757600080fd5b506103b7610a463660046135c4565b612031565b348015610a5757600080fd5b506103b7610a663660046135c4565b6120ce565b33610a74611e21565b6001600160a01b031614610aa35760405162461bcd60e51b8152600401610a9a906136c9565b60405180910390fd5b610aac81612106565b50565b6000610aba82612144565b92915050565b33610ac96118b6565b6001600160a01b031614610aef5760405162461bcd60e51b8152600401610a9a9061370f565b610aac81612175565b606060008054610b0790613744565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3390613744565b8015610b805780601f10610b5557610100808354040283529160200191610b80565b820191906000526020600020905b815481529060010190602001808311610b6357829003601f168201915b5050505050905090565b6000610b95826121b5565b610bf65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9a565b506000908152600460205260409020546001600160a01b031690565b6000610c1d82611604565b9050806001600160a01b0316836001600160a01b03161415610c8b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a9a565b336001600160a01b0382161480610ca75750610ca78133612003565b610d145760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a9a565b610d1e83836121d2565b505050565b6000610d2e60155490565b905090565b33610d3c611e21565b6001600160a01b031614610d625760405162461bcd60e51b8152600401610a9a906136c9565b601b546301000000900460ff1615610d8c5760405162461bcd60e51b8152600401610a9a9061377f565b610d968282612240565b5050565b33610da3611e21565b6001600160a01b031614610dc95760405162461bcd60e51b8152600401610a9a906136c9565b601b546301000000900460ff1615610df35760405162461bcd60e51b8152600401610a9a9061377f565b601b805463ff00000019166301000000908117918290556040517f07fe2f03bd4fa149b9d8918fb57a6e2a3b1fbbb29a4d4536df7e6cd9edf02ed892610e4292900460ff161515815260200190565b60405180910390a1565b610e563382612412565b610e725760405162461bcd60e51b8152600401610a9a906137b6565b610d1e8383836124dc565b6002600d541415610ed05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9a565b6002600d55601b5462010000900460ff16610efd5760405162461bcd60e51b8152600401610a9a90613807565b601b5460ff16610f435760405162461bcd60e51b81526020600482015260116024820152704d696e746572206e6f742061637469766560781b6044820152606401610a9a565b611b5881610f5060155490565b610f5a919061384c565b1115610f785760405162461bcd60e51b8152600401610a9a90613864565b6040516370a0823160e01b815233600482015260009030906370a0823190602401602060405180830381865afa158015610fb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fda9190613894565b601b54909150610100900460ff16156110fe57610ffe8266f8b0a10e4700006138ad565b341461101c5760405162461bcd60e51b8152600401610a9a906138cc565b336000908152600b602052604090205460ff166110755760405162461bcd60e51b8152602060048201526017602482015276165bdd48185c99481b9bdd0815da1a5d195b1a5cdd1959604a1b6044820152606401610a9a565b60038110801561108f5750600361108c828461384c565b11155b6110ab5760405162461bcd60e51b8152600401610a9a90613903565b6110b361267c565b6110bc336126a2565b60005b828110156110f8576110d8336110d361275d565b612782565b6110e6601580546001019055565b806110f08161393a565b9150506110bf565b5061119d565b6111108267016345785d8a00006138ad565b341461112e5760405162461bcd60e51b8152600401610a9a906138cc565b60058110801561114857506005611145828461384c565b11155b6111645760405162461bcd60e51b8152600401610a9a90613903565b60005b8281101561119b5761117b336110d361275d565b611189601580546001019055565b806111938161393a565b915050611167565b505b50506001600d55565b336111af611e21565b6001600160a01b0316146111d55760405162461bcd60e51b8152600401610a9a906136c9565b601b546301000000900460ff1661122e5760405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f74207365742c2070617965657320756e6c6f636b6564000000006044820152606401610a9a565b601b5462010000900460ff16156112765760405162461bcd60e51b815260206004820152600c60248201526b416c7265616479205365742160a01b6044820152606401610a9a565b61127f8261279c565b61128881612873565b611b5842338484446040516020016112a4959493929190613955565b6040516020818303038152906040528051906020012060001c6112c791906139c8565b60178190556112d59061294a565b601b805462ff0000191662010000908117918290556040517ff409b8c4404a114fa8f045dedf3c882a53c0ad3356d79cdfedcfb5337b7259359261132292900460ff161515815260200190565b60405180910390a15050565b610d1e83838360405180602001604052806000815250611d1e565b336000908152601060205260409020546113b75760405162461bcd60e51b815260206004820152602960248201527f5061796d656e7453706c69747465723a206d73672e73656e64657220686173206044820152686e6f2073686172657360b81b6064820152608401610a9a565b6000600f54476113c7919061384c565b33600090815260116020908152604080832054600e5460109093529083205493945091926113f590856138ad565b6113ff91906139dc565b61140991906139f0565b90508061146f5760405162461bcd60e51b815260206004820152602e60248201527f5061796d656e7453706c69747465723a206d73672e73656e646572206973206e60448201526d1bdd08191d59481c185e5b595b9d60921b6064820152608401610a9a565b3360009081526011602052604090205461148a90829061384c565b33600090815260116020526040902055600f546114a890829061384c565b600f556114b53382612988565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0563382604051611322929190613272565b336114ef611e21565b6001600160a01b0316146115155760405162461bcd60e51b8152600401610a9a906136c9565b6000601a805461152490613744565b80601f016020809104026020016040519081016040528092919081815260200182805461155090613744565b801561159d5780601f106115725761010080835404028352916020019161159d565b820191906000526020600020905b81548152906001019060200180831161158057829003601f168201915b505085519394506115b993601a935060208701925090506131d9565b507fd2877107a884510f506ed0bd833e6601f4344691e32a0ce4bcdedb1d9d9d28e181601a604051611322929190613a07565b60006115f760165490565b601954610d2e91906139f0565b6000818152600260205260408120546001600160a01b031680610aba5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a9a565b33611684611e21565b6001600160a01b0316146116aa5760405162461bcd60e51b8152600401610a9a906136c9565b6001600160a01b0381166117155760405162461bcd60e51b815260206004820152602c60248201527f446576656c6f7065723a206e657720646576656c6f706572206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610a9a565b610aac81612aa1565b60006001600160a01b0382166117895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a9a565b506001600160a01b031660009081526003602052604090205490565b336117ae6118b6565b6001600160a01b0316146117d45760405162461bcd60e51b8152600401610a9a9061370f565b6117de6000612af3565b565b336117e96118b6565b6001600160a01b03161461180f5760405162461bcd60e51b8152600401610a9a9061370f565b610aac816126a2565b336118216118b6565b6001600160a01b0316146118475760405162461bcd60e51b8152600401610a9a9061370f565b601b805460ff1981169091556040805160ff90921680151583526000602084015291600080516020613bda83398151915291015b60405180910390a150565b60006012828154811061189b5761189b613ac5565b6000918252602090912001546001600160a01b031692915050565b6014546001600160a01b031690565b336118ce611e21565b6001600160a01b0316146118f45760405162461bcd60e51b8152600401610a9a906136c9565b610aac81612b45565b606060098054610b0790613744565b606060018054610b0790613744565b336119246118b6565b6001600160a01b03161461194a5760405162461bcd60e51b8152600401610a9a9061370f565b601b5462010000900460ff16801561196b5750601b546301000000900460ff165b6119af5760405162461bcd60e51b8152602060048201526015602482015274141c995c995c5d5a5cda5d195cc81b9bdd081b595d605a1b6044820152606401610a9a565b6018546119bf426201518061384c565b60188190556040805183815260208101929092527f2035e528a105b1a590d12b804544047974e6b8840f450439cbba9c99ebe80812910160405180910390a1601b805461010061ff00198216811792839055604080519282900460ff9081168015158552929094049093161515602083015291600080516020613bfa833981519152910160405180910390a1601b8054600160ff19821681179092556040805160ff90921680151583526020830193909352600080516020613bda833981519152910160405180910390a1505050565b610d96338383612c1c565b33611aa36118b6565b6001600160a01b031614611ac95760405162461bcd60e51b8152600401610a9a9061370f565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610d1e573d6000803e3d6000fd5b33611b08611e21565b6001600160a01b031614611b2e5760405162461bcd60e51b8152600401610a9a906136c9565b6117de6000612aa1565b33611b41611e21565b6001600160a01b031614611b675760405162461bcd60e51b8152600401610a9a906136c9565b601980549082905560408051828152602081018490527ff4bc3d37ffa08e7dbc3d7b982669323cf71f90c293c7601f79532217f72fcefe9101611322565b33611bae6118b6565b6001600160a01b031614611bd45760405162461bcd60e51b8152600401610a9a9061370f565b610aac81612ce7565b33611be66118b6565b6001600160a01b031614611c0c5760405162461bcd60e51b8152600401610a9a9061370f565b601b5462010000900460ff16611c345760405162461bcd60e51b8152600401610a9a90613807565b601954611c7e5760405162461bcd60e51b81526020600482015260186024820152771519585b481b5a5b9d1a5b99c81b9bdd08195b98589b195960421b6044820152606401610a9a565b611b58611c8a60155490565b10611ca75760405162461bcd60e51b8152600401610a9a90613864565b60195460165410611cf65760405162461bcd60e51b815260206004820152601960248201527843616e206e6f74207465616d206d696e7420616e796d6f726560381b6044820152606401610a9a565b611d02816110d361275d565b611d10601580546001019055565b610aac601680546001019055565b611d283383612412565b611d445760405162461bcd60e51b8152600401610a9a906137b6565b611d5084848484612d27565b50505050565b6060611d61826121b5565b611dc55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a9a565b6000611dcf612d5a565b90506000815111611def5760405180602001604052806000815250611e1a565b80611df984612d69565b604051602001611e0a929190613adb565b6040516020818303038152906040525b9392505050565b6013546001600160a01b031690565b33611e396118b6565b6001600160a01b031614611e5f5760405162461bcd60e51b8152600401610a9a9061370f565b601854611e6f426201518061384c565b60188190556040805183815260208101929092527f2035e528a105b1a590d12b804544047974e6b8840f450439cbba9c99ebe80812910160405180910390a1601b805461010061ff00198216811792839055604080519282900460ff9081168015158552929094049093161515602083015291600080516020613bfa8339815191529101611322565b33611f016118b6565b6001600160a01b031614611f275760405162461bcd60e51b8152600401610a9a9061370f565b601b805461ff00198116918290556040805160ff610100938490048116801515835293909404909316151560208401529091600080516020613bfa833981519152910161187b565b606060088054610b0790613744565b6000610d2e60165490565b33611f926118b6565b6001600160a01b031614611fb85760405162461bcd60e51b8152600401610a9a9061370f565b601b8054600160ff19821681179092556040805160ff90921680151583526020830193909352600080516020613bda833981519152910161187b565b6060600a8054610b0790613744565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3361203a6118b6565b6001600160a01b0316146120605760405162461bcd60e51b8152600401610a9a9061370f565b6001600160a01b0381166120c55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9a565b610aac81612af3565b336120d76118b6565b6001600160a01b0316146120fd5760405162461bcd60e51b8152600401610a9a9061370f565b610aac81612e66565b600680549082905560408051828152602081018490527f526a360abdfe79a017147d182df55ee049c58d03aaeb7894e934bdc1061b2db09101611322565b600061214f82612f25565b80610aba5750506001600160e01b0319166000908152600c602052604090205460ff1690565b60005b8151811015610d96576121a382828151811061219657612196613ac5565b60200260200101516126a2565b806121ad8161393a565b915050612178565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220782611604565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166122ab5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610a9a565b600081116122fb5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401610a9a565b6001600160a01b038216600090815260106020526040902054156123755760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401610a9a565b60128054600181019091557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180546001600160a01b0319166001600160a01b0384169081179091556000908152601060205260409020819055600e546123dd90829061384c565b600e556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac906113229084908490613272565b600061241d826121b5565b61247e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9a565b600061248983611604565b9050806001600160a01b0316846001600160a01b031614806124c45750836001600160a01b03166124b984610b8a565b6001600160a01b0316145b806124d457506124d48185612003565b949350505050565b826001600160a01b03166124ef82611604565b6001600160a01b0316146125575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a9a565b6001600160a01b0382166125b95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a9a565b6125c46000826121d2565b6001600160a01b03831660009081526003602052604081208054600192906125ed9084906139f0565b90915550506001600160a01b038216600090815260036020526040812080546001929061261b90849061384c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b42601854116117de57601b805461ff001981166101009182900460ff1615909102179055565b6001600160a01b0381166000908152600b602052604090205460ff166127025760405162461bcd60e51b8152602060048201526015602482015274105b1c9958591e481bd9998815da1a5d195b1a5cdd605a1b6044820152606401610a9a565b6001600160a01b0381166000908152600b6020526040808220805460ff198116909155905160ff909116917fcbf65fda6f75c03e266ef74e6dabd13937eb87f9c4f471a2c32be26485fcb07f91611322918591859190613b0a565b6000611b5861276b60155490565b601754612778919061384c565b610d2e91906139c8565b610d96828260405180602001604052806000815250612f75565b6000600880546127ab90613744565b80601f01602080910402602001604051908101604052809291908181526020018280546127d790613744565b80156128245780601f106127f957610100808354040283529160200191612824565b820191906000526020600020905b81548152906001019060200180831161280757829003601f168201915b50508551939450612840936008935060208701925090506131d9565b507fe4559edc44d8a0825d54d0afcb85409324d9a4c7a818256c6bea4a471a964542816008604051611322929190613a07565b60006009805461288290613744565b80601f01602080910402602001604051908101604052809291908181526020018280546128ae90613744565b80156128fb5780601f106128d0576101008083540402835291602001916128fb565b820191906000526020600020905b8154815290600101906020018083116128de57829003601f168201915b50508551939450612917936009935060208701925090506131d9565b507f5769620297eb5047703c0ba55dd28b8ea50ba49818a91a43217fedce8eb69a30816009604051611322929190613a07565b600780549082905560408051828152602081018490527f508e68918b7b107539e360f3892abf9555ea4cb31e83a7887091601a6da3f9f49101611322565b804710156129d85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a9a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612a25576040519150601f19603f3d011682016040523d82523d6000602084013e612a2a565b606091505b5050905080610d1e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a9a565b601380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f2cfca82ac51c2fc6b6db547820d28d526a505e12d230afb8bf112a5aeefa9a4c90600090a35050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600a8054612b5490613744565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8090613744565b8015612bcd5780601f10612ba257610100808354040283529160200191612bcd565b820191906000526020600020905b815481529060010190602001808311612bb057829003601f168201915b50508551939450612be993600a935060208701925090506131d9565b507f17f75bb1e35b058872a221a8c16d8b3e39eacbda214fd7da20f192b9291ecc3b81600a604051611322929190613a07565b816001600160a01b0316836001600160a01b03161415612c7a5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a9a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60005b8151811015610d9657612d15828281518110612d0857612d08613ac5565b6020026020010151612e66565b80612d1f8161393a565b915050612cea565b612d328484846124dc565b612d3e84848484612fa8565b611d505760405162461bcd60e51b8152600401610a9a90613b2d565b6060601a8054610b0790613744565b606081612d8d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612db75780612da18161393a565b9150612db09050600a836139dc565b9150612d91565b6000816001600160401b03811115612dd157612dd16132d7565b6040519080825280601f01601f191660200182016040528015612dfb576020820181803683370190505b5090505b84156124d457612e106001836139f0565b9150612e1d600a866139c8565b612e2890603061384c565b60f81b818381518110612e3d57612e3d613ac5565b60200101906001600160f81b031916908160001a905350612e5f600a866139dc565b9450612dff565b6001600160a01b0381166000908152600b602052604090205460ff1615612ec65760405162461bcd60e51b8152602060048201526014602482015273105b1c9958591e481bdb8815da1a5d195b1a5cdd60621b6044820152606401610a9a565b6001600160a01b0381166000908152600b6020526040908190208054600160ff1982168117909255915160ff909216917fcbf65fda6f75c03e266ef74e6dabd13937eb87f9c4f471a2c32be26485fcb07f916113229185918591613b0a565b60006001600160e01b031982166380ac58cd60e01b1480612f5657506001600160e01b03198216635b5e139f60e01b145b80610aba57506301ffc9a760e01b6001600160e01b0319831614610aba565b612f7f83836130a6565b612f8c6000848484612fa8565b610d1e5760405162461bcd60e51b8152600401610a9a90613b2d565b60006001600160a01b0384163b1561309b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fec903390899088908890600401613b7f565b6020604051808303816000875af1925050508015613027575060408051601f3d908101601f1916820190925261302491810190613bbc565b60015b613081573d808015613055576040519150601f19603f3d011682016040523d82523d6000602084013e61305a565b606091505b5080516130795760405162461bcd60e51b8152600401610a9a90613b2d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124d4565b506001949350505050565b6001600160a01b0382166130fc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9a565b613105816121b5565b156131525760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a9a565b6001600160a01b038216600090815260036020526040812080546001929061317b90849061384c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131e590613744565b90600052602060002090601f016020900481019282613207576000855561324d565b82601f1061322057805160ff191683800117855561324d565b8280016001018555821561324d579182015b8281111561324d578251825591602001919060010190613232565b5061325992915061325d565b5090565b5b80821115613259576000815560010161325e565b6001600160a01b03929092168252602082015260400190565b60006020828403121561329d57600080fd5b5035919050565b6001600160e01b031981168114610aac57600080fd5b6000602082840312156132cc57600080fd5b8135611e1a816132a4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613315576133156132d7565b604052919050565b80356001600160a01b038116811461333457600080fd5b919050565b6000602080838503121561334c57600080fd5b82356001600160401b038082111561336357600080fd5b818501915085601f83011261337757600080fd5b813581811115613389576133896132d7565b8060051b915061339a8483016132ed565b81815291830184019184810190888411156133b457600080fd5b938501935b838510156133d9576133ca8561331d565b825293850193908501906133b9565b98975050505050505050565b60005b838110156134005781810151838201526020016133e8565b83811115611d505750506000910152565b600081518084526134298160208601602086016133e5565b601f01601f19169290920160200192915050565b602081526000611e1a6020830184613411565b6000806040838503121561346357600080fd5b61346c8361331d565b946020939093013593505050565b60008060006060848603121561348f57600080fd5b6134988461331d565b92506134a66020850161331d565b9150604084013590509250925092565b60006001600160401b038311156134cf576134cf6132d7565b6134e2601f8401601f19166020016132ed565b90508281528383830111156134f657600080fd5b828260208301376000602084830101529392505050565b600082601f83011261351e57600080fd5b611e1a838335602085016134b6565b6000806040838503121561354057600080fd5b82356001600160401b038082111561355757600080fd5b6135638683870161350d565b9350602085013591508082111561357957600080fd5b506135868582860161350d565b9150509250929050565b6000602082840312156135a257600080fd5b81356001600160401b038111156135b857600080fd5b6124d48482850161350d565b6000602082840312156135d657600080fd5b611e1a8261331d565b600080604083850312156135f257600080fd5b6135fb8361331d565b91506020830135801515811461361057600080fd5b809150509250929050565b6000806000806080858703121561363157600080fd5b61363a8561331d565b93506136486020860161331d565b92506040850135915060608501356001600160401b0381111561366a57600080fd5b8501601f8101871361367b57600080fd5b61368a878235602084016134b6565b91505092959194509250565b600080604083850312156136a957600080fd5b6136b28361331d565b91506136c06020840161331d565b90509250929050565b60208082526026908201527f446576656c6f7065723a2063616c6c6572206973206e6f74207468652064657660408201526532b637b832b960d11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061375857607f821691505b6020821081141561377957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601a908201527f43616e206e6f74207365742c20706179656573206c6f636b6564000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601590820152745365742050726f766964656e63652068617368657360581b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561385f5761385f613836565b500190565b60208082526016908201527543616e206e6f74206d696e742074686174206d616e7960501b604082015260600190565b6000602082840312156138a657600080fd5b5051919050565b60008160001904831182151516156138c7576138c7613836565b500290565b6020808252601c908201527f57726f6e6720616d6f756e74206f66204e617469766520546f6b656e00000000604082015260600190565b6020808252601a908201527f596f752063616e206e6f74206765742074686174206d616e7921000000000000604082015260600190565b600060001982141561394e5761394e613836565b5060010190565b8581526bffffffffffffffffffffffff198560601b166020820152600084516139858160348501602089016133e5565b84519083019061399c8160348401602089016133e5565b0160348101939093525050605401949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826139d7576139d76139b2565b500690565b6000826139eb576139eb6139b2565b500490565b600082821015613a0257613a02613836565b500390565b604081526000613a1a6040830185613411565b6020838203818501526000855481600182811c915080831680613a3e57607f831692505b858310811415613a5c57634e487b7160e01b85526022600452602485fd5b828752602087019650808015613a795760018114613a8a57613ab5565b60ff19851688528688019550613ab5565b60008b81526020902060005b85811015613aaf5781548a820152908401908801613a96565b89019650505b50939a9950505050505050505050565b634e487b7160e01b600052603260045260246000fd5b60008351613aed8184602088016133e5565b835190830190613b018183602088016133e5565b01949350505050565b6001600160a01b0393909316835290151560208301521515604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bb290830184613411565b9695505050505050565b600060208284031215613bce57600080fd5b8151611e1a816132a456fe1ab1d89be1fd19dcd21c73f1d6e927e3f148097e8691bbba925bd85e34e1f0e35045eea7e64af4d857464a8347a5bbce05a99fe1e1f08a3f1ebbc61aa782b21ba2646970667358221220dde663cfe8ccdb04f87f9a6a2d036b9b5e5c12f005d6ea4b37a1e1c833be784464736f6c634300080b0033
Deployed Bytecode
0x6080604052600436106103265760003560e01c80638b83209b116101a7578063bfb6e0e7116100ed578063d95ae16211610090578063d95ae1621461099c578063e33b7de3146109b7578063e68b7961146109cc578063e797ec1b146109e1578063e8a3d485146109f6578063e985e9c514610a0b578063f2fde38b14610a2b578063f80f5dd514610a4b57610366565b8063bfb6e0e7146108ad578063c683630d146108c2578063c87b56dd146108f2578063ca4b208b14610912578063cdfb2b4e14610927578063ce7c2ac21461093c578063d6b0f48414610972578063d792d2a01461098757610366565b80639ddf7ad3116101555780639ddf7ad3146107bb578063a22cb465146107d8578063aaf8042b146107f8578063ad6d9c1714610818578063b1362ba11461082d578063b44d73741461084d578063b6a1dba11461086d578063b88d4fde1461088d57610366565b80638b83209b146106f15780638da5cb5b14610711578063938e3d7b14610726578063943526761461074657806395d89b411461075b5780639852595c146107705780639a65ea26146107a657610366565b806338c410b51161026c57806364cb4edb1161021a57806364cb4edb1461062357806370a0823114610643578063715018a61461066357806372e961dc1461067857806378c5939b1461069257806378c8cda7146106a75780637e5cd5c1146106c757806383ba7c1d146106dc57610366565b806338c410b5146105645780633a98ef391461058457806342842e0e146105995780634e71d92d146105b957806355f804b3146105ce5780635c17e370146105ee5780636352211e1461060357610366565b806312065fe0116102d457806312065fe0146104a757806318160ddd146104ba57806318f9b023146104cf578063197874c4146104ef5780631efb051a1461050457806323b872dd146105195780632db11544146105395780632ecd28ab1461054c57610366565b8063018a2c371461039757806301ffc9a7146103b9578063049157bb146103ee578063068405ae1461040d57806306fdde031461042d578063081812fc1461044f578063095ea7b31461048757610366565b36610366577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161035c929190613272565b60405180910390a1005b7f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161035c929190613272565b3480156103a357600080fd5b506103b76103b236600461328b565b610a6b565b005b3480156103c557600080fd5b506103d96103d43660046132ba565b610aaf565b60405190151581526020015b60405180910390f35b3480156103fa57600080fd5b506019545b6040519081526020016103e5565b34801561041957600080fd5b506103b7610428366004613339565b610ac0565b34801561043957600080fd5b50610442610af8565b6040516103e5919061343d565b34801561045b57600080fd5b5061046f61046a36600461328b565b610b8a565b6040516001600160a01b0390911681526020016103e5565b34801561049357600080fd5b506103b76104a2366004613450565b610c12565b3480156104b357600080fd5b50476103ff565b3480156104c657600080fd5b506103ff610d23565b3480156104db57600080fd5b506103b76104ea366004613450565b610d33565b3480156104fb57600080fd5b506103b7610d9a565b34801561051057600080fd5b506007546103ff565b34801561052557600080fd5b506103b761053436600461347a565b610e4c565b6103b761054736600461328b565b610e7d565b34801561055857600080fd5b50601b5460ff166103d9565b34801561057057600080fd5b506103b761057f36600461352d565b6111a6565b34801561059057600080fd5b50600e546103ff565b3480156105a557600080fd5b506103b76105b436600461347a565b61132e565b3480156105c557600080fd5b506103b7611349565b3480156105da57600080fd5b506103b76105e9366004613590565b6114e6565b3480156105fa57600080fd5b506103ff6115ec565b34801561060f57600080fd5b5061046f61061e36600461328b565b611604565b34801561062f57600080fd5b506103b761063e3660046135c4565b61167b565b34801561064f57600080fd5b506103ff61065e3660046135c4565b61171e565b34801561066f57600080fd5b506103b76117a5565b34801561068457600080fd5b5066f8b0a10e4700006103ff565b34801561069e57600080fd5b50611b586103ff565b3480156106b357600080fd5b506103b76106c23660046135c4565b6117e0565b3480156106d357600080fd5b506103b7611818565b3480156106e857600080fd5b506006546103ff565b3480156106fd57600080fd5b5061046f61070c36600461328b565b611886565b34801561071d57600080fd5b5061046f6118b6565b34801561073257600080fd5b506103b7610741366004613590565b6118c5565b34801561075257600080fd5b506104426118fd565b34801561076757600080fd5b5061044261190c565b34801561077c57600080fd5b506103ff61078b3660046135c4565b6001600160a01b031660009081526011602052604090205490565b3480156107b257600080fd5b506103b761191b565b3480156107c757600080fd5b50601b54610100900460ff166103d9565b3480156107e457600080fd5b506103b76107f33660046135df565b611a8f565b34801561080457600080fd5b506103b7610813366004613450565b611a9a565b34801561082457600080fd5b506103b7611aff565b34801561083957600080fd5b506103b761084836600461328b565b611b38565b34801561085957600080fd5b506103b7610868366004613339565b611ba5565b34801561087957600080fd5b506103b76108883660046135c4565b611bdd565b34801561089957600080fd5b506103b76108a836600461361b565b611d1e565b3480156108b957600080fd5b506018546103ff565b3480156108ce57600080fd5b506103d96108dd3660046135c4565b600b6020526000908152604090205460ff1681565b3480156108fe57600080fd5b5061044261090d36600461328b565b611d56565b34801561091e57600080fd5b5061046f611e21565b34801561093357600080fd5b506103b7611e30565b34801561094857600080fd5b506103ff6109573660046135c4565b6001600160a01b031660009081526010602052604090205490565b34801561097e57600080fd5b506103b7611ef8565b34801561099357600080fd5b50610442611f6f565b3480156109a857600080fd5b5067016345785d8a00006103ff565b3480156109c357600080fd5b50600f546103ff565b3480156109d857600080fd5b506103ff611f7e565b3480156109ed57600080fd5b506103b7611f89565b348015610a0257600080fd5b50610442611ff4565b348015610a1757600080fd5b506103d9610a26366004613696565b612003565b348015610a3757600080fd5b506103b7610a463660046135c4565b612031565b348015610a5757600080fd5b506103b7610a663660046135c4565b6120ce565b33610a74611e21565b6001600160a01b031614610aa35760405162461bcd60e51b8152600401610a9a906136c9565b60405180910390fd5b610aac81612106565b50565b6000610aba82612144565b92915050565b33610ac96118b6565b6001600160a01b031614610aef5760405162461bcd60e51b8152600401610a9a9061370f565b610aac81612175565b606060008054610b0790613744565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3390613744565b8015610b805780601f10610b5557610100808354040283529160200191610b80565b820191906000526020600020905b815481529060010190602001808311610b6357829003601f168201915b5050505050905090565b6000610b95826121b5565b610bf65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9a565b506000908152600460205260409020546001600160a01b031690565b6000610c1d82611604565b9050806001600160a01b0316836001600160a01b03161415610c8b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a9a565b336001600160a01b0382161480610ca75750610ca78133612003565b610d145760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a9a565b610d1e83836121d2565b505050565b6000610d2e60155490565b905090565b33610d3c611e21565b6001600160a01b031614610d625760405162461bcd60e51b8152600401610a9a906136c9565b601b546301000000900460ff1615610d8c5760405162461bcd60e51b8152600401610a9a9061377f565b610d968282612240565b5050565b33610da3611e21565b6001600160a01b031614610dc95760405162461bcd60e51b8152600401610a9a906136c9565b601b546301000000900460ff1615610df35760405162461bcd60e51b8152600401610a9a9061377f565b601b805463ff00000019166301000000908117918290556040517f07fe2f03bd4fa149b9d8918fb57a6e2a3b1fbbb29a4d4536df7e6cd9edf02ed892610e4292900460ff161515815260200190565b60405180910390a1565b610e563382612412565b610e725760405162461bcd60e51b8152600401610a9a906137b6565b610d1e8383836124dc565b6002600d541415610ed05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a9a565b6002600d55601b5462010000900460ff16610efd5760405162461bcd60e51b8152600401610a9a90613807565b601b5460ff16610f435760405162461bcd60e51b81526020600482015260116024820152704d696e746572206e6f742061637469766560781b6044820152606401610a9a565b611b5881610f5060155490565b610f5a919061384c565b1115610f785760405162461bcd60e51b8152600401610a9a90613864565b6040516370a0823160e01b815233600482015260009030906370a0823190602401602060405180830381865afa158015610fb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fda9190613894565b601b54909150610100900460ff16156110fe57610ffe8266f8b0a10e4700006138ad565b341461101c5760405162461bcd60e51b8152600401610a9a906138cc565b336000908152600b602052604090205460ff166110755760405162461bcd60e51b8152602060048201526017602482015276165bdd48185c99481b9bdd0815da1a5d195b1a5cdd1959604a1b6044820152606401610a9a565b60038110801561108f5750600361108c828461384c565b11155b6110ab5760405162461bcd60e51b8152600401610a9a90613903565b6110b361267c565b6110bc336126a2565b60005b828110156110f8576110d8336110d361275d565b612782565b6110e6601580546001019055565b806110f08161393a565b9150506110bf565b5061119d565b6111108267016345785d8a00006138ad565b341461112e5760405162461bcd60e51b8152600401610a9a906138cc565b60058110801561114857506005611145828461384c565b11155b6111645760405162461bcd60e51b8152600401610a9a90613903565b60005b8281101561119b5761117b336110d361275d565b611189601580546001019055565b806111938161393a565b915050611167565b505b50506001600d55565b336111af611e21565b6001600160a01b0316146111d55760405162461bcd60e51b8152600401610a9a906136c9565b601b546301000000900460ff1661122e5760405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f74207365742c2070617965657320756e6c6f636b6564000000006044820152606401610a9a565b601b5462010000900460ff16156112765760405162461bcd60e51b815260206004820152600c60248201526b416c7265616479205365742160a01b6044820152606401610a9a565b61127f8261279c565b61128881612873565b611b5842338484446040516020016112a4959493929190613955565b6040516020818303038152906040528051906020012060001c6112c791906139c8565b60178190556112d59061294a565b601b805462ff0000191662010000908117918290556040517ff409b8c4404a114fa8f045dedf3c882a53c0ad3356d79cdfedcfb5337b7259359261132292900460ff161515815260200190565b60405180910390a15050565b610d1e83838360405180602001604052806000815250611d1e565b336000908152601060205260409020546113b75760405162461bcd60e51b815260206004820152602960248201527f5061796d656e7453706c69747465723a206d73672e73656e64657220686173206044820152686e6f2073686172657360b81b6064820152608401610a9a565b6000600f54476113c7919061384c565b33600090815260116020908152604080832054600e5460109093529083205493945091926113f590856138ad565b6113ff91906139dc565b61140991906139f0565b90508061146f5760405162461bcd60e51b815260206004820152602e60248201527f5061796d656e7453706c69747465723a206d73672e73656e646572206973206e60448201526d1bdd08191d59481c185e5b595b9d60921b6064820152608401610a9a565b3360009081526011602052604090205461148a90829061384c565b33600090815260116020526040902055600f546114a890829061384c565b600f556114b53382612988565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0563382604051611322929190613272565b336114ef611e21565b6001600160a01b0316146115155760405162461bcd60e51b8152600401610a9a906136c9565b6000601a805461152490613744565b80601f016020809104026020016040519081016040528092919081815260200182805461155090613744565b801561159d5780601f106115725761010080835404028352916020019161159d565b820191906000526020600020905b81548152906001019060200180831161158057829003601f168201915b505085519394506115b993601a935060208701925090506131d9565b507fd2877107a884510f506ed0bd833e6601f4344691e32a0ce4bcdedb1d9d9d28e181601a604051611322929190613a07565b60006115f760165490565b601954610d2e91906139f0565b6000818152600260205260408120546001600160a01b031680610aba5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a9a565b33611684611e21565b6001600160a01b0316146116aa5760405162461bcd60e51b8152600401610a9a906136c9565b6001600160a01b0381166117155760405162461bcd60e51b815260206004820152602c60248201527f446576656c6f7065723a206e657720646576656c6f706572206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610a9a565b610aac81612aa1565b60006001600160a01b0382166117895760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a9a565b506001600160a01b031660009081526003602052604090205490565b336117ae6118b6565b6001600160a01b0316146117d45760405162461bcd60e51b8152600401610a9a9061370f565b6117de6000612af3565b565b336117e96118b6565b6001600160a01b03161461180f5760405162461bcd60e51b8152600401610a9a9061370f565b610aac816126a2565b336118216118b6565b6001600160a01b0316146118475760405162461bcd60e51b8152600401610a9a9061370f565b601b805460ff1981169091556040805160ff90921680151583526000602084015291600080516020613bda83398151915291015b60405180910390a150565b60006012828154811061189b5761189b613ac5565b6000918252602090912001546001600160a01b031692915050565b6014546001600160a01b031690565b336118ce611e21565b6001600160a01b0316146118f45760405162461bcd60e51b8152600401610a9a906136c9565b610aac81612b45565b606060098054610b0790613744565b606060018054610b0790613744565b336119246118b6565b6001600160a01b03161461194a5760405162461bcd60e51b8152600401610a9a9061370f565b601b5462010000900460ff16801561196b5750601b546301000000900460ff165b6119af5760405162461bcd60e51b8152602060048201526015602482015274141c995c995c5d5a5cda5d195cc81b9bdd081b595d605a1b6044820152606401610a9a565b6018546119bf426201518061384c565b60188190556040805183815260208101929092527f2035e528a105b1a590d12b804544047974e6b8840f450439cbba9c99ebe80812910160405180910390a1601b805461010061ff00198216811792839055604080519282900460ff9081168015158552929094049093161515602083015291600080516020613bfa833981519152910160405180910390a1601b8054600160ff19821681179092556040805160ff90921680151583526020830193909352600080516020613bda833981519152910160405180910390a1505050565b610d96338383612c1c565b33611aa36118b6565b6001600160a01b031614611ac95760405162461bcd60e51b8152600401610a9a9061370f565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610d1e573d6000803e3d6000fd5b33611b08611e21565b6001600160a01b031614611b2e5760405162461bcd60e51b8152600401610a9a906136c9565b6117de6000612aa1565b33611b41611e21565b6001600160a01b031614611b675760405162461bcd60e51b8152600401610a9a906136c9565b601980549082905560408051828152602081018490527ff4bc3d37ffa08e7dbc3d7b982669323cf71f90c293c7601f79532217f72fcefe9101611322565b33611bae6118b6565b6001600160a01b031614611bd45760405162461bcd60e51b8152600401610a9a9061370f565b610aac81612ce7565b33611be66118b6565b6001600160a01b031614611c0c5760405162461bcd60e51b8152600401610a9a9061370f565b601b5462010000900460ff16611c345760405162461bcd60e51b8152600401610a9a90613807565b601954611c7e5760405162461bcd60e51b81526020600482015260186024820152771519585b481b5a5b9d1a5b99c81b9bdd08195b98589b195960421b6044820152606401610a9a565b611b58611c8a60155490565b10611ca75760405162461bcd60e51b8152600401610a9a90613864565b60195460165410611cf65760405162461bcd60e51b815260206004820152601960248201527843616e206e6f74207465616d206d696e7420616e796d6f726560381b6044820152606401610a9a565b611d02816110d361275d565b611d10601580546001019055565b610aac601680546001019055565b611d283383612412565b611d445760405162461bcd60e51b8152600401610a9a906137b6565b611d5084848484612d27565b50505050565b6060611d61826121b5565b611dc55760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a9a565b6000611dcf612d5a565b90506000815111611def5760405180602001604052806000815250611e1a565b80611df984612d69565b604051602001611e0a929190613adb565b6040516020818303038152906040525b9392505050565b6013546001600160a01b031690565b33611e396118b6565b6001600160a01b031614611e5f5760405162461bcd60e51b8152600401610a9a9061370f565b601854611e6f426201518061384c565b60188190556040805183815260208101929092527f2035e528a105b1a590d12b804544047974e6b8840f450439cbba9c99ebe80812910160405180910390a1601b805461010061ff00198216811792839055604080519282900460ff9081168015158552929094049093161515602083015291600080516020613bfa8339815191529101611322565b33611f016118b6565b6001600160a01b031614611f275760405162461bcd60e51b8152600401610a9a9061370f565b601b805461ff00198116918290556040805160ff610100938490048116801515835293909404909316151560208401529091600080516020613bfa833981519152910161187b565b606060088054610b0790613744565b6000610d2e60165490565b33611f926118b6565b6001600160a01b031614611fb85760405162461bcd60e51b8152600401610a9a9061370f565b601b8054600160ff19821681179092556040805160ff90921680151583526020830193909352600080516020613bda833981519152910161187b565b6060600a8054610b0790613744565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3361203a6118b6565b6001600160a01b0316146120605760405162461bcd60e51b8152600401610a9a9061370f565b6001600160a01b0381166120c55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a9a565b610aac81612af3565b336120d76118b6565b6001600160a01b0316146120fd5760405162461bcd60e51b8152600401610a9a9061370f565b610aac81612e66565b600680549082905560408051828152602081018490527f526a360abdfe79a017147d182df55ee049c58d03aaeb7894e934bdc1061b2db09101611322565b600061214f82612f25565b80610aba5750506001600160e01b0319166000908152600c602052604090205460ff1690565b60005b8151811015610d96576121a382828151811061219657612196613ac5565b60200260200101516126a2565b806121ad8161393a565b915050612178565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061220782611604565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166122ab5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401610a9a565b600081116122fb5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401610a9a565b6001600160a01b038216600090815260106020526040902054156123755760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401610a9a565b60128054600181019091557fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180546001600160a01b0319166001600160a01b0384169081179091556000908152601060205260409020819055600e546123dd90829061384c565b600e556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac906113229084908490613272565b600061241d826121b5565b61247e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a9a565b600061248983611604565b9050806001600160a01b0316846001600160a01b031614806124c45750836001600160a01b03166124b984610b8a565b6001600160a01b0316145b806124d457506124d48185612003565b949350505050565b826001600160a01b03166124ef82611604565b6001600160a01b0316146125575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a9a565b6001600160a01b0382166125b95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a9a565b6125c46000826121d2565b6001600160a01b03831660009081526003602052604081208054600192906125ed9084906139f0565b90915550506001600160a01b038216600090815260036020526040812080546001929061261b90849061384c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b42601854116117de57601b805461ff001981166101009182900460ff1615909102179055565b6001600160a01b0381166000908152600b602052604090205460ff166127025760405162461bcd60e51b8152602060048201526015602482015274105b1c9958591e481bd9998815da1a5d195b1a5cdd605a1b6044820152606401610a9a565b6001600160a01b0381166000908152600b6020526040808220805460ff198116909155905160ff909116917fcbf65fda6f75c03e266ef74e6dabd13937eb87f9c4f471a2c32be26485fcb07f91611322918591859190613b0a565b6000611b5861276b60155490565b601754612778919061384c565b610d2e91906139c8565b610d96828260405180602001604052806000815250612f75565b6000600880546127ab90613744565b80601f01602080910402602001604051908101604052809291908181526020018280546127d790613744565b80156128245780601f106127f957610100808354040283529160200191612824565b820191906000526020600020905b81548152906001019060200180831161280757829003601f168201915b50508551939450612840936008935060208701925090506131d9565b507fe4559edc44d8a0825d54d0afcb85409324d9a4c7a818256c6bea4a471a964542816008604051611322929190613a07565b60006009805461288290613744565b80601f01602080910402602001604051908101604052809291908181526020018280546128ae90613744565b80156128fb5780601f106128d0576101008083540402835291602001916128fb565b820191906000526020600020905b8154815290600101906020018083116128de57829003601f168201915b50508551939450612917936009935060208701925090506131d9565b507f5769620297eb5047703c0ba55dd28b8ea50ba49818a91a43217fedce8eb69a30816009604051611322929190613a07565b600780549082905560408051828152602081018490527f508e68918b7b107539e360f3892abf9555ea4cb31e83a7887091601a6da3f9f49101611322565b804710156129d85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a9a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612a25576040519150601f19603f3d011682016040523d82523d6000602084013e612a2a565b606091505b5050905080610d1e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610a9a565b601380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f2cfca82ac51c2fc6b6db547820d28d526a505e12d230afb8bf112a5aeefa9a4c90600090a35050565b601480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600a8054612b5490613744565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8090613744565b8015612bcd5780601f10612ba257610100808354040283529160200191612bcd565b820191906000526020600020905b815481529060010190602001808311612bb057829003601f168201915b50508551939450612be993600a935060208701925090506131d9565b507f17f75bb1e35b058872a221a8c16d8b3e39eacbda214fd7da20f192b9291ecc3b81600a604051611322929190613a07565b816001600160a01b0316836001600160a01b03161415612c7a5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a9a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60005b8151811015610d9657612d15828281518110612d0857612d08613ac5565b6020026020010151612e66565b80612d1f8161393a565b915050612cea565b612d328484846124dc565b612d3e84848484612fa8565b611d505760405162461bcd60e51b8152600401610a9a90613b2d565b6060601a8054610b0790613744565b606081612d8d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612db75780612da18161393a565b9150612db09050600a836139dc565b9150612d91565b6000816001600160401b03811115612dd157612dd16132d7565b6040519080825280601f01601f191660200182016040528015612dfb576020820181803683370190505b5090505b84156124d457612e106001836139f0565b9150612e1d600a866139c8565b612e2890603061384c565b60f81b818381518110612e3d57612e3d613ac5565b60200101906001600160f81b031916908160001a905350612e5f600a866139dc565b9450612dff565b6001600160a01b0381166000908152600b602052604090205460ff1615612ec65760405162461bcd60e51b8152602060048201526014602482015273105b1c9958591e481bdb8815da1a5d195b1a5cdd60621b6044820152606401610a9a565b6001600160a01b0381166000908152600b6020526040908190208054600160ff1982168117909255915160ff909216917fcbf65fda6f75c03e266ef74e6dabd13937eb87f9c4f471a2c32be26485fcb07f916113229185918591613b0a565b60006001600160e01b031982166380ac58cd60e01b1480612f5657506001600160e01b03198216635b5e139f60e01b145b80610aba57506301ffc9a760e01b6001600160e01b0319831614610aba565b612f7f83836130a6565b612f8c6000848484612fa8565b610d1e5760405162461bcd60e51b8152600401610a9a90613b2d565b60006001600160a01b0384163b1561309b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612fec903390899088908890600401613b7f565b6020604051808303816000875af1925050508015613027575060408051601f3d908101601f1916820190925261302491810190613bbc565b60015b613081573d808015613055576040519150601f19603f3d011682016040523d82523d6000602084013e61305a565b606091505b5080516130795760405162461bcd60e51b8152600401610a9a90613b2d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506124d4565b506001949350505050565b6001600160a01b0382166130fc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a9a565b613105816121b5565b156131525760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a9a565b6001600160a01b038216600090815260036020526040812080546001929061317b90849061384c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546131e590613744565b90600052602060002090601f016020900481019282613207576000855561324d565b82601f1061322057805160ff191683800117855561324d565b8280016001018555821561324d579182015b8281111561324d578251825591602001919060010190613232565b5061325992915061325d565b5090565b5b80821115613259576000815560010161325e565b6001600160a01b03929092168252602082015260400190565b60006020828403121561329d57600080fd5b5035919050565b6001600160e01b031981168114610aac57600080fd5b6000602082840312156132cc57600080fd5b8135611e1a816132a4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613315576133156132d7565b604052919050565b80356001600160a01b038116811461333457600080fd5b919050565b6000602080838503121561334c57600080fd5b82356001600160401b038082111561336357600080fd5b818501915085601f83011261337757600080fd5b813581811115613389576133896132d7565b8060051b915061339a8483016132ed565b81815291830184019184810190888411156133b457600080fd5b938501935b838510156133d9576133ca8561331d565b825293850193908501906133b9565b98975050505050505050565b60005b838110156134005781810151838201526020016133e8565b83811115611d505750506000910152565b600081518084526134298160208601602086016133e5565b601f01601f19169290920160200192915050565b602081526000611e1a6020830184613411565b6000806040838503121561346357600080fd5b61346c8361331d565b946020939093013593505050565b60008060006060848603121561348f57600080fd5b6134988461331d565b92506134a66020850161331d565b9150604084013590509250925092565b60006001600160401b038311156134cf576134cf6132d7565b6134e2601f8401601f19166020016132ed565b90508281528383830111156134f657600080fd5b828260208301376000602084830101529392505050565b600082601f83011261351e57600080fd5b611e1a838335602085016134b6565b6000806040838503121561354057600080fd5b82356001600160401b038082111561355757600080fd5b6135638683870161350d565b9350602085013591508082111561357957600080fd5b506135868582860161350d565b9150509250929050565b6000602082840312156135a257600080fd5b81356001600160401b038111156135b857600080fd5b6124d48482850161350d565b6000602082840312156135d657600080fd5b611e1a8261331d565b600080604083850312156135f257600080fd5b6135fb8361331d565b91506020830135801515811461361057600080fd5b809150509250929050565b6000806000806080858703121561363157600080fd5b61363a8561331d565b93506136486020860161331d565b92506040850135915060608501356001600160401b0381111561366a57600080fd5b8501601f8101871361367b57600080fd5b61368a878235602084016134b6565b91505092959194509250565b600080604083850312156136a957600080fd5b6136b28361331d565b91506136c06020840161331d565b90509250929050565b60208082526026908201527f446576656c6f7065723a2063616c6c6572206973206e6f74207468652064657660408201526532b637b832b960d11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061375857607f821691505b6020821081141561377957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601a908201527f43616e206e6f74207365742c20706179656573206c6f636b6564000000000000604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601590820152745365742050726f766964656e63652068617368657360581b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561385f5761385f613836565b500190565b60208082526016908201527543616e206e6f74206d696e742074686174206d616e7960501b604082015260600190565b6000602082840312156138a657600080fd5b5051919050565b60008160001904831182151516156138c7576138c7613836565b500290565b6020808252601c908201527f57726f6e6720616d6f756e74206f66204e617469766520546f6b656e00000000604082015260600190565b6020808252601a908201527f596f752063616e206e6f74206765742074686174206d616e7921000000000000604082015260600190565b600060001982141561394e5761394e613836565b5060010190565b8581526bffffffffffffffffffffffff198560601b166020820152600084516139858160348501602089016133e5565b84519083019061399c8160348401602089016133e5565b0160348101939093525050605401949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826139d7576139d76139b2565b500690565b6000826139eb576139eb6139b2565b500490565b600082821015613a0257613a02613836565b500390565b604081526000613a1a6040830185613411565b6020838203818501526000855481600182811c915080831680613a3e57607f831692505b858310811415613a5c57634e487b7160e01b85526022600452602485fd5b828752602087019650808015613a795760018114613a8a57613ab5565b60ff19851688528688019550613ab5565b60008b81526020902060005b85811015613aaf5781548a820152908401908801613a96565b89019650505b50939a9950505050505050505050565b634e487b7160e01b600052603260045260246000fd5b60008351613aed8184602088016133e5565b835190830190613b018183602088016133e5565b01949350505050565b6001600160a01b0393909316835290151560208301521515604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613bb290830184613411565b9695505050505050565b600060208284031215613bce57600080fd5b8151611e1a816132a456fe1ab1d89be1fd19dcd21c73f1d6e927e3f148097e8691bbba925bd85e34e1f0e35045eea7e64af4d857464a8347a5bbce05a99fe1e1f08a3f1ebbc61aa782b21ba2646970667358221220dde663cfe8ccdb04f87f9a6a2d036b9b5e5c12f005d6ea4b37a1e1c833be784464736f6c634300080b0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.