Source Code
Latest 25 from a total of 72 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 16941869 | 1067 days ago | IN | 0 ETH | 0.00120519 | ||||
| Public Sale Mint | 16940512 | 1068 days ago | IN | 0.1 ETH | 0.00302739 | ||||
| Public Sale Mint | 16940506 | 1068 days ago | IN | 0.1 ETH | 0.00302116 | ||||
| Public Sale Mint | 16940489 | 1068 days ago | IN | 0.1 ETH | 0.00386044 | ||||
| Public Sale Mint | 16935156 | 1068 days ago | IN | 0.1 ETH | 0.00386439 | ||||
| Public Sale Mint | 16934986 | 1068 days ago | IN | 0.1 ETH | 0.00584378 | ||||
| Public Sale Mint | 16934897 | 1068 days ago | IN | 0.1 ETH | 0.00392251 | ||||
| Set Public Sale | 16934894 | 1068 days ago | IN | 0 ETH | 0.00132747 | ||||
| Set Auction Sett... | 16934892 | 1068 days ago | IN | 0 ETH | 0.00134967 | ||||
| Settle Bidder | 16934890 | 1068 days ago | IN | 0 ETH | 0.03651447 | ||||
| Set Raffle Winne... | 16934887 | 1068 days ago | IN | 0 ETH | 0.00173668 | ||||
| Set Auction Winn... | 16934884 | 1068 days ago | IN | 0 ETH | 0.02337496 | ||||
| Create Bid | 16934808 | 1068 days ago | IN | 0.16 ETH | 0.00419461 | ||||
| Create Bid | 16934638 | 1068 days ago | IN | 0.1 ETH | 0.0045837 | ||||
| Create Bid | 16934555 | 1068 days ago | IN | 0.1 ETH | 0.00451147 | ||||
| Create Bid | 16934039 | 1069 days ago | IN | 0.1 ETH | 0.00459051 | ||||
| Create Bid | 16933807 | 1069 days ago | IN | 0.1 ETH | 0.00551341 | ||||
| Create Bid | 16933781 | 1069 days ago | IN | 0.1 ETH | 0.00467308 | ||||
| Create Bid | 16933241 | 1069 days ago | IN | 0.1 ETH | 0.00334729 | ||||
| Create Bid | 16933191 | 1069 days ago | IN | 0.1 ETH | 0.00351755 | ||||
| Create Bid | 16932145 | 1069 days ago | IN | 0.15 ETH | 0.00276072 | ||||
| Set Auction Star... | 16930634 | 1069 days ago | IN | 0 ETH | 0.000803 | ||||
| Set Allow List E... | 16930634 | 1069 days ago | IN | 0 ETH | 0.00080183 | ||||
| Allowlist Mint | 16930633 | 1069 days ago | IN | 0.2 ETH | 0.00443037 | ||||
| Allowlist Mint | 16930523 | 1069 days ago | IN | 0.2 ETH | 0.00420927 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
AuctionHouse
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0
// The Wildxyz auctionhouse.sol
// AuctionHouse.sol is a modified version of the original code from the
// NounsAuctionHouse.sol which is a modified version of Zora's AuctionHouse.sol:
// https://github.com/ourzora/auction-house/
// licensed under the GPL-3.0 license.
pragma solidity ^0.8.17;
import './Pausable.sol';
import './ReentrancyGuard.sol';
import './Ownable.sol';
import './WildNFT.sol';
import './IAuctionHouse.sol';
interface SanctionsList {
function isSanctioned(address addr) external view returns (bool);
}
interface IOasis {
function balanceOf(address _address) external view returns (uint256);
}
contract AuctionHouse is
IAuctionHouse,
Pausable,
ReentrancyGuard,
Ownable
{
// auction variables
uint256 public allowlistMintMax = 2; // max number of tokens per allowlist mint
uint256 public timeBuffer = 120; // min amount of time left in an auction after last bid
uint256 public minimumBid = .1 ether; // The minimum price accepted in an auction
uint256 public minBidIncrement = .01 ether; // The minimum amount by which a bid must exceed the current highest bid
uint256 public allowListPrice = .1 ether; // The allowlist price
uint256 public duration = 86400; // 86400 == 1 day The duration of a single auction in seconds
address payable public payee; // The address that receives funds from the auction
uint256 public raffleSupply = 2; // max number of raffle winners
uint256 public auctionSupply = 13; // number of auction supply max of raffle ticket
uint256 public allowlistSupply = 56; // number allowlist supply
uint256 public maxSupply = 100; // max supply
uint256 public promoSupply = 29; // promo supply
uint256 public oasisListStartDateTime = 1680026400; //oasislistStartDate 11AM PST 2023-02-28
uint256 public allowListStartDateTime = 1680030000; //allowListStartDateTime
uint256 public allowListEndDateTime = 1680073200; //allowListEndDateTime
uint256 public auctionStartDateTime = 1680073200; //==allowListEndDateTime;
uint256 public auctionEndDateTime = 1680116400; //auctionEndDateTime
uint256 public auctionExtentedTime = 0;
bool public auctionWinnersSet = false;
bool public raffleWinnersSet = false;
bool public auctionSettled = false;
bool public settled = false;
bool public publicSale = false;
// the Oasis contract object
IOasis public oasis;
// allowlist mapping 1=oasis;2=allowlist;0=not on list
mapping(address => uint8) public allowList;
mapping(address => uint256) public allowListMinted;
WildNFT public nft;
// OFAC sanctions list
// mainnet: 0x40C57923924B5c5c5455c48D93317139ADDaC8fb
// goerli: 0x5EBdB1188c0D54efB0a004c1d8737A922C1Ad8D2
SanctionsList public sanctionsList;
// Only allow the auction functions to be active when not paused
modifier onlyUnpaused() {
require(!paused(), 'AuctionHouse: paused');
_;
}
// Bids Struct
struct Bid {
address payable bidder; // The address of the bidder
uint256 amount; // The amount of the bid
bool minted; // has the bid been minted
uint256 timestamp; // timestamp of the bid
bool refunded; // refund difference between winning_bid and max_bid for winner; and all for losers
bool winner; // is the bid the winner
uint256 finalprice; // if won, what price won at
}
// mapping of Bid structs
mapping(address => Bid) public Bids;
constructor(WildNFT _nft, address _payee, address _oasis, address _sanctions) {
nft = _nft;
payee = payable(_payee);
oasis = IOasis(_oasis);
sanctionsList = SanctionsList(_sanctions);
}
// Not on OFAC list
modifier onlyUnsanctioned(address _to) {
bool isToSanctioned = sanctionsList.isSanctioned(_to);
require(!isToSanctioned, "Blocked: OFAC sanctioned address");
_;
}
/* ADMIN VARIABLE SETTERS FUNCTIONS */
// set the 721 contract address
function set721ContractAddress(WildNFT _nft) public onlyOwner {
nft = _nft;
}
function setAuctionSupply(uint256 _newAuctionSupply) public onlyOwner {
auctionSupply = _newAuctionSupply;
}
function setPromoSupply(uint256 _newPromoSupply) public onlyOwner {
promoSupply = _newPromoSupply;
}
function addToAllowList(address[] memory _addresses, uint8 _state) public onlyOwner {
for (uint256 i = 0; i < _addresses.length; i++) {
allowList[_addresses[i]] = _state;
}
}
function removeFromAllowList(address[] memory _addresses) public onlyOwner {
for (uint256 i = 0; i < _addresses.length; i++) {
allowList[_addresses[i]] = 0;
}
}
function setAllowlistMintMax(uint256 _newAllowlistMintMax) public onlyOwner {
allowlistMintMax = _newAllowlistMintMax;
}
function setOasislistStartDateTime(uint256 _newOasislistStartDateTime) public onlyOwner {
oasisListStartDateTime = _newOasislistStartDateTime;
}
function setAuctionStartDateTime(uint256 _newAuctionStartDateTime) public onlyOwner {
auctionStartDateTime = _newAuctionStartDateTime;
}
function setAuctionEndDateTime(uint256 _newAuctionEndDateTime) public onlyOwner {
auctionEndDateTime = _newAuctionEndDateTime;
}
function setAllowListStartDateTime(uint256 _newAllowListStartDateTime) public onlyOwner {
allowListStartDateTime = _newAllowListStartDateTime;
}
function setAllowListEndDateTime(uint256 _newAllowListEndDateTime) public onlyOwner {
allowListEndDateTime = _newAllowListEndDateTime;
}
function setPublicSale() public onlyOwner {
publicSale = !publicSale;
}
function setRaffleSupply(uint256 _newRaffleSupply) public onlyOwner {
raffleSupply = _newRaffleSupply;
}
function setMaxSupply(uint256 _newMaxSupply) public onlyOwner {
maxSupply = _newMaxSupply;
}
// set the time buffer
function setTimeBuffer(uint256 _timeBuffer) external onlyOwner override {
timeBuffer = _timeBuffer;
emit AuctionTimeBufferUpdated(_timeBuffer);
}
// set the minimum bid
function setMinimumBid(uint256 _minimumBid) external onlyOwner {
minimumBid = _minimumBid;
}
// set min bid incr
function setMinBidIncrement(uint256 _minBidIncrement) external onlyOwner {
minBidIncrement = _minBidIncrement;
}
// set the duration
function setDuration(uint256 _duration) external onlyOwner override {
duration = _duration;
emit AuctionDurationUpdated(_duration);
}
// airdrop mint
function promoMint(address _to, uint256 _qty) external onlyOwner {
require(promoSupply >= _qty, 'Not enough promo supply');
require(block.timestamp <= allowListEndDateTime, 'Outside promo mint window');
for (uint256 i = 0; i < _qty; i++) {
nft.mint(_to);
}
promoSupply -= _qty;
auctionSupply = maxSupply - nft.totalSupply() - raffleSupply;
}
// airdrop batch mint; sends 1 to each address in array
function promoBatchMint(address[] memory _to) external onlyOwner {
require(promoSupply >= _to.length, 'Not enough promo supply');
require(block.timestamp <= allowListEndDateTime, 'Outside promo mint window');
for (uint256 i = 0; i < _to.length; i++) {
nft.mint(_to[i]);
}
promoSupply -= _to.length;
auctionSupply = maxSupply - nft.totalSupply() - raffleSupply;
}
/* is address on allowlist
returns which group (1 = oasis, 2 = allowlist) and tokens left to mint
*/
function checkAllowlist(address _address) public view returns (uint8 group, uint256 tokens) {
uint256 oasisBalance = oasis.balanceOf(_address);
if (oasisBalance > 0) {
return (1, (oasisBalance * allowlistMintMax) - allowListMinted[_address]);
}
if (allowList[_address] > 0) {
return (2, allowlistMintMax - allowListMinted[_address]);
}
return (0, 0);
}
// allowlist mint
function allowlistMint(uint256 _qty) payable external onlyUnsanctioned(msg.sender) {
require(msg.value >= allowListPrice * _qty, 'Not enough ETH sent');
require(allowlistSupply - _qty >= 0, 'No more allowlist supply');
(uint group, uint256 allowance) = checkAllowlist(msg.sender);
require(group > 0, 'Not allowed');
require(_qty <= allowance, 'Qty exceeds max allowed.');
if (group == 1) {
// oasis list minter
require(
block.timestamp >= oasisListStartDateTime &&
block.timestamp <= allowListEndDateTime,
'Outside Oasis allowlist window'
);
} else {
// other allowlist minter
require(
block.timestamp >= allowListStartDateTime &&
block.timestamp <= allowListEndDateTime,
'Outside allowlist window'
);
}
for (uint256 i = 0; i < _qty; i++) {
nft.mint(msg.sender);
allowlistSupply--;
}
// allowList[msg.sender] = 0; We don't need to reset this right, saving some gas?
allowListMinted[msg.sender] += _qty;
auctionSupply = maxSupply - nft.totalSupply() - raffleSupply;
emit AllowlistMint(msg.sender);
}
// pause
function pause() external onlyOwner override {
_pause();
}
// unpause
function unpause() external onlyOwner override {
_unpause();
}
// withdraw
function withdraw() public onlyOwner {
require(auctionSettled == true && block.timestamp > auctionEndDateTime , "Auction not settled||not ended.");
(bool success, ) = payee.call{value: address(this).balance}("");
require(success, "Failed to send to payee.");
}
// update payee for withdraw
function setPayee(address payable _payee) public onlyOwner {
payee = _payee;
}
/* END ADMIN VARIABLE SETTERS FUNCTIONS */
// UNIVERSAL GETTER FOR AUCTION-RELATED VARIABLES
function getAuctionInfo() public view returns (
uint256 _auctionSupply,
uint256 _auctionStartDateTime,
uint256 _auctionEndDateTime,
uint256 _auctionExtentedTime,
bool _auctionWinnersSet,
bool _auctionSettled,
bool _settled,
uint256 _timeBuffer,
uint256 _duration,
uint256 _minimumBid,
uint256 _minBidIncrement
) {
return (
auctionSupply,
auctionStartDateTime,
auctionEndDateTime,
auctionExtentedTime,
auctionWinnersSet,
auctionSettled,
settled,
timeBuffer,
duration,
minimumBid,
minBidIncrement
);
}
// UNIVERSAL GETTER FOR ALLOWLIST AND RAFFLE-RELATED VARIABLES
function getAllowlistAndRaffleInfo() public view returns (
uint256 _raffleSupply,
uint256 _allowListPrice,
uint256 _allowListStartDateTime,
uint256 _allowListEndDateTime,
bool _raffleWinnersSet,
bool _publicSale,
uint256 _allowlistSupply,
uint256 _totalMinted,
uint256 _oasislistStartDateTime,
uint256 _allowlistMintMax
) {
return (
raffleSupply,
allowListPrice,
allowListStartDateTime,
allowListEndDateTime,
raffleWinnersSet,
publicSale,
allowlistSupply,
nft.totalSupply(),
oasisListStartDateTime,
allowlistMintMax
);
}
/* PUBLIC FUNCTIONS */
// Creates bids for the current auction
function createBid() external payable nonReentrant onlyUnpaused onlyUnsanctioned(msg.sender) {
// Check that the auction is live && Bid Amount is greater than minimum bid
require(block.timestamp < auctionEndDateTime && block.timestamp >= auctionStartDateTime, "Outside auction window.");
require(msg.value >= minimumBid, "Bid amount too low.");
// check if bidder already has bid
// if so, refund old and replace with new
if (Bids[msg.sender].amount > 0) {
require(msg.value > Bids[msg.sender].amount, "You can only increase your bid, not decrease.");
_safeTransferETH(Bids[msg.sender].bidder, Bids[msg.sender].amount);
Bids[msg.sender].amount = msg.value;
}
// otherwise, enter new bid.
else {
Bid memory new_bid;
new_bid.bidder = payable(msg.sender);
new_bid.amount = msg.value;
new_bid.timestamp = block.timestamp;
new_bid.winner = false;
new_bid.refunded = false;
new_bid.minted = false;
new_bid.finalprice = 0;
Bids[msg.sender] = new_bid;
}
// Extend the auction if the bid was received within the time buffer
// bool extended = auctionEndDateTime - block.timestamp < timeBuffer;
//if (extended) {
// auctionEndDateTime = auctionEndDateTime + timeBuffer;
// auctionExtentedTime = auctionExtentedTime + timeBuffer;
//}
emit AuctionBid(msg.sender, Bids[msg.sender].amount, false);
}
function publicSaleMint() public payable nonReentrant onlyUnpaused onlyUnsanctioned(msg.sender) {
// if we didnt sell out, we can mint the remaining
// for price of min bid
// will error when supply is 0
// Note: 1) is the auction closed and 2) is the raffle set and
// 3) if the total supply is less than the max supply, then you can allow ppl to mint
// require(auctionEndDateTime < block.timestamp, "Auction not over yet.");
// require(raffleWinnersSet == true, "Raffle not settled yet.");
require(nft.totalSupply() < nft.maxSupply());
require(publicSale == true, "Not authorized.");
require(msg.value >= minimumBid, "Amount too low.");
nft.mint(msg.sender);
auctionSupply--;
}
/* END PUBLIC FUNCTIONS */
/* END OF AUCTION FUNCTIONS */
function setRaffleWinners(address[] memory _raffleWinners) external onlyOwner {
require(block.timestamp > auctionEndDateTime, "Auction not over yet.");
require(raffleWinnersSet == false, "Raffle already settled");
require(_raffleWinners.length <= raffleSupply, "Incorrect number of winners");
for (uint256 i = 0; i < _raffleWinners.length; i++) {
Bids[_raffleWinners[i]].winner = true;
Bids[_raffleWinners[i]].finalprice = minimumBid;
}
raffleWinnersSet = true;
}
function setAuctionWinners(address[] memory _auctionWinners, uint256[] memory _prices) external onlyOwner {
require(block.timestamp > auctionEndDateTime, "Auction not over yet.");
require(auctionWinnersSet == false, "Auction already settled");
for (uint256 i = 0; i < _auctionWinners.length; i++) {
Bids[_auctionWinners[i]].winner = true;
Bids[_auctionWinners[i]].finalprice = _prices[i];
}
auctionWinnersSet = true;
}
/**
* Settle an auction, finalizing the bid and paying out to the owner.
* If there are no bids, the Oasis is burned.
*/
function settleBidder(address[] memory _bidders) external onlyOwner nonReentrant {
require(block.timestamp > auctionEndDateTime, "Auction hasn't ended.");
require(auctionWinnersSet == true && raffleWinnersSet == true, "Auction winners not set");
for (uint256 i = 0; i < _bidders.length; i++) {
if (Bids[_bidders[i]].winner == true && Bids[_bidders[i]].minted == false && Bids[_bidders[i]].refunded == false) {
// if winner, mint and refunde diff if any, update Bids
uint256 difference = Bids[_bidders[i]].amount - Bids[_bidders[i]].finalprice;
if (difference > 0) {
(bool success, ) = _bidders[i].call{value: difference}("");
require(success, "Failed to refund difference to winner.");
}
nft.mint(_bidders[i]);
Bids[_bidders[i]].minted = true;
Bids[_bidders[i]].refunded = true;
}
else if (Bids[_bidders[i]].winner == false && Bids[_bidders[i]].refunded == false) {
// if not winner, refund
(bool success, ) = _bidders[i].call{value: Bids[_bidders[i]].amount}("");
require(success, "Failed to send refund to loser.");
Bids[_bidders[i]].refunded = true;
}
}
}
function setAuctionSettled() external onlyOwner {
require(auctionSettled == false, "Auction already settled");
auctionSettled = !auctionSettled;
}
function setTimes(uint256 allowListStart, uint256 _duration) public onlyOwner{
oasisListStartDateTime = allowListStart + 90;
allowListStartDateTime = allowListStart + 90;
allowListEndDateTime = allowListStartDateTime + _duration;
auctionStartDateTime = allowListEndDateTime;
auctionEndDateTime = auctionStartDateTime + _duration;
}
function setAllowListPrice (uint256 _allowListPrice) public onlyOwner {
allowListPrice = _allowListPrice;
}
/**
* Transfer ETH and return the success status.
* This function only forwards 30,000 gas to the callee.
*/
function _safeTransferETH(address to, uint256 value)
internal
returns (bool)
{
(bool success, ) = to.call{value: value, gas: 30_000}(new bytes(0));
return success;
}
}// SPDX-License-Identifier: GPL-3.0
/// @title Interface for Auction Houses
pragma solidity ^0.8.6;
interface IAuctionHouse {
struct Auction {
// ID for the (ERC721 token ID)
uint256 tokenId;
// The current highest bid amount
uint256 amount;
// The time that the auction started
uint256 startTime;
// The time that the auction is scheduled to end
uint256 endTime;
// The address of the current highest bid
address payable bidder;
// Whether or not the auction has been settled
bool settled;
// amount of time auction was extended
uint256 extendedTime;
}
event AuctionBid(address sender, uint256 value, bool extended);
event AuctionExtended(uint256 indexed tokenId, uint256 endTime);
event AuctionSettled(uint256 indexed tokenId, address winner, uint256 amount);
event AuctionTimeBufferUpdated(uint256 timeBuffer);
event AuctionReservePriceUpdated(uint256 reservePrice);
event AuctionMinBidIncrementPercentageUpdated(uint256 minBidIncrementPercentage);
event AuctionDurationUpdated(uint256 duration);
event AllowlistMint(address indexed to);
function setAuctionWinners(address[] memory _auctionWinners, uint256[] memory _price) external;
// function settleCurrentAndCreateNewAuction() external;
//function settleAuction(uint256 tokenId) external;
function setTimes(uint256 _startTime, uint256 _duration) external;
function createBid() external payable;
function pause() external;
function unpause() external;
function setTimeBuffer(uint256 timeBuffer) external;
// function setMinBidIncrementPercentage(uint8 minBidIncrementPercentage) external;
function setDuration(uint256 _duration) external;
}// SPDX-License-Identifier: GPL-3.0
// LICENSE
// This is a modified version of the original code from the
// NounsToken.sol— an implementation of OpenZeppelin's ERC-721:
// https://github.com/nounsDAO/nouns-monorepo/blob/master/packages/nouns-contracts/contracts/NounsToken.sol
// The original code is licensed under the GPL-3.0 license
// Thank you to the Nouns team for the inspiration and code!
pragma solidity ^0.8.6;
import "./IERC721.sol";
import {UpdatableOperatorFilterer} from "./UpdatableOperatorFilterer.sol";
import {RevokableDefaultOperatorFilterer} from "./RevokableDefaultOperatorFilterer.sol";
import {Ownable} from "./Ownable.sol";
import {ERC721} from "./ERC721.sol";
import {IERC721} from "./IERC721.sol";
import {Strings} from "./Strings.sol";
import {WildNFT} from "./WildNFT.sol";
import {Base64} from "./Base64.sol";
import {Math} from "./Math.sol";
interface IWildNFT is IERC721 {
event TokenCreated(uint256 indexed tokenId, address mintedTo);
event TokenBurned(uint256 indexed tokenId);
event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
function mint(address _to) external returns (uint256);
function burn(uint256 tokenId) external;
function setMinter(address minter) external;
function setBaseURI(string memory _newBaseURI) external;
function totalSupply() external view returns (uint256);
function maxSupply() external view returns (uint256);
}
abstract contract WildNFT is
IWildNFT,
Ownable,
RevokableDefaultOperatorFilterer,
ERC721
{
// An address who has permissions to mint qf tokens
address public minter;
// Mapping of operators to whether they are approved or not
mapping(address => bool) public authorized;
// Mapping of addresses flagged for denying token interactions
mapping(address => bool) public blockList;
// The internal ID tracker
uint256 public _currentTokenId;
uint256 public maxSupply;
string public baseURI;
constructor(
string memory name_,
string memory symbol_,
address _minter,
uint256 _maxSupply
) ERC721(name_, symbol_) {
minter = _minter;
maxSupply = _maxSupply;
}
/**
* @notice Require that the sender is the minter.
*/
modifier onlyMinter() {
require(msg.sender == minter, "Sender is not the minter");
_;
}
/**
* @notice updates the deny list
* @param flaggedOperator the address to be added to the deny list
* @param status whether the address is to be added or removed from the deny list
*/
function updateDenyList(address flaggedOperator, bool status)
public
onlyOwner
{
_updateDenyList(flaggedOperator, status);
}
/*
* @notice Override isApprovedForAll
* @param owner The owner of the Nouns
* @param operator The operator to check if approved
*/
function isApprovedForAll(address _owner, address operator)
public
view
override(IERC721, ERC721)
returns (bool)
{
require(
blockList[operator] == false,
"Operator has been denied by contract owner."
);
if (authorized[operator] == true) {
return true;
}
return super.isApprovedForAll(_owner, operator);
}
/* OS */
function setApprovalForAll(address operator, bool approved)
public
override(IERC721, ERC721)
onlyAllowedOperatorApproval(operator)
{
super.setApprovalForAll(operator, approved);
}
function approve(address operator, uint256 tokenId)
public
override(IERC721, ERC721)
onlyAllowedOperatorApproval(operator)
{
super.approve(operator, tokenId);
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public override(IERC721, ERC721) onlyAllowedOperator(from) {
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override(IERC721, ERC721) onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public override(IERC721, ERC721) onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId, data);
}
function owner()
public
view
virtual
override(Ownable, UpdatableOperatorFilterer)
returns (address)
{
return Ownable.owner();
}
/**
* @notice sets the authorized operators for interacting with the contract
* @param operator the address to be added to the authorized operators
* @param approved whether the address is approved or not within authorized operators
*/
function setAuthorized(address operator, bool approved) public onlyOwner {
authorized[operator] = approved;
}
/**
* @notice Set the token minter.
* @dev Only callable by the owner when not locked.
* @param _minter The address of the new minter.
*/
function setMinter(address _minter) external onlyOwner {
minter = _minter;
}
/**
* @notice updates the deny list
* @param flaggedOperator The address to be approved.
* @param status True if the operator is approved, false to revoke approval.
*/
function _updateDenyList(address flaggedOperator, bool status)
internal
virtual
{
blockList[flaggedOperator] = status;
}
/**
* @notice Mint a token to the given address.
* @dev Only callable by the minter.
* @param _to The address to mint the qf token to.
* @return The ID of the newly minted qf token.
*/
function mint(address _to) public override onlyMinter returns (uint256) {
require(_currentTokenId < maxSupply, "Max supply reached");
return _mintTo(_to, _currentTokenId++);
}
/**
* @notice Burn a pass.
* @dev Only callable by the minter.
* @param tokenId The ID of the qf token to burn.
*/
function burn(uint256 tokenId) public override onlyMinter {
_burn(tokenId);
emit TokenBurned(tokenId);
}
/**
* @notice Set the base URI.
* @dev Only callable by the owner.
* @param _newBaseURI The new base URI.
*/
function setBaseURI(string memory _newBaseURI) public onlyOwner {
baseURI = _newBaseURI;
emit BatchMetadataUpdate(0, maxSupply - 1);
}
/** @notice Mints a new token
* @param to: the address of the new owner looking to mint
* @param tokenId: the token ID
* @return the ID of the newly minted token
*/
function _mintTo(address to, uint256 tokenId) internal returns (uint256) {
_mint(to, tokenId);
emit TokenCreated(tokenId, to);
return tokenId;
}
function totalSupply() public view returns (uint256) {
return _currentTokenId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "./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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "./Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator
) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1);
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(
uint256 x,
uint256 y,
uint256 denominator,
Rounding rounding
) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10**64) {
value /= 10**64;
result += 64;
}
if (value >= 10**32) {
value /= 10**32;
result += 32;
}
if (value >= 10**16) {
value /= 10**16;
result += 16;
}
if (value >= 10**8) {
value /= 10**8;
result += 8;
}
if (value >= 10**4) {
value /= 10**4;
result += 4;
}
if (value >= 10**2) {
value /= 10**2;
result += 2;
}
if (value >= 10**1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides a set of functions to operate with Base64 strings.
*
* _Available since v4.5._
*/
library Base64 {
/**
* @dev Base64 Encoding/Decoding Table
*/
string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
* @dev Converts a `bytes` to its Bytes64 `string` representation.
*/
function encode(bytes memory data) internal pure returns (string memory) {
/**
* Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
* https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
*/
if (data.length == 0) return "";
// Loads the table into memory
string memory table = _TABLE;
// Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
// and split into 4 numbers of 6 bits.
// The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
// - `data.length + 2` -> Round up
// - `/ 3` -> Number of 3-bytes chunks
// - `4 *` -> 4 characters for each chunk
string memory result = new string(4 * ((data.length + 2) / 3));
/// @solidity memory-safe-assembly
assembly {
// Prepare the lookup table (skip the first "length" byte)
let tablePtr := add(table, 1)
// Prepare result pointer, jump over length
let resultPtr := add(result, 32)
// Run over the input, 3 bytes at a time
for {
let dataPtr := data
let endPtr := add(data, mload(data))
} lt(dataPtr, endPtr) {
} {
// Advance 3 bytes
dataPtr := add(dataPtr, 3)
let input := mload(dataPtr)
// To write each character, shift the 3 bytes (18 bits) chunk
// 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
// and apply logical AND with 0x3F which is the number of
// the previous character in the ASCII table prior to the Base64 Table
// The result is then added to the table to get the character to write,
// and finally write it in the result pointer but with a left shift
// of 256 (1 byte) - 8 (1 ASCII char) = 248 bits
mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
}
// When data `bytes` is not exactly 3 bytes long
// it is padded with `=` characters at the end
switch mod(mload(data), 3)
case 1 {
mstore8(sub(resultPtr, 1), 0x3d)
mstore8(sub(resultPtr, 2), 0x3d)
}
case 2 {
mstore8(sub(resultPtr, 1), 0x3d)
}
}
return result;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./Math.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @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] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "./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`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./Strings.sol";
import "./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: address zero is not a valid owner");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _ownerOf(tokenId);
require(owner != address(0), "ERC721: invalid token ID");
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) {
_requireMinted(tokenId);
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 overridden 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 token owner or approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
*/
function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
return _owners[tokenId];
}
/**
* @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 _ownerOf(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) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);
// Check that tokenId was not minted by `_beforeTokenTransfer` hook
require(!_exists(tokenId), "ERC721: token already minted");
unchecked {
// Will not overflow unless all 2**256 token ids are minted to the same owner.
// Given that tokens are minted one by one, it is impossible in practice that
// this ever happens. Might change if we allow batch minting.
// The ERC fails to describe this case.
_balances[to] += 1;
}
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId, 1);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
* This is an internal function that does not check if the sender is authorized to operate on the token.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId, 1);
// Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
owner = ERC721.ownerOf(tokenId);
// Clear approvals
delete _tokenApprovals[tokenId];
unchecked {
// Cannot overflow, as that would require more tokens to be burned/transferred
// out than the owner initially received through minting and transferring in.
_balances[owner] -= 1;
}
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId, 1);
}
/**
* @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 from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId, 1);
// Check that tokenId was not transferred by `_beforeTokenTransfer` hook
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
// Clear approvals from the previous owner
delete _tokenApprovals[tokenId];
unchecked {
// `_balances[from]` cannot overflow for the same reason as described in `_burn`:
// `from`'s balance is the number of token held, which is at least one before the current
// transfer.
// `_balances[to]` could overflow in the conditions described in `_mint`. That would require
// all 2**256 token ids to be minted, which in practice is impossible.
_balances[from] -= 1;
_balances[to] += 1;
}
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId, 1);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
require(_exists(tokenId), "ERC721: invalid token ID");
}
/**
* @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 {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
* - When `from` is zero, the tokens will be minted for `to`.
* - When `to` is zero, ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
* - `batchSize` is non-zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256, /* firstTokenId */
uint256 batchSize
) internal virtual {
if (batchSize > 1) {
if (from != address(0)) {
_balances[from] -= batchSize;
}
if (to != address(0)) {
_balances[to] += batchSize;
}
}
}
/**
* @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
* - When `from` is zero, the tokens were minted for `to`.
* - When `to` is zero, ``from``'s tokens were burned.
* - `from` and `to` are never both zero.
* - `batchSize` is non-zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 firstTokenId,
uint256 batchSize
) internal virtual {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {RevokableOperatorFilterer} from "./RevokableOperatorFilterer.sol";
/**
* @title RevokableDefaultOperatorFilterer
* @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription.
* Note that OpenSea will disable creator fee enforcement if filtered operators begin fulfilling orders
* on-chain, eg, if the registry is revoked or bypassed.
*/
abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() RevokableOperatorFilterer(0x000000000000AAeB6D7670E522A718067333cd4E, DEFAULT_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title UpdatableOperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the
* OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address,
* which will bypass registry checks.
* Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders
* on-chain, eg, if the registry is revoked or bypassed.
* @dev This smart contract is meant to be inherited by token contracts so they can use the following:
* - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
* - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
*/
abstract contract UpdatableOperatorFilterer {
error OperatorNotAllowed(address operator);
error OnlyOwner();
IOperatorFilterRegistry public operatorFilterRegistry;
constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) {
IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry);
operatorFilterRegistry = registry;
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(registry).code.length > 0) {
if (subscribe) {
registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
registry.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from != msg.sender) {
_checkFilterOperator(msg.sender);
}
_;
}
modifier onlyAllowedOperatorApproval(address operator) virtual {
_checkFilterOperator(operator);
_;
}
/**
* @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
* address, checks will be bypassed. OnlyOwner.
*/
function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
if (msg.sender != owner()) {
revert OnlyOwner();
}
operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
}
/**
* @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract
*/
function owner() public view virtual returns (address);
function _checkFilterOperator(address operator) internal view virtual {
IOperatorFilterRegistry registry = operatorFilterRegistry;
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(registry) != address(0) && address(registry).code.length > 0) {
if (!registry.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.3.2 (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
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function unregister(address addr) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {UpdatableOperatorFilterer} from "./UpdatableOperatorFilterer.sol";
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title RevokableOperatorFilterer
* @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The
* Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at
* any point. As implemented, this abstract contract allows the contract owner to permanently skip the
* OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry
* address cannot be further updated.
* Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders
* on-chain, eg, if the registry is revoked or bypassed.
*/
abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer {
error RegistryHasBeenRevoked();
error InitialRegistryAddressCannotBeZeroAddress();
bool public isOperatorFilterRegistryRevoked;
constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe)
UpdatableOperatorFilterer(_registry, subscriptionOrRegistrantToCopy, subscribe)
{
// don't allow creating a contract with a permanently revoked registry
if (_registry == address(0)) {
revert InitialRegistryAddressCannotBeZeroAddress();
}
}
function _checkFilterOperator(address operator) internal view virtual override {
if (address(operatorFilterRegistry) != address(0)) {
super._checkFilterOperator(operator);
}
}
/**
* @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
* address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner.
*/
function updateOperatorFilterRegistryAddress(address newRegistry) public override {
if (msg.sender != owner()) {
revert OnlyOwner();
}
// if registry has been revoked, do not allow further updates
if (isOperatorFilterRegistryRevoked) {
revert RegistryHasBeenRevoked();
}
operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
}
/**
* @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner.
*/
function revokeOperatorFilterRegistry() public {
if (msg.sender != owner()) {
revert OnlyOwner();
}
// if registry has been revoked, do not allow further updates
if (isOperatorFilterRegistryRevoked) {
revert RegistryHasBeenRevoked();
}
// set to zero address to bypass checks
operatorFilterRegistry = IOperatorFilterRegistry(address(0));
isOperatorFilterRegistryRevoked = true;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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://consensys.net/diligence/blog/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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 (last updated v4.6.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 `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract WildNFT","name":"_nft","type":"address"},{"internalType":"address","name":"_payee","type":"address"},{"internalType":"address","name":"_oasis","type":"address"},{"internalType":"address","name":"_sanctions","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"AllowlistMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bool","name":"extended","type":"bool"}],"name":"AuctionBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"AuctionDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"AuctionExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minBidIncrementPercentage","type":"uint256"}],"name":"AuctionMinBidIncrementPercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reservePrice","type":"uint256"}],"name":"AuctionReservePriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timeBuffer","type":"uint256"}],"name":"AuctionTimeBufferUpdated","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"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"Bids","outputs":[{"internalType":"address payable","name":"bidder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"minted","type":"bool"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bool","name":"refunded","type":"bool"},{"internalType":"bool","name":"winner","type":"bool"},{"internalType":"uint256","name":"finalprice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint8","name":"_state","type":"uint8"}],"name":"addToAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowList","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListEndDateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListStartDateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowlistMintMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionEndDateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionExtentedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionSettled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStartDateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionWinnersSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"checkAllowlist","outputs":[{"internalType":"uint8","name":"group","type":"uint8"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowlistAndRaffleInfo","outputs":[{"internalType":"uint256","name":"_raffleSupply","type":"uint256"},{"internalType":"uint256","name":"_allowListPrice","type":"uint256"},{"internalType":"uint256","name":"_allowListStartDateTime","type":"uint256"},{"internalType":"uint256","name":"_allowListEndDateTime","type":"uint256"},{"internalType":"bool","name":"_raffleWinnersSet","type":"bool"},{"internalType":"bool","name":"_publicSale","type":"bool"},{"internalType":"uint256","name":"_allowlistSupply","type":"uint256"},{"internalType":"uint256","name":"_totalMinted","type":"uint256"},{"internalType":"uint256","name":"_oasislistStartDateTime","type":"uint256"},{"internalType":"uint256","name":"_allowlistMintMax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAuctionInfo","outputs":[{"internalType":"uint256","name":"_auctionSupply","type":"uint256"},{"internalType":"uint256","name":"_auctionStartDateTime","type":"uint256"},{"internalType":"uint256","name":"_auctionEndDateTime","type":"uint256"},{"internalType":"uint256","name":"_auctionExtentedTime","type":"uint256"},{"internalType":"bool","name":"_auctionWinnersSet","type":"bool"},{"internalType":"bool","name":"_auctionSettled","type":"bool"},{"internalType":"bool","name":"_settled","type":"bool"},{"internalType":"uint256","name":"_timeBuffer","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_minimumBid","type":"uint256"},{"internalType":"uint256","name":"_minBidIncrement","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBidIncrement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumBid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nft","outputs":[{"internalType":"contract WildNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oasis","outputs":[{"internalType":"contract IOasis","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oasisListStartDateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payee","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"promoBatchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"promoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"promoSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"raffleSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleWinnersSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeFromAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sanctionsList","outputs":[{"internalType":"contract SanctionsList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract WildNFT","name":"_nft","type":"address"}],"name":"set721ContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAllowListEndDateTime","type":"uint256"}],"name":"setAllowListEndDateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowListPrice","type":"uint256"}],"name":"setAllowListPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAllowListStartDateTime","type":"uint256"}],"name":"setAllowListStartDateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAllowlistMintMax","type":"uint256"}],"name":"setAllowlistMintMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAuctionEndDateTime","type":"uint256"}],"name":"setAuctionEndDateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setAuctionSettled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAuctionStartDateTime","type":"uint256"}],"name":"setAuctionStartDateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAuctionSupply","type":"uint256"}],"name":"setAuctionSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_auctionWinners","type":"address[]"},{"internalType":"uint256[]","name":"_prices","type":"uint256[]"}],"name":"setAuctionWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBidIncrement","type":"uint256"}],"name":"setMinBidIncrement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumBid","type":"uint256"}],"name":"setMinimumBid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newOasislistStartDateTime","type":"uint256"}],"name":"setOasislistStartDateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_payee","type":"address"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPromoSupply","type":"uint256"}],"name":"setPromoSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newRaffleSupply","type":"uint256"}],"name":"setRaffleSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_raffleWinners","type":"address[]"}],"name":"setRaffleWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeBuffer","type":"uint256"}],"name":"setTimeBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowListStart","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_bidders","type":"address[]"}],"name":"settleBidder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405260026003819055607860045567016345785d8a00006005819055662386f26fc1000060065560075562015180600855600a55600d600b8190556038600c5560649055601d600e556364232b20600f556364233930601055636423e1f060118190556012556364248ab060135560006014556015805464ffffffffff191690553480156200009057600080fd5b5060405162003a1238038062003a12833981016040819052620000b3916200019f565b6000805460ff1916905560018055620000cc3362000134565b601880546001600160a01b039586166001600160a01b0319918216179091556009805494861694821694909417909355601580549285166501000000000002600160281b600160c81b0319909316929092179091556019805491909316911617905562000207565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811681146200019c57600080fd5b50565b60008060008060808587031215620001b657600080fd5b8451620001c38162000186565b6020860151909450620001d68162000186565b6040860151909350620001e98162000186565b6060860151909250620001fc8162000186565b939692955090935050565b6137fb80620002176000396000f3fe6080604052600436106103fa5760003560e01c8063852fedc911610213578063d1b7bda311610123578063e5481754116100ab578063f6be71d11161007a578063f6be71d114610c97578063fa1431da14610cb7578063fc3a635314610ce4578063fd49af1314610d04578063fe3e492d14610d1a57600080fd5b8063e548175414610c21578063ec571c6a14610c41578063ec91f2a414610c61578063f2fde38b14610c7757600080fd5b8063d3e761a4116100f2578063d3e761a414610b23578063d5abeb0114610b43578063d94a350514610b59578063d9ad7f9114610bec578063e30ac00314610c0c57600080fd5b8063d1b7bda314610acf578063d2b898df14610ae5578063d2eb86ee14610b05578063d3a8638614610b0d57600080fd5b8063a3afda1a116101a6578063ba060b7d11610175578063ba060b7d14610a5a578063c180526a14610a70578063c1b819b914610a83578063c403b5b214610aa3578063c5693a8414610ab957600080fd5b8063a3afda1a146109d2578063a51312c8146109fb578063ae90b21314610a1b578063b59f6bf514610a3b57600080fd5b80638da5cb5b116101e25780638da5cb5b1461095d5780638f7758391461097b578063a24e51531461099c578063a2a3eb4d146109b257600080fd5b8063852fedc9146108dd57806386495b04146108fd5780638a64bbf01461091d5780638d57c9a91461093d57600080fd5b806347ccca021161030e57806365d634c5116102a15780637120334b116102705780637120334b14610875578063715018a61461089557806380a06f97146108aa57806383624074146108c05780638456cb59146108c857600080fd5b806365d634c5146107f55780636d8aded1146108155780636df9fa88146108355780636f8b44b01461085557600080fd5b806356f8f78c116102dd57806356f8f78c1461079257806358d5d666146107a7578063599d127a146107c75780635c975abb146107dd57600080fd5b806347ccca0214610700578063510f615a1461073857806355ee09d71461075857806355f15f0c1461077857600080fd5b806327eb70991161039157806333bc1c5c1161036057806333bc1c5c1461066e5780633ccfd60b146106a05780633f17d40a146106b55780633f4ba83a146106cb578063410459ad146106e057600080fd5b806327eb70991461057c5780632848aeaf146105b557806329823028146105f7578063335b115e1461065857600080fd5b806313cabd69116103cd57806313cabd69146105105780631eb8b34314610526578063224348361461053c57806323ab54b51461055c57600080fd5b806301596309146103ff5780630251e03e146104215780630fb5a6b4146104d657806312300ba4146104fa575b600080fd5b34801561040b57600080fd5b5061041f61041a366004613446565b610d3a565b005b34801561042d57600080fd5b5061048a61043c36600461349e565b601a602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b0390941694929360ff928316939192828116926101009004169087565b604080516001600160a01b03909816885260208801969096529315159486019490945260608501919091521515608084015290151560a083015260c082015260e0015b60405180910390f35b3480156104e257600080fd5b506104ec60085481565b6040519081526020016104cd565b34801561050657600080fd5b506104ec60145481565b34801561051c57600080fd5b506104ec60125481565b34801561053257600080fd5b506104ec60105481565b34801561054857600080fd5b5061041f6105573660046134c2565b610de8565b34801561056857600080fd5b5061041f6105773660046134e4565b610e57565b34801561058857600080fd5b5061059c61059736600461349e565b611001565b6040805160ff90931683526020830191909152016104cd565b3480156105c157600080fd5b506105e56105d036600461349e565b60166020526000908152604090205460ff1681565b60405160ff90911681526020016104cd565b34801561060357600080fd5b5061060c61111b565b604080519a8b5260208b01999099529789019690965260608801949094529115156080870152151560a086015260c085015260e0840152610100830152610120820152610140016104cd565b34801561066457600080fd5b506104ec60065481565b34801561067a57600080fd5b5060155461069090640100000000900460ff1681565b60405190151581526020016104cd565b3480156106ac57600080fd5b5061041f6111f6565b3480156106c157600080fd5b506104ec60115481565b3480156106d757600080fd5b5061041f611330565b3480156106ec57600080fd5b5061041f6106fb36600461349e565b611364565b34801561070c57600080fd5b50601854610720906001600160a01b031681565b6040516001600160a01b0390911681526020016104cd565b34801561074457600080fd5b5061041f61075336600461359f565b6113b0565b34801561076457600080fd5b5061041f61077336600461359f565b6113df565b34801561078457600080fd5b506015546106909060ff1681565b34801561079e57600080fd5b5061041f61140e565b3480156107b357600080fd5b5061041f6107c236600461349e565b61145b565b3480156107d357600080fd5b506104ec600a5481565b3480156107e957600080fd5b5060005460ff16610690565b34801561080157600080fd5b5061041f61081036600461359f565b6114a7565b34801561082157600080fd5b5061041f6108303660046135b8565b6114d6565b34801561084157600080fd5b5061041f61085036600461359f565b6116c1565b34801561086157600080fd5b5061041f61087036600461359f565b6116f0565b34801561088157600080fd5b5061041f61089036600461359f565b61171f565b3480156108a157600080fd5b5061041f611785565b3480156108b657600080fd5b506104ec60035481565b61041f6117b9565b3480156108d457600080fd5b5061041f611b4e565b3480156108e957600080fd5b5061041f6108f83660046135b8565b611b80565b34801561090957600080fd5b5061041f61091836600461359f565b61223e565b34801561092957600080fd5b5061041f61093836600461359f565b61226d565b34801561094957600080fd5b5061041f61095836600461359f565b61229c565b34801561096957600080fd5b506002546001600160a01b0316610720565b34801561098757600080fd5b50601554610690906301000000900460ff1681565b3480156109a857600080fd5b506104ec60075481565b3480156109be57600080fd5b5061041f6109cd3660046135f5565b6122cb565b3480156109de57600080fd5b50601554610720906501000000000090046001600160a01b031681565b348015610a0757600080fd5b5061041f610a163660046135b8565b6124c4565b348015610a2757600080fd5b50600954610720906001600160a01b031681565b348015610a4757600080fd5b5060155461069090610100900460ff1681565b348015610a6657600080fd5b506104ec600b5481565b61041f610a7e36600461359f565b612569565b348015610a8f57600080fd5b5061041f610a9e36600461359f565b61299e565b348015610aaf57600080fd5b506104ec60135481565b348015610ac557600080fd5b506104ec600f5481565b348015610adb57600080fd5b506104ec600e5481565b348015610af157600080fd5b5061041f610b0036600461359f565b6129cd565b61041f6129fc565b348015610b1957600080fd5b506104ec60055481565b348015610b2f57600080fd5b506015546106909062010000900460ff1681565b348015610b4f57600080fd5b506104ec600d5481565b348015610b6557600080fd5b50600b5460125460135460145460155460045460085460055460065460408051998a5260208a019890985296880195909552606087019390935260ff808316151560808801526201000083048116151560a08801526301000000909204909116151560c086015260e0850152610100840152610120830152610140820152610160016104cd565b348015610bf857600080fd5b5061041f610c0736600461359f565b612d18565b348015610c1857600080fd5b5061041f612d47565b348015610c2d57600080fd5b5061041f610c3c36600461359f565b612de3565b348015610c4d57600080fd5b50601954610720906001600160a01b031681565b348015610c6d57600080fd5b506104ec60045481565b348015610c8357600080fd5b5061041f610c9236600461349e565b612e12565b348015610ca357600080fd5b5061041f610cb236600461359f565b612eaa565b348015610cc357600080fd5b506104ec610cd236600461349e565b60176020526000908152604090205481565b348015610cf057600080fd5b5061041f610cff36600461359f565b612f09565b348015610d1057600080fd5b506104ec600c5481565b348015610d2657600080fd5b5061041f610d353660046135b8565b612f38565b6002546001600160a01b03163314610d6d5760405162461bcd60e51b8152600401610d6490613621565b60405180910390fd5b60005b8251811015610de3578160166000858481518110610d9057610d90613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080610ddb90613682565b915050610d70565b505050565b6002546001600160a01b03163314610e125760405162461bcd60e51b8152600401610d6490613621565b610e1d82605a61369b565b600f55610e2b82605a61369b565b6010819055610e3b90829061369b565b60118190556012819055610e5090829061369b565b6013555050565b6002546001600160a01b03163314610e815760405162461bcd60e51b8152600401610d6490613621565b6013544211610eca5760405162461bcd60e51b815260206004820152601560248201527420bab1ba34b7b7103737ba1037bb32b9103cb2ba1760591b6044820152606401610d64565b60155460ff1615610f175760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb88185b1c9958591e481cd95d1d1b1959604a1b6044820152606401610d64565b60005b8251811015610fef576001601a6000858481518110610f3b57610f3b613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160016101000a81548160ff021916908315150217905550818181518110610f8f57610f8f613656565b6020026020010151601a6000858481518110610fad57610fad613656565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600501819055508080610fe790613682565b915050610f1a565b50506015805460ff1916600117905550565b6015546040516370a0823160e01b81526001600160a01b0383811660048301526000928392839265010000000000909204909116906370a0823190602401602060405180830381865afa15801561105c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108091906136ae565b905080156110c6576001600160a01b038416600090815260176020526040902054600354600191906110b290846136c7565b6110bc91906136de565b9250925050915091565b6001600160a01b03841660009081526016602052604090205460ff161561110f576001600160a01b0384166000908152601760205260409020546003546002916110bc916136de565b50600093849350915050565b600080600080600080600080600080600a54600754601054601154601560019054906101000a900460ff16601560049054906101000a900460ff16600c54601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d091906136ae565b600f54600354995099509950995099509950995099509950995090919293949596979899565b6002546001600160a01b031633146112205760405162461bcd60e51b8152600401610d6490613621565b60155462010000900460ff161515600114801561123e575060135442115b61128a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e206e6f7420736574746c65647c7c6e6f7420656e6465642e006044820152606401610d64565b6009546040516000916001600160a01b03169047908381818185875af1925050503d80600081146112d7576040519150601f19603f3d011682016040523d82523d6000602084013e6112dc565b606091505b505090508061132d5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f2070617965652e00000000000000006044820152606401610d64565b50565b6002546001600160a01b0316331461135a5760405162461bcd60e51b8152600401610d6490613621565b611362613162565b565b6002546001600160a01b0316331461138e5760405162461bcd60e51b8152600401610d6490613621565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146113da5760405162461bcd60e51b8152600401610d6490613621565b601155565b6002546001600160a01b031633146114095760405162461bcd60e51b8152600401610d6490613621565b600655565b6002546001600160a01b031633146114385760405162461bcd60e51b8152600401610d6490613621565b6015805464ff000000001981166401000000009182900460ff1615909102179055565b6002546001600160a01b031633146114855760405162461bcd60e51b8152600401610d6490613621565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146114d15760405162461bcd60e51b8152600401610d6490613621565b600a55565b6002546001600160a01b031633146115005760405162461bcd60e51b8152600401610d6490613621565b60135442116115495760405162461bcd60e51b815260206004820152601560248201527420bab1ba34b7b7103737ba1037bb32b9103cb2ba1760591b6044820152606401610d64565b601554610100900460ff161561159a5760405162461bcd60e51b8152602060048201526016602482015275149859999b1948185b1c9958591e481cd95d1d1b195960521b6044820152606401610d64565b600a54815111156115ed5760405162461bcd60e51b815260206004820152601b60248201527f496e636f7272656374206e756d626572206f662077696e6e65727300000000006044820152606401610d64565b60005b81518110156116ae576001601a600084848151811061161157611611613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160016101000a81548160ff021916908315150217905550600554601a600084848151811061166c5761166c613656565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206005018190555080806116a690613682565b9150506115f0565b50506015805461ff001916610100179055565b6002546001600160a01b031633146116eb5760405162461bcd60e51b8152600401610d6490613621565b600755565b6002546001600160a01b0316331461171a5760405162461bcd60e51b8152600401610d6490613621565b600d55565b6002546001600160a01b031633146117495760405162461bcd60e51b8152600401610d6490613621565b60048190556040518181527f1b55d9f7002bda4490f467e326f22a4a847629c0f2d1ed421607d318d25b410d906020015b60405180910390a150565b6002546001600160a01b031633146117af5760405162461bcd60e51b8152600401610d6490613621565b61136260006131b4565b6002600154036117db5760405162461bcd60e51b8152600401610d64906136f1565b600260015560005460ff161561182a5760405162461bcd60e51b8152602060048201526014602482015273105d58dd1a5bdb921bdd5cd94e881c185d5cd95960621b6044820152606401610d64565b60195460405163df592f7d60e01b81523360048201819052916000916001600160a01b039091169063df592f7d90602401602060405180830381865afa158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190613728565b905080156118bc5760405162461bcd60e51b8152600401610d649061374a565b601354421080156118cf57506012544210155b61191b5760405162461bcd60e51b815260206004820152601760248201527f4f7574736964652061756374696f6e2077696e646f772e0000000000000000006044820152606401610d64565b6005543410156119635760405162461bcd60e51b81526020600482015260136024820152722134b21030b6b7bab73a103a37b7903637bb9760691b6044820152606401610d64565b336000908152601a602052604090206001015415611a3857336000908152601a602052604090206001015434116119f25760405162461bcd60e51b815260206004820152602d60248201527f596f752063616e206f6e6c7920696e63726561736520796f7572206269642c2060448201526c3737ba103232b1b932b0b9b29760991b6064820152608401610d64565b336000908152601a602052604090208054600190910154611a1c916001600160a01b031690613206565b50336000908152601a6020526040902034600190910155611af4565b6040805160e08101825260008183018181526080830182815260a0840183815260c08501848152338087523460208089019182524260608a01908152928852601a905297909520955186546001600160a01b039091166001600160a01b031990911617865595516001860155915160028501805491151560ff19909216919091179055915160038401559051600483018054925115156101000261ff00199215159290921661ffff199093169290921717905590516005909101555b336000818152601a60209081526040808320600101548151948552918401919091528201527f4c59a472ced976904d21e373e2f2d8326defffabfe087e3d7886f0c516495ba79060600160405180910390a1505060018055565b6002546001600160a01b03163314611b785760405162461bcd60e51b8152600401610d6490613621565b611362613286565b6002546001600160a01b03163314611baa5760405162461bcd60e51b8152600401610d6490613621565b600260015403611bcc5760405162461bcd60e51b8152600401610d64906136f1565b60026001556013544211611c1a5760405162461bcd60e51b815260206004820152601560248201527420bab1ba34b7b7103430b9b713ba1032b73232b21760591b6044820152606401610d64565b60155460ff1615156001148015611c3e575060155460ff6101009091041615156001145b611c8a5760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e2077696e6e657273206e6f74207365740000000000000000006044820152606401610d64565b60005b815181101561223657601a6000838381518110611cac57611cac613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206004015460ff6101009091041615156001148015611d2a5750601a6000838381518110611cfe57611cfe613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206002015460ff16155b8015611d735750601a6000838381518110611d4757611d47613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206004015460ff16155b15612037576000601a6000848481518110611d9057611d90613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060050154601a6000858581518110611dd257611dd2613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010154611e0891906136de565b90508015611edd576000838381518110611e2457611e24613656565b60200260200101516001600160a01b03168260405160006040518083038185875af1925050503d8060008114611e76576040519150601f19603f3d011682016040523d82523d6000602084013e611e7b565b606091505b5050905080611edb5760405162461bcd60e51b815260206004820152602660248201527f4661696c656420746f20726566756e6420646966666572656e636520746f207760448201526534b73732b91760d11b6064820152608401610d64565b505b60185483516001600160a01b0390911690636a62784290859085908110611f0657611f06613656565b60200260200101516040518263ffffffff1660e01b8152600401611f3991906001600160a01b0391909116815260200190565b6020604051808303816000875af1158015611f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7c91906136ae565b506001601a6000858581518110611f9557611f95613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060020160006101000a81548160ff0219169083151502179055506001601a6000858581518110611fef57611fef613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160006101000a81548160ff02191690831515021790555050612224565b601a600083838151811061204d5761204d613656565b6020908102919091018101516001600160a01b0316825281019190915260400160002060040154610100900460ff161580156120c65750601a600083838151811061209a5761209a613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206004015460ff16155b156122245760008282815181106120df576120df613656565b60200260200101516001600160a01b0316601a600085858151811061210657612106613656565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001015460405160006040518083038185875af1925050503d8060008114612172576040519150601f19603f3d011682016040523d82523d6000602084013e612177565b606091505b50509050806121c85760405162461bcd60e51b815260206004820152601f60248201527f4661696c656420746f2073656e6420726566756e6420746f206c6f7365722e006044820152606401610d64565b6001601a60008585815181106121e0576121e0613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160006101000a81548160ff021916908315150217905550505b8061222e81613682565b915050611c8d565b505060018055565b6002546001600160a01b031633146122685760405162461bcd60e51b8152600401610d6490613621565b600555565b6002546001600160a01b031633146122975760405162461bcd60e51b8152600401610d6490613621565b600e55565b6002546001600160a01b031633146122c65760405162461bcd60e51b8152600401610d6490613621565b601355565b6002546001600160a01b031633146122f55760405162461bcd60e51b8152600401610d6490613621565b80600e5410156123415760405162461bcd60e51b81526020600482015260176024820152764e6f7420656e6f7567682070726f6d6f20737570706c7960481b6044820152606401610d64565b60115442111561238f5760405162461bcd60e51b81526020600482015260196024820152784f7574736964652070726f6d6f206d696e742077696e646f7760381b6044820152606401610d64565b60005b8181101561241d576018546040516335313c2160e11b81526001600160a01b03858116600483015290911690636a627842906024016020604051808303816000875af11580156123e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061240a91906136ae565b508061241581613682565b915050612392565b5080600e600082825461243091906136de565b9091555050600a54601854604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd916004808201926020929091908290030181865afa158015612482573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a691906136ae565b600d546124b391906136de565b6124bd91906136de565b600b555050565b6002546001600160a01b031633146124ee5760405162461bcd60e51b8152600401610d6490613621565b60005b81518110156125655760006016600084848151811061251257612512613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff160217905550808061255d90613682565b9150506124f1565b5050565b60195460405163df592f7d60e01b81523360048201819052916000916001600160a01b039091169063df592f7d90602401602060405180830381865afa1580156125b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125db9190613728565b905080156125fb5760405162461bcd60e51b8152600401610d649061374a565b8260075461260991906136c7565b34101561264e5760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610d64565b600083600c5461265e91906136de565b10156126ac5760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520616c6c6f776c69737420737570706c7900000000000000006044820152606401610d64565b6000806126b833611001565b915060ff169150600082116126fd5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610d64565b8085111561274d5760405162461bcd60e51b815260206004820152601860248201527f5174792065786365656473206d617820616c6c6f7765642e00000000000000006044820152606401610d64565b816001036127ba57600f54421015801561276957506011544211155b6127b55760405162461bcd60e51b815260206004820152601e60248201527f4f757473696465204f6173697320616c6c6f776c6973742077696e646f7700006044820152606401610d64565b61281a565b60105442101580156127ce57506011544211155b61281a5760405162461bcd60e51b815260206004820152601860248201527f4f75747369646520616c6c6f776c6973742077696e646f7700000000000000006044820152606401610d64565b60005b858110156128bc576018546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af115801561286f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289391906136ae565b50600c80549060006128a48361377f565b919050555080806128b490613682565b91505061281d565b5033600090815260176020526040812080548792906128dc90849061369b565b9091555050600a54601854604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd916004808201926020929091908290030181865afa15801561292e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295291906136ae565b600d5461295f91906136de565b61296991906136de565b600b5560405133907f016393cb290ab38948527bb115688745c29b0a40d90372d61c7f232ecf65286290600090a25050505050565b6002546001600160a01b031633146129c85760405162461bcd60e51b8152600401610d6490613621565b601055565b6002546001600160a01b031633146129f75760405162461bcd60e51b8152600401610d6490613621565b600355565b600260015403612a1e5760405162461bcd60e51b8152600401610d64906136f1565b600260015560005460ff1615612a6d5760405162461bcd60e51b8152602060048201526014602482015273105d58dd1a5bdb921bdd5cd94e881c185d5cd95960621b6044820152606401610d64565b60195460405163df592f7d60e01b81523360048201819052916000916001600160a01b039091169063df592f7d90602401602060405180830381865afa158015612abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612adf9190613728565b90508015612aff5760405162461bcd60e51b8152600401610d649061374a565b601860009054906101000a90046001600160a01b03166001600160a01b031663d5abeb016040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7691906136ae565b601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bed91906136ae565b10612bf757600080fd5b601554640100000000900460ff161515600114612c485760405162461bcd60e51b815260206004820152600f60248201526e2737ba1030baba3437b934bd32b21760891b6044820152606401610d64565b600554341015612c8c5760405162461bcd60e51b815260206004820152600f60248201526e20b6b7bab73a103a37b7903637bb9760891b6044820152606401610d64565b6018546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af1158015612cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cfa91906136ae565b50600b8054906000612d0b8361377f565b9091555050600180555050565b6002546001600160a01b03163314612d425760405162461bcd60e51b8152600401610d6490613621565b601255565b6002546001600160a01b03163314612d715760405162461bcd60e51b8152600401610d6490613621565b60155462010000900460ff1615612dc45760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb88185b1c9958591e481cd95d1d1b1959604a1b6044820152606401610d64565b6015805462ff0000198116620100009182900460ff1615909102179055565b6002546001600160a01b03163314612e0d5760405162461bcd60e51b8152600401610d6490613621565b600f55565b6002546001600160a01b03163314612e3c5760405162461bcd60e51b8152600401610d6490613621565b6001600160a01b038116612ea15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d64565b61132d816131b4565b6002546001600160a01b03163314612ed45760405162461bcd60e51b8152600401610d6490613621565b60088190556040518181527faab6389d8f1c16ba1deb6e9831f5c5442cf4fcf99bf5bfa867460be408a911189060200161177a565b6002546001600160a01b03163314612f335760405162461bcd60e51b8152600401610d6490613621565b600b55565b6002546001600160a01b03163314612f625760405162461bcd60e51b8152600401610d6490613621565b8051600e541015612faf5760405162461bcd60e51b81526020600482015260176024820152764e6f7420656e6f7567682070726f6d6f20737570706c7960481b6044820152606401610d64565b601154421115612ffd5760405162461bcd60e51b81526020600482015260196024820152784f7574736964652070726f6d6f206d696e742077696e646f7760381b6044820152606401610d64565b60005b81518110156130bb5760185482516001600160a01b0390911690636a6278429084908490811061303257613032613656565b60200260200101516040518263ffffffff1660e01b815260040161306591906001600160a01b0391909116815260200190565b6020604051808303816000875af1158015613084573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a891906136ae565b50806130b381613682565b915050613000565b508051600e60008282546130cf91906136de565b9091555050600a54601854604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd916004808201926020929091908290030181865afa158015613121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061314591906136ae565b600d5461315291906136de565b61315c91906136de565b600b5550565b61316a6132c3565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160008082526020820190925281906001600160a01b038516906175309085906040516132369190613796565b600060405180830381858888f193505050503d8060008114613274576040519150601f19603f3d011682016040523d82523d6000602084013e613279565b606091505b5090925050505b92915050565b61328e61330c565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131973390565b60005460ff166113625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d64565b60005460ff16156113625760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d64565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561339157613391613352565b604052919050565b600067ffffffffffffffff8211156133b3576133b3613352565b5060051b60200190565b6001600160a01b038116811461132d57600080fd5b600082601f8301126133e357600080fd5b813560206133f86133f383613399565b613368565b82815260059290921b8401810191818101908684111561341757600080fd5b8286015b8481101561343b57803561342e816133bd565b835291830191830161341b565b509695505050505050565b6000806040838503121561345957600080fd5b823567ffffffffffffffff81111561347057600080fd5b61347c858286016133d2565b925050602083013560ff8116811461349357600080fd5b809150509250929050565b6000602082840312156134b057600080fd5b81356134bb816133bd565b9392505050565b600080604083850312156134d557600080fd5b50508035926020909101359150565b600080604083850312156134f757600080fd5b823567ffffffffffffffff8082111561350f57600080fd5b61351b868387016133d2565b935060209150818501358181111561353257600080fd5b85019050601f8101861361354557600080fd5b80356135536133f382613399565b81815260059190911b8201830190838101908883111561357257600080fd5b928401925b8284101561359057833582529284019290840190613577565b80955050505050509250929050565b6000602082840312156135b157600080fd5b5035919050565b6000602082840312156135ca57600080fd5b813567ffffffffffffffff8111156135e157600080fd5b6135ed848285016133d2565b949350505050565b6000806040838503121561360857600080fd5b8235613613816133bd565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016136945761369461366c565b5060010190565b808201808211156132805761328061366c565b6000602082840312156136c057600080fd5b5051919050565b80820281158282048414176132805761328061366c565b818103818111156132805761328061366c565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561373a57600080fd5b815180151581146134bb57600080fd5b6020808252818101527f426c6f636b65643a204f4641432073616e6374696f6e65642061646472657373604082015260600190565b60008161378e5761378e61366c565b506000190190565b6000825160005b818110156137b7576020818601810151858301520161379d565b50600092019182525091905056fea264697066735822122028272ce877b860aeeca3754bd342544875d223a6e4fc022ab4ae87589366bfcf64736f6c634300081200330000000000000000000000006e13d2b9ba4df86e70f6fd916aecea95da0c6d600000000000000000000000009daf56fb5d08b1dad7e6a46e0d5e814f41d1b7f9000000000000000000000000898157afb3e158cc835d19b9ecd37c69bf460f8c00000000000000000000000040c57923924b5c5c5455c48d93317139addac8fb
Deployed Bytecode
0x6080604052600436106103fa5760003560e01c8063852fedc911610213578063d1b7bda311610123578063e5481754116100ab578063f6be71d11161007a578063f6be71d114610c97578063fa1431da14610cb7578063fc3a635314610ce4578063fd49af1314610d04578063fe3e492d14610d1a57600080fd5b8063e548175414610c21578063ec571c6a14610c41578063ec91f2a414610c61578063f2fde38b14610c7757600080fd5b8063d3e761a4116100f2578063d3e761a414610b23578063d5abeb0114610b43578063d94a350514610b59578063d9ad7f9114610bec578063e30ac00314610c0c57600080fd5b8063d1b7bda314610acf578063d2b898df14610ae5578063d2eb86ee14610b05578063d3a8638614610b0d57600080fd5b8063a3afda1a116101a6578063ba060b7d11610175578063ba060b7d14610a5a578063c180526a14610a70578063c1b819b914610a83578063c403b5b214610aa3578063c5693a8414610ab957600080fd5b8063a3afda1a146109d2578063a51312c8146109fb578063ae90b21314610a1b578063b59f6bf514610a3b57600080fd5b80638da5cb5b116101e25780638da5cb5b1461095d5780638f7758391461097b578063a24e51531461099c578063a2a3eb4d146109b257600080fd5b8063852fedc9146108dd57806386495b04146108fd5780638a64bbf01461091d5780638d57c9a91461093d57600080fd5b806347ccca021161030e57806365d634c5116102a15780637120334b116102705780637120334b14610875578063715018a61461089557806380a06f97146108aa57806383624074146108c05780638456cb59146108c857600080fd5b806365d634c5146107f55780636d8aded1146108155780636df9fa88146108355780636f8b44b01461085557600080fd5b806356f8f78c116102dd57806356f8f78c1461079257806358d5d666146107a7578063599d127a146107c75780635c975abb146107dd57600080fd5b806347ccca0214610700578063510f615a1461073857806355ee09d71461075857806355f15f0c1461077857600080fd5b806327eb70991161039157806333bc1c5c1161036057806333bc1c5c1461066e5780633ccfd60b146106a05780633f17d40a146106b55780633f4ba83a146106cb578063410459ad146106e057600080fd5b806327eb70991461057c5780632848aeaf146105b557806329823028146105f7578063335b115e1461065857600080fd5b806313cabd69116103cd57806313cabd69146105105780631eb8b34314610526578063224348361461053c57806323ab54b51461055c57600080fd5b806301596309146103ff5780630251e03e146104215780630fb5a6b4146104d657806312300ba4146104fa575b600080fd5b34801561040b57600080fd5b5061041f61041a366004613446565b610d3a565b005b34801561042d57600080fd5b5061048a61043c36600461349e565b601a602052600090815260409020805460018201546002830154600384015460048501546005909501546001600160a01b0390941694929360ff928316939192828116926101009004169087565b604080516001600160a01b03909816885260208801969096529315159486019490945260608501919091521515608084015290151560a083015260c082015260e0015b60405180910390f35b3480156104e257600080fd5b506104ec60085481565b6040519081526020016104cd565b34801561050657600080fd5b506104ec60145481565b34801561051c57600080fd5b506104ec60125481565b34801561053257600080fd5b506104ec60105481565b34801561054857600080fd5b5061041f6105573660046134c2565b610de8565b34801561056857600080fd5b5061041f6105773660046134e4565b610e57565b34801561058857600080fd5b5061059c61059736600461349e565b611001565b6040805160ff90931683526020830191909152016104cd565b3480156105c157600080fd5b506105e56105d036600461349e565b60166020526000908152604090205460ff1681565b60405160ff90911681526020016104cd565b34801561060357600080fd5b5061060c61111b565b604080519a8b5260208b01999099529789019690965260608801949094529115156080870152151560a086015260c085015260e0840152610100830152610120820152610140016104cd565b34801561066457600080fd5b506104ec60065481565b34801561067a57600080fd5b5060155461069090640100000000900460ff1681565b60405190151581526020016104cd565b3480156106ac57600080fd5b5061041f6111f6565b3480156106c157600080fd5b506104ec60115481565b3480156106d757600080fd5b5061041f611330565b3480156106ec57600080fd5b5061041f6106fb36600461349e565b611364565b34801561070c57600080fd5b50601854610720906001600160a01b031681565b6040516001600160a01b0390911681526020016104cd565b34801561074457600080fd5b5061041f61075336600461359f565b6113b0565b34801561076457600080fd5b5061041f61077336600461359f565b6113df565b34801561078457600080fd5b506015546106909060ff1681565b34801561079e57600080fd5b5061041f61140e565b3480156107b357600080fd5b5061041f6107c236600461349e565b61145b565b3480156107d357600080fd5b506104ec600a5481565b3480156107e957600080fd5b5060005460ff16610690565b34801561080157600080fd5b5061041f61081036600461359f565b6114a7565b34801561082157600080fd5b5061041f6108303660046135b8565b6114d6565b34801561084157600080fd5b5061041f61085036600461359f565b6116c1565b34801561086157600080fd5b5061041f61087036600461359f565b6116f0565b34801561088157600080fd5b5061041f61089036600461359f565b61171f565b3480156108a157600080fd5b5061041f611785565b3480156108b657600080fd5b506104ec60035481565b61041f6117b9565b3480156108d457600080fd5b5061041f611b4e565b3480156108e957600080fd5b5061041f6108f83660046135b8565b611b80565b34801561090957600080fd5b5061041f61091836600461359f565b61223e565b34801561092957600080fd5b5061041f61093836600461359f565b61226d565b34801561094957600080fd5b5061041f61095836600461359f565b61229c565b34801561096957600080fd5b506002546001600160a01b0316610720565b34801561098757600080fd5b50601554610690906301000000900460ff1681565b3480156109a857600080fd5b506104ec60075481565b3480156109be57600080fd5b5061041f6109cd3660046135f5565b6122cb565b3480156109de57600080fd5b50601554610720906501000000000090046001600160a01b031681565b348015610a0757600080fd5b5061041f610a163660046135b8565b6124c4565b348015610a2757600080fd5b50600954610720906001600160a01b031681565b348015610a4757600080fd5b5060155461069090610100900460ff1681565b348015610a6657600080fd5b506104ec600b5481565b61041f610a7e36600461359f565b612569565b348015610a8f57600080fd5b5061041f610a9e36600461359f565b61299e565b348015610aaf57600080fd5b506104ec60135481565b348015610ac557600080fd5b506104ec600f5481565b348015610adb57600080fd5b506104ec600e5481565b348015610af157600080fd5b5061041f610b0036600461359f565b6129cd565b61041f6129fc565b348015610b1957600080fd5b506104ec60055481565b348015610b2f57600080fd5b506015546106909062010000900460ff1681565b348015610b4f57600080fd5b506104ec600d5481565b348015610b6557600080fd5b50600b5460125460135460145460155460045460085460055460065460408051998a5260208a019890985296880195909552606087019390935260ff808316151560808801526201000083048116151560a08801526301000000909204909116151560c086015260e0850152610100840152610120830152610140820152610160016104cd565b348015610bf857600080fd5b5061041f610c0736600461359f565b612d18565b348015610c1857600080fd5b5061041f612d47565b348015610c2d57600080fd5b5061041f610c3c36600461359f565b612de3565b348015610c4d57600080fd5b50601954610720906001600160a01b031681565b348015610c6d57600080fd5b506104ec60045481565b348015610c8357600080fd5b5061041f610c9236600461349e565b612e12565b348015610ca357600080fd5b5061041f610cb236600461359f565b612eaa565b348015610cc357600080fd5b506104ec610cd236600461349e565b60176020526000908152604090205481565b348015610cf057600080fd5b5061041f610cff36600461359f565b612f09565b348015610d1057600080fd5b506104ec600c5481565b348015610d2657600080fd5b5061041f610d353660046135b8565b612f38565b6002546001600160a01b03163314610d6d5760405162461bcd60e51b8152600401610d6490613621565b60405180910390fd5b60005b8251811015610de3578160166000858481518110610d9057610d90613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080610ddb90613682565b915050610d70565b505050565b6002546001600160a01b03163314610e125760405162461bcd60e51b8152600401610d6490613621565b610e1d82605a61369b565b600f55610e2b82605a61369b565b6010819055610e3b90829061369b565b60118190556012819055610e5090829061369b565b6013555050565b6002546001600160a01b03163314610e815760405162461bcd60e51b8152600401610d6490613621565b6013544211610eca5760405162461bcd60e51b815260206004820152601560248201527420bab1ba34b7b7103737ba1037bb32b9103cb2ba1760591b6044820152606401610d64565b60155460ff1615610f175760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb88185b1c9958591e481cd95d1d1b1959604a1b6044820152606401610d64565b60005b8251811015610fef576001601a6000858481518110610f3b57610f3b613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160016101000a81548160ff021916908315150217905550818181518110610f8f57610f8f613656565b6020026020010151601a6000858481518110610fad57610fad613656565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020600501819055508080610fe790613682565b915050610f1a565b50506015805460ff1916600117905550565b6015546040516370a0823160e01b81526001600160a01b0383811660048301526000928392839265010000000000909204909116906370a0823190602401602060405180830381865afa15801561105c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108091906136ae565b905080156110c6576001600160a01b038416600090815260176020526040902054600354600191906110b290846136c7565b6110bc91906136de565b9250925050915091565b6001600160a01b03841660009081526016602052604090205460ff161561110f576001600160a01b0384166000908152601760205260409020546003546002916110bc916136de565b50600093849350915050565b600080600080600080600080600080600a54600754601054601154601560019054906101000a900460ff16601560049054906101000a900460ff16600c54601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d091906136ae565b600f54600354995099509950995099509950995099509950995090919293949596979899565b6002546001600160a01b031633146112205760405162461bcd60e51b8152600401610d6490613621565b60155462010000900460ff161515600114801561123e575060135442115b61128a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e206e6f7420736574746c65647c7c6e6f7420656e6465642e006044820152606401610d64565b6009546040516000916001600160a01b03169047908381818185875af1925050503d80600081146112d7576040519150601f19603f3d011682016040523d82523d6000602084013e6112dc565b606091505b505090508061132d5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f2070617965652e00000000000000006044820152606401610d64565b50565b6002546001600160a01b0316331461135a5760405162461bcd60e51b8152600401610d6490613621565b611362613162565b565b6002546001600160a01b0316331461138e5760405162461bcd60e51b8152600401610d6490613621565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146113da5760405162461bcd60e51b8152600401610d6490613621565b601155565b6002546001600160a01b031633146114095760405162461bcd60e51b8152600401610d6490613621565b600655565b6002546001600160a01b031633146114385760405162461bcd60e51b8152600401610d6490613621565b6015805464ff000000001981166401000000009182900460ff1615909102179055565b6002546001600160a01b031633146114855760405162461bcd60e51b8152600401610d6490613621565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031633146114d15760405162461bcd60e51b8152600401610d6490613621565b600a55565b6002546001600160a01b031633146115005760405162461bcd60e51b8152600401610d6490613621565b60135442116115495760405162461bcd60e51b815260206004820152601560248201527420bab1ba34b7b7103737ba1037bb32b9103cb2ba1760591b6044820152606401610d64565b601554610100900460ff161561159a5760405162461bcd60e51b8152602060048201526016602482015275149859999b1948185b1c9958591e481cd95d1d1b195960521b6044820152606401610d64565b600a54815111156115ed5760405162461bcd60e51b815260206004820152601b60248201527f496e636f7272656374206e756d626572206f662077696e6e65727300000000006044820152606401610d64565b60005b81518110156116ae576001601a600084848151811061161157611611613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160016101000a81548160ff021916908315150217905550600554601a600084848151811061166c5761166c613656565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206005018190555080806116a690613682565b9150506115f0565b50506015805461ff001916610100179055565b6002546001600160a01b031633146116eb5760405162461bcd60e51b8152600401610d6490613621565b600755565b6002546001600160a01b0316331461171a5760405162461bcd60e51b8152600401610d6490613621565b600d55565b6002546001600160a01b031633146117495760405162461bcd60e51b8152600401610d6490613621565b60048190556040518181527f1b55d9f7002bda4490f467e326f22a4a847629c0f2d1ed421607d318d25b410d906020015b60405180910390a150565b6002546001600160a01b031633146117af5760405162461bcd60e51b8152600401610d6490613621565b61136260006131b4565b6002600154036117db5760405162461bcd60e51b8152600401610d64906136f1565b600260015560005460ff161561182a5760405162461bcd60e51b8152602060048201526014602482015273105d58dd1a5bdb921bdd5cd94e881c185d5cd95960621b6044820152606401610d64565b60195460405163df592f7d60e01b81523360048201819052916000916001600160a01b039091169063df592f7d90602401602060405180830381865afa158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190613728565b905080156118bc5760405162461bcd60e51b8152600401610d649061374a565b601354421080156118cf57506012544210155b61191b5760405162461bcd60e51b815260206004820152601760248201527f4f7574736964652061756374696f6e2077696e646f772e0000000000000000006044820152606401610d64565b6005543410156119635760405162461bcd60e51b81526020600482015260136024820152722134b21030b6b7bab73a103a37b7903637bb9760691b6044820152606401610d64565b336000908152601a602052604090206001015415611a3857336000908152601a602052604090206001015434116119f25760405162461bcd60e51b815260206004820152602d60248201527f596f752063616e206f6e6c7920696e63726561736520796f7572206269642c2060448201526c3737ba103232b1b932b0b9b29760991b6064820152608401610d64565b336000908152601a602052604090208054600190910154611a1c916001600160a01b031690613206565b50336000908152601a6020526040902034600190910155611af4565b6040805160e08101825260008183018181526080830182815260a0840183815260c08501848152338087523460208089019182524260608a01908152928852601a905297909520955186546001600160a01b039091166001600160a01b031990911617865595516001860155915160028501805491151560ff19909216919091179055915160038401559051600483018054925115156101000261ff00199215159290921661ffff199093169290921717905590516005909101555b336000818152601a60209081526040808320600101548151948552918401919091528201527f4c59a472ced976904d21e373e2f2d8326defffabfe087e3d7886f0c516495ba79060600160405180910390a1505060018055565b6002546001600160a01b03163314611b785760405162461bcd60e51b8152600401610d6490613621565b611362613286565b6002546001600160a01b03163314611baa5760405162461bcd60e51b8152600401610d6490613621565b600260015403611bcc5760405162461bcd60e51b8152600401610d64906136f1565b60026001556013544211611c1a5760405162461bcd60e51b815260206004820152601560248201527420bab1ba34b7b7103430b9b713ba1032b73232b21760591b6044820152606401610d64565b60155460ff1615156001148015611c3e575060155460ff6101009091041615156001145b611c8a5760405162461bcd60e51b815260206004820152601760248201527f41756374696f6e2077696e6e657273206e6f74207365740000000000000000006044820152606401610d64565b60005b815181101561223657601a6000838381518110611cac57611cac613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206004015460ff6101009091041615156001148015611d2a5750601a6000838381518110611cfe57611cfe613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206002015460ff16155b8015611d735750601a6000838381518110611d4757611d47613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206004015460ff16155b15612037576000601a6000848481518110611d9057611d90613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060050154601a6000858581518110611dd257611dd2613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060010154611e0891906136de565b90508015611edd576000838381518110611e2457611e24613656565b60200260200101516001600160a01b03168260405160006040518083038185875af1925050503d8060008114611e76576040519150601f19603f3d011682016040523d82523d6000602084013e611e7b565b606091505b5050905080611edb5760405162461bcd60e51b815260206004820152602660248201527f4661696c656420746f20726566756e6420646966666572656e636520746f207760448201526534b73732b91760d11b6064820152608401610d64565b505b60185483516001600160a01b0390911690636a62784290859085908110611f0657611f06613656565b60200260200101516040518263ffffffff1660e01b8152600401611f3991906001600160a01b0391909116815260200190565b6020604051808303816000875af1158015611f58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7c91906136ae565b506001601a6000858581518110611f9557611f95613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060020160006101000a81548160ff0219169083151502179055506001601a6000858581518110611fef57611fef613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160006101000a81548160ff02191690831515021790555050612224565b601a600083838151811061204d5761204d613656565b6020908102919091018101516001600160a01b0316825281019190915260400160002060040154610100900460ff161580156120c65750601a600083838151811061209a5761209a613656565b6020908102919091018101516001600160a01b031682528101919091526040016000206004015460ff16155b156122245760008282815181106120df576120df613656565b60200260200101516001600160a01b0316601a600085858151811061210657612106613656565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206001015460405160006040518083038185875af1925050503d8060008114612172576040519150601f19603f3d011682016040523d82523d6000602084013e612177565b606091505b50509050806121c85760405162461bcd60e51b815260206004820152601f60248201527f4661696c656420746f2073656e6420726566756e6420746f206c6f7365722e006044820152606401610d64565b6001601a60008585815181106121e0576121e0613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060040160006101000a81548160ff021916908315150217905550505b8061222e81613682565b915050611c8d565b505060018055565b6002546001600160a01b031633146122685760405162461bcd60e51b8152600401610d6490613621565b600555565b6002546001600160a01b031633146122975760405162461bcd60e51b8152600401610d6490613621565b600e55565b6002546001600160a01b031633146122c65760405162461bcd60e51b8152600401610d6490613621565b601355565b6002546001600160a01b031633146122f55760405162461bcd60e51b8152600401610d6490613621565b80600e5410156123415760405162461bcd60e51b81526020600482015260176024820152764e6f7420656e6f7567682070726f6d6f20737570706c7960481b6044820152606401610d64565b60115442111561238f5760405162461bcd60e51b81526020600482015260196024820152784f7574736964652070726f6d6f206d696e742077696e646f7760381b6044820152606401610d64565b60005b8181101561241d576018546040516335313c2160e11b81526001600160a01b03858116600483015290911690636a627842906024016020604051808303816000875af11580156123e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061240a91906136ae565b508061241581613682565b915050612392565b5080600e600082825461243091906136de565b9091555050600a54601854604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd916004808201926020929091908290030181865afa158015612482573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a691906136ae565b600d546124b391906136de565b6124bd91906136de565b600b555050565b6002546001600160a01b031633146124ee5760405162461bcd60e51b8152600401610d6490613621565b60005b81518110156125655760006016600084848151811061251257612512613656565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff160217905550808061255d90613682565b9150506124f1565b5050565b60195460405163df592f7d60e01b81523360048201819052916000916001600160a01b039091169063df592f7d90602401602060405180830381865afa1580156125b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125db9190613728565b905080156125fb5760405162461bcd60e51b8152600401610d649061374a565b8260075461260991906136c7565b34101561264e5760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610d64565b600083600c5461265e91906136de565b10156126ac5760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520616c6c6f776c69737420737570706c7900000000000000006044820152606401610d64565b6000806126b833611001565b915060ff169150600082116126fd5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610d64565b8085111561274d5760405162461bcd60e51b815260206004820152601860248201527f5174792065786365656473206d617820616c6c6f7765642e00000000000000006044820152606401610d64565b816001036127ba57600f54421015801561276957506011544211155b6127b55760405162461bcd60e51b815260206004820152601e60248201527f4f757473696465204f6173697320616c6c6f776c6973742077696e646f7700006044820152606401610d64565b61281a565b60105442101580156127ce57506011544211155b61281a5760405162461bcd60e51b815260206004820152601860248201527f4f75747369646520616c6c6f776c6973742077696e646f7700000000000000006044820152606401610d64565b60005b858110156128bc576018546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af115801561286f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289391906136ae565b50600c80549060006128a48361377f565b919050555080806128b490613682565b91505061281d565b5033600090815260176020526040812080548792906128dc90849061369b565b9091555050600a54601854604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd916004808201926020929091908290030181865afa15801561292e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295291906136ae565b600d5461295f91906136de565b61296991906136de565b600b5560405133907f016393cb290ab38948527bb115688745c29b0a40d90372d61c7f232ecf65286290600090a25050505050565b6002546001600160a01b031633146129c85760405162461bcd60e51b8152600401610d6490613621565b601055565b6002546001600160a01b031633146129f75760405162461bcd60e51b8152600401610d6490613621565b600355565b600260015403612a1e5760405162461bcd60e51b8152600401610d64906136f1565b600260015560005460ff1615612a6d5760405162461bcd60e51b8152602060048201526014602482015273105d58dd1a5bdb921bdd5cd94e881c185d5cd95960621b6044820152606401610d64565b60195460405163df592f7d60e01b81523360048201819052916000916001600160a01b039091169063df592f7d90602401602060405180830381865afa158015612abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612adf9190613728565b90508015612aff5760405162461bcd60e51b8152600401610d649061374a565b601860009054906101000a90046001600160a01b03166001600160a01b031663d5abeb016040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7691906136ae565b601860009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612bc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bed91906136ae565b10612bf757600080fd5b601554640100000000900460ff161515600114612c485760405162461bcd60e51b815260206004820152600f60248201526e2737ba1030baba3437b934bd32b21760891b6044820152606401610d64565b600554341015612c8c5760405162461bcd60e51b815260206004820152600f60248201526e20b6b7bab73a103a37b7903637bb9760891b6044820152606401610d64565b6018546040516335313c2160e11b81523360048201526001600160a01b0390911690636a627842906024016020604051808303816000875af1158015612cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cfa91906136ae565b50600b8054906000612d0b8361377f565b9091555050600180555050565b6002546001600160a01b03163314612d425760405162461bcd60e51b8152600401610d6490613621565b601255565b6002546001600160a01b03163314612d715760405162461bcd60e51b8152600401610d6490613621565b60155462010000900460ff1615612dc45760405162461bcd60e51b8152602060048201526017602482015276105d58dd1a5bdb88185b1c9958591e481cd95d1d1b1959604a1b6044820152606401610d64565b6015805462ff0000198116620100009182900460ff1615909102179055565b6002546001600160a01b03163314612e0d5760405162461bcd60e51b8152600401610d6490613621565b600f55565b6002546001600160a01b03163314612e3c5760405162461bcd60e51b8152600401610d6490613621565b6001600160a01b038116612ea15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d64565b61132d816131b4565b6002546001600160a01b03163314612ed45760405162461bcd60e51b8152600401610d6490613621565b60088190556040518181527faab6389d8f1c16ba1deb6e9831f5c5442cf4fcf99bf5bfa867460be408a911189060200161177a565b6002546001600160a01b03163314612f335760405162461bcd60e51b8152600401610d6490613621565b600b55565b6002546001600160a01b03163314612f625760405162461bcd60e51b8152600401610d6490613621565b8051600e541015612faf5760405162461bcd60e51b81526020600482015260176024820152764e6f7420656e6f7567682070726f6d6f20737570706c7960481b6044820152606401610d64565b601154421115612ffd5760405162461bcd60e51b81526020600482015260196024820152784f7574736964652070726f6d6f206d696e742077696e646f7760381b6044820152606401610d64565b60005b81518110156130bb5760185482516001600160a01b0390911690636a6278429084908490811061303257613032613656565b60200260200101516040518263ffffffff1660e01b815260040161306591906001600160a01b0391909116815260200190565b6020604051808303816000875af1158015613084573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130a891906136ae565b50806130b381613682565b915050613000565b508051600e60008282546130cf91906136de565b9091555050600a54601854604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd916004808201926020929091908290030181865afa158015613121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061314591906136ae565b600d5461315291906136de565b61315c91906136de565b600b5550565b61316a6132c3565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160008082526020820190925281906001600160a01b038516906175309085906040516132369190613796565b600060405180830381858888f193505050503d8060008114613274576040519150601f19603f3d011682016040523d82523d6000602084013e613279565b606091505b5090925050505b92915050565b61328e61330c565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586131973390565b60005460ff166113625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d64565b60005460ff16156113625760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d64565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561339157613391613352565b604052919050565b600067ffffffffffffffff8211156133b3576133b3613352565b5060051b60200190565b6001600160a01b038116811461132d57600080fd5b600082601f8301126133e357600080fd5b813560206133f86133f383613399565b613368565b82815260059290921b8401810191818101908684111561341757600080fd5b8286015b8481101561343b57803561342e816133bd565b835291830191830161341b565b509695505050505050565b6000806040838503121561345957600080fd5b823567ffffffffffffffff81111561347057600080fd5b61347c858286016133d2565b925050602083013560ff8116811461349357600080fd5b809150509250929050565b6000602082840312156134b057600080fd5b81356134bb816133bd565b9392505050565b600080604083850312156134d557600080fd5b50508035926020909101359150565b600080604083850312156134f757600080fd5b823567ffffffffffffffff8082111561350f57600080fd5b61351b868387016133d2565b935060209150818501358181111561353257600080fd5b85019050601f8101861361354557600080fd5b80356135536133f382613399565b81815260059190911b8201830190838101908883111561357257600080fd5b928401925b8284101561359057833582529284019290840190613577565b80955050505050509250929050565b6000602082840312156135b157600080fd5b5035919050565b6000602082840312156135ca57600080fd5b813567ffffffffffffffff8111156135e157600080fd5b6135ed848285016133d2565b949350505050565b6000806040838503121561360857600080fd5b8235613613816133bd565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016136945761369461366c565b5060010190565b808201808211156132805761328061366c565b6000602082840312156136c057600080fd5b5051919050565b80820281158282048414176132805761328061366c565b818103818111156132805761328061366c565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006020828403121561373a57600080fd5b815180151581146134bb57600080fd5b6020808252818101527f426c6f636b65643a204f4641432073616e6374696f6e65642061646472657373604082015260600190565b60008161378e5761378e61366c565b506000190190565b6000825160005b818110156137b7576020818601810151858301520161379d565b50600092019182525091905056fea264697066735822122028272ce877b860aeeca3754bd342544875d223a6e4fc022ab4ae87589366bfcf64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006e13d2b9ba4df86e70f6fd916aecea95da0c6d600000000000000000000000009daf56fb5d08b1dad7e6a46e0d5e814f41d1b7f9000000000000000000000000898157afb3e158cc835d19b9ecd37c69bf460f8c00000000000000000000000040c57923924b5c5c5455c48d93317139addac8fb
-----Decoded View---------------
Arg [0] : _nft (address): 0x6e13D2B9ba4df86E70F6fd916aECEA95dA0C6D60
Arg [1] : _payee (address): 0x9DAF56fB5d08b1dad7e6A46e0d5E814F41d1b7F9
Arg [2] : _oasis (address): 0x898157afB3E158cc835D19B9ecd37C69bF460f8C
Arg [3] : _sanctions (address): 0x40C57923924B5c5c5455c48D93317139ADDaC8fb
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000006e13d2b9ba4df86e70f6fd916aecea95da0c6d60
Arg [1] : 0000000000000000000000009daf56fb5d08b1dad7e6a46e0d5e814f41d1b7f9
Arg [2] : 000000000000000000000000898157afb3e158cc835d19b9ecd37c69bf460f8c
Arg [3] : 00000000000000000000000040c57923924b5c5c5455c48d93317139addac8fb
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.