Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 5,767 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Approval For... | 24621295 | 28 hrs ago | IN | 0 ETH | 0.00000866 | ||||
| Set Approval For... | 24361248 | 37 days ago | IN | 0 ETH | 0.00000302 | ||||
| Set Approval For... | 24361246 | 37 days ago | IN | 0 ETH | 0.00000264 | ||||
| Set Approval For... | 24269323 | 50 days ago | IN | 0 ETH | 0.00000174 | ||||
| Set Approval For... | 24113337 | 72 days ago | IN | 0 ETH | 0.00000299 | ||||
| Set Approval For... | 24112959 | 72 days ago | IN | 0 ETH | 0.00000255 | ||||
| Set Approval For... | 24086259 | 75 days ago | IN | 0 ETH | 0.00000148 | ||||
| Set Approval For... | 24059610 | 79 days ago | IN | 0 ETH | 0.00012047 | ||||
| Set Approval For... | 23717997 | 127 days ago | IN | 0 ETH | 0.00008614 | ||||
| Set Approval For... | 23651221 | 136 days ago | IN | 0 ETH | 0.00000327 | ||||
| Set Approval For... | 23632217 | 139 days ago | IN | 0 ETH | 0.00006065 | ||||
| Set Approval For... | 23018544 | 225 days ago | IN | 0 ETH | 0.00023087 | ||||
| Set Approval For... | 22979773 | 230 days ago | IN | 0 ETH | 0.00003175 | ||||
| Set Approval For... | 22222006 | 336 days ago | IN | 0 ETH | 0.00004168 | ||||
| Set Approval For... | 22188873 | 341 days ago | IN | 0 ETH | 0.00012537 | ||||
| Set Approval For... | 22001974 | 367 days ago | IN | 0 ETH | 0.00015781 | ||||
| Set Approval For... | 21847907 | 388 days ago | IN | 0 ETH | 0.00004342 | ||||
| Set Approval For... | 21786932 | 397 days ago | IN | 0 ETH | 0.00007285 | ||||
| Set Approval For... | 20325438 | 601 days ago | IN | 0 ETH | 0.00038501 | ||||
| Set Approval For... | 19745663 | 682 days ago | IN | 0 ETH | 0.0002541 | ||||
| Set Approval For... | 19032822 | 782 days ago | IN | 0 ETH | 0.00139149 | ||||
| Set Approval For... | 17512834 | 995 days ago | IN | 0 ETH | 0.00254995 | ||||
| Set Approval For... | 17432120 | 1006 days ago | IN | 0 ETH | 0.00108685 | ||||
| Set Approval For... | 17341283 | 1019 days ago | IN | 0 ETH | 0.00184014 | ||||
| Set Approval For... | 17126469 | 1049 days ago | IN | 0 ETH | 0.00208023 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FURY
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
// import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
// import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
contract FURY is ERC721, Ownable, ReentrancyGuard, DefaultOperatorFilterer {
// using Strings for uint256;
// merkle root
bytes32 immutable _wl1Root;
bytes32 immutable _wl2Root;
// max mint per wallet
uint256 public immutable _wl1MaxPerUser = 1;
uint256 public immutable _wl2MaxPerUser = 1;
uint256 public immutable _wlPMaxPerUser = 1;
// max mint totally
uint256 public immutable _wl1Max = 1250;
uint256 public immutable _wl2Max = 700;
uint256 public constant _reservedAmount = 50;
// currently minted amount
uint256 public _wl1Minted;
uint256 public _wl2Minted;
uint256 public _wlPMinted;
// wl1 user => minted nft amount
mapping(address => uint256) public _wl1MintedPerUser;
// wl2 user => minted nft amount
mapping(address => uint256) public _wl2MintedPerUser;
// public mint user => mintd nft amount
mapping(address => uint256) public _wlPMintedPerUser;
// claim period
Period public _period;
// 16 weapons available amount
// Weapon ID Amount
// Axe 1 157 -3
// Bamboo 2 207 -3
// Bare Fists 3 138 -3
// Baseball Bat 4 112 -3
// Bow 5 44 -4
// Broom 6 155 -3
// Chain Whip 7 117 -3
// Flute 8 87 -3
// Knife 9 164 -3
// Kung Fu Fan 10 72 -3
// Shield 11 168 -3
// Sickle 12 53 -3
// Spear 13 121 -3
// Sword 14 254 -3
// Trident 15 42 -4
// Wolf-Toothed Cudgel 16 109 -3
// weapon id => remaining amount
mapping(uint256 => uint256) public _weaponAmount;
// nft id => weapon id
mapping(uint256 => uint256) public _weaponType;
// // owner => ids
// mapping(address => uint256[]) public _owner2ids;
// track last minted nft id
uint256 public _id;
// bool public _isBlind;
// base uri
string public _buri;
// public mint price
uint256 public immutable _price;
uint256 private _royaltyBps;
address payable private _royaltyRecipient;
event Withdraw(address indexed receiver, uint256 indexed amount);
// event OpenBlind();
event UpdateRoyalties(address payable recipient, uint256 bps);
modifier _checkWl1(bytes32[] calldata proof) {
require(checkWl1(msg.sender, proof), "verify wl1 failed");
_;
}
modifier _checkWl2(bytes32[] calldata proof) {
require(checkWl2(msg.sender, proof), "verify wl2 failed");
_;
}
modifier _checkPeriod1() {
require(checkPeriod1(), "invalid period 1");
_;
}
modifier _checkPeriod2() {
require(checkPeriod2(), "invalid period 2");
_;
}
modifier _checkPeriodP() {
require(checkPeriodP(), "invalid period public");
_;
}
modifier _checkPerUser1(uint256 amount) {
require(checkPerUser1(msg.sender, amount), "exceed per user 1");
_;
}
modifier _checkPerUser2(uint256 amount) {
require(checkPerUser2(msg.sender, amount), "exceed per user 2");
_;
}
modifier _checkPerUserP(uint256 amount) {
require(checkPerUserP(msg.sender, amount), "exceed per user p");
_;
}
modifier _checkMax1(uint256 amount) {
require(checkMax1(amount), "exceed max 1");
_;
}
modifier _checkMax2(uint256 amount) {
require(checkMax2(amount), "exceed max 2");
_;
}
modifier _checkWeaponAmount(uint256 id, uint256 amount) {
require(checkWeaponAmount(id, amount), "insufficient weapon");
_;
}
modifier _checkAmountP(uint256 amount) {
// check amount
require(checkAmountP(amount), "insufficient token");
_;
}
modifier _checkValueP(uint256 amount) {
// check value
uint256 totalValue = amount * _price;
require(msg.value >= totalValue, "insuffcient value");
_;
}
struct BaseInfo {
string name;
string symbol;
string baseUri;
uint256 price;
}
struct Root {
bytes32 wl1Root;
bytes32 wl2Root;
}
struct Period {
uint256 start1;
uint256 end1;
uint256 start2;
uint256 end2;
uint256 startP;
uint256 endP;
}
constructor(
BaseInfo memory bi,
Root memory r,
Period memory p
) ERC721(bi.name, bi.symbol) {
require(
p.end1 > p.start1 && p.start1 >= block.timestamp,
"invalid period 1 range"
);
require(
p.end2 > p.start2 && p.start2 >= block.timestamp,
"invalid period 2 range"
);
_id = _reservedAmount;
_buri = bi.baseUri;
_price = bi.price;
_wl1Root = r.wl1Root;
_wl2Root = r.wl2Root;
_period = p;
_weaponAmount[1] = 157 - 3; // 2-158
_weaponAmount[2] = 207 - 3; // 159 - 365
_weaponAmount[3] = 138 - 3; // 366 - 503
_weaponAmount[4] = 112 - 3; // 504 - 615
_weaponAmount[5] = 44 - 4; // 616 - 659
_weaponAmount[6] = 155 - 3; // 660 - 814
_weaponAmount[7] = 117 - 3; // 815 - 931
_weaponAmount[8] = 87 - 3; // 932 - 1018
_weaponAmount[9] = 164 - 3; // 1019 - 1182
_weaponAmount[10] = 72 - 3; // 1183 - 1254
_weaponAmount[11] = 168 - 3; // 1255 - 1422
_weaponAmount[12] = 53 - 3; // 1423 - 1475
_weaponAmount[13] = 121 - 3; // 1476 - 1596
_weaponAmount[14] = 254 - 3; // 1597 - 1850
_weaponAmount[15] = 42 - 4; // 1851 - 1892
_weaponAmount[16] = 109 - 3; // 1893 - 2001
}
function checkWl1(address user, bytes32[] calldata proof)
public
view
returns (bool)
{
bytes32 leaf = keccak256(abi.encodePacked(user));
return MerkleProof.verify(proof, _wl1Root, leaf);
}
function checkWl2(address user, bytes32[] calldata proof)
public
view
returns (bool)
{
bytes32 leaf = keccak256(abi.encodePacked(user));
return MerkleProof.verify(proof, _wl2Root, leaf);
}
function checkPeriod1() public view returns (bool) {
return
block.timestamp >= _period.start1 &&
block.timestamp <= _period.end1;
}
function checkPeriod2() public view returns (bool) {
return
block.timestamp >= _period.start2 &&
block.timestamp <= _period.end2;
}
function checkPeriodP() public view returns (bool) {
return
block.timestamp >= _period.startP &&
block.timestamp <= _period.endP;
}
function checkPerUser1(address user, uint256 amount)
public
view
returns (bool)
{
return _wl1MintedPerUser[user] + amount <= _wl1MaxPerUser;
}
function checkPerUser2(address user, uint256 amount)
public
view
returns (bool)
{
return _wl2MintedPerUser[user] + amount <= _wl2MaxPerUser;
}
function checkPerUserP(address user, uint256 amount)
public
view
returns (bool)
{
return _wlPMintedPerUser[user] + amount <= _wlPMaxPerUser;
}
function checkMax1(uint256 amount) public view returns (bool) {
return _wl1Minted + amount <= _wl1Max;
}
function checkMax2(uint256 amount) public view returns (bool) {
uint256 remaining1 = _wl1Max - _wl1Minted;
return _wl2Minted + amount <= _wl2Max + remaining1;
}
function checkWeaponAmount(uint256 id, uint256 amount)
public
view
returns (bool)
{
return _weaponAmount[id] >= amount;
}
function checkAmountP(uint256 amount) public view returns (bool) {
return
_wl1Minted + _wl2Minted + _wlPMinted + amount <= _wl1Max + _wl2Max;
}
function claim1(
bytes32[] calldata proof_,
uint256 weaponId_,
uint256 amount
)
public
_checkPeriod1
_checkWl1(proof_)
_checkPerUser1(amount)
_checkMax1(amount)
_checkWeaponAmount(weaponId_, amount)
{
for (uint256 i = 0; i < amount; i++) {
// mint
_id++;
_safeMint(msg.sender, _id);
_weaponType[_id] = weaponId_;
}
_wl1MintedPerUser[msg.sender] += amount;
_wl1Minted += amount;
_weaponAmount[weaponId_] -= amount;
}
function claim2(
bytes32[] calldata proof_,
uint256 weaponId_,
uint256 amount
)
public
_checkPeriod2
_checkMax2(amount)
_checkWeaponAmount(weaponId_, amount)
{
if (checkWl1(msg.sender, proof_)) {
require(checkPerUser1(msg.sender, amount), "exceed per user 1");
} else if (checkWl2(msg.sender, proof_)) {
require(checkPerUser2(msg.sender, amount), "exceed per user 2");
} else {
require(false, "invalid");
}
for (uint256 i = 0; i < amount; i++) {
// mint
_id++;
_safeMint(msg.sender, _id);
_weaponType[_id] = weaponId_;
}
_wl2Minted += amount;
_weaponAmount[weaponId_] -= amount;
if (checkWl1(msg.sender, proof_)) {
_wl1MintedPerUser[msg.sender] += amount;
} else if (checkWl2(msg.sender, proof_)) {
_wl2MintedPerUser[msg.sender] += amount;
}
}
function _baseURI() internal view virtual override returns (string memory) {
return _buri;
}
function publicMint(uint256 weaponId_, uint256 amount)
public
payable
nonReentrant
_checkPeriodP
_checkPerUserP(amount)
_checkAmountP(amount)
_checkValueP(amount)
_checkWeaponAmount(weaponId_, amount)
{
for (uint256 i = 0; i < amount; i++) {
// mint
_id++;
_safeMint(msg.sender, _id);
_weaponType[_id] = weaponId_;
}
_wlPMinted += amount;
_wlPMintedPerUser[msg.sender] += amount;
_weaponAmount[weaponId_] -= amount;
// change
payable(msg.sender).transfer(msg.value - amount * _price);
}
// mint reserve nft
function reserveMint() public onlyOwner {
for (uint256 i = 1; i <= _reservedAmount; i++) {
_safeMint(msg.sender, i);
}
}
function remainingMint(uint256 amount)
public
onlyOwner
_checkAmountP(amount)
{
require(block.timestamp > _period.endP, "only after public mint");
for (uint256 i = 0; i < amount; i++) {
// mint
_id++;
_safeMint(msg.sender, _id);
}
_wlPMinted += amount;
}
function withdraw() public onlyOwner nonReentrant {
payable(msg.sender).transfer(address(this).balance);
emit Withdraw(msg.sender, address(this).balance);
}
// royalty functions
function updateRoyalties(address payable recipient, uint256 bps)
external
onlyOwner
{
require(recipient != address(0), "zero royalty recipient address");
_royaltyRecipient = recipient;
_royaltyBps = bps;
emit UpdateRoyalties(recipient, bps);
}
function getRoyalties(uint256 tokenId)
external
view
returns (address, uint256)
{
require(
_exists(tokenId),
"get royalty info: query for nonexistent token"
);
return (_royaltyRecipient, _royaltyBps);
}
function getFeeRecipients(uint256 tokenId) external view returns (address) {
require(
_exists(tokenId),
"get fee recipients: query for nonexistent token"
);
return _royaltyRecipient;
}
function getFeeBps(uint256 tokenId) external view returns (uint256) {
require(_exists(tokenId), "get fee bps: query for nonexistent token");
return _royaltyBps;
}
function royaltyInfo(uint256 tokenId, uint256 value)
external
view
returns (address, uint256)
{
require(_exists(tokenId), "royalty info: query for nonexistent token");
return (_royaltyRecipient, (value * _royaltyBps) / 10000);
}
function setApprovalForAll(address operator, bool approved)
public
override
onlyAllowedOperatorApproval(operator)
{
super.setApprovalForAll(operator, approved);
}
function approve(address operator, uint256 tokenId)
public
override
onlyAllowedOperatorApproval(operator)
{
super.approve(operator, tokenId);
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) {
super.transferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public override onlyAllowedOperator(from) {
super.safeTransferFrom(from, to, tokenId, data);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: 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 = _owners[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 nor 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 nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
_safeTransfer(from, to, tokenId, data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
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);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @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.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*
* WARNING: You should avoid using leaf values that are 64 bytes long prior to
* hashing, or use a hash function other than keccak256 for hashing leaves.
* This is because the concatenation of a sorted pair of internal nodes in
* the merkle tree could be reinterpreted as a leaf value.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Calldata version of {verify}
*
* _Available since v4.7._
*/
function verifyCalldata(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Calldata version of {processProof}
*
* _Available since v4.7._
*/
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = _hashPair(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* _Available since v4.7._
*/
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
/**
* @dev Calldata version of {multiProofVerify}
*
* _Available since v4.7._
*/
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
* consuming from one or the other at each step according to the instructions given by
* `proofFlags`.
*
* _Available since v4.7._
*/
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Calldata version of {processMultiProof}
*
* _Available since v4.7._
*/
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the merkle tree.
uint256 leavesLen = leaves.length;
uint256 totalHashes = proofFlags.length;
// Check proof validity.
require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](totalHashes);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < totalHashes; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
hashes[i] = _hashPair(a, b);
}
if (totalHashes > 0) {
return hashes[totalHashes - 1];
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {OperatorFilterer} from "./OperatorFilterer.sol";
/**
* @title DefaultOperatorFilterer
* @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
*/
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @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 (last updated v4.7.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// 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);
}// 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 v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_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) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @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 v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
/**
* @title OperatorFilterer
* @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
* registrant's entries in the OperatorFilterRegistry.
* @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 OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// 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(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (subscribe) {
OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
OPERATOR_FILTER_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);
_;
}
function _checkFilterOperator(address operator) internal view virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
revert OperatorNotAllowed(operator);
}
}
}
}// 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);
}{
"optimizer": {
"enabled": true,
"runs": 2000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct FURY.BaseInfo","name":"bi","type":"tuple"},{"components":[{"internalType":"bytes32","name":"wl1Root","type":"bytes32"},{"internalType":"bytes32","name":"wl2Root","type":"bytes32"}],"internalType":"struct FURY.Root","name":"r","type":"tuple"},{"components":[{"internalType":"uint256","name":"start1","type":"uint256"},{"internalType":"uint256","name":"end1","type":"uint256"},{"internalType":"uint256","name":"start2","type":"uint256"},{"internalType":"uint256","name":"end2","type":"uint256"},{"internalType":"uint256","name":"startP","type":"uint256"},{"internalType":"uint256","name":"endP","type":"uint256"}],"internalType":"struct FURY.Period","name":"p","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"bps","type":"uint256"}],"name":"UpdateRoyalties","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_period","outputs":[{"internalType":"uint256","name":"start1","type":"uint256"},{"internalType":"uint256","name":"end1","type":"uint256"},{"internalType":"uint256","name":"start2","type":"uint256"},{"internalType":"uint256","name":"end2","type":"uint256"},{"internalType":"uint256","name":"startP","type":"uint256"},{"internalType":"uint256","name":"endP","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_reservedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_weaponAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_weaponType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wl1Max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wl1MaxPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wl1Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_wl1MintedPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wl2Max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wl2MaxPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wl2Minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_wl2MintedPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wlPMaxPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_wlPMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_wlPMintedPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkAmountP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkMax1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkMax2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkPerUser1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkPerUser2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkPerUserP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPeriod1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPeriod2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkPeriodP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkWeaponAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkWl1","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"checkWl2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"uint256","name":"weaponId_","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"uint256","name":"weaponId_","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"weaponId_","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"remainingMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
610180604052600160c081905260e0819052610100526104e2610120526102bc610140523480156200003057600080fd5b50604051620040ca380380620040ca833981016040819052620000539162000864565b733cc6cdda760b79bafa08df41ecfa224f810dceb660018460000151856020015181600090805190602001906200008c929190620005e6565b508051620000a2906001906020840190620005e6565b505050620000bf620000b96200059060201b60201c565b62000594565b60016007556daaeb6d7670e522a718067333cd4e3b15620002095780156200015757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013857600080fd5b505af11580156200014d573d6000803e3d6000fd5b5050505062000209565b6001600160a01b03821615620001a85760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200011d565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001ef57600080fd5b505af115801562000204573d6000803e3d6000fd5b505050505b50508051602082015111801562000221575080514211155b620002735760405162461bcd60e51b815260206004820152601660248201527f696e76616c696420706572696f6420312072616e67650000000000000000000060448201526064015b60405180910390fd5b806040015181606001511180156200028f575042816040015110155b620002dd5760405162461bcd60e51b815260206004820152601660248201527f696e76616c696420706572696f6420322072616e67650000000000000000000060448201526064016200026a565b603260165560408301518051620002fd91601791602090910190620005e6565b50606092830151610160528151608090815260209283015160a09081528251600e5582840151600f55604083015160109081559483015160115590820151601255015160135560149052609a7fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c5560cc7fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a5560877f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3855606d7f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d65560287f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa25560987fe1f6b6a5fb7e47dad87547d4b0671e7e995a1dae22fbe5b3b5d10e2a77ed7aff5560727f904977a779b22381a36c6463d4166ef55ee8cb3392c83093cb1750f1a00c9d945560547f125fdacc24f94fb724c0c32a4eab75d67204551eb2448dadf875d535a74497265560a17ff517404d914a19d455440d961937db67771e4bfb0b4293ff6fd7c75855208c195560457f65f9512343925c57130fd77667cb42fc83560c400ede0c87f3de7c6c27cf09a65560a57fdabe84bb17a8774762b6726edd7eb728da1732e1ab123804fc9345b7300e0a2e5560327f3a61d736b87fed11cf463325a3a6df55734cfb04ef5868e0125df26f708fa9c55560767f7f52294eda93879c98196ba8dfee8e39c94fda44d3e2327cc2c6d0806e39c2cf5560fb7fb429c61f7b03e67aad73431d2c25f054ce4133be1680124f402536c7d48c1eed5560267f2f4111c4623d442ba4f89af8583239431566f63c7c6e0af548a5302cca50a54f55600052606a7fb9aa073911e1c5f8bd8c04c7214fb2acd89aeb4180f5a23dea34f2fa40cb91d25562000996565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620005f4906200095a565b90600052602060002090601f01602090048101928262000618576000855562000663565b82601f106200063357805160ff191683800117855562000663565b8280016001018555821562000663579182015b828111156200066357825182559160200191906001019062000646565b506200067192915062000675565b5090565b5b8082111562000671576000815560010162000676565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715620006c757620006c76200068c565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620006f857620006f86200068c565b604052919050565b600082601f8301126200071257600080fd5b81516001600160401b038111156200072e576200072e6200068c565b602062000744601f8301601f19168201620006cd565b82815285828487010111156200075957600080fd5b60005b83811015620007795785810183015182820184015282016200075c565b838111156200078b5760008385840101525b5095945050505050565b600060408284031215620007a857600080fd5b604080519081016001600160401b0381118282101715620007cd57620007cd6200068c565b604052825181526020928301519281019290925250919050565b600060c08284031215620007fa57600080fd5b60405160c081016001600160401b03811182821017156200081f576200081f6200068c565b8060405250809150825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a08201525092915050565b600080600061012084860312156200087b57600080fd5b83516001600160401b03808211156200089357600080fd5b9085019060808288031215620008a857600080fd5b620008b2620006a2565b825182811115620008c257600080fd5b620008d08982860162000700565b825250602083015182811115620008e657600080fd5b620008f48982860162000700565b6020830152506040830151828111156200090d57600080fd5b6200091b8982860162000700565b6040830152506060830151606082015280955050505062000940856020860162000795565b9150620009518560608601620007e7565b90509250925092565b600181811c908216806200096f57607f821691505b6020821081036200099057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051610140516101605161368862000a4260003960008181610597015281816117c3015261195d01526000818161089e015281816113480152612165015260008181610480015281816113170152818161218601526121de015260008181610a280152610dfd01526000818161070601526112e401526000818161075a015261158d01526000610ebb0152600061162901526136886000f3fe6080604052600436106103815760003560e01c80636352211e116101d1578063a5f27a9511610102578063bb3bafd6116100a0578063d25a9f9b1161006f578063d25a9f9b14610b0d578063d4ec4c2014610b2d578063e985e9c514610b4d578063f2fde38b14610b9657600080fd5b8063bb3bafd614610a8a578063c5f8d8c614610aaa578063c87b56dd14610ad7578063cc573ce914610af757600080fd5b8063b5b3a9de116100dc578063b5b3a9de146109f6578063b70b055d14610a16578063b88d4fde14610a4a578063b9c4d9fb14610a6a57600080fd5b8063a5f27a9514610993578063abe063a2146109b3578063b55289bf146109c957600080fd5b80638518bef21161016f57806395d89b411161014957806395d89b411461091e57806398ae99a81461093357806399cd005814610946578063a22cb4651461097357600080fd5b80638518bef2146108c05780638da5cb5b146108e0578063959ff2c0146108fe57600080fd5b806370a08231116101ab57806370a0823114610842578063715018a6146108625780637b9750991461087757806381aa28951461088c57600080fd5b80636352211e146107d25780636c2f5acd146107f25780636f39ec921461081257600080fd5b80632320fc24116102b657806342842e0e1161025457806354423232116102235780635442323214610748578063582afc7b1461077c57806359fe1d4a1461079c5780635b53eff2146107bc57600080fd5b806342842e0e1461067c5780634630f02e1461069c57806348cd12d4146106f457806351c049421461072857600080fd5b80632a55205a116102905780632a55205a146105d95780633c1511f5146106185780633ccfd60b1461064557806341f434341461065a57600080fd5b80632320fc2414610570578063235b6ea11461058557806323b872dd146105b957600080fd5b8063095ea7b3116103235780630f26d8f6116102fd5780630f26d8f614610504578063132d9688146105315780631b96df8b1461054657806321c8d6761461055b57600080fd5b8063095ea7b3146104a25780630b6af045146104c45780630ebd4c7f146104e457600080fd5b806306fdde031161035f57806306fdde0314610401578063081812fc1461041657806308ab984e1461044e5780630928b6301461046e57600080fd5b806301ffc9a71461038657806303cf97b5146103bb57806305180237146103dd575b600080fd5b34801561039257600080fd5b506103a66103a13660046130e9565b610bb6565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610c9b565b6040516103b2919061315e565b3480156103e957600080fd5b506103f360165481565b6040519081526020016103b2565b34801561040d57600080fd5b506103d0610d29565b34801561042257600080fd5b50610436610431366004613171565b610dbb565b6040516001600160a01b0390911681526020016103b2565b34801561045a57600080fd5b506103a661046936600461319f565b610de2565b34801561047a57600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ae57600080fd5b506104c26104bd36600461319f565b610e31565b005b3480156104d057600080fd5b506103a66104df366004613210565b610e4a565b3480156104f057600080fd5b506103f36104ff366004613171565b610eef565b34801561051057600080fd5b506103f361051f366004613265565b600b6020526000908152604090205481565b34801561053d57600080fd5b506103a6610f86565b34801561055257600080fd5b506103a6610fa2565b34801561056757600080fd5b506104c2610fbc565b34801561057c57600080fd5b506103f3603281565b34801561059157600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b3480156105c557600080fd5b506104c26105d4366004613282565b610fee565b3480156105e557600080fd5b506105f96105f43660046132c3565b611019565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561062457600080fd5b506103f3610633366004613171565b60156020526000908152604090205481565b34801561065157600080fd5b506104c26110db565b34801561066657600080fd5b506104366daaeb6d7670e522a718067333cd4e81565b34801561068857600080fd5b506104c2610697366004613282565b61119b565b3480156106a857600080fd5b50600e54600f546010546011546012546013546106c795949392919086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016103b2565b34801561070057600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b34801561073457600080fd5b506104c2610743366004613171565b6111c0565b34801561075457600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b34801561078857600080fd5b506103a661079736600461319f565b6112c9565b3480156107a857600080fd5b506103a66107b7366004613171565b61130f565b3480156107c857600080fd5b506103f360095481565b3480156107de57600080fd5b506104366107ed366004613171565b61137a565b3480156107fe57600080fd5b506104c261080d36600461319f565b6113df565b34801561081e57600080fd5b506103a661082d3660046132c3565b60009182526014602052604090912054101590565b34801561084e57600080fd5b506103f361085d366004613265565b6114aa565b34801561086e57600080fd5b506104c2611544565b34801561088357600080fd5b506103a6611558565b34801561089857600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b3480156108cc57600080fd5b506103a66108db36600461319f565b611572565b3480156108ec57600080fd5b506006546001600160a01b0316610436565b34801561090a57600080fd5b506103a6610919366004613210565b6115b8565b34801561092a57600080fd5b506103d0611654565b6104c26109413660046132c3565b611663565b34801561095257600080fd5b506103f3610961366004613171565b60146020526000908152604090205481565b34801561097f57600080fd5b506104c261098e3660046132f3565b6119c4565b34801561099f57600080fd5b506104c26109ae36600461332c565b6119d8565b3480156109bf57600080fd5b506103f360085481565b3480156109d557600080fd5b506103f36109e4366004613265565b600c6020526000908152604090205481565b348015610a0257600080fd5b506104c2610a1136600461332c565b611c59565b348015610a2257600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b348015610a5657600080fd5b506104c2610a65366004613393565b611f8a565b348015610a7657600080fd5b50610436610a85366004613171565b611fb7565b348015610a9657600080fd5b506105f9610aa5366004613171565b612052565b348015610ab657600080fd5b506103f3610ac5366004613265565b600d6020526000908152604090205481565b348015610ae357600080fd5b506103d0610af2366004613171565b6120f7565b348015610b0357600080fd5b506103f3600a5481565b348015610b1957600080fd5b506103a6610b28366004613171565b61215e565b348015610b3957600080fd5b506103a6610b48366004613171565b6121da565b348015610b5957600080fd5b506103a6610b68366004613473565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610ba257600080fd5b506104c2610bb1366004613265565b61220b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c4957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c9557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60178054610ca8906134a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd4906134a1565b8015610d215780601f10610cf657610100808354040283529160200191610d21565b820191906000526020600020905b815481529060010190602001808311610d0457829003601f168201915b505050505081565b606060008054610d38906134a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d64906134a1565b8015610db15780601f10610d8657610100808354040283529160200191610db1565b820191906000526020600020905b815481529060010190602001808311610d9457829003601f168201915b5050505050905090565b6000610dc682612298565b506000908152600460205260409020546001600160a01b031690565b6001600160a01b0382166000908152600d60205260408120547f000000000000000000000000000000000000000000000000000000000000000090610e289084906134f1565b11159392505050565b81610e3b816122fc565b610e4583836123e7565b505050565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610ee68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506125139050565b95945050505050565b6000818152600260205260408120546001600160a01b0316610f7e5760405162461bcd60e51b815260206004820152602860248201527f67657420666565206270733a20717565727920666f72206e6f6e65786973746560448201527f6e7420746f6b656e00000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b505060185490565b600e546000904210801590610f9d5750600f544211155b905090565b6012546000904210801590610f9d57505060135442111590565b610fc4612529565b60015b60328111610feb57610fd93382612583565b80610fe381613509565b915050610fc7565b50565b826001600160a01b038116331461100857611008336122fc565b6110138484846125a1565b50505050565b60008281526002602052604081205481906001600160a01b03166110a55760405162461bcd60e51b815260206004820152602960248201527f726f79616c747920696e666f3a20717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610f75565b6019546018546001600160a01b0390911690612710906110c59086613523565b6110cf9190613558565b915091505b9250929050565b6110e3612529565b6002600754036111355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f75565b600260075560405133904780156108fc02916000818181858888f19350505050158015611166573d6000803e3d6000fd5b50604051479033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a36001600755565b826001600160a01b03811633146111b5576111b5336122fc565b611013848484612628565b6111c8612529565b806111d28161215e565b61121e5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e7420746f6b656e00000000000000000000000000006044820152606401610f75565b601354421161126f5760405162461bcd60e51b815260206004820152601660248201527f6f6e6c79206166746572207075626c6963206d696e74000000000000000000006044820152606401610f75565b60005b828110156112ad576016805490600061128a83613509565b919050555061129b33601654612583565b806112a581613509565b915050611272565b5081600a60008282546112c091906134f1565b90915550505050565b6001600160a01b0382166000908152600c60205260408120547f000000000000000000000000000000000000000000000000000000000000000090610e289084906134f1565b6000806008547f0000000000000000000000000000000000000000000000000000000000000000611340919061356c565b905061136c817f00000000000000000000000000000000000000000000000000000000000000006134f1565b83600954610e2891906134f1565b6000818152600260205260408120546001600160a01b031680610c955760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610f75565b6113e7612529565b6001600160a01b03821661143d5760405162461bcd60e51b815260206004820152601e60248201527f7a65726f20726f79616c747920726563697069656e74206164647265737300006044820152606401610f75565b6019805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155601882905560408051918252602082018390527f406560a4b7601a05d9f2e8bd7914c92c31343335e3d4a7fbe6c04a9f44c93828910160405180910390a15050565b60006001600160a01b0382166115285760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610f75565b506001600160a01b031660009081526003602052604090205490565b61154c612529565b6115566000612643565b565b6010546000904210801590610f9d57505060115442111590565b6001600160a01b0382166000908152600b60205260408120547f000000000000000000000000000000000000000000000000000000000000000090610e289084906134f1565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610ee68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506125139050565b606060018054610d38906134a1565b6002600754036116b55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f75565b60026007556116c2610fa2565b61170e5760405162461bcd60e51b815260206004820152601560248201527f696e76616c696420706572696f64207075626c696300000000000000000000006044820152606401610f75565b806117193382610de2565b6117655760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220700000000000000000000000000000006044820152606401610f75565b8161176f8161215e565b6117bb5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e7420746f6b656e00000000000000000000000000006044820152606401610f75565b8260006117e87f000000000000000000000000000000000000000000000000000000000000000083613523565b90508034101561183a5760405162461bcd60e51b815260206004820152601160248201527f696e737566666369656e742076616c75650000000000000000000000000000006044820152606401610f75565b8585611856828260009182526014602052604090912054101590565b6118a25760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e7420776561706f6e000000000000000000000000006044820152606401610f75565b60005b878110156118f457601680549060006118bd83613509565b91905055506118ce33601654612583565b6016546000908152601560205260409020899055806118ec81613509565b9150506118a5565b5086600a600082825461190791906134f1565b9091555050336000908152600d60205260408120805489929061192b9084906134f1565b90915550506000888152601460205260408120805489929061194e90849061356c565b909155503390506108fc6119827f00000000000000000000000000000000000000000000000000000000000000008a613523565b61198c903461356c565b6040518115909202916000818181858888f193505050501580156119b4573d6000803e3d6000fd5b5050600160075550505050505050565b816119ce816122fc565b610e4583836126a2565b6119e0610f86565b611a2c5760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420706572696f642031000000000000000000000000000000006044820152606401610f75565b8383611a393383836115b8565b611a855760405162461bcd60e51b815260206004820152601160248201527f76657269667920776c31206661696c65640000000000000000000000000000006044820152606401610f75565b82611a903382611572565b611adc5760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220310000000000000000000000000000006044820152606401610f75565b83611ae6816121da565b611b325760405162461bcd60e51b815260206004820152600c60248201527f657863656564206d6178203100000000000000000000000000000000000000006044820152606401610f75565b8585611b4e828260009182526014602052604090912054101590565b611b9a5760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e7420776561706f6e000000000000000000000000006044820152606401610f75565b60005b87811015611bec5760168054906000611bb583613509565b9190505550611bc633601654612583565b601654600090815260156020526040902089905580611be481613509565b915050611b9d565b50336000908152600b602052604081208054899290611c0c9084906134f1565b925050819055508660086000828254611c2591906134f1565b909155505060008881526014602052604081208054899290611c4890849061356c565b909155505050505050505050505050565b611c61611558565b611cad5760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420706572696f642032000000000000000000000000000000006044820152606401610f75565b80611cb78161130f565b611d035760405162461bcd60e51b815260206004820152600c60248201527f657863656564206d6178203200000000000000000000000000000000000000006044820152606401610f75565b8282611d1f828260009182526014602052604090912054101590565b611d6b5760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e7420776561706f6e000000000000000000000000006044820152606401610f75565b611d763388886115b8565b15611dd657611d853385611572565b611dd15760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220310000000000000000000000000000006044820152606401610f75565b611e84565b611de1338888610e4a565b15611e3c57611df033856112c9565b611dd15760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220320000000000000000000000000000006044820152606401610f75565b60405162461bcd60e51b815260206004820152600760248201527f696e76616c6964000000000000000000000000000000000000000000000000006044820152606401610f75565b60005b84811015611ed65760168054906000611e9f83613509565b9190505550611eb033601654612583565b601654600090815260156020526040902086905580611ece81613509565b915050611e87565b508360096000828254611ee991906134f1565b909155505060008581526014602052604081208054869290611f0c90849061356c565b90915550611f1d90503388886115b8565b15611f4c57336000908152600b602052604081208054869290611f419084906134f1565b90915550611f819050565b611f57338888610e4a565b15611f8157336000908152600c602052604081208054869290611f7b9084906134f1565b90915550505b50505050505050565b836001600160a01b0381163314611fa457611fa4336122fc565b611fb0858585856126ad565b5050505050565b6000818152600260205260408120546001600160a01b03166120415760405162461bcd60e51b815260206004820152602f60248201527f6765742066656520726563697069656e74733a20717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610f75565b50506019546001600160a01b031690565b60008181526002602052604081205481906001600160a01b03166120de5760405162461bcd60e51b815260206004820152602d60248201527f67657420726f79616c747920696e666f3a20717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610f75565b50506019546018546001600160a01b0390911692909150565b606061210282612298565b600061210c612735565b9050600081511161212c5760405180602001604052806000815250612157565b8061213684612744565b604051602001612147929190613583565b6040516020818303038152906040525b9392505050565b60006121aa7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006134f1565b82600a546009546008546121be91906134f1565b6121c891906134f1565b6121d291906134f1565b111592915050565b60007f0000000000000000000000000000000000000000000000000000000000000000826008546121d291906134f1565b612213612529565b6001600160a01b03811661228f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f75565b610feb81612643565b6000818152600260205260409020546001600160a01b0316610feb5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610f75565b6daaeb6d7670e522a718067333cd4e3b15610feb576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612382573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a691906135b2565b610feb576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610f75565b60006123f28261137a565b9050806001600160a01b0316836001600160a01b03160361247b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610f75565b336001600160a01b038216148061249757506124978133610b68565b6125095760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610f75565b610e458383612881565b60008261252085846128fc565b14949350505050565b6006546001600160a01b031633146115565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f75565b61259d828260405180602001604052806000815250612949565b5050565b6125ab33826129d2565b61261d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610f75565b610e45838383612a50565b610e4583838360405180602001604052806000815250611f8a565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61259d338383612c2a565b6126b733836129d2565b6127295760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610f75565b61101384848484612d16565b606060178054610d38906134a1565b60608160000361278757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127b1578061279b81613509565b91506127aa9050600a83613558565b915061278b565b60008167ffffffffffffffff8111156127cc576127cc61337d565b6040519080825280601f01601f1916602001820160405280156127f6576020820181803683370190505b5090505b84156128795761280b60018361356c565b9150612818600a866135cf565b6128239060306134f1565b60f81b818381518110612838576128386135e3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612872600a86613558565b94506127fa565b949350505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906128c38261137a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b84518110156129415761292d82868381518110612920576129206135e3565b6020026020010151612d9f565b91508061293981613509565b915050612901565b509392505050565b6129538383612dcb565b6129606000848484612f1a565b610e455760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610f75565b6000806129de8361137a565b9050806001600160a01b0316846001600160a01b03161480612a2557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806128795750836001600160a01b0316612a3e84610dbb565b6001600160a01b031614949350505050565b826001600160a01b0316612a638261137a565b6001600160a01b031614612adf5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610f75565b6001600160a01b038216612b5a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610f75565b612b65600082612881565b6001600160a01b0383166000908152600360205260408120805460019290612b8e90849061356c565b90915550506001600160a01b0382166000908152600360205260408120805460019290612bbc9084906134f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603612c8b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610f75565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d21848484612a50565b612d2d84848484612f1a565b6110135760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610f75565b6000818310612dbb576000828152602084905260409020612157565b5060009182526020526040902090565b6001600160a01b038216612e215760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610f75565b6000818152600260205260409020546001600160a01b031615612e865760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610f75565b6001600160a01b0382166000908152600360205260408120805460019290612eaf9084906134f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156130b0576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612f779033908990889088906004016135f9565b6020604051808303816000875af1925050508015612fb2575060408051601f3d908101601f19168201909252612faf91810190613635565b60015b613065573d808015612fe0576040519150601f19603f3d011682016040523d82523d6000602084013e612fe5565b606091505b50805160000361305d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610f75565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612879565b506001949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610feb57600080fd5b6000602082840312156130fb57600080fd5b8135612157816130bb565b60005b83811015613121578181015183820152602001613109565b838111156110135750506000910152565b6000815180845261314a816020860160208601613106565b601f01601f19169290920160200192915050565b6020815260006121576020830184613132565b60006020828403121561318357600080fd5b5035919050565b6001600160a01b0381168114610feb57600080fd5b600080604083850312156131b257600080fd5b82356131bd8161318a565b946020939093013593505050565b60008083601f8401126131dd57600080fd5b50813567ffffffffffffffff8111156131f557600080fd5b6020830191508360208260051b85010111156110d457600080fd5b60008060006040848603121561322557600080fd5b83356132308161318a565b9250602084013567ffffffffffffffff81111561324c57600080fd5b613258868287016131cb565b9497909650939450505050565b60006020828403121561327757600080fd5b81356121578161318a565b60008060006060848603121561329757600080fd5b83356132a28161318a565b925060208401356132b28161318a565b929592945050506040919091013590565b600080604083850312156132d657600080fd5b50508035926020909101359150565b8015158114610feb57600080fd5b6000806040838503121561330657600080fd5b82356133118161318a565b91506020830135613321816132e5565b809150509250929050565b6000806000806060858703121561334257600080fd5b843567ffffffffffffffff81111561335957600080fd5b613365878288016131cb565b90989097506020870135966040013595509350505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156133a957600080fd5b84356133b48161318a565b935060208501356133c48161318a565b925060408501359150606085013567ffffffffffffffff808211156133e857600080fd5b818701915087601f8301126133fc57600080fd5b81358181111561340e5761340e61337d565b604051601f8201601f19908116603f011681019083821181831017156134365761343661337d565b816040528281528a602084870101111561344f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561348657600080fd5b82356134918161318a565b915060208301356133218161318a565b600181811c908216806134b557607f821691505b6020821081036134d557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613504576135046134db565b500190565b6000600019820361351c5761351c6134db565b5060010190565b600081600019048311821515161561353d5761353d6134db565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261356757613567613542565b500490565b60008282101561357e5761357e6134db565b500390565b60008351613595818460208801613106565b8351908301906135a9818360208801613106565b01949350505050565b6000602082840312156135c457600080fd5b8151612157816132e5565b6000826135de576135de613542565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261362b6080830184613132565b9695505050505050565b60006020828403121561364757600080fd5b8151612157816130bb56fea26469706673582212203b9757b6178872f1e6783b88dffdf8869f2a29be9586e07205ae316389fb716064736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000120d8e61b7a6368c7aa1ec45acaf811c9a4531a97e7400463ef8cae0f5b7b037c0348705d8b84a4280ab93df27a16128ab7916e307ca46ae859a40ce1ca5517280000000000000000000000000000000000000000000000000000000000638e077000000000000000000000000000000000000000000000000000000000638e157f00000000000000000000000000000000000000000000000000000000638e158000000000000000000000000000000000000000000000000000000000638e238f00000000000000000000000000000000000000000000000000000000638e239000000000000000000000000000000000000000000000000000000000638e31a0000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004465552590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044655525900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f6265616d706c75736275636b65742e73332e61702d656173742d312e616d617a6f6e6177732e636f6d2f667572792f6d65746164617461732f00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103815760003560e01c80636352211e116101d1578063a5f27a9511610102578063bb3bafd6116100a0578063d25a9f9b1161006f578063d25a9f9b14610b0d578063d4ec4c2014610b2d578063e985e9c514610b4d578063f2fde38b14610b9657600080fd5b8063bb3bafd614610a8a578063c5f8d8c614610aaa578063c87b56dd14610ad7578063cc573ce914610af757600080fd5b8063b5b3a9de116100dc578063b5b3a9de146109f6578063b70b055d14610a16578063b88d4fde14610a4a578063b9c4d9fb14610a6a57600080fd5b8063a5f27a9514610993578063abe063a2146109b3578063b55289bf146109c957600080fd5b80638518bef21161016f57806395d89b411161014957806395d89b411461091e57806398ae99a81461093357806399cd005814610946578063a22cb4651461097357600080fd5b80638518bef2146108c05780638da5cb5b146108e0578063959ff2c0146108fe57600080fd5b806370a08231116101ab57806370a0823114610842578063715018a6146108625780637b9750991461087757806381aa28951461088c57600080fd5b80636352211e146107d25780636c2f5acd146107f25780636f39ec921461081257600080fd5b80632320fc24116102b657806342842e0e1161025457806354423232116102235780635442323214610748578063582afc7b1461077c57806359fe1d4a1461079c5780635b53eff2146107bc57600080fd5b806342842e0e1461067c5780634630f02e1461069c57806348cd12d4146106f457806351c049421461072857600080fd5b80632a55205a116102905780632a55205a146105d95780633c1511f5146106185780633ccfd60b1461064557806341f434341461065a57600080fd5b80632320fc2414610570578063235b6ea11461058557806323b872dd146105b957600080fd5b8063095ea7b3116103235780630f26d8f6116102fd5780630f26d8f614610504578063132d9688146105315780631b96df8b1461054657806321c8d6761461055b57600080fd5b8063095ea7b3146104a25780630b6af045146104c45780630ebd4c7f146104e457600080fd5b806306fdde031161035f57806306fdde0314610401578063081812fc1461041657806308ab984e1461044e5780630928b6301461046e57600080fd5b806301ffc9a71461038657806303cf97b5146103bb57806305180237146103dd575b600080fd5b34801561039257600080fd5b506103a66103a13660046130e9565b610bb6565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103d0610c9b565b6040516103b2919061315e565b3480156103e957600080fd5b506103f360165481565b6040519081526020016103b2565b34801561040d57600080fd5b506103d0610d29565b34801561042257600080fd5b50610436610431366004613171565b610dbb565b6040516001600160a01b0390911681526020016103b2565b34801561045a57600080fd5b506103a661046936600461319f565b610de2565b34801561047a57600080fd5b506103f37f00000000000000000000000000000000000000000000000000000000000004e281565b3480156104ae57600080fd5b506104c26104bd36600461319f565b610e31565b005b3480156104d057600080fd5b506103a66104df366004613210565b610e4a565b3480156104f057600080fd5b506103f36104ff366004613171565b610eef565b34801561051057600080fd5b506103f361051f366004613265565b600b6020526000908152604090205481565b34801561053d57600080fd5b506103a6610f86565b34801561055257600080fd5b506103a6610fa2565b34801561056757600080fd5b506104c2610fbc565b34801561057c57600080fd5b506103f3603281565b34801561059157600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000081565b3480156105c557600080fd5b506104c26105d4366004613282565b610fee565b3480156105e557600080fd5b506105f96105f43660046132c3565b611019565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561062457600080fd5b506103f3610633366004613171565b60156020526000908152604090205481565b34801561065157600080fd5b506104c26110db565b34801561066657600080fd5b506104366daaeb6d7670e522a718067333cd4e81565b34801561068857600080fd5b506104c2610697366004613282565b61119b565b3480156106a857600080fd5b50600e54600f546010546011546012546013546106c795949392919086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c0016103b2565b34801561070057600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000181565b34801561073457600080fd5b506104c2610743366004613171565b6111c0565b34801561075457600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000181565b34801561078857600080fd5b506103a661079736600461319f565b6112c9565b3480156107a857600080fd5b506103a66107b7366004613171565b61130f565b3480156107c857600080fd5b506103f360095481565b3480156107de57600080fd5b506104366107ed366004613171565b61137a565b3480156107fe57600080fd5b506104c261080d36600461319f565b6113df565b34801561081e57600080fd5b506103a661082d3660046132c3565b60009182526014602052604090912054101590565b34801561084e57600080fd5b506103f361085d366004613265565b6114aa565b34801561086e57600080fd5b506104c2611544565b34801561088357600080fd5b506103a6611558565b34801561089857600080fd5b506103f37f00000000000000000000000000000000000000000000000000000000000002bc81565b3480156108cc57600080fd5b506103a66108db36600461319f565b611572565b3480156108ec57600080fd5b506006546001600160a01b0316610436565b34801561090a57600080fd5b506103a6610919366004613210565b6115b8565b34801561092a57600080fd5b506103d0611654565b6104c26109413660046132c3565b611663565b34801561095257600080fd5b506103f3610961366004613171565b60146020526000908152604090205481565b34801561097f57600080fd5b506104c261098e3660046132f3565b6119c4565b34801561099f57600080fd5b506104c26109ae36600461332c565b6119d8565b3480156109bf57600080fd5b506103f360085481565b3480156109d557600080fd5b506103f36109e4366004613265565b600c6020526000908152604090205481565b348015610a0257600080fd5b506104c2610a1136600461332c565b611c59565b348015610a2257600080fd5b506103f37f000000000000000000000000000000000000000000000000000000000000000181565b348015610a5657600080fd5b506104c2610a65366004613393565b611f8a565b348015610a7657600080fd5b50610436610a85366004613171565b611fb7565b348015610a9657600080fd5b506105f9610aa5366004613171565b612052565b348015610ab657600080fd5b506103f3610ac5366004613265565b600d6020526000908152604090205481565b348015610ae357600080fd5b506103d0610af2366004613171565b6120f7565b348015610b0357600080fd5b506103f3600a5481565b348015610b1957600080fd5b506103a6610b28366004613171565b61215e565b348015610b3957600080fd5b506103a6610b48366004613171565b6121da565b348015610b5957600080fd5b506103a6610b68366004613473565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610ba257600080fd5b506104c2610bb1366004613265565b61220b565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c4957507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c9557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60178054610ca8906134a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd4906134a1565b8015610d215780601f10610cf657610100808354040283529160200191610d21565b820191906000526020600020905b815481529060010190602001808311610d0457829003601f168201915b505050505081565b606060008054610d38906134a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d64906134a1565b8015610db15780601f10610d8657610100808354040283529160200191610db1565b820191906000526020600020905b815481529060010190602001808311610d9457829003601f168201915b5050505050905090565b6000610dc682612298565b506000908152600460205260409020546001600160a01b031690565b6001600160a01b0382166000908152600d60205260408120547f000000000000000000000000000000000000000000000000000000000000000190610e289084906134f1565b11159392505050565b81610e3b816122fc565b610e4583836123e7565b505050565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610ee68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f48705d8b84a4280ab93df27a16128ab7916e307ca46ae859a40ce1ca5517280092508591506125139050565b95945050505050565b6000818152600260205260408120546001600160a01b0316610f7e5760405162461bcd60e51b815260206004820152602860248201527f67657420666565206270733a20717565727920666f72206e6f6e65786973746560448201527f6e7420746f6b656e00000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b505060185490565b600e546000904210801590610f9d5750600f544211155b905090565b6012546000904210801590610f9d57505060135442111590565b610fc4612529565b60015b60328111610feb57610fd93382612583565b80610fe381613509565b915050610fc7565b50565b826001600160a01b038116331461100857611008336122fc565b6110138484846125a1565b50505050565b60008281526002602052604081205481906001600160a01b03166110a55760405162461bcd60e51b815260206004820152602960248201527f726f79616c747920696e666f3a20717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610f75565b6019546018546001600160a01b0390911690612710906110c59086613523565b6110cf9190613558565b915091505b9250929050565b6110e3612529565b6002600754036111355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f75565b600260075560405133904780156108fc02916000818181858888f19350505050158015611166573d6000803e3d6000fd5b50604051479033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a36001600755565b826001600160a01b03811633146111b5576111b5336122fc565b611013848484612628565b6111c8612529565b806111d28161215e565b61121e5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e7420746f6b656e00000000000000000000000000006044820152606401610f75565b601354421161126f5760405162461bcd60e51b815260206004820152601660248201527f6f6e6c79206166746572207075626c6963206d696e74000000000000000000006044820152606401610f75565b60005b828110156112ad576016805490600061128a83613509565b919050555061129b33601654612583565b806112a581613509565b915050611272565b5081600a60008282546112c091906134f1565b90915550505050565b6001600160a01b0382166000908152600c60205260408120547f000000000000000000000000000000000000000000000000000000000000000190610e289084906134f1565b6000806008547f00000000000000000000000000000000000000000000000000000000000004e2611340919061356c565b905061136c817f00000000000000000000000000000000000000000000000000000000000002bc6134f1565b83600954610e2891906134f1565b6000818152600260205260408120546001600160a01b031680610c955760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610f75565b6113e7612529565b6001600160a01b03821661143d5760405162461bcd60e51b815260206004820152601e60248201527f7a65726f20726f79616c747920726563697069656e74206164647265737300006044820152606401610f75565b6019805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038416908117909155601882905560408051918252602082018390527f406560a4b7601a05d9f2e8bd7914c92c31343335e3d4a7fbe6c04a9f44c93828910160405180910390a15050565b60006001600160a01b0382166115285760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610f75565b506001600160a01b031660009081526003602052604090205490565b61154c612529565b6115566000612643565b565b6010546000904210801590610f9d57505060115442111590565b6001600160a01b0382166000908152600b60205260408120547f000000000000000000000000000000000000000000000000000000000000000190610e289084906134f1565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610ee68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507fd8e61b7a6368c7aa1ec45acaf811c9a4531a97e7400463ef8cae0f5b7b037c0392508591506125139050565b606060018054610d38906134a1565b6002600754036116b55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f75565b60026007556116c2610fa2565b61170e5760405162461bcd60e51b815260206004820152601560248201527f696e76616c696420706572696f64207075626c696300000000000000000000006044820152606401610f75565b806117193382610de2565b6117655760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220700000000000000000000000000000006044820152606401610f75565b8161176f8161215e565b6117bb5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e7420746f6b656e00000000000000000000000000006044820152606401610f75565b8260006117e87f000000000000000000000000000000000000000000000000000000000000000083613523565b90508034101561183a5760405162461bcd60e51b815260206004820152601160248201527f696e737566666369656e742076616c75650000000000000000000000000000006044820152606401610f75565b8585611856828260009182526014602052604090912054101590565b6118a25760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e7420776561706f6e000000000000000000000000006044820152606401610f75565b60005b878110156118f457601680549060006118bd83613509565b91905055506118ce33601654612583565b6016546000908152601560205260409020899055806118ec81613509565b9150506118a5565b5086600a600082825461190791906134f1565b9091555050336000908152600d60205260408120805489929061192b9084906134f1565b90915550506000888152601460205260408120805489929061194e90849061356c565b909155503390506108fc6119827f00000000000000000000000000000000000000000000000000000000000000008a613523565b61198c903461356c565b6040518115909202916000818181858888f193505050501580156119b4573d6000803e3d6000fd5b5050600160075550505050505050565b816119ce816122fc565b610e4583836126a2565b6119e0610f86565b611a2c5760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420706572696f642031000000000000000000000000000000006044820152606401610f75565b8383611a393383836115b8565b611a855760405162461bcd60e51b815260206004820152601160248201527f76657269667920776c31206661696c65640000000000000000000000000000006044820152606401610f75565b82611a903382611572565b611adc5760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220310000000000000000000000000000006044820152606401610f75565b83611ae6816121da565b611b325760405162461bcd60e51b815260206004820152600c60248201527f657863656564206d6178203100000000000000000000000000000000000000006044820152606401610f75565b8585611b4e828260009182526014602052604090912054101590565b611b9a5760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e7420776561706f6e000000000000000000000000006044820152606401610f75565b60005b87811015611bec5760168054906000611bb583613509565b9190505550611bc633601654612583565b601654600090815260156020526040902089905580611be481613509565b915050611b9d565b50336000908152600b602052604081208054899290611c0c9084906134f1565b925050819055508660086000828254611c2591906134f1565b909155505060008881526014602052604081208054899290611c4890849061356c565b909155505050505050505050505050565b611c61611558565b611cad5760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420706572696f642032000000000000000000000000000000006044820152606401610f75565b80611cb78161130f565b611d035760405162461bcd60e51b815260206004820152600c60248201527f657863656564206d6178203200000000000000000000000000000000000000006044820152606401610f75565b8282611d1f828260009182526014602052604090912054101590565b611d6b5760405162461bcd60e51b815260206004820152601360248201527f696e73756666696369656e7420776561706f6e000000000000000000000000006044820152606401610f75565b611d763388886115b8565b15611dd657611d853385611572565b611dd15760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220310000000000000000000000000000006044820152606401610f75565b611e84565b611de1338888610e4a565b15611e3c57611df033856112c9565b611dd15760405162461bcd60e51b815260206004820152601160248201527f65786365656420706572207573657220320000000000000000000000000000006044820152606401610f75565b60405162461bcd60e51b815260206004820152600760248201527f696e76616c6964000000000000000000000000000000000000000000000000006044820152606401610f75565b60005b84811015611ed65760168054906000611e9f83613509565b9190505550611eb033601654612583565b601654600090815260156020526040902086905580611ece81613509565b915050611e87565b508360096000828254611ee991906134f1565b909155505060008581526014602052604081208054869290611f0c90849061356c565b90915550611f1d90503388886115b8565b15611f4c57336000908152600b602052604081208054869290611f419084906134f1565b90915550611f819050565b611f57338888610e4a565b15611f8157336000908152600c602052604081208054869290611f7b9084906134f1565b90915550505b50505050505050565b836001600160a01b0381163314611fa457611fa4336122fc565b611fb0858585856126ad565b5050505050565b6000818152600260205260408120546001600160a01b03166120415760405162461bcd60e51b815260206004820152602f60248201527f6765742066656520726563697069656e74733a20717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610f75565b50506019546001600160a01b031690565b60008181526002602052604081205481906001600160a01b03166120de5760405162461bcd60e51b815260206004820152602d60248201527f67657420726f79616c747920696e666f3a20717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610f75565b50506019546018546001600160a01b0390911692909150565b606061210282612298565b600061210c612735565b9050600081511161212c5760405180602001604052806000815250612157565b8061213684612744565b604051602001612147929190613583565b6040516020818303038152906040525b9392505050565b60006121aa7f00000000000000000000000000000000000000000000000000000000000002bc7f00000000000000000000000000000000000000000000000000000000000004e26134f1565b82600a546009546008546121be91906134f1565b6121c891906134f1565b6121d291906134f1565b111592915050565b60007f00000000000000000000000000000000000000000000000000000000000004e2826008546121d291906134f1565b612213612529565b6001600160a01b03811661228f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f75565b610feb81612643565b6000818152600260205260409020546001600160a01b0316610feb5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610f75565b6daaeb6d7670e522a718067333cd4e3b15610feb576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612382573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a691906135b2565b610feb576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610f75565b60006123f28261137a565b9050806001600160a01b0316836001600160a01b03160361247b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610f75565b336001600160a01b038216148061249757506124978133610b68565b6125095760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610f75565b610e458383612881565b60008261252085846128fc565b14949350505050565b6006546001600160a01b031633146115565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f75565b61259d828260405180602001604052806000815250612949565b5050565b6125ab33826129d2565b61261d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610f75565b610e45838383612a50565b610e4583838360405180602001604052806000815250611f8a565b600680546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61259d338383612c2a565b6126b733836129d2565b6127295760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610f75565b61101384848484612d16565b606060178054610d38906134a1565b60608160000361278757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156127b1578061279b81613509565b91506127aa9050600a83613558565b915061278b565b60008167ffffffffffffffff8111156127cc576127cc61337d565b6040519080825280601f01601f1916602001820160405280156127f6576020820181803683370190505b5090505b84156128795761280b60018361356c565b9150612818600a866135cf565b6128239060306134f1565b60f81b818381518110612838576128386135e3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612872600a86613558565b94506127fa565b949350505050565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906128c38261137a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081815b84518110156129415761292d82868381518110612920576129206135e3565b6020026020010151612d9f565b91508061293981613509565b915050612901565b509392505050565b6129538383612dcb565b6129606000848484612f1a565b610e455760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610f75565b6000806129de8361137a565b9050806001600160a01b0316846001600160a01b03161480612a2557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806128795750836001600160a01b0316612a3e84610dbb565b6001600160a01b031614949350505050565b826001600160a01b0316612a638261137a565b6001600160a01b031614612adf5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610f75565b6001600160a01b038216612b5a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610f75565b612b65600082612881565b6001600160a01b0383166000908152600360205260408120805460019290612b8e90849061356c565b90915550506001600160a01b0382166000908152600360205260408120805460019290612bbc9084906134f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031603612c8b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610f75565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612d21848484612a50565b612d2d84848484612f1a565b6110135760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610f75565b6000818310612dbb576000828152602084905260409020612157565b5060009182526020526040902090565b6001600160a01b038216612e215760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610f75565b6000818152600260205260409020546001600160a01b031615612e865760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610f75565b6001600160a01b0382166000908152600360205260408120805460019290612eaf9084906134f1565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156130b0576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290612f779033908990889088906004016135f9565b6020604051808303816000875af1925050508015612fb2575060408051601f3d908101601f19168201909252612faf91810190613635565b60015b613065573d808015612fe0576040519150601f19603f3d011682016040523d82523d6000602084013e612fe5565b606091505b50805160000361305d5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610f75565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612879565b506001949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610feb57600080fd5b6000602082840312156130fb57600080fd5b8135612157816130bb565b60005b83811015613121578181015183820152602001613109565b838111156110135750506000910152565b6000815180845261314a816020860160208601613106565b601f01601f19169290920160200192915050565b6020815260006121576020830184613132565b60006020828403121561318357600080fd5b5035919050565b6001600160a01b0381168114610feb57600080fd5b600080604083850312156131b257600080fd5b82356131bd8161318a565b946020939093013593505050565b60008083601f8401126131dd57600080fd5b50813567ffffffffffffffff8111156131f557600080fd5b6020830191508360208260051b85010111156110d457600080fd5b60008060006040848603121561322557600080fd5b83356132308161318a565b9250602084013567ffffffffffffffff81111561324c57600080fd5b613258868287016131cb565b9497909650939450505050565b60006020828403121561327757600080fd5b81356121578161318a565b60008060006060848603121561329757600080fd5b83356132a28161318a565b925060208401356132b28161318a565b929592945050506040919091013590565b600080604083850312156132d657600080fd5b50508035926020909101359150565b8015158114610feb57600080fd5b6000806040838503121561330657600080fd5b82356133118161318a565b91506020830135613321816132e5565b809150509250929050565b6000806000806060858703121561334257600080fd5b843567ffffffffffffffff81111561335957600080fd5b613365878288016131cb565b90989097506020870135966040013595509350505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156133a957600080fd5b84356133b48161318a565b935060208501356133c48161318a565b925060408501359150606085013567ffffffffffffffff808211156133e857600080fd5b818701915087601f8301126133fc57600080fd5b81358181111561340e5761340e61337d565b604051601f8201601f19908116603f011681019083821181831017156134365761343661337d565b816040528281528a602084870101111561344f57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561348657600080fd5b82356134918161318a565b915060208301356133218161318a565b600181811c908216806134b557607f821691505b6020821081036134d557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613504576135046134db565b500190565b6000600019820361351c5761351c6134db565b5060010190565b600081600019048311821515161561353d5761353d6134db565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261356757613567613542565b500490565b60008282101561357e5761357e6134db565b500390565b60008351613595818460208801613106565b8351908301906135a9818360208801613106565b01949350505050565b6000602082840312156135c457600080fd5b8151612157816132e5565b6000826135de576135de613542565b500690565b634e487b7160e01b600052603260045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261362b6080830184613132565b9695505050505050565b60006020828403121561364757600080fd5b8151612157816130bb56fea26469706673582212203b9757b6178872f1e6783b88dffdf8869f2a29be9586e07205ae316389fb716064736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000120d8e61b7a6368c7aa1ec45acaf811c9a4531a97e7400463ef8cae0f5b7b037c0348705d8b84a4280ab93df27a16128ab7916e307ca46ae859a40ce1ca5517280000000000000000000000000000000000000000000000000000000000638e077000000000000000000000000000000000000000000000000000000000638e157f00000000000000000000000000000000000000000000000000000000638e158000000000000000000000000000000000000000000000000000000000638e238f00000000000000000000000000000000000000000000000000000000638e239000000000000000000000000000000000000000000000000000000000638e31a0000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004465552590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044655525900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004168747470733a2f2f6265616d706c75736275636b65742e73332e61702d656173742d312e616d617a6f6e6177732e636f6d2f667572792f6d65746164617461732f00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : bi (tuple):
Arg [1] : name (string): FURY
Arg [2] : symbol (string): FURY
Arg [3] : baseUri (string): https://beamplusbucket.s3.ap-east-1.amazonaws.com/fury/metadatas/
Arg [4] : price (uint256): 0
Arg [1] : r (tuple):
Arg [1] : wl1Root (bytes32): 0xd8e61b7a6368c7aa1ec45acaf811c9a4531a97e7400463ef8cae0f5b7b037c03
Arg [2] : wl2Root (bytes32): 0x48705d8b84a4280ab93df27a16128ab7916e307ca46ae859a40ce1ca55172800
Arg [2] : p (tuple):
Arg [1] : start1 (uint256): 1670252400
Arg [2] : end1 (uint256): 1670255999
Arg [3] : start2 (uint256): 1670256000
Arg [4] : end2 (uint256): 1670259599
Arg [5] : startP (uint256): 1670259600
Arg [6] : endP (uint256): 1670263200
-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : d8e61b7a6368c7aa1ec45acaf811c9a4531a97e7400463ef8cae0f5b7b037c03
Arg [2] : 48705d8b84a4280ab93df27a16128ab7916e307ca46ae859a40ce1ca55172800
Arg [3] : 00000000000000000000000000000000000000000000000000000000638e0770
Arg [4] : 00000000000000000000000000000000000000000000000000000000638e157f
Arg [5] : 00000000000000000000000000000000000000000000000000000000638e1580
Arg [6] : 00000000000000000000000000000000000000000000000000000000638e238f
Arg [7] : 00000000000000000000000000000000000000000000000000000000638e2390
Arg [8] : 00000000000000000000000000000000000000000000000000000000638e31a0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [10] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [14] : 4655525900000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [16] : 4655525900000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [18] : 68747470733a2f2f6265616d706c75736275636b65742e73332e61702d656173
Arg [19] : 742d312e616d617a6f6e6177732e636f6d2f667572792f6d6574616461746173
Arg [20] : 2f00000000000000000000000000000000000000000000000000000000000000
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 ]
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.