Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 70 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Total Supply | 15535967 | 1263 days ago | IN | 0 ETH | 0.00041266 | ||||
| Encode Art | 15535958 | 1263 days ago | IN | 0 ETH | 0.00213414 | ||||
| Total Supply | 15473272 | 1273 days ago | IN | 0 ETH | 0.00020726 | ||||
| Encode Art | 15473269 | 1273 days ago | IN | 0 ETH | 0.00076673 | ||||
| Mint Allow List | 15375934 | 1289 days ago | IN | 0 ETH | 0.00042484 | ||||
| Mint Allow List | 15367172 | 1290 days ago | IN | 0 ETH | 0.00067016 | ||||
| Mint Allow List | 15366697 | 1290 days ago | IN | 0 ETH | 0.00089215 | ||||
| Total Supply | 15366274 | 1290 days ago | IN | 0 ETH | 0.00069003 | ||||
| Total Supply | 15365882 | 1290 days ago | IN | 0 ETH | 0.00039735 | ||||
| Total Supply | 15346415 | 1293 days ago | IN | 0 ETH | 0.00051841 | ||||
| Encode Art | 15346411 | 1293 days ago | IN | 0 ETH | 0.00197358 | ||||
| Transfer From | 15331044 | 1296 days ago | IN | 0 ETH | 0.00041284 | ||||
| Transfer From | 15331033 | 1296 days ago | IN | 0 ETH | 0.00040278 | ||||
| Transfer From | 15331027 | 1296 days ago | IN | 0 ETH | 0.00039987 | ||||
| Mint Allow List | 15330192 | 1296 days ago | IN | 0 ETH | 0.00165423 | ||||
| Total Supply | 15328431 | 1296 days ago | IN | 0 ETH | 0.00036336 | ||||
| Transfer From | 15276849 | 1304 days ago | IN | 0 ETH | 0.0012479 | ||||
| Transfer From | 15205284 | 1316 days ago | IN | 0 ETH | 0.00036406 | ||||
| Transfer From | 15205248 | 1316 days ago | IN | 0 ETH | 0.00087357 | ||||
| Encode Art | 15175396 | 1320 days ago | IN | 0 ETH | 0.00271742 | ||||
| Mint Allow List | 15107065 | 1331 days ago | IN | 0 ETH | 0.00252479 | ||||
| Mint Allow List | 15087464 | 1334 days ago | IN | 0 ETH | 0.00153554 | ||||
| Mint Allow List | 15086366 | 1334 days ago | IN | 0 ETH | 0.00253708 | ||||
| Mint Allow List | 15085083 | 1334 days ago | IN | 0 ETH | 0.00330453 | ||||
| Mint Allow List | 15084422 | 1334 days ago | IN | 0 ETH | 0.00483773 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Xenofacts
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./@rarible/royalties/contracts/RoyaltiesV2.sol";
import "./@rarible/royalties/contracts/LibPart.sol";
import "./@rarible/royalties/contracts/LibRoyaltiesV2.sol";
import "./Signature.sol";
import "./LockableArtToken.sol";
/**
* @title Xenofacts Contract
* @author dev@monoliths.art
* @notice Minting and art encoding of Xenofacts ERC721 tokens.
*/
contract Xenofacts is ERC721, ReentrancyGuard, Ownable, LockableArtToken, RoyaltiesV2 {
mapping(uint256 => string) private _tokenURIs;
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
using BitMaps for BitMaps.BitMap;
BitMaps.BitMap private _artTokenLocked;
uint256 private _price = 0.05 ether;
// How many tokens can a wallet hold
uint256 public constant MAX_PUBLIC_MINT = 22;
uint256 public constant MAX_SUPPLY = 2222;
uint256 public constant MAX_ALLOWLIST_SUPPLY = 222;
// Is public sale active
bool public saleIsActive = false;
// Is whitelist sale active
bool public isAllowListActive = false;
bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
// multisig wallet managing financial aspects
address private _multiSigWallet = 0xb4D3465EFd38Df0B3b48a0B9ae905cD0fce2300a;
// royalties wallet (8% artists, 2% team)
address private _royaltyWallet = 0x385DC5355244F787f96790D7f7De3AF7cC5cd37E;
// Used to validate authorized whitelist mints and art locking
address private _signerAddress = 0x1921A6C0Ad36280582D05969Ee87aC1F2ADb23B7;
// Monoliths contract address
address private _monoContract;
modifier onlyMultiSig() {
require(msg.sender == _multiSigWallet, 'Requires multiple signatures to complete');
_;
}
modifier onlySigner() {
require(msg.sender == _signerAddress, 'Requires signer');
_;
}
modifier onlyMonoContract() {
require(msg.sender == _monoContract, 'Not allowed');
_;
}
/**
* Events
*/
event ArtEncoded(address indexed owner, uint256 tokenId);
event ArtLocked(address indexed owner, uint256 tokenId);
//Constructor
constructor() ERC721 ("Xenofacts", "XENO") {
}
function setMonoContract(address monoContract) public onlyOwner {
_monoContract = monoContract;
}
/**
* Minting
*/
function setSaleState(bool newState) public onlyOwner {
saleIsActive = newState;
}
function setIsAllowListActive(bool _isAllowListActive) external onlyOwner {
isAllowListActive = _isAllowListActive;
}
function totalSupply() public view returns (uint256) {
return _tokenIds.current();
}
function mint(uint numberOfTokens) public payable nonReentrant {
uint256 ts = _tokenIds.current();
require(saleIsActive, "Sale must be active to mint tokens");
require(ts + _tokenIds.current() < MAX_SUPPLY, "No more to mint.");
require(balanceOf(msg.sender) + numberOfTokens <= MAX_PUBLIC_MINT, "No more tokens for you!");
require(_price * numberOfTokens <= _price, "Not enough funds");
for (uint256 i = 0; i < numberOfTokens; i++) {
_mintToAddress(msg.sender);
}
}
/*
* @notice Free mints for artists on whitelist
*/
function mintAllowList(uint256 numberOfTokens, uint256 maxNumberOfTokens, bytes calldata signature) public nonReentrant {
uint256 ts = _tokenIds.current();
require(isAllowListActive, "Allow list is not active");
require(balanceOf(msg.sender) + numberOfTokens <= maxNumberOfTokens, "Exceeded allowed amount available to purchase");
require(ts + numberOfTokens <= MAX_ALLOWLIST_SUPPLY, "Exceeded max available whitelist value");
require(ts + numberOfTokens <= MAX_SUPPLY, "Exceeded max available value");
bytes32 message = Signature.prefixed(keccak256(abi.encodePacked(numberOfTokens, maxNumberOfTokens, msg.sender, address(this))));
require(Signature.recoverSigner(message, signature) == _signerAddress, "Signer needs to authorize URI change");
for (uint256 i = 0; i < numberOfTokens; i++) {
_mintToAddress(msg.sender);
}
}
function _mintToAddress(address to) private {
uint256 newItemId = _tokenIds.current();
_safeMint(to, newItemId);
_tokenIds.increment();
// emit rarible royalty event
LibPart.Part[] memory royalties = new LibPart.Part[](1);
royalties[0].value = 1000;
royalties[0].account = payable(_royaltyWallet);
emit RoyaltiesSet(newItemId, royalties);
}
/**
* URI functions
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
if (bytes(_tokenURI).length > 0) {
return _tokenURI;
}
return super.tokenURI(tokenId);
}
function _baseURI() internal view virtual override returns (string memory) {
return "https://meta.monoliths.art/x/";
}
function contractURI() public pure returns (string memory) {
return "https://meta.monoliths.art/c/2";
}
/**
* Art Encoding
*
* The art encoding is done by contract owner after user signs permission to do so
*/
function encodeArt(uint256 tokenId, string calldata uri, bytes calldata signature) public {
require(_exists(tokenId), "URI set of nonexistent token");
require(msg.sender == ownerOf(tokenId), "You don't own this token");
string memory _currentTokenURI = _tokenURIs[tokenId];
require(bytes(_currentTokenURI).length == 0, "This token is already encoded");
bytes32 message = Signature.prefixed(keccak256(abi.encodePacked(tokenId, uri, address(this))));
require(Signature.recoverSigner(message, signature) == _signerAddress, "Signer needs to authorize URI change");
_tokenURIs[tokenId] = uri;
emit ArtEncoded(msg.sender, tokenId);
}
function isArtEncoded(uint256 artTokenId) external view returns(bool) {
string memory _currentTokenURI = _tokenURIs[artTokenId];
return (bytes(_currentTokenURI).length != 0);
}
/**
* Locking to monoliths
*/
function isArtTokenLocked(uint256 artTokenId) external view override returns(bool) {
return _artTokenLocked.get(artTokenId);
}
function lockArtToken(uint256 artTokenId) external override onlyMonoContract {
require(_artTokenLocked.get(artTokenId) == false, "Art token is already locked");
_artTokenLocked.set(artTokenId);
emit ArtLocked(tx.origin, artTokenId);
}
/**
* Pricing
*/
function setPrice(uint256 newPrice) public onlyOwner {
_price = newPrice;
}
/*
* Royalties
*/
function getRaribleV2Royalties(uint256 /*id*/) external view override returns (LibPart.Part[] memory) {
LibPart.Part[] memory _royalties = new LibPart.Part[](1);
_royalties[0].value = 1000;
_royalties[0].account = payable(_royaltyWallet);
return _royalties;
}
function royaltyInfo(uint256 /*_tokenId*/, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
return (_royaltyWallet, _salePrice / 10);
}
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) {
if(interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
return true;
}
if(interfaceId == _INTERFACE_ID_ERC2981) {
return true;
}
return super.supportsInterface(interfaceId);
}
/*
* Withdraw funds
*/
function withdraw() public onlyMultiSig {
(bool success, ) = msg.sender.call{value: address(this).balance}("");
require(success, "Withdraw failed.");
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_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 a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @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 v4.4.1 (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
* Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
*/
library BitMaps {
struct BitMap {
mapping(uint256 => uint256) _data;
}
/**
* @dev Returns whether the bit at `index` is set.
*/
function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
uint256 bucket = index >> 8;
uint256 mask = 1 << (index & 0xff);
return bitmap._data[bucket] & mask != 0;
}
/**
* @dev Sets the bit at `index` to the boolean `value`.
*/
function setTo(
BitMap storage bitmap,
uint256 index,
bool value
) internal {
if (value) {
set(bitmap, index);
} else {
unset(bitmap, index);
}
}
/**
* @dev Sets the bit at `index`.
*/
function set(BitMap storage bitmap, uint256 index) internal {
uint256 bucket = index >> 8;
uint256 mask = 1 << (index & 0xff);
bitmap._data[bucket] |= mask;
}
/**
* @dev Unsets the bit at `index`.
*/
function unset(BitMap storage bitmap, uint256 index) internal {
uint256 bucket = index >> 8;
uint256 mask = 1 << (index & 0xff);
bitmap._data[bucket] &= ~mask;
}
}// 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
pragma solidity ^0.8.0;
import "./LibPart.sol";
interface RoyaltiesV2 {
event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);
function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library LibPart {
bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");
struct Part {
address payable account;
uint96 value;
}
function hash(Part memory part) internal pure returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library LibRoyaltiesV2 {
/*
* bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0x44c74bcc
*/
bytes4 constant _INTERFACE_ID_ROYALTIES = 0x44c74bcc;
}//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
library Signature {
function split(bytes memory sig) internal pure returns (uint8, bytes32, bytes32)
{
require(sig.length == 65, "Signature length not valid");
bytes32 r;
bytes32 s;
uint8 v;
assembly {
// first 32 bytes, after the length prefix
r := mload(add(sig, 32))
// second 32 bytes
s := mload(add(sig, 64))
// final byte (first byte of the next 32 bytes)
v := byte(0, mload(add(sig, 96)))
}
return (v, r, s);
}
function recoverSigner(bytes32 message, bytes calldata sig) internal pure returns (address)
{
uint8 v;
bytes32 r;
bytes32 s;
(v, r, s) = split(sig);
return ecrecover(message, v, r, s);
}
// Builds a prefixed hash to mimic the behavior of eth_sign.
function prefixed(bytes32 hash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
}//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface LockableArtToken {
function isArtTokenLocked(uint256 artTokenId) external view returns (bool);
function lockArtToken(uint256 artTokenId) external;
}// 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 v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ArtEncoded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ArtLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ALLOWLIST_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"encodeArt","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":"","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artTokenId","type":"uint256"}],"name":"isArtEncoded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artTokenId","type":"uint256"}],"name":"isArtTokenLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"artTokenId","type":"uint256"}],"name":"lockArtToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"uint256","name":"maxNumberOfTokens","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowListActive","type":"bool"}],"name":"setIsAllowListActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"monoContract","type":"address"}],"name":"setMonoContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405266b1a2bc2ec50000600b55600c805475b4d3465efd38df0b3b48a0b9ae905cd0fce2300a00006001600160b01b0319909116179055600d80546001600160a01b031990811673385dc5355244f787f96790d7f7de3af7cc5cd37e17909155600e8054909116731921a6c0ad36280582d05969ee87ac1f2adb23b71790553480156200008e57600080fd5b50604080518082018252600981526858656e6f666163747360b81b60208083019182528351808501909452600484526358454e4f60e01b908401528151919291620000dc916000916200015d565b508051620000f29060019060208401906200015d565b505060016006555062000105336200010b565b62000240565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016b9062000203565b90600052602060002090601f0160209004810192826200018f5760008555620001da565b82601f10620001aa57805160ff1916838001178555620001da565b82800160010185558215620001da579182015b82811115620001da578251825591602001919060010190620001bd565b50620001e8929150620001ec565b5090565b5b80821115620001e85760008155600101620001ed565b600181811c908216806200021857607f821691505b602082108114156200023a57634e487b7160e01b600052602260045260246000fd5b50919050565b612cde80620002506000396000f3fe60806040526004361061020f5760003560e01c806385295f0511610118578063c4e37095116100a0578063e8a3d4851161006f578063e8a3d48514610603578063e985e9c514610649578063eb8d244414610692578063f2fde38b146106ac578063f7959cb3146106cc57600080fd5b8063c4e3709514610576578063c87b56dd14610596578063cad96cca146105b6578063dc543968146105e357600080fd5b806391b7f5ed116100e757806391b7f5ed146104ee57806395d89b411461050e578063a0712d6814610523578063a22cb46514610536578063b88d4fde1461055657600080fd5b806385295f05146104705780638da5cb5b146104905780638e8d6594146104ae578063911da955146104ce57600080fd5b806332cb6b0c1161019b57806365f130971161016a57806365f13097146103e65780636c9ea357146103fb57806370a082311461041b578063715018a61461043b578063718bc4af1461045057600080fd5b806332cb6b0c1461037b5780633ccfd60b1461039157806342842e0e146103a65780636352211e146103c657600080fd5b806318160ddd116101e257806318160ddd146102c557806323b872dd146102e857806324e12eb91461030857806329fc6bae1461031d5780632a55205a1461033c57600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f3660046127a0565b6106ec565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e61073f565b6040516102409190612a10565b34801561027757600080fd5b5061028b6102863660046127d8565b6107d1565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be36600461275d565b61085e565b005b3480156102d157600080fd5b506102da610974565b604051908152602001610240565b3480156102f457600080fd5b506102c3610303366004612624565b610984565b34801561031457600080fd5b506102da60de81565b34801561032957600080fd5b50600c5461023490610100900460ff1681565b34801561034857600080fd5b5061035c610357366004612867565b6109b5565b604080516001600160a01b039093168352602083019190915201610240565b34801561038757600080fd5b506102da6108ae81565b34801561039d57600080fd5b506102c36109dd565b3480156103b257600080fd5b506102c36103c1366004612624565b610adc565b3480156103d257600080fd5b5061028b6103e13660046127d8565b610af7565b3480156103f257600080fd5b506102da601681565b34801561040757600080fd5b506102346104163660046127d8565b610b6e565b34801561042757600080fd5b506102da6104363660046125d8565b610b91565b34801561044757600080fd5b506102c3610c18565b34801561045c57600080fd5b506102c361046b366004612786565b610c4e565b34801561047c57600080fd5b5061023461048b3660046127d8565b610c92565b34801561049c57600080fd5b506007546001600160a01b031661028b565b3480156104ba57600080fd5b506102c36104c93660046127d8565b610d37565b3480156104da57600080fd5b506102c36104e9366004612888565b610e3f565b3480156104fa57600080fd5b506102c36105093660046127d8565b61114c565b34801561051a57600080fd5b5061025e61117b565b6102c36105313660046127d8565b61118a565b34801561054257600080fd5b506102c3610551366004612734565b611385565b34801561056257600080fd5b506102c361057136600461265f565b611394565b34801561058257600080fd5b506102c3610591366004612786565b6113cc565b3480156105a257600080fd5b5061025e6105b13660046127d8565b611409565b3480156105c257600080fd5b506105d66105d13660046127d8565b611519565b60405161024091906129fd565b3480156105ef57600080fd5b506102c36105fe3660046127f0565b6115e9565b34801561060f57600080fd5b5060408051808201909152601e81527f68747470733a2f2f6d6574612e6d6f6e6f6c697468732e6172742f632f320000602082015261025e565b34801561065557600080fd5b506102346106643660046125f2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561069e57600080fd5b50600c546102349060ff1681565b3480156106b857600080fd5b506102c36106c73660046125d8565b611845565b3480156106d857600080fd5b506102c36106e73660046125d8565b6118dd565b60006001600160e01b03198216631131d2f360e21b141561070f57506001919050565b6001600160e01b0319821663152a902d60e11b141561073057506001919050565b61073982611929565b92915050565b60606000805461074e90612be6565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90612be6565b80156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050505050905090565b60006107dc82611979565b6108425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061086982610af7565b9050806001600160a01b0316836001600160a01b031614156108d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610839565b336001600160a01b03821614806108f357506108f38133610664565b6109655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610839565b61096f8383611996565b505050565b600061097f60095490565b905090565b61098e3382611a04565b6109aa5760405162461bcd60e51b815260040161083990612aaa565b61096f838383611aee565b600d5460009081906001600160a01b03166109d1600a85612b70565b915091505b9250929050565b600c546201000090046001600160a01b03163314610a4e5760405162461bcd60e51b815260206004820152602860248201527f5265717569726573206d756c7469706c65207369676e61747572657320746f20604482015267636f6d706c65746560c01b6064820152608401610839565b604051600090339047908381818185875af1925050503d8060008114610a90576040519150601f19603f3d011682016040523d82523d6000602084013e610a95565b606091505b5050905080610ad95760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610839565b50565b61096f83838360405180602001604052806000815250611394565b6000818152600260205260408120546001600160a01b0316806107395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610839565b600881901c6000908152600a6020526040812054600160ff84161b161515610739565b60006001600160a01b038216610bfc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610839565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610c425760405162461bcd60e51b815260040161083990612a75565b610c4c6000611c8a565b565b6007546001600160a01b03163314610c785760405162461bcd60e51b815260040161083990612a75565b600c80549115156101000261ff0019909216919091179055565b60008181526008602052604081208054829190610cae90612be6565b80601f0160208091040260200160405190810160405280929190818152602001828054610cda90612be6565b8015610d275780601f10610cfc57610100808354040283529160200191610d27565b820191906000526020600020905b815481529060010190602001808311610d0a57829003601f168201915b5050925115159695505050505050565b600f546001600160a01b03163314610d7f5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610839565b600881901c6000908152600a6020526040902054600160ff83161b1615610de85760405162461bcd60e51b815260206004820152601b60248201527f41727420746f6b656e20697320616c7265616479206c6f636b656400000000006044820152606401610839565b600881901c6000908152600a602052604090208054600160ff84161b17905560405181815232907f87c152bfc94bc3a524b6adc0b5da7cfbcd9597b7f3f95906449d0060b1289c409060200160405180910390a250565b60026006541415610e925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610839565b60026006556000610ea260095490565b600c54909150610100900460ff16610efc5760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f742061637469766500000000000000006044820152606401610839565b8385610f0733610b91565b610f119190612b58565b1115610f755760405162461bcd60e51b815260206004820152602d60248201527f457863656564656420616c6c6f77656420616d6f756e7420617661696c61626c60448201526c6520746f20707572636861736560981b6064820152608401610839565b60de610f818683612b58565b1115610fde5760405162461bcd60e51b815260206004820152602660248201527f4578636565646564206d617820617661696c61626c652077686974656c6973746044820152652076616c756560d01b6064820152608401610839565b6108ae610feb8683612b58565b11156110395760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d617820617661696c61626c652076616c7565000000006044820152606401610839565b60408051602081018790529081018590526bffffffffffffffffffffffff1933606090811b82168184015230901b1660748201526000906110d8906088015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b600e549091506001600160a01b03166110f2828686611cdc565b6001600160a01b0316146111185760405162461bcd60e51b815260040161083990612afb565b60005b8681101561113e5761112c33611d92565b8061113681612c21565b91505061111b565b505060016006555050505050565b6007546001600160a01b031633146111765760405162461bcd60e51b815260040161083990612a75565b600b55565b60606001805461074e90612be6565b600260065414156111dd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610839565b600260065560006111ed60095490565b600c5490915060ff1661124d5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b6064820152608401610839565b6108ae61125960095490565b6112639083612b58565b106112a35760405162461bcd60e51b815260206004820152601060248201526f27379036b7b932903a379036b4b73a1760811b6044820152606401610839565b6016826112af33610b91565b6112b99190612b58565b11156113075760405162461bcd60e51b815260206004820152601760248201527f4e6f206d6f726520746f6b656e7320666f7220796f75210000000000000000006044820152606401610839565b600b546113148382612b84565b11156113555760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682066756e647360801b6044820152606401610839565b60005b8281101561137b5761136933611d92565b8061137381612c21565b915050611358565b5050600160065550565b611390338383611ebc565b5050565b61139e3383611a04565b6113ba5760405162461bcd60e51b815260040161083990612aaa565b6113c684848484611f8b565b50505050565b6007546001600160a01b031633146113f65760405162461bcd60e51b815260040161083990612a75565b600c805460ff1916911515919091179055565b606061141482611979565b6114605760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610839565b6000828152600860205260408120805461147990612be6565b80601f01602080910402602001604051908101604052809291908181526020018280546114a590612be6565b80156114f25780601f106114c7576101008083540402835291602001916114f2565b820191906000526020600020905b8154815290600101906020018083116114d557829003601f168201915b505050505090506000815111156115095792915050565b61151283611fbe565b9392505050565b60408051600180825281830190925260609160009190816020015b60408051808201909152600080825260208201528152602001906001900390816115345790505090506103e88160008151811061158157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160601b03909216910152600d5481516001600160a01b039091169082906000906115cb57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b03909116905292915050565b6115f285611979565b61163e5760405162461bcd60e51b815260206004820152601c60248201527f55524920736574206f66206e6f6e6578697374656e7420746f6b656e000000006044820152606401610839565b61164785610af7565b6001600160a01b0316336001600160a01b0316146116a75760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e207468697320746f6b656e00000000000000006044820152606401610839565b600085815260086020526040812080546116c090612be6565b80601f01602080910402602001604051908101604052809291908181526020018280546116ec90612be6565b80156117395780601f1061170e57610100808354040283529160200191611739565b820191906000526020600020905b81548152906001019060200180831161171c57829003601f168201915b5050505050905080516000146117915760405162461bcd60e51b815260206004820152601d60248201527f5468697320746f6b656e20697320616c726561647920656e636f6465640000006044820152606401610839565b60006117ad87878730604051602001611078949392919061298b565b600e549091506001600160a01b03166117c7828686611cdc565b6001600160a01b0316146117ed5760405162461bcd60e51b815260040161083990612afb565b60008781526008602052604090206118069087876124d3565b5060405187815233907f88bb02a8d58235657511fa073f985c7e09510cb85de1e2742e07dcbb4241c2aa9060200160405180910390a250505050505050565b6007546001600160a01b0316331461186f5760405162461bcd60e51b815260040161083990612a75565b6001600160a01b0381166118d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610839565b610ad981611c8a565b6007546001600160a01b031633146119075760405162461bcd60e51b815260040161083990612a75565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061195a57506001600160e01b03198216635b5e139f60e01b145b8061073957506301ffc9a760e01b6001600160e01b0319831614610739565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119cb82610af7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a0f82611979565b611a705760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610839565b6000611a7b83610af7565b9050806001600160a01b0316846001600160a01b03161480611ab65750836001600160a01b0316611aab846107d1565b6001600160a01b0316145b80611ae657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b0182610af7565b6001600160a01b031614611b655760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610839565b6001600160a01b038216611bc75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610839565b611bd2600082611996565b6001600160a01b0383166000908152600360205260408120805460019290611bfb908490612ba3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c29908490612b58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080600080611d2186868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506120ba92505050565b6040805160008152602081018083528c905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015611d7c573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b6000611d9d60095490565b9050611da9828261212c565b611db7600980546001019055565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611dce5790505090506103e881600081518110611e1b57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160601b03909216910152600d5481516001600160a01b03909116908290600090611e6557634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b0390911690526040517f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df90611eaf9084908490612b3f565b60405180910390a1505050565b816001600160a01b0316836001600160a01b03161415611f1e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610839565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f96848484611aee565b611fa284848484612146565b6113c65760405162461bcd60e51b815260040161083990612a23565b6060611fc982611979565b61202d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610839565b600061206960408051808201909152601d81527f68747470733a2f2f6d6574612e6d6f6e6f6c697468732e6172742f782f000000602082015290565b905060008151116120895760405180602001604052806000815250611512565b8061209384612253565b6040516020016120a492919061295c565b6040516020818303038152906040529392505050565b600080600083516041146121105760405162461bcd60e51b815260206004820152601a60248201527f5369676e6174757265206c656e677468206e6f742076616c69640000000000006044820152606401610839565b5050506020810151604082015160609092015160001a92909190565b61139082826040518060200160405280600081525061236d565b60006001600160a01b0384163b1561224857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061218a9033908990889088906004016129c0565b602060405180830381600087803b1580156121a457600080fd5b505af19250505080156121d4575060408051601f3d908101601f191682019092526121d1918101906127bc565b60015b61222e573d808015612202576040519150601f19603f3d011682016040523d82523d6000602084013e612207565b606091505b5080516122265760405162461bcd60e51b815260040161083990612a23565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ae6565b506001949350505050565b6060816122775750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122a1578061228b81612c21565b915061229a9050600a83612b70565b915061227b565b60008167ffffffffffffffff8111156122ca57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122f4576020820181803683370190505b5090505b8415611ae657612309600183612ba3565b9150612316600a86612c3c565b612321906030612b58565b60f81b81838151811061234457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612366600a86612b70565b94506122f8565b61237783836123a0565b6123846000848484612146565b61096f5760405162461bcd60e51b815260040161083990612a23565b6001600160a01b0382166123f65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610839565b6123ff81611979565b1561244c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610839565b6001600160a01b0382166000908152600360205260408120805460019290612475908490612b58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546124df90612be6565b90600052602060002090601f0160209004810192826125015760008555612547565b82601f1061251a5782800160ff19823516178555612547565b82800160010185558215612547579182015b8281111561254757823582559160200191906001019061252c565b50612553929150612557565b5090565b5b808211156125535760008155600101612558565b80356001600160a01b038116811461258357600080fd5b919050565b8035801515811461258357600080fd5b60008083601f8401126125a9578182fd5b50813567ffffffffffffffff8111156125c0578182fd5b6020830191508360208285010111156109d657600080fd5b6000602082840312156125e9578081fd5b6115128261256c565b60008060408385031215612604578081fd5b61260d8361256c565b915061261b6020840161256c565b90509250929050565b600080600060608486031215612638578081fd5b6126418461256c565b925061264f6020850161256c565b9150604084013590509250925092565b60008060008060808587031215612674578081fd5b61267d8561256c565b935061268b6020860161256c565b925060408501359150606085013567ffffffffffffffff808211156126ae578283fd5b818701915087601f8301126126c1578283fd5b8135818111156126d3576126d3612c7c565b604051601f8201601f19908116603f011681019083821181831017156126fb576126fb612c7c565b816040528281528a6020848701011115612713578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612746578182fd5b61274f8361256c565b915061261b60208401612588565b6000806040838503121561276f578182fd5b6127788361256c565b946020939093013593505050565b600060208284031215612797578081fd5b61151282612588565b6000602082840312156127b1578081fd5b813561151281612c92565b6000602082840312156127cd578081fd5b815161151281612c92565b6000602082840312156127e9578081fd5b5035919050565b600080600080600060608688031215612807578081fd5b85359450602086013567ffffffffffffffff80821115612825578283fd5b61283189838a01612598565b90965094506040880135915080821115612849578283fd5b5061285688828901612598565b969995985093965092949392505050565b60008060408385031215612879578182fd5b50508035926020909101359150565b6000806000806060858703121561289d578384fd5b8435935060208501359250604085013567ffffffffffffffff8111156128c1578283fd5b6128cd87828801612598565b95989497509550505050565b6000815180845260208085019450808401835b8381101561292557815180516001600160a01b031688528301516001600160601b031683880152604090960195908201906001016128ec565b509495945050505050565b60008151808452612948816020860160208601612bba565b601f01601f19169290920160200192915050565b6000835161296e818460208801612bba565b835190830190612982818360208801612bba565b01949350505050565b8481528284602083013760609190911b6bffffffffffffffffffffffff19166020919092019081019190915260340192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129f390830184612930565b9695505050505050565b60208152600061151260208301846128d9565b6020815260006115126020830184612930565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f5369676e6572206e6565647320746f20617574686f72697a6520555249206368604082015263616e676560e01b606082015260800190565b828152604060208201526000611ae660408301846128d9565b60008219821115612b6b57612b6b612c50565b500190565b600082612b7f57612b7f612c66565b500490565b6000816000190483118215151615612b9e57612b9e612c50565b500290565b600082821015612bb557612bb5612c50565b500390565b60005b83811015612bd5578181015183820152602001612bbd565b838111156113c65750506000910152565b600181811c90821680612bfa57607f821691505b60208210811415612c1b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c3557612c35612c50565b5060010190565b600082612c4b57612c4b612c66565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ad957600080fdfea2646970667358221220917c585b38bc8217665223571af434c5859bfbb4c1bafa49980cbd45fd3f89e264736f6c63430008040033
Deployed Bytecode
0x60806040526004361061020f5760003560e01c806385295f0511610118578063c4e37095116100a0578063e8a3d4851161006f578063e8a3d48514610603578063e985e9c514610649578063eb8d244414610692578063f2fde38b146106ac578063f7959cb3146106cc57600080fd5b8063c4e3709514610576578063c87b56dd14610596578063cad96cca146105b6578063dc543968146105e357600080fd5b806391b7f5ed116100e757806391b7f5ed146104ee57806395d89b411461050e578063a0712d6814610523578063a22cb46514610536578063b88d4fde1461055657600080fd5b806385295f05146104705780638da5cb5b146104905780638e8d6594146104ae578063911da955146104ce57600080fd5b806332cb6b0c1161019b57806365f130971161016a57806365f13097146103e65780636c9ea357146103fb57806370a082311461041b578063715018a61461043b578063718bc4af1461045057600080fd5b806332cb6b0c1461037b5780633ccfd60b1461039157806342842e0e146103a65780636352211e146103c657600080fd5b806318160ddd116101e257806318160ddd146102c557806323b872dd146102e857806324e12eb91461030857806329fc6bae1461031d5780632a55205a1461033c57600080fd5b806301ffc9a71461021457806306fdde0314610249578063081812fc1461026b578063095ea7b3146102a3575b600080fd5b34801561022057600080fd5b5061023461022f3660046127a0565b6106ec565b60405190151581526020015b60405180910390f35b34801561025557600080fd5b5061025e61073f565b6040516102409190612a10565b34801561027757600080fd5b5061028b6102863660046127d8565b6107d1565b6040516001600160a01b039091168152602001610240565b3480156102af57600080fd5b506102c36102be36600461275d565b61085e565b005b3480156102d157600080fd5b506102da610974565b604051908152602001610240565b3480156102f457600080fd5b506102c3610303366004612624565b610984565b34801561031457600080fd5b506102da60de81565b34801561032957600080fd5b50600c5461023490610100900460ff1681565b34801561034857600080fd5b5061035c610357366004612867565b6109b5565b604080516001600160a01b039093168352602083019190915201610240565b34801561038757600080fd5b506102da6108ae81565b34801561039d57600080fd5b506102c36109dd565b3480156103b257600080fd5b506102c36103c1366004612624565b610adc565b3480156103d257600080fd5b5061028b6103e13660046127d8565b610af7565b3480156103f257600080fd5b506102da601681565b34801561040757600080fd5b506102346104163660046127d8565b610b6e565b34801561042757600080fd5b506102da6104363660046125d8565b610b91565b34801561044757600080fd5b506102c3610c18565b34801561045c57600080fd5b506102c361046b366004612786565b610c4e565b34801561047c57600080fd5b5061023461048b3660046127d8565b610c92565b34801561049c57600080fd5b506007546001600160a01b031661028b565b3480156104ba57600080fd5b506102c36104c93660046127d8565b610d37565b3480156104da57600080fd5b506102c36104e9366004612888565b610e3f565b3480156104fa57600080fd5b506102c36105093660046127d8565b61114c565b34801561051a57600080fd5b5061025e61117b565b6102c36105313660046127d8565b61118a565b34801561054257600080fd5b506102c3610551366004612734565b611385565b34801561056257600080fd5b506102c361057136600461265f565b611394565b34801561058257600080fd5b506102c3610591366004612786565b6113cc565b3480156105a257600080fd5b5061025e6105b13660046127d8565b611409565b3480156105c257600080fd5b506105d66105d13660046127d8565b611519565b60405161024091906129fd565b3480156105ef57600080fd5b506102c36105fe3660046127f0565b6115e9565b34801561060f57600080fd5b5060408051808201909152601e81527f68747470733a2f2f6d6574612e6d6f6e6f6c697468732e6172742f632f320000602082015261025e565b34801561065557600080fd5b506102346106643660046125f2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561069e57600080fd5b50600c546102349060ff1681565b3480156106b857600080fd5b506102c36106c73660046125d8565b611845565b3480156106d857600080fd5b506102c36106e73660046125d8565b6118dd565b60006001600160e01b03198216631131d2f360e21b141561070f57506001919050565b6001600160e01b0319821663152a902d60e11b141561073057506001919050565b61073982611929565b92915050565b60606000805461074e90612be6565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90612be6565b80156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050505050905090565b60006107dc82611979565b6108425760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061086982610af7565b9050806001600160a01b0316836001600160a01b031614156108d75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610839565b336001600160a01b03821614806108f357506108f38133610664565b6109655760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610839565b61096f8383611996565b505050565b600061097f60095490565b905090565b61098e3382611a04565b6109aa5760405162461bcd60e51b815260040161083990612aaa565b61096f838383611aee565b600d5460009081906001600160a01b03166109d1600a85612b70565b915091505b9250929050565b600c546201000090046001600160a01b03163314610a4e5760405162461bcd60e51b815260206004820152602860248201527f5265717569726573206d756c7469706c65207369676e61747572657320746f20604482015267636f6d706c65746560c01b6064820152608401610839565b604051600090339047908381818185875af1925050503d8060008114610a90576040519150601f19603f3d011682016040523d82523d6000602084013e610a95565b606091505b5050905080610ad95760405162461bcd60e51b815260206004820152601060248201526f2bb4ba34323930bb903330b4b632b21760811b6044820152606401610839565b50565b61096f83838360405180602001604052806000815250611394565b6000818152600260205260408120546001600160a01b0316806107395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610839565b600881901c6000908152600a6020526040812054600160ff84161b161515610739565b60006001600160a01b038216610bfc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610839565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b03163314610c425760405162461bcd60e51b815260040161083990612a75565b610c4c6000611c8a565b565b6007546001600160a01b03163314610c785760405162461bcd60e51b815260040161083990612a75565b600c80549115156101000261ff0019909216919091179055565b60008181526008602052604081208054829190610cae90612be6565b80601f0160208091040260200160405190810160405280929190818152602001828054610cda90612be6565b8015610d275780601f10610cfc57610100808354040283529160200191610d27565b820191906000526020600020905b815481529060010190602001808311610d0a57829003601f168201915b5050925115159695505050505050565b600f546001600160a01b03163314610d7f5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610839565b600881901c6000908152600a6020526040902054600160ff83161b1615610de85760405162461bcd60e51b815260206004820152601b60248201527f41727420746f6b656e20697320616c7265616479206c6f636b656400000000006044820152606401610839565b600881901c6000908152600a602052604090208054600160ff84161b17905560405181815232907f87c152bfc94bc3a524b6adc0b5da7cfbcd9597b7f3f95906449d0060b1289c409060200160405180910390a250565b60026006541415610e925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610839565b60026006556000610ea260095490565b600c54909150610100900460ff16610efc5760405162461bcd60e51b815260206004820152601860248201527f416c6c6f77206c697374206973206e6f742061637469766500000000000000006044820152606401610839565b8385610f0733610b91565b610f119190612b58565b1115610f755760405162461bcd60e51b815260206004820152602d60248201527f457863656564656420616c6c6f77656420616d6f756e7420617661696c61626c60448201526c6520746f20707572636861736560981b6064820152608401610839565b60de610f818683612b58565b1115610fde5760405162461bcd60e51b815260206004820152602660248201527f4578636565646564206d617820617661696c61626c652077686974656c6973746044820152652076616c756560d01b6064820152608401610839565b6108ae610feb8683612b58565b11156110395760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d617820617661696c61626c652076616c7565000000006044820152606401610839565b60408051602081018790529081018590526bffffffffffffffffffffffff1933606090811b82168184015230901b1660748201526000906110d8906088015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b600e549091506001600160a01b03166110f2828686611cdc565b6001600160a01b0316146111185760405162461bcd60e51b815260040161083990612afb565b60005b8681101561113e5761112c33611d92565b8061113681612c21565b91505061111b565b505060016006555050505050565b6007546001600160a01b031633146111765760405162461bcd60e51b815260040161083990612a75565b600b55565b60606001805461074e90612be6565b600260065414156111dd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610839565b600260065560006111ed60095490565b600c5490915060ff1661124d5760405162461bcd60e51b815260206004820152602260248201527f53616c65206d7573742062652061637469766520746f206d696e7420746f6b656044820152616e7360f01b6064820152608401610839565b6108ae61125960095490565b6112639083612b58565b106112a35760405162461bcd60e51b815260206004820152601060248201526f27379036b7b932903a379036b4b73a1760811b6044820152606401610839565b6016826112af33610b91565b6112b99190612b58565b11156113075760405162461bcd60e51b815260206004820152601760248201527f4e6f206d6f726520746f6b656e7320666f7220796f75210000000000000000006044820152606401610839565b600b546113148382612b84565b11156113555760405162461bcd60e51b815260206004820152601060248201526f4e6f7420656e6f7567682066756e647360801b6044820152606401610839565b60005b8281101561137b5761136933611d92565b8061137381612c21565b915050611358565b5050600160065550565b611390338383611ebc565b5050565b61139e3383611a04565b6113ba5760405162461bcd60e51b815260040161083990612aaa565b6113c684848484611f8b565b50505050565b6007546001600160a01b031633146113f65760405162461bcd60e51b815260040161083990612a75565b600c805460ff1916911515919091179055565b606061141482611979565b6114605760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610839565b6000828152600860205260408120805461147990612be6565b80601f01602080910402602001604051908101604052809291908181526020018280546114a590612be6565b80156114f25780601f106114c7576101008083540402835291602001916114f2565b820191906000526020600020905b8154815290600101906020018083116114d557829003601f168201915b505050505090506000815111156115095792915050565b61151283611fbe565b9392505050565b60408051600180825281830190925260609160009190816020015b60408051808201909152600080825260208201528152602001906001900390816115345790505090506103e88160008151811061158157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160601b03909216910152600d5481516001600160a01b039091169082906000906115cb57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b03909116905292915050565b6115f285611979565b61163e5760405162461bcd60e51b815260206004820152601c60248201527f55524920736574206f66206e6f6e6578697374656e7420746f6b656e000000006044820152606401610839565b61164785610af7565b6001600160a01b0316336001600160a01b0316146116a75760405162461bcd60e51b815260206004820152601860248201527f596f7520646f6e2774206f776e207468697320746f6b656e00000000000000006044820152606401610839565b600085815260086020526040812080546116c090612be6565b80601f01602080910402602001604051908101604052809291908181526020018280546116ec90612be6565b80156117395780601f1061170e57610100808354040283529160200191611739565b820191906000526020600020905b81548152906001019060200180831161171c57829003601f168201915b5050505050905080516000146117915760405162461bcd60e51b815260206004820152601d60248201527f5468697320746f6b656e20697320616c726561647920656e636f6465640000006044820152606401610839565b60006117ad87878730604051602001611078949392919061298b565b600e549091506001600160a01b03166117c7828686611cdc565b6001600160a01b0316146117ed5760405162461bcd60e51b815260040161083990612afb565b60008781526008602052604090206118069087876124d3565b5060405187815233907f88bb02a8d58235657511fa073f985c7e09510cb85de1e2742e07dcbb4241c2aa9060200160405180910390a250505050505050565b6007546001600160a01b0316331461186f5760405162461bcd60e51b815260040161083990612a75565b6001600160a01b0381166118d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610839565b610ad981611c8a565b6007546001600160a01b031633146119075760405162461bcd60e51b815260040161083990612a75565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061195a57506001600160e01b03198216635b5e139f60e01b145b8061073957506301ffc9a760e01b6001600160e01b0319831614610739565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119cb82610af7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611a0f82611979565b611a705760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610839565b6000611a7b83610af7565b9050806001600160a01b0316846001600160a01b03161480611ab65750836001600160a01b0316611aab846107d1565b6001600160a01b0316145b80611ae657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611b0182610af7565b6001600160a01b031614611b655760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610839565b6001600160a01b038216611bc75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610839565b611bd2600082611996565b6001600160a01b0383166000908152600360205260408120805460019290611bfb908490612ba3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611c29908490612b58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080600080611d2186868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506120ba92505050565b6040805160008152602081018083528c905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015611d7c573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b6000611d9d60095490565b9050611da9828261212c565b611db7600980546001019055565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081611dce5790505090506103e881600081518110611e1b57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160601b03909216910152600d5481516001600160a01b03909116908290600090611e6557634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160a01b0390911690526040517f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df90611eaf9084908490612b3f565b60405180910390a1505050565b816001600160a01b0316836001600160a01b03161415611f1e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610839565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f96848484611aee565b611fa284848484612146565b6113c65760405162461bcd60e51b815260040161083990612a23565b6060611fc982611979565b61202d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610839565b600061206960408051808201909152601d81527f68747470733a2f2f6d6574612e6d6f6e6f6c697468732e6172742f782f000000602082015290565b905060008151116120895760405180602001604052806000815250611512565b8061209384612253565b6040516020016120a492919061295c565b6040516020818303038152906040529392505050565b600080600083516041146121105760405162461bcd60e51b815260206004820152601a60248201527f5369676e6174757265206c656e677468206e6f742076616c69640000000000006044820152606401610839565b5050506020810151604082015160609092015160001a92909190565b61139082826040518060200160405280600081525061236d565b60006001600160a01b0384163b1561224857604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061218a9033908990889088906004016129c0565b602060405180830381600087803b1580156121a457600080fd5b505af19250505080156121d4575060408051601f3d908101601f191682019092526121d1918101906127bc565b60015b61222e573d808015612202576040519150601f19603f3d011682016040523d82523d6000602084013e612207565b606091505b5080516122265760405162461bcd60e51b815260040161083990612a23565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611ae6565b506001949350505050565b6060816122775750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122a1578061228b81612c21565b915061229a9050600a83612b70565b915061227b565b60008167ffffffffffffffff8111156122ca57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122f4576020820181803683370190505b5090505b8415611ae657612309600183612ba3565b9150612316600a86612c3c565b612321906030612b58565b60f81b81838151811061234457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612366600a86612b70565b94506122f8565b61237783836123a0565b6123846000848484612146565b61096f5760405162461bcd60e51b815260040161083990612a23565b6001600160a01b0382166123f65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610839565b6123ff81611979565b1561244c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610839565b6001600160a01b0382166000908152600360205260408120805460019290612475908490612b58565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546124df90612be6565b90600052602060002090601f0160209004810192826125015760008555612547565b82601f1061251a5782800160ff19823516178555612547565b82800160010185558215612547579182015b8281111561254757823582559160200191906001019061252c565b50612553929150612557565b5090565b5b808211156125535760008155600101612558565b80356001600160a01b038116811461258357600080fd5b919050565b8035801515811461258357600080fd5b60008083601f8401126125a9578182fd5b50813567ffffffffffffffff8111156125c0578182fd5b6020830191508360208285010111156109d657600080fd5b6000602082840312156125e9578081fd5b6115128261256c565b60008060408385031215612604578081fd5b61260d8361256c565b915061261b6020840161256c565b90509250929050565b600080600060608486031215612638578081fd5b6126418461256c565b925061264f6020850161256c565b9150604084013590509250925092565b60008060008060808587031215612674578081fd5b61267d8561256c565b935061268b6020860161256c565b925060408501359150606085013567ffffffffffffffff808211156126ae578283fd5b818701915087601f8301126126c1578283fd5b8135818111156126d3576126d3612c7c565b604051601f8201601f19908116603f011681019083821181831017156126fb576126fb612c7c565b816040528281528a6020848701011115612713578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612746578182fd5b61274f8361256c565b915061261b60208401612588565b6000806040838503121561276f578182fd5b6127788361256c565b946020939093013593505050565b600060208284031215612797578081fd5b61151282612588565b6000602082840312156127b1578081fd5b813561151281612c92565b6000602082840312156127cd578081fd5b815161151281612c92565b6000602082840312156127e9578081fd5b5035919050565b600080600080600060608688031215612807578081fd5b85359450602086013567ffffffffffffffff80821115612825578283fd5b61283189838a01612598565b90965094506040880135915080821115612849578283fd5b5061285688828901612598565b969995985093965092949392505050565b60008060408385031215612879578182fd5b50508035926020909101359150565b6000806000806060858703121561289d578384fd5b8435935060208501359250604085013567ffffffffffffffff8111156128c1578283fd5b6128cd87828801612598565b95989497509550505050565b6000815180845260208085019450808401835b8381101561292557815180516001600160a01b031688528301516001600160601b031683880152604090960195908201906001016128ec565b509495945050505050565b60008151808452612948816020860160208601612bba565b601f01601f19169290920160200192915050565b6000835161296e818460208801612bba565b835190830190612982818360208801612bba565b01949350505050565b8481528284602083013760609190911b6bffffffffffffffffffffffff19166020919092019081019190915260340192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129f390830184612930565b9695505050505050565b60208152600061151260208301846128d9565b6020815260006115126020830184612930565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f5369676e6572206e6565647320746f20617574686f72697a6520555249206368604082015263616e676560e01b606082015260800190565b828152604060208201526000611ae660408301846128d9565b60008219821115612b6b57612b6b612c50565b500190565b600082612b7f57612b7f612c66565b500490565b6000816000190483118215151615612b9e57612b9e612c50565b500290565b600082821015612bb557612bb5612c50565b500390565b60005b83811015612bd5578181015183820152602001612bbd565b838111156113c65750506000910152565b600181811c90821680612bfa57607f821691505b60208210811415612c1b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c3557612c35612c50565b5060010190565b600082612c4b57612c4b612c66565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ad957600080fdfea2646970667358221220917c585b38bc8217665223571af434c5859bfbb4c1bafa49980cbd45fd3f89e264736f6c63430008040033
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.