Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 253 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19428923 | 334 days ago | IN | 0 ETH | 0.00284962 | ||||
Safe Transfer Fr... | 16448269 | 752 days ago | IN | 0 ETH | 0.00169355 | ||||
Set Approval For... | 16286559 | 775 days ago | IN | 0 ETH | 0.00075041 | ||||
Set Approval For... | 16279736 | 776 days ago | IN | 0 ETH | 0.00060229 | ||||
Safe Transfer Fr... | 15995265 | 815 days ago | IN | 0 ETH | 0.00087971 | ||||
Set Approval For... | 15322772 | 914 days ago | IN | 0 ETH | 0.00053382 | ||||
Transfer From | 14351553 | 1069 days ago | IN | 0 ETH | 0.00233838 | ||||
Set Approval For... | 14292529 | 1078 days ago | IN | 0 ETH | 0.00110269 | ||||
Transfer From | 14262444 | 1083 days ago | IN | 0 ETH | 0.00234573 | ||||
Set Approval For... | 14246795 | 1086 days ago | IN | 0 ETH | 0.00166015 | ||||
Set Approval For... | 14241739 | 1086 days ago | IN | 0 ETH | 0.00148502 | ||||
Set Approval For... | 14223214 | 1089 days ago | IN | 0 ETH | 0.00179704 | ||||
Set Approval For... | 14218408 | 1090 days ago | IN | 0 ETH | 0.00359892 | ||||
Set Approval For... | 14216919 | 1090 days ago | IN | 0 ETH | 0.00223589 | ||||
Set Approval For... | 14054229 | 1115 days ago | IN | 0 ETH | 0.00613772 | ||||
Transfer From | 14047504 | 1116 days ago | IN | 0 ETH | 0.00961998 | ||||
Set Approval For... | 14024627 | 1120 days ago | IN | 0 ETH | 0.00519749 | ||||
Set Approval For... | 14017728 | 1121 days ago | IN | 0 ETH | 0.00498019 | ||||
Set Approval For... | 13980520 | 1127 days ago | IN | 0 ETH | 0.00795434 | ||||
Transfer From | 13876851 | 1143 days ago | IN | 0 ETH | 0.00418153 | ||||
Set Approval For... | 13874835 | 1143 days ago | IN | 0 ETH | 0.00384367 | ||||
Set Approval For... | 13769054 | 1159 days ago | IN | 0 ETH | 0.00379288 | ||||
Transfer From | 13714500 | 1168 days ago | IN | 0 ETH | 0.00643254 | ||||
Set Approval For... | 13709387 | 1169 days ago | IN | 0 ETH | 0.00594046 | ||||
Set Approval For... | 13708095 | 1169 days ago | IN | 0 ETH | 0.00341384 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13444083 | 1211 days ago | 4.23 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SnapSpecialEditionCoverIssue04
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT License import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract SnapSpecialEditionCoverIssue04 is ERC721URIStorage, ERC721Pausable, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint public fee; uint public feeEth; address payable private cashOutWallet = payable(0xE52894D7187903EF634eE9B115a1F6B7334BfE7c); address private constant _deadWalletAddress = 0x000000000000000000000000000000000000dEaD; address private snapAddress = 0x4c5813b8c6FbbAC76CAA148aAf8910f236B56fDF; mapping (address => uint8) private mintedTokens; string private _baseURIPrefix; event PriceUpdated(uint newPrice); receive() external payable {} constructor() ERC721("SNAP UNIVERSE special edition cover, Issue 04", "SNAPCOVER4") { fee = 4000000000000000000; //4,000,000,000 SNAP! feeEth = 0.03 ether; _baseURIPrefix = "ipfs://Qmc9KykunXDF9zb8i3PckoSvMw5pc5HAMZAJJRYmhfzecL/"; mintOwner(msg.sender); _pause(); } function setBaseURI(string memory baseURIPrefix) external onlyOwner { _baseURIPrefix = baseURIPrefix; } function _baseURI() internal view override returns (string memory) { return _baseURIPrefix; } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal whenNotPaused override(ERC721, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } /** * @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); } function mint(address wallet, uint8 numberOfMints) whenNotPaused external returns (uint256) { require(_tokenIds.current() >= 20, "Need to mint reserved nfts first"); require(_tokenIds.current() + numberOfMints <= 300, "Maximum amount of tokens already minted"); require(numberOfMints <= 3, "You cant mint more than 3 at a time"); require(ERC20(snapAddress).transferFrom(msg.sender, address(this), fee * numberOfMints), "Could not transfer tokens."); mintedTokens[wallet] += numberOfMints; require(mintedTokens[wallet] <= 6, "You cant mint more than 6 for one wallet."); doMint(wallet, numberOfMints); return _tokenIds.current(); } function mintEth(address wallet, uint8 numberOfMints) whenNotPaused external payable returns (uint256) { require(_tokenIds.current() >= 20, "Need to mint reserved nfts first"); require(_tokenIds.current() + numberOfMints <= 300, "Maximum amount of tokens already minted"); require(numberOfMints <= 3, "You cant mint more than 3 at a time"); require(msg.value >= feeEth * numberOfMints, "Fee is not correct."); //User must pay set fee. mintedTokens[wallet] += numberOfMints; require(mintedTokens[wallet] <= 6, "You cant mint more than 6 for one wallet."); doMint(wallet, numberOfMints); return _tokenIds.current(); } function doMint(address wallet, uint numberOfMints) private { for(uint i = 0; i < numberOfMints; i++) { _tokenIds.increment(); uint256 tokenId = _tokenIds.current(); _safeMint(wallet, tokenId); string memory tokenURISuffix = string(abi.encodePacked(toString(tokenId), ".json")); _setTokenURI(tokenId, tokenURISuffix); } } function mintOwner(address wallet) private onlyOwner returns (uint256) { require(_tokenIds.current() == 0); doMint(wallet, 20); return _tokenIds.current(); } function mintSpecial(address wallet) external onlyOwner returns (uint256) { doMint(wallet, 1); return _tokenIds.current(); } function updateFee(uint newFee) external onlyOwner{ fee = newFee; emit PriceUpdated(newFee); } function setSnapAddress(address _snapAddress) external onlyOwner{ snapAddress =_snapAddress; } function getFee() external view returns (uint) { return fee; } function cashOut() external onlyOwner { cashOutWallet.call{value: address(this).balance}(""); } function burnOut() external onlyOwner { ERC20 snap = ERC20(snapAddress); snap.transfer(_deadWalletAddress, snap.balanceOf(address(this))); } function currentTokenId() external view returns (uint256) { return _tokenIds.current(); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount) internal virtual { } }
// SPDX-License-Identifier: MIT 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}. 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping (uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. 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; } } }
// SPDX-License-Identifier: MIT 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT 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 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
{ "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
[{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cashOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint8","name":"numberOfMints","type":"uint8"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint8","name":"numberOfMints","type":"uint8"}],"name":"mintEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"mintSpecial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURIPrefix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_snapAddress","type":"address"}],"name":"setSnapAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600b80546001600160a01b031990811673e52894d7187903ef634ee9b115a1f6b7334bfe7c17909155600c8054909116734c5813b8c6fbbac76caa148aaf8910f236b56fdf1790553480156200005957600080fd5b506040518060600160405280602d815260200162003666602d91396040518060400160405280600a81526020016914d3905410d3d591548d60b21b8152508160009080519060200190620000af9291906200082f565b508051620000c59060019060208401906200082f565b50506007805460ff19169055506000620000de62000197565b60078054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350673782dace9d900000600955666a94d74f430000600a556040805160608101909152603680825262003693602083013980516200017a91600e916020909101906200082f565b5062000186336200019b565b50620001916200023a565b62000c6e565b3390565b6000620001a762000197565b6001600160a01b0316620001ba620002b5565b6001600160a01b031614620001ec5760405162461bcd60e51b8152600401620001e39062000b1c565b60405180910390fd5b620002036008620002c960201b620011b71760201c565b156200020e57600080fd5b6200021b826014620002cd565b620002326008620002c960201b620011b71760201c565b90505b919050565b6200024462000371565b15620002645760405162461bcd60e51b8152600401620001e39062000a6f565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200029c62000197565b604051620002ab919062000931565b60405180910390a1565b60075461010090046001600160a01b031690565b5490565b60005b818110156200036c57620002f060086200037a60201b620011bb1760201c565b6000620003096008620002c960201b620011b71760201c565b905062000317848262000383565b60006200032482620003a9565b60405160200162000336919062000906565b60408051601f198184030181529190529050620003548282620004e0565b50508080620003639062000c0d565b915050620002d0565b505050565b60075460ff1690565b80546001019055565b620003a58282604051806020016040528060008152506200052b60201b60201c565b5050565b606081620003d057506040805180820190915260018152600360fc1b602082015262000235565b8160005b8115620004005780620003e78162000c0d565b9150620003f89050600a8362000b6c565b9150620003d4565b6000816001600160401b038111156200042957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801562000454576020820181803683370190505b5090505b8415620004d8576200046c60018362000b83565b91506200047b600a8662000c2b565b6200048890603062000b51565b60f81b818381518110620004ac57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350620004d0600a8662000b6c565b945062000458565b949350505050565b620004eb8262000565565b6200050a5760405162461bcd60e51b8152600401620001e39062000a99565b600082815260066020908152604090912082516200036c928401906200082f565b62000537838362000582565b6200054660008484846200066d565b6200036c5760405162461bcd60e51b8152600401620001e390620009e6565b6000908152600260205260409020546001600160a01b0316151590565b6001600160a01b038216620005ab5760405162461bcd60e51b8152600401620001e39062000ae7565b620005b68162000565565b15620005d65760405162461bcd60e51b8152600401620001e39062000a38565b620005e460008383620007a5565b6001600160a01b03821660009081526003602052604081208054600192906200060f90849062000b51565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006200068e846001600160a01b0316620007e760201b620011c41760201c565b156200079a576001600160a01b03841663150b7a02620006ad62000197565b8786866040518563ffffffff1660e01b8152600401620006d1949392919062000945565b602060405180830381600087803b158015620006ec57600080fd5b505af19250505080156200071f575060408051601f3d908101601f191682019092526200071c91810190620008d5565b60015b6200077f573d80801562000750576040519150601f19603f3d011682016040523d82523d6000602084013e62000755565b606091505b508051620007775760405162461bcd60e51b8152600401620001e390620009e6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620004d8565b506001949350505050565b620007af62000371565b15620007cf5760405162461bcd60e51b8152600401620001e39062000a6f565b6200036c838383620007ed60201b620011ca1760201c565b3b151590565b620008058383836200036c60201b620007341760201c565b6200080f62000371565b156200036c5760405162461bcd60e51b8152600401620001e3906200099b565b8280546200083d9062000bd0565b90600052602060002090601f016020900481019282620008615760008555620008ac565b82601f106200087c57805160ff1916838001178555620008ac565b82800160010185558215620008ac579182015b82811115620008ac5782518255916020019190600101906200088f565b50620008ba929150620008be565b5090565b5b80821115620008ba5760008155600101620008bf565b600060208284031215620008e7578081fd5b81516001600160e01b031981168114620008ff578182fd5b9392505050565b600082516200091a81846020870162000b9d565b64173539b7b760d91b920191825250600501919050565b6001600160a01b0391909116815260200190565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620009848160a085016020870162000b9d565b601f01601f19169190910160a00195945050505050565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111562000b675762000b6762000c42565b500190565b60008262000b7e5762000b7e62000c58565b500490565b60008282101562000b985762000b9862000c42565b500390565b60005b8381101562000bba57818101518382015260200162000ba0565b8381111562000bca576000848401525b50505050565b60028104600182168062000be557607f821691505b6020821081141562000c0757634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000c245762000c2462000c42565b5060010190565b60008262000c3d5762000c3d62000c58565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6129e88062000c7e6000396000f3fe6080604052600436106101db5760003560e01c8063715018a611610102578063a22cb46511610095578063ced72f8711610064578063ced72f8714610500578063ddca3f4314610515578063e985e9c51461052a578063f2fde38b1461054a576101e2565b8063a22cb4651461048b578063a9371480146104ab578063b88d4fde146104c0578063c87b56dd146104e0576101e2565b80638da5cb5b116100d15780638da5cb5b146104215780639012c4a81461043657806395d89b4114610456578063a16a3e5a1461046b576101e2565b8063715018a6146103cf578063793cd71e146103e45780637f6db985146103f95780638456cb591461040c576101e2565b806342842e0e1161017a5780636352211e116101495780636352211e1461034f57806363fe5cca1461036f578063691562a01461038f57806370a08231146103af576101e2565b806342842e0e146102e557806355f804b3146103055780635c975abb146103255780635e9dc44c1461033a576101e2565b8063081812fc116101b6578063081812fc14610261578063095ea7b31461028e57806323b872dd146102b05780633f4ba83a146102d0576101e2565b80629a9b7b146101e757806301ffc9a71461021257806306fdde031461023f576101e2565b366101e257005b600080fd5b3480156101f357600080fd5b506101fc61056a565b6040516102099190612823565b60405180910390f35b34801561021e57600080fd5b5061023261022d366004611f2e565b61057b565b60405161020991906120f1565b34801561024b57600080fd5b506102546105c3565b60405161020991906120fc565b34801561026d57600080fd5b5061028161027c366004611fac565b610655565b6040516102099190612063565b34801561029a57600080fd5b506102ae6102a9366004611eb9565b6106a1565b005b3480156102bc57600080fd5b506102ae6102cb366004611dcf565b610739565b3480156102dc57600080fd5b506102ae610771565b3480156102f157600080fd5b506102ae610300366004611dcf565b6107ba565b34801561031157600080fd5b506102ae610320366004611f66565b6107d5565b34801561033157600080fd5b5061023261082b565b34801561034657600080fd5b506101fc610834565b34801561035b57600080fd5b5061028161036a366004611fac565b61083a565b34801561037b57600080fd5b506101fc61038a366004611d83565b61086f565b34801561039b57600080fd5b506101fc6103aa366004611ee2565b6108c5565b3480156103bb57600080fd5b506101fc6103ca366004611d83565b610ac9565b3480156103db57600080fd5b506102ae610b0d565b3480156103f057600080fd5b506102ae610b9c565b6101fc610407366004611ee2565b610c35565b34801561041857600080fd5b506102ae610d13565b34801561042d57600080fd5b50610281610d5a565b34801561044257600080fd5b506102ae610451366004611fac565b610d6e565b34801561046257600080fd5b50610254610ded565b34801561047757600080fd5b506102ae610486366004611d83565b610dfc565b34801561049757600080fd5b506102ae6104a6366004611e83565b610e5d565b3480156104b757600080fd5b506102ae610f2b565b3480156104cc57600080fd5b506102ae6104db366004611e0a565b611067565b3480156104ec57600080fd5b506102546104fb366004611fac565b6110a6565b34801561050c57600080fd5b506101fc6110b1565b34801561052157600080fd5b506101fc6110b7565b34801561053657600080fd5b50610232610545366004611d9d565b6110bd565b34801561055657600080fd5b506102ae610565366004611d83565b6110eb565b600061057660086111b7565b905090565b60006001600160e01b031982166380ac58cd60e01b14806105ac57506001600160e01b03198216635b5e139f60e01b145b806105bb57506105bb826111fa565b90505b919050565b6060600080546105d2906128df565b80601f01602080910402602001604051908101604052809291908181526020018280546105fe906128df565b801561064b5780601f106106205761010080835404028352916020019161064b565b820191906000526020600020905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b600061066082611213565b6106855760405162461bcd60e51b815260040161067c906125a5565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106ac8261083a565b9050806001600160a01b0316836001600160a01b031614156106e05760405162461bcd60e51b815260040161067c90612705565b806001600160a01b03166106f2611230565b6001600160a01b0316148061070e575061070e81610545611230565b61072a5760405162461bcd60e51b815260040161067c906123e1565b6107348383611234565b505050565b61074a610744611230565b826112a2565b6107665760405162461bcd60e51b815260040161067c9061278f565b610734838383611327565b610779611230565b6001600160a01b031661078a610d5a565b6001600160a01b0316146107b05760405162461bcd60e51b815260040161067c90612638565b6107b8611454565b565b61073483838360405180602001604052806000815250611067565b6107dd611230565b6001600160a01b03166107ee610d5a565b6001600160a01b0316146108145760405162461bcd60e51b815260040161067c90612638565b805161082790600e906020840190611c63565b5050565b60075460ff1690565b600a5481565b6000818152600260205260408120546001600160a01b0316806105bb5760405162461bcd60e51b815260040161067c90612488565b6000610879611230565b6001600160a01b031661088a610d5a565b6001600160a01b0316146108b05760405162461bcd60e51b815260040161067c90612638565b6108bb8260016114c2565b6105bb60086111b7565b60006108cf61082b565b156108ec5760405162461bcd60e51b815260040161067c906123b7565b60146108f860086111b7565b10156109165760405162461bcd60e51b815260040161067c90612309565b61012c8260ff1661092760086111b7565b610931919061282c565b111561094f5760405162461bcd60e51b815260040161067c906125f1565b60038260ff1611156109735760405162461bcd60e51b815260040161067c906127e0565b600c546009546001600160a01b03909116906323b872dd903390309061099d9060ff88169061287d565b6040518463ffffffff1660e01b81526004016109bb93929190612077565b602060405180830381600087803b1580156109d557600080fd5b505af11580156109e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0d9190611f12565b610a295760405162461bcd60e51b815260040161067c90612257565b6001600160a01b0383166000908152600d602052604081208054849290610a5490849060ff16612844565b82546101009290920a60ff8181021990931691831602179091556001600160a01b0385166000908152600d60205260409020546006911611159050610aab5760405162461bcd60e51b815260040161067c90612746565b610ab8838360ff166114c2565b610ac260086111b7565b9392505050565b60006001600160a01b038216610af15760405162461bcd60e51b815260040161067c9061243e565b506001600160a01b031660009081526003602052604090205490565b610b15611230565b6001600160a01b0316610b26610d5a565b6001600160a01b031614610b4c5760405162461bcd60e51b815260040161067c90612638565b60075460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360078054610100600160a81b0319169055565b610ba4611230565b6001600160a01b0316610bb5610d5a565b6001600160a01b031614610bdb5760405162461bcd60e51b815260040161067c90612638565b600b546040516001600160a01b03909116904790610bf890612060565b60006040518083038185875af1925050503d8060008114610734576040519150601f19603f3d011682016040523d82523d6000602084013e610734565b6000610c3f61082b565b15610c5c5760405162461bcd60e51b815260040161067c906123b7565b6014610c6860086111b7565b1015610c865760405162461bcd60e51b815260040161067c90612309565b61012c8260ff16610c9760086111b7565b610ca1919061282c565b1115610cbf5760405162461bcd60e51b815260040161067c906125f1565b60038260ff161115610ce35760405162461bcd60e51b815260040161067c906127e0565b8160ff16600a54610cf4919061287d565b341015610a295760405162461bcd60e51b815260040161067c9061233e565b610d1b611230565b6001600160a01b0316610d2c610d5a565b6001600160a01b031614610d525760405162461bcd60e51b815260040161067c90612638565b6107b861153a565b60075461010090046001600160a01b031690565b610d76611230565b6001600160a01b0316610d87610d5a565b6001600160a01b031614610dad5760405162461bcd60e51b815260040161067c90612638565b60098190556040517f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090610de2908390612823565b60405180910390a150565b6060600180546105d2906128df565b610e04611230565b6001600160a01b0316610e15610d5a565b6001600160a01b031614610e3b5760405162461bcd60e51b815260040161067c90612638565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610e65611230565b6001600160a01b0316826001600160a01b03161415610e965760405162461bcd60e51b815260040161067c906122d2565b8060056000610ea3611230565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ee7611230565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f1f91906120f1565b60405180910390a35050565b610f33611230565b6001600160a01b0316610f44610d5a565b6001600160a01b031614610f6a5760405162461bcd60e51b815260040161067c90612638565b600c546040516370a0823160e01b81526001600160a01b0390911690819063a9059cbb9061dead9083906370a0823190610fa8903090600401612063565b60206040518083038186803b158015610fc057600080fd5b505afa158015610fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff89190611fc4565b6040518363ffffffff1660e01b81526004016110159291906120d8565b602060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108279190611f12565b611078611072611230565b836112a2565b6110945760405162461bcd60e51b815260040161067c9061278f565b6110a084848484611595565b50505050565b60606105bb826115c8565b60095490565b60095481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6110f3611230565b6001600160a01b0316611104610d5a565b6001600160a01b03161461112a5760405162461bcd60e51b815260040161067c90612638565b6001600160a01b0381166111505760405162461bcd60e51b815260040161067c906121da565b6007546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b5490565b80546001019055565b3b151590565b6111d5838383610734565b6111dd61082b565b156107345760405162461bcd60e51b815260040161067c9061210f565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112698261083a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112ad82611213565b6112c95760405162461bcd60e51b815260040161067c9061236b565b60006112d48361083a565b9050806001600160a01b0316846001600160a01b0316148061130f5750836001600160a01b031661130484610655565b6001600160a01b0316145b8061131f575061131f81856110bd565b949350505050565b826001600160a01b031661133a8261083a565b6001600160a01b0316146113605760405162461bcd60e51b815260040161067c9061266d565b6001600160a01b0382166113865760405162461bcd60e51b815260040161067c9061228e565b6113918383836116e1565b61139c600082611234565b6001600160a01b03831660009081526003602052604081208054600192906113c590849061289c565b90915550506001600160a01b03821660009081526003602052604081208054600192906113f390849061282c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61145c61082b565b6114785760405162461bcd60e51b815260040161067c9061215a565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6114ab611230565b6040516114b89190612063565b60405180910390a1565b60005b81811015610734576114d760086111bb565b60006114e360086111b7565b90506114ef8482611711565b60006114fa8261172b565b60405160200161150a9190612037565b60405160208183030381529060405290506115258282611846565b505080806115329061291a565b9150506114c5565b61154261082b565b1561155f5760405162461bcd60e51b815260040161067c906123b7565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114ab611230565b6115a0848484611327565b6115ac8484848461188a565b6110a05760405162461bcd60e51b815260040161067c90612188565b60606115d382611213565b6115ef5760405162461bcd60e51b815260040161067c90612554565b60008281526006602052604081208054611608906128df565b80601f0160208091040260200160405190810160405280929190818152602001828054611634906128df565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b5050505050905060006116926119a5565b90508051600014156116a6575090506105be565b8151156116d85780826040516020016116c0929190612008565b604051602081830303815290604052925050506105be565b61131f846119b4565b6116e961082b565b156117065760405162461bcd60e51b815260040161067c906123b7565b6107348383836111ca565b610827828260405180602001604052806000815250611a36565b60608161175057506040805180820190915260018152600360fc1b60208201526105be565b8160005b811561177a57806117648161291a565b91506117739050600a83612869565b9150611754565b60008167ffffffffffffffff8111156117a357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156117cd576020820181803683370190505b5090505b841561131f576117e260018361289c565b91506117ef600a86612935565b6117fa90603061282c565b60f81b81838151811061181d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061183f600a86612869565b94506117d1565b61184f82611213565b61186b5760405162461bcd60e51b815260040161067c906124d1565b6000828152600660209081526040909120825161073492840190611c63565b600061189e846001600160a01b03166111c4565b1561199a57836001600160a01b031663150b7a026118ba611230565b8786866040518563ffffffff1660e01b81526004016118dc949392919061209b565b602060405180830381600087803b1580156118f657600080fd5b505af1925050508015611926575060408051601f3d908101601f1916820190925261192391810190611f4a565b60015b611980573d808015611954576040519150601f19603f3d011682016040523d82523d6000602084013e611959565b606091505b5080516119785760405162461bcd60e51b815260040161067c90612188565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061131f565b506001949350505050565b6060600e80546105d2906128df565b60606119bf82611213565b6119db5760405162461bcd60e51b815260040161067c906126b6565b60006119e56119a5565b90506000815111611a055760405180602001604052806000815250610ac2565b80611a0f84611a69565b604051602001611a20929190612008565b6040516020818303038152906040529392505050565b611a408383611b84565b611a4d600084848461188a565b6107345760405162461bcd60e51b815260040161067c90612188565b606081611a8e57506040805180820190915260018152600360fc1b60208201526105be565b8160005b8115611ab85780611aa28161291a565b9150611ab19050600a83612869565b9150611a92565b60008167ffffffffffffffff811115611ae157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b0b576020820181803683370190505b5090505b841561131f57611b2060018361289c565b9150611b2d600a86612935565b611b3890603061282c565b60f81b818381518110611b5b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b7d600a86612869565b9450611b0f565b6001600160a01b038216611baa5760405162461bcd60e51b815260040161067c9061251f565b611bb381611213565b15611bd05760405162461bcd60e51b815260040161067c90612220565b611bdc600083836116e1565b6001600160a01b0382166000908152600360205260408120805460019290611c0590849061282c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611c6f906128df565b90600052602060002090601f016020900481019282611c915760008555611cd7565b82601f10611caa57805160ff1916838001178555611cd7565b82800160010185558215611cd7579182015b82811115611cd7578251825591602001919060010190611cbc565b50611ce3929150611ce7565b5090565b5b80821115611ce35760008155600101611ce8565b600067ffffffffffffffff80841115611d1757611d17612975565b604051601f8501601f191681016020018281118282101715611d3b57611d3b612975565b604052848152915081838501861015611d5357600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146105be57600080fd5b600060208284031215611d94578081fd5b610ac282611d6c565b60008060408385031215611daf578081fd5b611db883611d6c565b9150611dc660208401611d6c565b90509250929050565b600080600060608486031215611de3578081fd5b611dec84611d6c565b9250611dfa60208501611d6c565b9150604084013590509250925092565b60008060008060808587031215611e1f578081fd5b611e2885611d6c565b9350611e3660208601611d6c565b925060408501359150606085013567ffffffffffffffff811115611e58578182fd5b8501601f81018713611e68578182fd5b611e7787823560208401611cfc565b91505092959194509250565b60008060408385031215611e95578182fd5b611e9e83611d6c565b91506020830135611eae8161298b565b809150509250929050565b60008060408385031215611ecb578182fd5b611ed483611d6c565b946020939093013593505050565b60008060408385031215611ef4578182fd5b611efd83611d6c565b9150602083013560ff81168114611eae578182fd5b600060208284031215611f23578081fd5b8151610ac28161298b565b600060208284031215611f3f578081fd5b8135610ac28161299c565b600060208284031215611f5b578081fd5b8151610ac28161299c565b600060208284031215611f77578081fd5b813567ffffffffffffffff811115611f8d578182fd5b8201601f81018413611f9d578182fd5b61131f84823560208401611cfc565b600060208284031215611fbd578081fd5b5035919050565b600060208284031215611fd5578081fd5b5051919050565b60008151808452611ff48160208601602086016128b3565b601f01601f19169290920160200192915050565b6000835161201a8184602088016128b3565b83519083019061202e8183602088016128b3565b01949350505050565b600082516120498184602087016128b3565b64173539b7b760d91b920191825250600501919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120ce90830184611fdc565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b600060208252610ac26020830184611fdc565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601a908201527f436f756c64206e6f74207472616e7366657220746f6b656e732e000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252818101527f4e65656420746f206d696e74207265736572766564206e667473206669727374604082015260600190565b6020808252601390820152722332b29034b9903737ba1031b7b93932b1ba1760691b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526027908201527f4d6178696d756d20616d6f756e74206f6620746f6b656e7320616c7265616479604082015266081b5a5b9d195960ca1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526029908201527f596f752063616e74206d696e74206d6f7265207468616e203620666f72206f6e60408201526832903bb0b63632ba1760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526023908201527f596f752063616e74206d696e74206d6f7265207468616e203320617420612074604082015262696d6560e81b606082015260800190565b90815260200190565b6000821982111561283f5761283f612949565b500190565b600060ff821660ff84168060ff0382111561286157612861612949565b019392505050565b6000826128785761287861295f565b500490565b600081600019048311821515161561289757612897612949565b500290565b6000828210156128ae576128ae612949565b500390565b60005b838110156128ce5781810151838201526020016128b6565b838111156110a05750506000910152565b6002810460018216806128f357607f821691505b6020821081141561291457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561292e5761292e612949565b5060010190565b6000826129445761294461295f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461299957600080fd5b50565b6001600160e01b03198116811461299957600080fdfea26469706673582212203a0f1e90a2a4f226724d93e93443f9caab5ffd06bf08de56830c78d9b13ab59864736f6c63430008000033534e415020554e495645525345207370656369616c2065646974696f6e20636f7665722c204973737565203034697066733a2f2f516d63394b796b756e584446397a6238693350636b6f53764d773570633548414d5a414a4a52596d68667a65634c2f
Deployed Bytecode
0x6080604052600436106101db5760003560e01c8063715018a611610102578063a22cb46511610095578063ced72f8711610064578063ced72f8714610500578063ddca3f4314610515578063e985e9c51461052a578063f2fde38b1461054a576101e2565b8063a22cb4651461048b578063a9371480146104ab578063b88d4fde146104c0578063c87b56dd146104e0576101e2565b80638da5cb5b116100d15780638da5cb5b146104215780639012c4a81461043657806395d89b4114610456578063a16a3e5a1461046b576101e2565b8063715018a6146103cf578063793cd71e146103e45780637f6db985146103f95780638456cb591461040c576101e2565b806342842e0e1161017a5780636352211e116101495780636352211e1461034f57806363fe5cca1461036f578063691562a01461038f57806370a08231146103af576101e2565b806342842e0e146102e557806355f804b3146103055780635c975abb146103255780635e9dc44c1461033a576101e2565b8063081812fc116101b6578063081812fc14610261578063095ea7b31461028e57806323b872dd146102b05780633f4ba83a146102d0576101e2565b80629a9b7b146101e757806301ffc9a71461021257806306fdde031461023f576101e2565b366101e257005b600080fd5b3480156101f357600080fd5b506101fc61056a565b6040516102099190612823565b60405180910390f35b34801561021e57600080fd5b5061023261022d366004611f2e565b61057b565b60405161020991906120f1565b34801561024b57600080fd5b506102546105c3565b60405161020991906120fc565b34801561026d57600080fd5b5061028161027c366004611fac565b610655565b6040516102099190612063565b34801561029a57600080fd5b506102ae6102a9366004611eb9565b6106a1565b005b3480156102bc57600080fd5b506102ae6102cb366004611dcf565b610739565b3480156102dc57600080fd5b506102ae610771565b3480156102f157600080fd5b506102ae610300366004611dcf565b6107ba565b34801561031157600080fd5b506102ae610320366004611f66565b6107d5565b34801561033157600080fd5b5061023261082b565b34801561034657600080fd5b506101fc610834565b34801561035b57600080fd5b5061028161036a366004611fac565b61083a565b34801561037b57600080fd5b506101fc61038a366004611d83565b61086f565b34801561039b57600080fd5b506101fc6103aa366004611ee2565b6108c5565b3480156103bb57600080fd5b506101fc6103ca366004611d83565b610ac9565b3480156103db57600080fd5b506102ae610b0d565b3480156103f057600080fd5b506102ae610b9c565b6101fc610407366004611ee2565b610c35565b34801561041857600080fd5b506102ae610d13565b34801561042d57600080fd5b50610281610d5a565b34801561044257600080fd5b506102ae610451366004611fac565b610d6e565b34801561046257600080fd5b50610254610ded565b34801561047757600080fd5b506102ae610486366004611d83565b610dfc565b34801561049757600080fd5b506102ae6104a6366004611e83565b610e5d565b3480156104b757600080fd5b506102ae610f2b565b3480156104cc57600080fd5b506102ae6104db366004611e0a565b611067565b3480156104ec57600080fd5b506102546104fb366004611fac565b6110a6565b34801561050c57600080fd5b506101fc6110b1565b34801561052157600080fd5b506101fc6110b7565b34801561053657600080fd5b50610232610545366004611d9d565b6110bd565b34801561055657600080fd5b506102ae610565366004611d83565b6110eb565b600061057660086111b7565b905090565b60006001600160e01b031982166380ac58cd60e01b14806105ac57506001600160e01b03198216635b5e139f60e01b145b806105bb57506105bb826111fa565b90505b919050565b6060600080546105d2906128df565b80601f01602080910402602001604051908101604052809291908181526020018280546105fe906128df565b801561064b5780601f106106205761010080835404028352916020019161064b565b820191906000526020600020905b81548152906001019060200180831161062e57829003601f168201915b5050505050905090565b600061066082611213565b6106855760405162461bcd60e51b815260040161067c906125a5565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006106ac8261083a565b9050806001600160a01b0316836001600160a01b031614156106e05760405162461bcd60e51b815260040161067c90612705565b806001600160a01b03166106f2611230565b6001600160a01b0316148061070e575061070e81610545611230565b61072a5760405162461bcd60e51b815260040161067c906123e1565b6107348383611234565b505050565b61074a610744611230565b826112a2565b6107665760405162461bcd60e51b815260040161067c9061278f565b610734838383611327565b610779611230565b6001600160a01b031661078a610d5a565b6001600160a01b0316146107b05760405162461bcd60e51b815260040161067c90612638565b6107b8611454565b565b61073483838360405180602001604052806000815250611067565b6107dd611230565b6001600160a01b03166107ee610d5a565b6001600160a01b0316146108145760405162461bcd60e51b815260040161067c90612638565b805161082790600e906020840190611c63565b5050565b60075460ff1690565b600a5481565b6000818152600260205260408120546001600160a01b0316806105bb5760405162461bcd60e51b815260040161067c90612488565b6000610879611230565b6001600160a01b031661088a610d5a565b6001600160a01b0316146108b05760405162461bcd60e51b815260040161067c90612638565b6108bb8260016114c2565b6105bb60086111b7565b60006108cf61082b565b156108ec5760405162461bcd60e51b815260040161067c906123b7565b60146108f860086111b7565b10156109165760405162461bcd60e51b815260040161067c90612309565b61012c8260ff1661092760086111b7565b610931919061282c565b111561094f5760405162461bcd60e51b815260040161067c906125f1565b60038260ff1611156109735760405162461bcd60e51b815260040161067c906127e0565b600c546009546001600160a01b03909116906323b872dd903390309061099d9060ff88169061287d565b6040518463ffffffff1660e01b81526004016109bb93929190612077565b602060405180830381600087803b1580156109d557600080fd5b505af11580156109e9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a0d9190611f12565b610a295760405162461bcd60e51b815260040161067c90612257565b6001600160a01b0383166000908152600d602052604081208054849290610a5490849060ff16612844565b82546101009290920a60ff8181021990931691831602179091556001600160a01b0385166000908152600d60205260409020546006911611159050610aab5760405162461bcd60e51b815260040161067c90612746565b610ab8838360ff166114c2565b610ac260086111b7565b9392505050565b60006001600160a01b038216610af15760405162461bcd60e51b815260040161067c9061243e565b506001600160a01b031660009081526003602052604090205490565b610b15611230565b6001600160a01b0316610b26610d5a565b6001600160a01b031614610b4c5760405162461bcd60e51b815260040161067c90612638565b60075460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360078054610100600160a81b0319169055565b610ba4611230565b6001600160a01b0316610bb5610d5a565b6001600160a01b031614610bdb5760405162461bcd60e51b815260040161067c90612638565b600b546040516001600160a01b03909116904790610bf890612060565b60006040518083038185875af1925050503d8060008114610734576040519150601f19603f3d011682016040523d82523d6000602084013e610734565b6000610c3f61082b565b15610c5c5760405162461bcd60e51b815260040161067c906123b7565b6014610c6860086111b7565b1015610c865760405162461bcd60e51b815260040161067c90612309565b61012c8260ff16610c9760086111b7565b610ca1919061282c565b1115610cbf5760405162461bcd60e51b815260040161067c906125f1565b60038260ff161115610ce35760405162461bcd60e51b815260040161067c906127e0565b8160ff16600a54610cf4919061287d565b341015610a295760405162461bcd60e51b815260040161067c9061233e565b610d1b611230565b6001600160a01b0316610d2c610d5a565b6001600160a01b031614610d525760405162461bcd60e51b815260040161067c90612638565b6107b861153a565b60075461010090046001600160a01b031690565b610d76611230565b6001600160a01b0316610d87610d5a565b6001600160a01b031614610dad5760405162461bcd60e51b815260040161067c90612638565b60098190556040517f66cbca4f3c64fecf1dcb9ce094abcf7f68c3450a1d4e3a8e917dd621edb4ebe090610de2908390612823565b60405180910390a150565b6060600180546105d2906128df565b610e04611230565b6001600160a01b0316610e15610d5a565b6001600160a01b031614610e3b5760405162461bcd60e51b815260040161067c90612638565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610e65611230565b6001600160a01b0316826001600160a01b03161415610e965760405162461bcd60e51b815260040161067c906122d2565b8060056000610ea3611230565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610ee7611230565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f1f91906120f1565b60405180910390a35050565b610f33611230565b6001600160a01b0316610f44610d5a565b6001600160a01b031614610f6a5760405162461bcd60e51b815260040161067c90612638565b600c546040516370a0823160e01b81526001600160a01b0390911690819063a9059cbb9061dead9083906370a0823190610fa8903090600401612063565b60206040518083038186803b158015610fc057600080fd5b505afa158015610fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff89190611fc4565b6040518363ffffffff1660e01b81526004016110159291906120d8565b602060405180830381600087803b15801561102f57600080fd5b505af1158015611043573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108279190611f12565b611078611072611230565b836112a2565b6110945760405162461bcd60e51b815260040161067c9061278f565b6110a084848484611595565b50505050565b60606105bb826115c8565b60095490565b60095481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6110f3611230565b6001600160a01b0316611104610d5a565b6001600160a01b03161461112a5760405162461bcd60e51b815260040161067c90612638565b6001600160a01b0381166111505760405162461bcd60e51b815260040161067c906121da565b6007546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b5490565b80546001019055565b3b151590565b6111d5838383610734565b6111dd61082b565b156107345760405162461bcd60e51b815260040161067c9061210f565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906112698261083a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006112ad82611213565b6112c95760405162461bcd60e51b815260040161067c9061236b565b60006112d48361083a565b9050806001600160a01b0316846001600160a01b0316148061130f5750836001600160a01b031661130484610655565b6001600160a01b0316145b8061131f575061131f81856110bd565b949350505050565b826001600160a01b031661133a8261083a565b6001600160a01b0316146113605760405162461bcd60e51b815260040161067c9061266d565b6001600160a01b0382166113865760405162461bcd60e51b815260040161067c9061228e565b6113918383836116e1565b61139c600082611234565b6001600160a01b03831660009081526003602052604081208054600192906113c590849061289c565b90915550506001600160a01b03821660009081526003602052604081208054600192906113f390849061282c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61145c61082b565b6114785760405162461bcd60e51b815260040161067c9061215a565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6114ab611230565b6040516114b89190612063565b60405180910390a1565b60005b81811015610734576114d760086111bb565b60006114e360086111b7565b90506114ef8482611711565b60006114fa8261172b565b60405160200161150a9190612037565b60405160208183030381529060405290506115258282611846565b505080806115329061291a565b9150506114c5565b61154261082b565b1561155f5760405162461bcd60e51b815260040161067c906123b7565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114ab611230565b6115a0848484611327565b6115ac8484848461188a565b6110a05760405162461bcd60e51b815260040161067c90612188565b60606115d382611213565b6115ef5760405162461bcd60e51b815260040161067c90612554565b60008281526006602052604081208054611608906128df565b80601f0160208091040260200160405190810160405280929190818152602001828054611634906128df565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b5050505050905060006116926119a5565b90508051600014156116a6575090506105be565b8151156116d85780826040516020016116c0929190612008565b604051602081830303815290604052925050506105be565b61131f846119b4565b6116e961082b565b156117065760405162461bcd60e51b815260040161067c906123b7565b6107348383836111ca565b610827828260405180602001604052806000815250611a36565b60608161175057506040805180820190915260018152600360fc1b60208201526105be565b8160005b811561177a57806117648161291a565b91506117739050600a83612869565b9150611754565b60008167ffffffffffffffff8111156117a357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156117cd576020820181803683370190505b5090505b841561131f576117e260018361289c565b91506117ef600a86612935565b6117fa90603061282c565b60f81b81838151811061181d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061183f600a86612869565b94506117d1565b61184f82611213565b61186b5760405162461bcd60e51b815260040161067c906124d1565b6000828152600660209081526040909120825161073492840190611c63565b600061189e846001600160a01b03166111c4565b1561199a57836001600160a01b031663150b7a026118ba611230565b8786866040518563ffffffff1660e01b81526004016118dc949392919061209b565b602060405180830381600087803b1580156118f657600080fd5b505af1925050508015611926575060408051601f3d908101601f1916820190925261192391810190611f4a565b60015b611980573d808015611954576040519150601f19603f3d011682016040523d82523d6000602084013e611959565b606091505b5080516119785760405162461bcd60e51b815260040161067c90612188565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061131f565b506001949350505050565b6060600e80546105d2906128df565b60606119bf82611213565b6119db5760405162461bcd60e51b815260040161067c906126b6565b60006119e56119a5565b90506000815111611a055760405180602001604052806000815250610ac2565b80611a0f84611a69565b604051602001611a20929190612008565b6040516020818303038152906040529392505050565b611a408383611b84565b611a4d600084848461188a565b6107345760405162461bcd60e51b815260040161067c90612188565b606081611a8e57506040805180820190915260018152600360fc1b60208201526105be565b8160005b8115611ab85780611aa28161291a565b9150611ab19050600a83612869565b9150611a92565b60008167ffffffffffffffff811115611ae157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b0b576020820181803683370190505b5090505b841561131f57611b2060018361289c565b9150611b2d600a86612935565b611b3890603061282c565b60f81b818381518110611b5b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b7d600a86612869565b9450611b0f565b6001600160a01b038216611baa5760405162461bcd60e51b815260040161067c9061251f565b611bb381611213565b15611bd05760405162461bcd60e51b815260040161067c90612220565b611bdc600083836116e1565b6001600160a01b0382166000908152600360205260408120805460019290611c0590849061282c565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611c6f906128df565b90600052602060002090601f016020900481019282611c915760008555611cd7565b82601f10611caa57805160ff1916838001178555611cd7565b82800160010185558215611cd7579182015b82811115611cd7578251825591602001919060010190611cbc565b50611ce3929150611ce7565b5090565b5b80821115611ce35760008155600101611ce8565b600067ffffffffffffffff80841115611d1757611d17612975565b604051601f8501601f191681016020018281118282101715611d3b57611d3b612975565b604052848152915081838501861015611d5357600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b03811681146105be57600080fd5b600060208284031215611d94578081fd5b610ac282611d6c565b60008060408385031215611daf578081fd5b611db883611d6c565b9150611dc660208401611d6c565b90509250929050565b600080600060608486031215611de3578081fd5b611dec84611d6c565b9250611dfa60208501611d6c565b9150604084013590509250925092565b60008060008060808587031215611e1f578081fd5b611e2885611d6c565b9350611e3660208601611d6c565b925060408501359150606085013567ffffffffffffffff811115611e58578182fd5b8501601f81018713611e68578182fd5b611e7787823560208401611cfc565b91505092959194509250565b60008060408385031215611e95578182fd5b611e9e83611d6c565b91506020830135611eae8161298b565b809150509250929050565b60008060408385031215611ecb578182fd5b611ed483611d6c565b946020939093013593505050565b60008060408385031215611ef4578182fd5b611efd83611d6c565b9150602083013560ff81168114611eae578182fd5b600060208284031215611f23578081fd5b8151610ac28161298b565b600060208284031215611f3f578081fd5b8135610ac28161299c565b600060208284031215611f5b578081fd5b8151610ac28161299c565b600060208284031215611f77578081fd5b813567ffffffffffffffff811115611f8d578182fd5b8201601f81018413611f9d578182fd5b61131f84823560208401611cfc565b600060208284031215611fbd578081fd5b5035919050565b600060208284031215611fd5578081fd5b5051919050565b60008151808452611ff48160208601602086016128b3565b601f01601f19169290920160200192915050565b6000835161201a8184602088016128b3565b83519083019061202e8183602088016128b3565b01949350505050565b600082516120498184602087016128b3565b64173539b7b760d91b920191825250600501919050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120ce90830184611fdc565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b600060208252610ac26020830184611fdc565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601a908201527f436f756c64206e6f74207472616e7366657220746f6b656e732e000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252818101527f4e65656420746f206d696e74207265736572766564206e667473206669727374604082015260600190565b6020808252601390820152722332b29034b9903737ba1031b7b93932b1ba1760691b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526027908201527f4d6178696d756d20616d6f756e74206f6620746f6b656e7320616c7265616479604082015266081b5a5b9d195960ca1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526029908201527f596f752063616e74206d696e74206d6f7265207468616e203620666f72206f6e60408201526832903bb0b63632ba1760b91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526023908201527f596f752063616e74206d696e74206d6f7265207468616e203320617420612074604082015262696d6560e81b606082015260800190565b90815260200190565b6000821982111561283f5761283f612949565b500190565b600060ff821660ff84168060ff0382111561286157612861612949565b019392505050565b6000826128785761287861295f565b500490565b600081600019048311821515161561289757612897612949565b500290565b6000828210156128ae576128ae612949565b500390565b60005b838110156128ce5781810151838201526020016128b6565b838111156110a05750506000910152565b6002810460018216806128f357607f821691505b6020821081141561291457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561292e5761292e612949565b5060010190565b6000826129445761294461295f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461299957600080fd5b50565b6001600160e01b03198116811461299957600080fdfea26469706673582212203a0f1e90a2a4f226724d93e93443f9caab5ffd06bf08de56830c78d9b13ab59864736f6c63430008000033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.