Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 52 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 15476522 | 851 days ago | IN | 0 ETH | 0.000226 | ||||
Delist | 14971948 | 932 days ago | IN | 0 ETH | 0.00224962 | ||||
List | 14529418 | 1004 days ago | IN | 0.025 ETH | 0.00842435 | ||||
List | 14511669 | 1006 days ago | IN | 0.025 ETH | 0.00526572 | ||||
List | 14500137 | 1008 days ago | IN | 0.025 ETH | 0.00525804 | ||||
Delist | 14479342 | 1011 days ago | IN | 0 ETH | 0.00204555 | ||||
Set Approval For... | 14476667 | 1012 days ago | IN | 0 ETH | 0.00303195 | ||||
List | 14476354 | 1012 days ago | IN | 0.025 ETH | 0.01209885 | ||||
List | 14476241 | 1012 days ago | IN | 0.025 ETH | 0.01498932 | ||||
Set Listings Ope... | 14474827 | 1012 days ago | IN | 0 ETH | 0.00135092 | ||||
Set Max Supply | 14455860 | 1015 days ago | IN | 0 ETH | 0.00154927 | ||||
Set Mint Open | 14455859 | 1015 days ago | IN | 0 ETH | 0.00161508 | ||||
Mint | 14455856 | 1015 days ago | IN | 0 ETH | 0.02451982 | ||||
Transfer From | 14447175 | 1016 days ago | IN | 0 ETH | 0.00142277 | ||||
Transfer From | 14447172 | 1016 days ago | IN | 0 ETH | 0.00138642 | ||||
Transfer From | 14447171 | 1016 days ago | IN | 0 ETH | 0.00166022 | ||||
Withdraw | 14443163 | 1017 days ago | IN | 0 ETH | 0.00149212 | ||||
Safe Transfer Fr... | 14402558 | 1023 days ago | IN | 0 ETH | 0.00186565 | ||||
Safe Transfer Fr... | 14402536 | 1023 days ago | IN | 0 ETH | 0.00193927 | ||||
Mint | 14400377 | 1024 days ago | IN | 0.2 ETH | 0.01387153 | ||||
Mint | 14400341 | 1024 days ago | IN | 0.1 ETH | 0.00869766 | ||||
Mint | 14400335 | 1024 days ago | IN | 0 ETH | 0.03080807 | ||||
Mint | 14399975 | 1024 days ago | IN | 0 ETH | 0.09016458 | ||||
Safe Transfer Fr... | 14398707 | 1024 days ago | IN | 0 ETH | 0.00618247 | ||||
Mint | 14396575 | 1024 days ago | IN | 0.15 ETH | 0.00500047 |
Loading...
Loading
Contract Name:
Snowballs
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /// @title Snowballs /// @notice Initial states of small significance that build upon themselves, becoming larger. /// @author @waynos_eth pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/utils/Counters.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/Base64.sol'; import './DSMath.sol'; contract Snowballs is ERC721, Ownable, ReentrancyGuard, DSMath { using Counters for Counters.Counter; Counters.Counter private _tokenIds; Counters.Counter private _tokensListed; uint256 public maxSupply = 5337; uint256 public minMintPrice = 0.1 ether; uint256 public listingPrice = 0.025 ether; uint256 public commissionPercent = 10; address public intermediary = 0xB4AE9006603A3EcE1CDf6762e5A80BfC941610b9; bool public mintOpen = false; bool public listingsOpen = false; string public externalUrl = 'https://thesnowball.xyz/token/'; struct Snowball { uint256 tokenId; address payable owner; address payable seller; uint256 price; uint256 principal; uint256 effectiveFrom; uint16 rate; } mapping( uint256 => Snowball ) private idToSnowball; constructor() ERC721( "Snowballs", "SNWBLS" ) {} modifier exists( uint256 tokenId ) { require( _exists( tokenId ), "Snowball does not exist" ); _; } modifier tokenOwner( uint256 tokenId ) { require( idToSnowball[tokenId].owner == _msgSender(), "Not the token owner" ); _; } modifier listed( uint256 tokenId ) { require( idToSnowball[tokenId].price > 0, "Snowball not listed" ); _; } modifier notListed( uint256 tokenId ) { require( idToSnowball[tokenId].price == 0, "Snowball is listed" ); _; } function mint( address[] memory _address, uint256[] memory _principal ) public payable nonReentrant { require( mintOpen, "Mint is not open" ); require( _address.length == _principal.length, "Argument lengths must be the same" ); require( _address.length > 0, "Qty must be greater than zero" ); require( add( getSupply(), _address.length ) <= maxSupply, "Qty exceeds supply" ); address sender = _msgSender(); address owner = owner(); if( sender != owner ) { uint256 sum; for( uint256 i = 0; i < _principal.length; i++ ) { sum += _principal[i]; } require( msg.value == sum, "Payment is incorrect" ); } for( uint256 i = 0; i < _principal.length; i++ ) { if( sender != owner ) { require( _principal[i] >= minMintPrice, "Payment is incorrect"); } _tokenIds.increment(); uint256 tokenId = _tokenIds.current(); _safeMint( _address[i], tokenId ); idToSnowball[tokenId] = Snowball( tokenId, payable( address( _address[i] ) ), payable( address( 0 ) ), 0, _principal[i], block.timestamp, uint16( add( ( uint256( keccak256( abi.encodePacked( block.timestamp, block.difficulty, tokenId, _address[i] ) ) ) ) % 251, 500 ) ) ); } } /* * Marketplace */ function list( uint256 tokenId, uint256 price ) public payable nonReentrant exists( tokenId ) tokenOwner( tokenId ) notListed( tokenId ) { require( listingsOpen, "Listings are not open" ); require( msg.value == listingPrice, "Payment is incorrect" ); idToSnowball[tokenId].seller = payable( _msgSender() ); idToSnowball[tokenId].price = max( getCompoundValue( tokenId ), price ); _tokensListed.increment(); _safeTransfer( _msgSender(), intermediary, tokenId, "" ); } function delist( uint256 tokenId ) public listed( tokenId ) { require( idToSnowball[tokenId].seller == _msgSender(), "Only the seller can delist" ); idToSnowball[tokenId].seller = payable( address( 0 ) ); idToSnowball[tokenId].price = 0; _tokensListed.decrement(); _safeTransfer( intermediary, _msgSender(), tokenId, "" ); } function recordSale( uint256 tokenId ) internal listed( tokenId ) { uint256 commission = mul( msg.value / 100, commissionPercent ); payable( idToSnowball[tokenId].seller ).transfer( msg.value - commission ); idToSnowball[tokenId].seller = payable( address( 0 ) ); idToSnowball[tokenId].principal = msg.value; idToSnowball[tokenId].price = 0; idToSnowball[tokenId].effectiveFrom = block.timestamp; _tokensListed.decrement(); } function sale( uint256 tokenId ) external payable nonReentrant { require( intermediary == _msgSender(), "Only the intermediary can record a sale" ); recordSale( tokenId ); } function buy( uint256 tokenId ) public payable nonReentrant { require( _msgSender() != idToSnowball[tokenId].owner, "Cannot sell to self" ); require( msg.value == idToSnowball[tokenId].price, "Payment is incorrect" ); recordSale( tokenId ); _safeTransfer( intermediary, _msgSender(), tokenId, "" ); } function decelerate( uint256 tokenId ) public tokenOwner( tokenId ) notListed( tokenId ) { idToSnowball[tokenId].principal = getCompoundValue( tokenId ); idToSnowball[tokenId].rate = uint16( 15 ); idToSnowball[tokenId].effectiveFrom = block.timestamp; } function supplement( uint256 tokenId ) public payable nonReentrant tokenOwner( tokenId ) notListed( tokenId ) { require( msg.value > 0, "Value must be greater than zero" ); idToSnowball[tokenId].principal = add( getCompoundValue( tokenId ), msg.value ); idToSnowball[tokenId].effectiveFrom = block.timestamp; } /* * Getters */ function get( uint256 tokenId ) public view exists( tokenId ) returns ( Snowball memory ) { return idToSnowball[tokenId]; } function getSupply() public view returns ( uint256 ) { return _tokenIds.current(); } function getSvg( uint256 tokenId ) public view exists( tokenId ) returns ( string memory ) { uint256 ethVal = idToSnowball[tokenId].price; if( ethVal == 0 ) { ethVal = getCompoundValue( tokenId ); } uint256 svgVal = ( ( ( ethVal - minMintPrice ) * ( 500 - 4 ) ) / ( 50 ether - minMintPrice ) ) + 4; return string( abi.encodePacked( '<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">', '<rect x="0" y="0" width="1000" height="1000" fill="#000"/>', '<circle fill="#FFF" cx="500" cy="500" r="', Strings.toString( min( svgVal, 500 ) ), '"/>', '</svg>' ) ); } function getCompoundValue( uint256 tokenId ) public view exists( tokenId ) returns ( uint256 ) { uint256 rate = mul( 0.01 ether, idToSnowball[tokenId].rate ); uint256 yearlyRate = add( mul( 1 ether, 10 ** 9 ), rdiv( mul( rate, 10 ** 9 ), mul( mul( 365, 86400 ), 10 ** 27 ) ) ); return rmul( idToSnowball[tokenId].principal, rpow( yearlyRate, sub( block.timestamp, idToSnowball[tokenId].effectiveFrom ) ) ); } function getListed() public view returns ( Snowball[] memory ) { uint256 listedCount = _tokensListed.current(); uint256 currentIndex = 0; Snowball[] memory snowballs = new Snowball[]( listedCount ); for( uint256 i = 0; i < listedCount; i++ ) { if( idToSnowball[i + 1].price > 0 ) { Snowball storage snowball = idToSnowball[i + 1]; snowballs[currentIndex] = snowball; currentIndex += 1; } } return snowballs; } function getNotListed() public view returns ( Snowball[] memory ) { uint256 supply = getSupply(); uint256 notListedCount = supply - _tokensListed.current(); uint256 currentIndex = 0; Snowball[] memory snowballs = new Snowball[]( notListedCount ); for( uint256 i = 0; i < notListedCount; i++ ) { if( idToSnowball[i + 1].price == 0 ) { Snowball storage snowball = idToSnowball[i + 1]; snowballs[currentIndex] = snowball; currentIndex += 1; } } return snowballs; } function getMine() public view returns ( Snowball[] memory ) { uint256 supply = getSupply(); uint256 itemCount = 0; uint256 currentIndex = 0; for( uint256 i = 0; i < supply; i++ ) { if( idToSnowball[i + 1].owner == _msgSender() || idToSnowball[i + 1].seller == _msgSender() ) { itemCount += 1; } } Snowball[] memory snowballs = new Snowball[]( itemCount ); for( uint256 i = 0; i < supply; i++ ) { if( idToSnowball[i + 1].owner == _msgSender() || idToSnowball[i + 1].seller == _msgSender() ) { Snowball storage snowball = idToSnowball[i + 1]; snowballs[currentIndex] = snowball; currentIndex += 1; } } return snowballs; } /* * Setters */ function setMintOpen( bool state ) external onlyOwner { mintOpen = state; } function setListingsOpen( bool state ) external onlyOwner { listingsOpen = state; } function setMinMintPrice( uint256 price ) external onlyOwner { minMintPrice = price; } function setListingPrice( uint256 price ) external onlyOwner { listingPrice = price; } function setCommissionPercent( uint256 percent ) external onlyOwner { require( percent < 11, "Commission cannot be more than 10%" ); commissionPercent = percent; } function setIntermediary( address _address ) external onlyOwner { intermediary = _address; } function setMaxSupply( uint256 supply ) external onlyOwner { maxSupply = supply; } function setExternalUrl( string memory url ) external onlyOwner { externalUrl = url; } /* * Overrides */ function tokenURI( uint256 tokenId ) public view override exists( tokenId ) returns ( string memory ) { return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( string( abi.encodePacked( '{"name":"Snowball #', Strings.toString( tokenId ), '","description":"An initial state of small significance that builds upon itself, becoming larger.","image":"data:image/svg+xml;base64,', Base64.encode( bytes( getSvg( tokenId ) ) ), '","external_url":"', externalUrl, Strings.toString( tokenId ), '","value":"', Strings.toString( getCompoundValue( tokenId ) ), '","attributes":', string( abi.encodePacked( '[{"trait_type":"Principal","value":"', Strings.toString( idToSnowball[tokenId].principal ), '"},{"trait_type":"Rate","value":"', Strings.toString( idToSnowball[tokenId].rate ), '"},{"trait_type":"Effective From","display_type":"date","value":"', Strings.toString( idToSnowball[tokenId].effectiveFrom ), '"}]' ) ), '}' ) ) ) ) ) ); } function _transfer( address from, address to, uint256 tokenId ) internal virtual override { idToSnowball[tokenId].owner = payable( address( to ) ); super._transfer( from, to, tokenId ); } function approve( address to, uint256 tokenId ) public virtual override { require( _msgSender() == intermediary, "Permission denied" ); super.approve( to, tokenId ); } function setApprovalForAll( address operator, bool approved ) public virtual override { require( _msgSender() == intermediary, "Permission denied" ); super.setApprovalForAll( operator, approved ); } /* * Misc */ function withdraw() external onlyOwner { uint256 amount = address( this ).balance; require( amount > 0, "Nothing to withdraw" ); payable( address( owner() ) ).transfer( amount ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: GPL-3.0-or-later /// @title DSMath /// @notice Mixin for inline numerical wizardry /// @author Dapphub <https://github.com/dapphub/ds-math> pragma solidity >0.4.13; contract DSMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, "ds-math-add-overflow"); } function sub(uint x, uint y) internal pure returns (uint z) { require((z = x - y) <= x, "ds-math-sub-underflow"); } function mul(uint x, uint y) internal pure returns (uint z) { require(y == 0 || (z = x * y) / y == x, "ds-math-mul-overflow"); } function min(uint x, uint y) internal pure returns (uint z) { return x <= y ? x : y; } function max(uint x, uint y) internal pure returns (uint z) { return x >= y ? x : y; } function imin(int x, int y) internal pure returns (int z) { return x <= y ? x : y; } function imax(int x, int y) internal pure returns (int z) { return x >= y ? x : y; } uint constant WAD = 10 ** 18; uint constant RAY = 10 ** 27; function wmul(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, y), WAD / 2) / WAD; } function rmul(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, y), RAY / 2) / RAY; } function wdiv(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, WAD), y / 2) / y; } function rdiv(uint x, uint y) internal pure returns (uint z) { z = add(mul(x, RAY), y / 2) / y; } function rpow(uint x, uint n) internal pure returns (uint z) { z = n % 2 != 0 ? x : RAY; for (n /= 2; n != 0; n /= 2) { x = rmul(x, x); if (n % 2 != 0) { z = rmul(z, x); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"commissionPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"decelerate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"delist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"externalUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"get","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"effectiveFrom","type":"uint256"},{"internalType":"uint16","name":"rate","type":"uint16"}],"internalType":"struct Snowballs.Snowball","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getCompoundValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getListed","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"effectiveFrom","type":"uint256"},{"internalType":"uint16","name":"rate","type":"uint16"}],"internalType":"struct Snowballs.Snowball[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMine","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"effectiveFrom","type":"uint256"},{"internalType":"uint16","name":"rate","type":"uint16"}],"internalType":"struct Snowballs.Snowball[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNotListed","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address payable","name":"owner","type":"address"},{"internalType":"address payable","name":"seller","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"effectiveFrom","type":"uint256"},{"internalType":"uint16","name":"rate","type":"uint16"}],"internalType":"struct Snowballs.Snowball[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSvg","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"intermediary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"list","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"listingPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"listingsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_address","type":"address[]"},{"internalType":"uint256[]","name":"_principal","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"sale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"percent","type":"uint256"}],"name":"setCommissionPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"setExternalUrl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setIntermediary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setListingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setListingsOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMinMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"supplement","outputs":[],"stateMutability":"payable","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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6114d9600a90815567016345785d8a0000600b556658d15e17628000600c55600d55600e80546001600160b01b03191673b4ae9006603a3ece1cdf6762e5a80bfc941610b917905560c0604052601e60808190527f68747470733a2f2f746865736e6f7762616c6c2e78797a2f746f6b656e2f000060a09081526200008891600f91906200017a565b503480156200009657600080fd5b506040805180820182526009815268536e6f7762616c6c7360b81b602080830191825283518085019094526006845265534e57424c5360d01b908401528151919291620000e6916000916200017a565b508051620000fc9060019060208401906200017a565b50505062000119620001136200012460201b60201c565b62000128565b60016007556200025d565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001889062000220565b90600052602060002090601f016020900481019282620001ac5760008555620001f7565b82601f10620001c757805160ff1916838001178555620001f7565b82800160010185558215620001f7579182015b82811115620001f7578251825591602001919060010190620001da565b506200020592915062000209565b5090565b5b808211156200020557600081556001016200020a565b600181811c908216806200023557607f821691505b602082108114156200025757634e487b7160e01b600052602260045260246000fd5b50919050565b61405e806200026d6000396000f3fe6080604052600436106102885760003560e01c80638da5cb5b1161015a578063c87b56dd116100c1578063db3067ca1161007a578063db3067ca14610751578063e467f7e014610772578063e985e9c514610785578063f2fde38b146107a5578063f6bca878146107c5578063f8004d31146107e557600080fd5b8063c87b56dd146106b3578063c9e7be01146106d3578063cd008f1a146106f3578063d54a6fb814610708578063d5abeb0114610728578063d96a094a1461073e57600080fd5b8063a22cb46511610113578063a22cb46514610607578063a61bab2f14610627578063b0dc78fa14610647578063b88d4fde14610667578063c78f19f914610687578063c80d123a1461069d57600080fd5b80638da5cb5b1461055f5780638fc734841461057d5780639507d39a1461059257806395d89b41146105bf57806396032702146105d4578063964bc33f146105e757600080fd5b806342842e0e116101fe57806370a08231116101b757806370a08231146104bf578063715018a6146104df57806377b3cc9a146104f457806377d3550b1461050957806379fd022e1461051f5780637c726b691461053f57600080fd5b806342842e0e1461040957806350fd7367146104295780635d49013d1461043c5780636352211e1461046a5780636c9c2faf1461048a5780636f8b44b01461049f57600080fd5b806324bbd0491161025057806324bbd0491461035e578063258d6d101461037f57806326d58ad3146103a15780633aaf1898146103c15780633ccfd60b146103d4578063404a9ab8146103e957600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c57806323b872dd1461033e575b600080fd5b34801561029957600080fd5b506102ad6102a83660046135f5565b610805565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d7610857565b6040516102b99190613c5b565b3480156102f057600080fd5b506103046102ff366004613673565b6108e9565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c6103373660046134f1565b610976565b005b34801561034a57600080fd5b5061033c610359366004613414565b6109db565b34801561036a57600080fd5b50600e546102ad90600160a01b900460ff1681565b34801561038b57600080fd5b50610394610a11565b6040516102b99190613c0d565b3480156103ad57600080fd5b5061033c6103bc36600461362d565b610bab565b61033c6103cf366004613673565b610be8565b3480156103e057600080fd5b5061033c610d05565b3480156103f557600080fd5b5061033c610404366004613673565b610dad565b34801561041557600080fd5b5061033c610424366004613414565b610e37565b61033c61043736600461368b565b610e52565b34801561044857600080fd5b5061045c610457366004613673565b611006565b6040519081526020016102b9565b34801561047657600080fd5b50610304610485366004613673565b6110f8565b34801561049657600080fd5b5061045c61116f565b3480156104ab57600080fd5b5061033c6104ba366004613673565b61117f565b3480156104cb57600080fd5b5061045c6104da3660046133c8565b6111ae565b3480156104eb57600080fd5b5061033c611235565b34801561050057600080fd5b5061039461126b565b34801561051557600080fd5b5061045c600d5481565b34801561052b57600080fd5b50600e54610304906001600160a01b031681565b34801561054b57600080fd5b5061033c61055a366004613673565b6113ed565b34801561056b57600080fd5b506006546001600160a01b0316610304565b34801561058957600080fd5b506102d761141c565b34801561059e57600080fd5b506105b26105ad366004613673565b6114aa565b6040516102b99190613e3b565b3480156105cb57600080fd5b506102d761154e565b61033c6105e2366004613673565b61155d565b3480156105f357600080fd5b5061033c610602366004613673565b611600565b34801561061357600080fd5b5061033c6106223660046134c8565b611714565b34801561063357600080fd5b5061033c6106423660046133c8565b611775565b34801561065357600080fd5b506102d7610662366004613673565b6117c1565b34801561067357600080fd5b5061033c61068236600461344f565b611892565b34801561069357600080fd5b5061045c600c5481565b3480156106a957600080fd5b5061045c600b5481565b3480156106bf57600080fd5b506102d76106ce366004613673565b6118ca565b3480156106df57600080fd5b5061033c6106ee366004613673565b6119ea565b3480156106ff57600080fd5b50610394611a91565b34801561071457600080fd5b5061033c6107233660046135db565b611ce0565b34801561073457600080fd5b5061045c600a5481565b61033c61074c366004613673565b611d28565b34801561075d57600080fd5b50600e546102ad90600160a81b900460ff1681565b61033c61078036600461351a565b611e19565b34801561079157600080fd5b506102ad6107a03660046133e2565b6122a1565b3480156107b157600080fd5b5061033c6107c03660046133c8565b6122cf565b3480156107d157600080fd5b5061033c6107e0366004613673565b61236a565b3480156107f157600080fd5b5061033c6108003660046135db565b612399565b60006001600160e01b031982166380ac58cd60e01b148061083657506001600160e01b03198216635b5e139f60e01b145b8061085157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461086690613f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461089290613f2c565b80156108df5780601f106108b4576101008083540402835291602001916108df565b820191906000526020600020905b8154815290600101906020018083116108c257829003601f168201915b5050505050905090565b60006108f4826123e1565b61095a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600e546001600160a01b0316336001600160a01b0316146109cd5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610951565b6109d782826123fe565b5050565b6109e5338261250f565b610a015760405162461bcd60e51b815260040161095190613db3565b610a0c8383836125d9565b505050565b60606000610a1d61116f565b90506000610a2a60095490565b610a349083613ee9565b90506000808267ffffffffffffffff811115610a6057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610a9957816020015b610a866131e9565b815260200190600190039081610a7e5790505b50905060005b83811015610ba25760106000610ab6836001613e9e565b81526020019081526020016000206003015460001415610b90576000601081610ae0846001613e9e565b81526020808201929092526040908101600020815160e0810183528154815260018201546001600160a01b03908116948201949094526002820154909316918301919091526003810154606083015260048101546080830152600581015460a0830152600681015461ffff1660c08301528451909250849086908110610b7657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610b8c600185613e9e565b9350505b80610b9a81613f61565b915050610a9f565b50949350505050565b6006546001600160a01b03163314610bd55760405162461bcd60e51b815260040161095190613d7e565b80516109d790600f90602084019061323c565b60026007541415610c0b5760405162461bcd60e51b815260040161095190613e04565b600260075560008181526010602052604090206001015481906001600160a01b03163314610c4b5760405162461bcd60e51b815260040161095190613d51565b600082815260106020526040902060030154829015610c7c5760405162461bcd60e51b815260040161095190613cee565b60003411610ccc5760405162461bcd60e51b815260206004820152601f60248201527f56616c7565206d7573742062652067726561746572207468616e207a65726f006044820152606401610951565b610cde610cd884611006565b3461260e565b60009384526010602052604090932060048101939093555050426005909101556001600755565b6006546001600160a01b03163314610d2f5760405162461bcd60e51b815260040161095190613d7e565b4780610d735760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b6044820152606401610951565b6006546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156109d7573d6000803e3d6000fd5b6006546001600160a01b03163314610dd75760405162461bcd60e51b815260040161095190613d7e565b600b8110610e325760405162461bcd60e51b815260206004820152602260248201527f436f6d6d697373696f6e2063616e6e6f74206265206d6f7265207468616e2031604482015261302560f01b6064820152608401610951565b600d55565b610a0c83838360405180602001604052806000815250611892565b60026007541415610e755760405162461bcd60e51b815260040161095190613e04565b600260075581610e84816123e1565b610ea05760405162461bcd60e51b815260040161095190613d1a565b60008381526010602052604090206001015483906001600160a01b03163314610edb5760405162461bcd60e51b815260040161095190613d51565b600084815260106020526040902060030154849015610f0c5760405162461bcd60e51b815260040161095190613cee565b600e54600160a81b900460ff16610f5d5760405162461bcd60e51b81526020600482015260156024820152742634b9ba34b733b99030b932903737ba1037b832b760591b6044820152606401610951565b600c543414610f7e5760405162461bcd60e51b815260040161095190613c6e565b600085815260106020526040902060020180546001600160a01b03191633179055610fb1610fab86611006565b85612663565b600086815260106020526040902060030155610fd1600980546001019055565b610ffa33600e546040805160208101909152600081526001600160a01b0390911690889061267c565b50506001600755505050565b600081611012816123e1565b61102e5760405162461bcd60e51b815260040161095190613d1a565b60008381526010602052604081206006015461105690662386f26fc100009061ffff166126af565b905060006110b2611073670de0b6b3a7640000633b9aca006126af565b6110ad61108485633b9aca006126af565b6110a861109661016d620151806126af565b6b033b2e3c9fd0803ce80000006126af565b612716565b61260e565b600086815260106020526040902060048101546005909101549192506110ed916110e89084906110e3904290612747565b61279d565b612813565b935050505b50919050565b6000818152600260205260408120546001600160a01b0316806108515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610951565b600061117a60085490565b905090565b6006546001600160a01b031633146111a95760405162461bcd60e51b815260040161095190613d7e565b600a55565b60006001600160a01b0382166112195760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610951565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461125f5760405162461bcd60e51b815260040161095190613d7e565b6112696000612846565b565b6060600061127860095490565b90506000808267ffffffffffffffff8111156112a457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112dd57816020015b6112ca6131e9565b8152602001906001900390816112c25790505b50905060005b838110156113e55760006010816112fb846001613e9e565b81526020019081526020016000206003015411156113d3576000601081611323846001613e9e565b81526020808201929092526040908101600020815160e0810183528154815260018201546001600160a01b03908116948201949094526002820154909316918301919091526003810154606083015260048101546080830152600581015460a0830152600681015461ffff1660c083015284519092508490869081106113b957634e487b7160e01b600052603260045260246000fd5b60209081029190910101526113cf600185613e9e565b9350505b806113dd81613f61565b9150506112e3565b509392505050565b6006546001600160a01b031633146114175760405162461bcd60e51b815260040161095190613d7e565b600c55565b600f805461142990613f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461145590613f2c565b80156114a25780601f10611477576101008083540402835291602001916114a2565b820191906000526020600020905b81548152906001019060200180831161148557829003601f168201915b505050505081565b6114b26131e9565b816114bc816123e1565b6114d85760405162461bcd60e51b815260040161095190613d1a565b5050600090815260106020908152604091829020825160e0810184528154815260018201546001600160a01b03908116938201939093526002820154909216928201929092526003820154606082015260048201546080820152600582015460a082015260069091015461ffff1660c082015290565b60606001805461086690613f2c565b600260075414156115805760405162461bcd60e51b815260040161095190613e04565b6002600755600e546001600160a01b031633146115ef5760405162461bcd60e51b815260206004820152602760248201527f4f6e6c792074686520696e7465726d6564696172792063616e207265636f726460448201526620612073616c6560c81b6064820152608401610951565b6115f881612898565b506001600755565b60008181526010602052604090206003015481906116565760405162461bcd60e51b815260206004820152601360248201527214db9bddd8985b1b081b9bdd081b1a5cdd1959606a1b6044820152606401610951565b6000828152601060205260409020600201546001600160a01b031633146116bf5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c79207468652073656c6c65722063616e2064656c6973740000000000006044820152606401610951565b60008281526010602052604081206002810180546001600160a01b0319169055600301556116ed6009612995565b600e546109d7906001600160a01b031633846040518060200160405280600081525061267c565b600e546001600160a01b0316336001600160a01b03161461176b5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610951565b6109d782826129ec565b6006546001600160a01b0316331461179f5760405162461bcd60e51b815260040161095190613d7e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6060816117cd816123e1565b6117e95760405162461bcd60e51b815260040161095190613d1a565b6000838152601060205260409020600301548061180c5761180984611006565b90505b6000600b546802b5e3af16b18800006118259190613ee9565b600b546118329084613ee9565b61183e906101f0613eca565b6118489190613eb6565b611853906004613e9e565b9050611869611864826101f46129f7565b612a07565b60405160200161187991906137e2565b6040516020818303038152906040529350505050919050565b61189c338361250f565b6118b85760405162461bcd60e51b815260040161095190613db3565b6118c48484848461267c565b50505050565b6060816118d6816123e1565b6118f25760405162461bcd60e51b815260040161095190613d1a565b6119c36118fe84612a07565b61190f61190a866117c1565b612b21565b600f61191a87612a07565b61192661186489611006565b60008981526010602052604090206004015461194190612a07565b60008a8152601060205260409020600601546119609061ffff16612a07565b60008b81526010602052604090206005015461197b90612a07565b60405160200161198d93929190613a77565b60408051601f19818403018152908290526119af9695949392916020016138ed565b604051602081830303815290604052612b21565b6040516020016119d39190613b8b565b604051602081830303815290604052915050919050565b60008181526010602052604090206001015481906001600160a01b03163314611a255760405162461bcd60e51b815260040161095190613d51565b600082815260106020526040902060030154829015611a565760405162461bcd60e51b815260040161095190613cee565b611a5f83611006565b6000938452601060205260409093206004810193909355505060068101805461ffff1916600f17905542600590910155565b60606000611a9d61116f565b905060008060005b83811015611b35573360106000611abd846001613e9e565b81526020810191909152604001600020600101546001600160a01b03161480611b1057503360106000611af1846001613e9e565b81526020810191909152604001600020600201546001600160a01b0316145b15611b2357611b20600184613e9e565b92505b80611b2d81613f61565b915050611aa5565b5060008267ffffffffffffffff811115611b5f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b9857816020015b611b856131e9565b815260200190600190039081611b7d5790505b50905060005b84811015610ba2573360106000611bb6846001613e9e565b81526020810191909152604001600020600101546001600160a01b03161480611c0957503360106000611bea846001613e9e565b81526020810191909152604001600020600201546001600160a01b0316145b15611cce576000601081611c1e846001613e9e565b81526020808201929092526040908101600020815160e0810183528154815260018201546001600160a01b03908116948201949094526002820154909316918301919091526003810154606083015260048101546080830152600581015460a0830152600681015461ffff1660c08301528451909250849086908110611cb457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152611cca600185613e9e565b9350505b80611cd881613f61565b915050611b9e565b6006546001600160a01b03163314611d0a5760405162461bcd60e51b815260040161095190613d7e565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b60026007541415611d4b5760405162461bcd60e51b815260040161095190613e04565b60026007556000818152601060205260409020600101546001600160a01b0316336001600160a01b03161415611db95760405162461bcd60e51b815260206004820152601360248201527221b0b73737ba1039b2b636103a379039b2b63360691b6044820152606401610951565b6000818152601060205260409020600301543414611de95760405162461bcd60e51b815260040161095190613c6e565b611df281612898565b600e546115f8906001600160a01b031633836040518060200160405280600081525061267c565b60026007541415611e3c5760405162461bcd60e51b815260040161095190613e04565b6002600755600e54600160a01b900460ff16611e8d5760405162461bcd60e51b815260206004820152601060248201526f26b4b73a1034b9903737ba1037b832b760811b6044820152606401610951565b8051825114611ee85760405162461bcd60e51b815260206004820152602160248201527f417267756d656e74206c656e67746873206d757374206265207468652073616d6044820152606560f81b6064820152608401610951565b6000825111611f395760405162461bcd60e51b815260206004820152601d60248201527f517479206d7573742062652067726561746572207468616e207a65726f0000006044820152606401610951565b600a54611f4e611f4761116f565b845161260e565b1115611f915760405162461bcd60e51b8152602060048201526012602482015271517479206578636565647320737570706c7960701b6044820152606401610951565b60065433906001600160a01b031680821461201c576000805b8451811015611ffa57848181518110611fd357634e487b7160e01b600052603260045260246000fd5b602002602001015182611fe69190613e9e565b915080611ff281613f61565b915050611faa565b5080341461201a5760405162461bcd60e51b815260040161095190613c6e565b505b60005b8351811015610ffa57816001600160a01b0316836001600160a01b03161461208a57600b5484828151811061206457634e487b7160e01b600052603260045260246000fd5b6020026020010151101561208a5760405162461bcd60e51b815260040161095190613c6e565b612098600880546001019055565b60006120a360085490565b90506120d68683815181106120c857634e487b7160e01b600052603260045260246000fd5b602002602001015182612c83565b6040518060e0016040528082815260200187848151811061210757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316815260200160006001600160a01b031681526020016000815260200186848151811061215457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020014281526020016121fe60fb4244868c898151811061218f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040516020016121d3949392919093845260208401929092526040830152606090811b6bffffffffffffffffffffffff19169082015260740190565b6040516020818303038152906040528051906020012060001c6121f69190613f7c565b6101f461260e565b61ffff90811690915260009283526010602090815260409384902083518155908301516001820180546001600160a01b03199081166001600160a01b039384161790915594840151600283018054909616911617909355606082015160038401556080820151600484015560a0820151600584015560c0909101516006909201805461ffff1916929091169190911790558061229981613f61565b91505061201f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146122f95760405162461bcd60e51b815260040161095190613d7e565b6001600160a01b03811661235e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610951565b61236781612846565b50565b6006546001600160a01b031633146123945760405162461bcd60e51b815260040161095190613d7e565b600b55565b6006546001600160a01b031633146123c35760405162461bcd60e51b815260040161095190613d7e565b600e8054911515600160a01b0260ff60a01b19909216919091179055565b6000908152600260205260409020546001600160a01b0316151590565b6000612409826110f8565b9050806001600160a01b0316836001600160a01b031614156124775760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610951565b336001600160a01b0382161480612493575061249381336122a1565b6125055760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610951565b610a0c8383612c9d565b600061251a826123e1565b61257b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b6000612586836110f8565b9050806001600160a01b0316846001600160a01b031614806125c15750836001600160a01b03166125b6846108e9565b6001600160a01b0316145b806125d157506125d181856122a1565b949350505050565b600081815260106020526040902060010180546001600160a01b0319166001600160a01b038416179055610a0c838383612d0b565b60008261261b8382613e9e565b91508110156108515760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b6044820152606401610951565b6000818310156126735781612675565b825b9392505050565b6126878484846125d9565b61269384848484612ea7565b6118c45760405162461bcd60e51b815260040161095190613c9c565b60008115806126d3575082826126c58183613eca565b92506126d19083613eb6565b145b6108515760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b6044820152606401610951565b60008161273d612732856b033b2e3c9fd0803ce80000006126af565b6110ad600286613eb6565b6126759190613eb6565b6000826127548382613ee9565b91508111156108515760405162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b6044820152606401610951565b60006127aa600283613f7c565b6127c0576b033b2e3c9fd0803ce80000006127c2565b825b90506127cf600283613eb6565b91505b8115610851576127e28384612813565b92506127ef600283613f7c565b15612801576127fe8184612813565b90505b61280c600283613eb6565b91506127d2565b60006b033b2e3c9fd0803ce800000061273d61282f85856126af565b6110ad60026b033b2e3c9fd0803ce8000000613eb6565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181526010602052604090206003015481906128ee5760405162461bcd60e51b815260206004820152601360248201527214db9bddd8985b1b081b9bdd081b1a5cdd1959606a1b6044820152606401610951565b60006129066128fe606434613eb6565b600d546126af565b6000848152601060205260409020600201549091506001600160a01b03166108fc6129318334613ee9565b6040518115909202916000818181858888f19350505050158015612959573d6000803e3d6000fd5b5060008381526010602052604081206002810180546001600160a01b0319169055346004820155600381019190915542600590910155610a0c60095b8054806129e45760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610951565b600019019055565b6109d7338383612fb4565b6000818311156126735781612675565b606081612a2b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a555780612a3f81613f61565b9150612a4e9050600a83613eb6565b9150612a2f565b60008167ffffffffffffffff811115612a7e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aa8576020820181803683370190505b5090505b84156125d157612abd600183613ee9565b9150612aca600a86613f7c565b612ad5906030613e9e565b60f81b818381518110612af857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b1a600a86613eb6565b9450612aac565b6060815160001415612b4157505060408051602081019091526000815290565b6000604051806060016040528060408152602001613fe96040913990506000600384516002612b709190613e9e565b612b7a9190613eb6565b612b85906004613eca565b67ffffffffffffffff811115612bab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612bd5576020820181803683370190505b509050600182016020820185865187015b80821015612c41576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612be6565b5050600386510660018114612c5d5760028114612c7057612c78565b603d6001830353603d6002830353612c78565b603d60018303535b509195945050505050565b6109d7828260405180602001604052806000815250613083565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612cd2826110f8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316612d1e826110f8565b6001600160a01b031614612d825760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610951565b6001600160a01b038216612de45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610951565b612def600082612c9d565b6001600160a01b0383166000908152600360205260408120805460019290612e18908490613ee9565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e46908490613e9e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15612fa957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612eeb903390899088908890600401613bd0565b602060405180830381600087803b158015612f0557600080fd5b505af1925050508015612f35575060408051601f3d908101601f19168201909252612f3291810190613611565b60015b612f8f573d808015612f63576040519150601f19603f3d011682016040523d82523d6000602084013e612f68565b606091505b508051612f875760405162461bcd60e51b815260040161095190613c9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125d1565b506001949350505050565b816001600160a01b0316836001600160a01b031614156130165760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610951565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61308d83836130b6565b61309a6000848484612ea7565b610a0c5760405162461bcd60e51b815260040161095190613c9c565b6001600160a01b03821661310c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610951565b613115816123e1565b156131625760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610951565b6001600160a01b038216600090815260036020526040812080546001929061318b908490613e9e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518060e001604052806000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600061ffff1681525090565b82805461324890613f2c565b90600052602060002090601f01602090048101928261326a57600085556132b0565b82601f1061328357805160ff19168380011785556132b0565b828001600101855582156132b0579182015b828111156132b0578251825591602001919060010190613295565b506132bc9291506132c0565b5090565b5b808211156132bc57600081556001016132c1565b600067ffffffffffffffff8311156132ef576132ef613fbc565b613302601f8401601f1916602001613e49565b905082815283838301111561331657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461334457600080fd5b919050565b600082601f830112613359578081fd5b8135602061336e61336983613e7a565b613e49565b80838252828201915082860187848660051b890101111561338d578586fd5b855b858110156133ab5781358452928401929084019060010161338f565b5090979650505050505050565b8035801515811461334457600080fd5b6000602082840312156133d9578081fd5b6126758261332d565b600080604083850312156133f4578081fd5b6133fd8361332d565b915061340b6020840161332d565b90509250929050565b600080600060608486031215613428578081fd5b6134318461332d565b925061343f6020850161332d565b9150604084013590509250925092565b60008060008060808587031215613464578081fd5b61346d8561332d565b935061347b6020860161332d565b925060408501359150606085013567ffffffffffffffff81111561349d578182fd5b8501601f810187136134ad578182fd5b6134bc878235602084016132d5565b91505092959194509250565b600080604083850312156134da578182fd5b6134e38361332d565b915061340b602084016133b8565b60008060408385031215613503578182fd5b61350c8361332d565b946020939093013593505050565b6000806040838503121561352c578182fd5b823567ffffffffffffffff80821115613543578384fd5b818501915085601f830112613556578384fd5b8135602061356661336983613e7a565b8083825282820191508286018a848660051b8901011115613585578889fd5b8896505b848710156135ae5761359a8161332d565b835260019690960195918301918301613589565b50965050860135925050808211156135c4578283fd5b506135d185828601613349565b9150509250929050565b6000602082840312156135ec578081fd5b612675826133b8565b600060208284031215613606578081fd5b813561267581613fd2565b600060208284031215613622578081fd5b815161267581613fd2565b60006020828403121561363e578081fd5b813567ffffffffffffffff811115613654578182fd5b8201601f81018413613664578182fd5b6125d1848235602084016132d5565b600060208284031215613684578081fd5b5035919050565b6000806040838503121561369d578182fd5b50508035926020909101359150565b600081518084526136c4816020860160208601613f00565b601f01601f19169290920160200192915050565b600081516136ea818560208601613f00565b9290920192915050565b8054600090600181811c908083168061370e57607f831692505b602080841082141561372e57634e487b7160e01b86526022600452602486fd5b818015613742576001811461375357613780565b60ff19861689528489019650613780565b60008881526020902060005b868110156137785781548b82015290850190830161375f565b505084890196505b50505050505092915050565b80518252602081015160018060a01b0380821660208501528060408401511660408501525050606081015160608301526080810151608083015260a081015160a083015261ffff60c08201511660c08301525050565b7f3c7376672076696577426f783d22302030203130303020313030302220786d6c81527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e60208201527f3c7265637420783d22302220793d2230222077696474683d223130303022206860408201527f65696768743d2231303030222066696c6c3d2223303030222f3e00000000000060608201527f3c636972636c652066696c6c3d2223464646222063783d22353030222063793d607a82015268111a98181110391e9160b91b609a820152600082516138c48160a3850160208701613f00565b6211179f60e91b60a3939091019283015250651e17b9bb339f60d11b60a682015260ac01919050565b727b226e616d65223a22536e6f7762616c6c202360681b8152865160009061391c816013850160208c01613f00565b7f222c226465736372697074696f6e223a22416e20696e697469616c20737461746013918401918201527f65206f6620736d616c6c207369676e69666963616e636520746861742062756960338201527f6c64732075706f6e20697473656c662c206265636f6d696e67206c617267657260538201527f2e222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b62607382015265185cd94d8d0b60d21b609382015287516139da816099840160208c01613f00565b7111161132bc3a32b93730b62fbab936111d1160711b60999290910191820152613a6a613a5d613a57613a3c613a36613a1f613a1960ab88018e6136f4565b8c6136d8565b6a1116113b30b63ab2911d1160a91b8152600b0190565b896136d8565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b866136d8565b607d60f81b815260010190565b9998505050505050505050565b7f5b7b2274726169745f74797065223a225072696e636970616c222c2276616c7581526332911d1160e11b602082015260008451613abc816024850160208901613f00565b7f227d2c7b2274726169745f74797065223a2252617465222c2276616c7565223a602491840191820152601160f91b604482018190528551613b05816045850160208a01613f00565b7f227d2c7b2274726169745f74797065223a224566666563746976652046726f6d604593909101928301527f222c22646973706c61795f74797065223a2264617465222c2276616c7565223a606583015260858201528351613b6e816086840160208801613f00565b62227d5d60e81b6086929091019182015260890195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613bc381601d850160208701613f00565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c03908301846136ac565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613c4f57613c3c83855161378c565b9284019260e09290920191600101613c29565b50909695505050505050565b60208152600061267560208301846136ac565b60208082526014908201527314185e5b595b9d081a5cc81a5b98dbdc9c9958dd60621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526012908201527114db9bddd8985b1b081a5cc81b1a5cdd195960721b604082015260600190565b60208082526017908201527f536e6f7762616c6c20646f6573206e6f74206578697374000000000000000000604082015260600190565b6020808252601390820152722737ba103a3432903a37b5b2b71037bbb732b960691b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60e08101610851828461378c565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e7257613e72613fbc565b604052919050565b600067ffffffffffffffff821115613e9457613e94613fbc565b5060051b60200190565b60008219821115613eb157613eb1613f90565b500190565b600082613ec557613ec5613fa6565b500490565b6000816000190483118215151615613ee457613ee4613f90565b500290565b600082821015613efb57613efb613f90565b500390565b60005b83811015613f1b578181015183820152602001613f03565b838111156118c45750506000910152565b600181811c90821680613f4057607f821691505b602082108114156110f257634e487b7160e01b600052602260045260246000fd5b6000600019821415613f7557613f75613f90565b5060010190565b600082613f8b57613f8b613fa6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461236757600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122076686284ddfbacc20a97725b9a33ce2d8b8dc82db397068352aff78837b5481964736f6c63430008040033
Deployed Bytecode
0x6080604052600436106102885760003560e01c80638da5cb5b1161015a578063c87b56dd116100c1578063db3067ca1161007a578063db3067ca14610751578063e467f7e014610772578063e985e9c514610785578063f2fde38b146107a5578063f6bca878146107c5578063f8004d31146107e557600080fd5b8063c87b56dd146106b3578063c9e7be01146106d3578063cd008f1a146106f3578063d54a6fb814610708578063d5abeb0114610728578063d96a094a1461073e57600080fd5b8063a22cb46511610113578063a22cb46514610607578063a61bab2f14610627578063b0dc78fa14610647578063b88d4fde14610667578063c78f19f914610687578063c80d123a1461069d57600080fd5b80638da5cb5b1461055f5780638fc734841461057d5780639507d39a1461059257806395d89b41146105bf57806396032702146105d4578063964bc33f146105e757600080fd5b806342842e0e116101fe57806370a08231116101b757806370a08231146104bf578063715018a6146104df57806377b3cc9a146104f457806377d3550b1461050957806379fd022e1461051f5780637c726b691461053f57600080fd5b806342842e0e1461040957806350fd7367146104295780635d49013d1461043c5780636352211e1461046a5780636c9c2faf1461048a5780636f8b44b01461049f57600080fd5b806324bbd0491161025057806324bbd0491461035e578063258d6d101461037f57806326d58ad3146103a15780633aaf1898146103c15780633ccfd60b146103d4578063404a9ab8146103e957600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c57806323b872dd1461033e575b600080fd5b34801561029957600080fd5b506102ad6102a83660046135f5565b610805565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d7610857565b6040516102b99190613c5b565b3480156102f057600080fd5b506103046102ff366004613673565b6108e9565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c6103373660046134f1565b610976565b005b34801561034a57600080fd5b5061033c610359366004613414565b6109db565b34801561036a57600080fd5b50600e546102ad90600160a01b900460ff1681565b34801561038b57600080fd5b50610394610a11565b6040516102b99190613c0d565b3480156103ad57600080fd5b5061033c6103bc36600461362d565b610bab565b61033c6103cf366004613673565b610be8565b3480156103e057600080fd5b5061033c610d05565b3480156103f557600080fd5b5061033c610404366004613673565b610dad565b34801561041557600080fd5b5061033c610424366004613414565b610e37565b61033c61043736600461368b565b610e52565b34801561044857600080fd5b5061045c610457366004613673565b611006565b6040519081526020016102b9565b34801561047657600080fd5b50610304610485366004613673565b6110f8565b34801561049657600080fd5b5061045c61116f565b3480156104ab57600080fd5b5061033c6104ba366004613673565b61117f565b3480156104cb57600080fd5b5061045c6104da3660046133c8565b6111ae565b3480156104eb57600080fd5b5061033c611235565b34801561050057600080fd5b5061039461126b565b34801561051557600080fd5b5061045c600d5481565b34801561052b57600080fd5b50600e54610304906001600160a01b031681565b34801561054b57600080fd5b5061033c61055a366004613673565b6113ed565b34801561056b57600080fd5b506006546001600160a01b0316610304565b34801561058957600080fd5b506102d761141c565b34801561059e57600080fd5b506105b26105ad366004613673565b6114aa565b6040516102b99190613e3b565b3480156105cb57600080fd5b506102d761154e565b61033c6105e2366004613673565b61155d565b3480156105f357600080fd5b5061033c610602366004613673565b611600565b34801561061357600080fd5b5061033c6106223660046134c8565b611714565b34801561063357600080fd5b5061033c6106423660046133c8565b611775565b34801561065357600080fd5b506102d7610662366004613673565b6117c1565b34801561067357600080fd5b5061033c61068236600461344f565b611892565b34801561069357600080fd5b5061045c600c5481565b3480156106a957600080fd5b5061045c600b5481565b3480156106bf57600080fd5b506102d76106ce366004613673565b6118ca565b3480156106df57600080fd5b5061033c6106ee366004613673565b6119ea565b3480156106ff57600080fd5b50610394611a91565b34801561071457600080fd5b5061033c6107233660046135db565b611ce0565b34801561073457600080fd5b5061045c600a5481565b61033c61074c366004613673565b611d28565b34801561075d57600080fd5b50600e546102ad90600160a81b900460ff1681565b61033c61078036600461351a565b611e19565b34801561079157600080fd5b506102ad6107a03660046133e2565b6122a1565b3480156107b157600080fd5b5061033c6107c03660046133c8565b6122cf565b3480156107d157600080fd5b5061033c6107e0366004613673565b61236a565b3480156107f157600080fd5b5061033c6108003660046135db565b612399565b60006001600160e01b031982166380ac58cd60e01b148061083657506001600160e01b03198216635b5e139f60e01b145b8061085157506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461086690613f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461089290613f2c565b80156108df5780601f106108b4576101008083540402835291602001916108df565b820191906000526020600020905b8154815290600101906020018083116108c257829003601f168201915b5050505050905090565b60006108f4826123e1565b61095a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600e546001600160a01b0316336001600160a01b0316146109cd5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610951565b6109d782826123fe565b5050565b6109e5338261250f565b610a015760405162461bcd60e51b815260040161095190613db3565b610a0c8383836125d9565b505050565b60606000610a1d61116f565b90506000610a2a60095490565b610a349083613ee9565b90506000808267ffffffffffffffff811115610a6057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610a9957816020015b610a866131e9565b815260200190600190039081610a7e5790505b50905060005b83811015610ba25760106000610ab6836001613e9e565b81526020019081526020016000206003015460001415610b90576000601081610ae0846001613e9e565b81526020808201929092526040908101600020815160e0810183528154815260018201546001600160a01b03908116948201949094526002820154909316918301919091526003810154606083015260048101546080830152600581015460a0830152600681015461ffff1660c08301528451909250849086908110610b7657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610b8c600185613e9e565b9350505b80610b9a81613f61565b915050610a9f565b50949350505050565b6006546001600160a01b03163314610bd55760405162461bcd60e51b815260040161095190613d7e565b80516109d790600f90602084019061323c565b60026007541415610c0b5760405162461bcd60e51b815260040161095190613e04565b600260075560008181526010602052604090206001015481906001600160a01b03163314610c4b5760405162461bcd60e51b815260040161095190613d51565b600082815260106020526040902060030154829015610c7c5760405162461bcd60e51b815260040161095190613cee565b60003411610ccc5760405162461bcd60e51b815260206004820152601f60248201527f56616c7565206d7573742062652067726561746572207468616e207a65726f006044820152606401610951565b610cde610cd884611006565b3461260e565b60009384526010602052604090932060048101939093555050426005909101556001600755565b6006546001600160a01b03163314610d2f5760405162461bcd60e51b815260040161095190613d7e565b4780610d735760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b6044820152606401610951565b6006546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156109d7573d6000803e3d6000fd5b6006546001600160a01b03163314610dd75760405162461bcd60e51b815260040161095190613d7e565b600b8110610e325760405162461bcd60e51b815260206004820152602260248201527f436f6d6d697373696f6e2063616e6e6f74206265206d6f7265207468616e2031604482015261302560f01b6064820152608401610951565b600d55565b610a0c83838360405180602001604052806000815250611892565b60026007541415610e755760405162461bcd60e51b815260040161095190613e04565b600260075581610e84816123e1565b610ea05760405162461bcd60e51b815260040161095190613d1a565b60008381526010602052604090206001015483906001600160a01b03163314610edb5760405162461bcd60e51b815260040161095190613d51565b600084815260106020526040902060030154849015610f0c5760405162461bcd60e51b815260040161095190613cee565b600e54600160a81b900460ff16610f5d5760405162461bcd60e51b81526020600482015260156024820152742634b9ba34b733b99030b932903737ba1037b832b760591b6044820152606401610951565b600c543414610f7e5760405162461bcd60e51b815260040161095190613c6e565b600085815260106020526040902060020180546001600160a01b03191633179055610fb1610fab86611006565b85612663565b600086815260106020526040902060030155610fd1600980546001019055565b610ffa33600e546040805160208101909152600081526001600160a01b0390911690889061267c565b50506001600755505050565b600081611012816123e1565b61102e5760405162461bcd60e51b815260040161095190613d1a565b60008381526010602052604081206006015461105690662386f26fc100009061ffff166126af565b905060006110b2611073670de0b6b3a7640000633b9aca006126af565b6110ad61108485633b9aca006126af565b6110a861109661016d620151806126af565b6b033b2e3c9fd0803ce80000006126af565b612716565b61260e565b600086815260106020526040902060048101546005909101549192506110ed916110e89084906110e3904290612747565b61279d565b612813565b935050505b50919050565b6000818152600260205260408120546001600160a01b0316806108515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610951565b600061117a60085490565b905090565b6006546001600160a01b031633146111a95760405162461bcd60e51b815260040161095190613d7e565b600a55565b60006001600160a01b0382166112195760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610951565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461125f5760405162461bcd60e51b815260040161095190613d7e565b6112696000612846565b565b6060600061127860095490565b90506000808267ffffffffffffffff8111156112a457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156112dd57816020015b6112ca6131e9565b8152602001906001900390816112c25790505b50905060005b838110156113e55760006010816112fb846001613e9e565b81526020019081526020016000206003015411156113d3576000601081611323846001613e9e565b81526020808201929092526040908101600020815160e0810183528154815260018201546001600160a01b03908116948201949094526002820154909316918301919091526003810154606083015260048101546080830152600581015460a0830152600681015461ffff1660c083015284519092508490869081106113b957634e487b7160e01b600052603260045260246000fd5b60209081029190910101526113cf600185613e9e565b9350505b806113dd81613f61565b9150506112e3565b509392505050565b6006546001600160a01b031633146114175760405162461bcd60e51b815260040161095190613d7e565b600c55565b600f805461142990613f2c565b80601f016020809104026020016040519081016040528092919081815260200182805461145590613f2c565b80156114a25780601f10611477576101008083540402835291602001916114a2565b820191906000526020600020905b81548152906001019060200180831161148557829003601f168201915b505050505081565b6114b26131e9565b816114bc816123e1565b6114d85760405162461bcd60e51b815260040161095190613d1a565b5050600090815260106020908152604091829020825160e0810184528154815260018201546001600160a01b03908116938201939093526002820154909216928201929092526003820154606082015260048201546080820152600582015460a082015260069091015461ffff1660c082015290565b60606001805461086690613f2c565b600260075414156115805760405162461bcd60e51b815260040161095190613e04565b6002600755600e546001600160a01b031633146115ef5760405162461bcd60e51b815260206004820152602760248201527f4f6e6c792074686520696e7465726d6564696172792063616e207265636f726460448201526620612073616c6560c81b6064820152608401610951565b6115f881612898565b506001600755565b60008181526010602052604090206003015481906116565760405162461bcd60e51b815260206004820152601360248201527214db9bddd8985b1b081b9bdd081b1a5cdd1959606a1b6044820152606401610951565b6000828152601060205260409020600201546001600160a01b031633146116bf5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c79207468652073656c6c65722063616e2064656c6973740000000000006044820152606401610951565b60008281526010602052604081206002810180546001600160a01b0319169055600301556116ed6009612995565b600e546109d7906001600160a01b031633846040518060200160405280600081525061267c565b600e546001600160a01b0316336001600160a01b03161461176b5760405162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b6044820152606401610951565b6109d782826129ec565b6006546001600160a01b0316331461179f5760405162461bcd60e51b815260040161095190613d7e565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6060816117cd816123e1565b6117e95760405162461bcd60e51b815260040161095190613d1a565b6000838152601060205260409020600301548061180c5761180984611006565b90505b6000600b546802b5e3af16b18800006118259190613ee9565b600b546118329084613ee9565b61183e906101f0613eca565b6118489190613eb6565b611853906004613e9e565b9050611869611864826101f46129f7565b612a07565b60405160200161187991906137e2565b6040516020818303038152906040529350505050919050565b61189c338361250f565b6118b85760405162461bcd60e51b815260040161095190613db3565b6118c48484848461267c565b50505050565b6060816118d6816123e1565b6118f25760405162461bcd60e51b815260040161095190613d1a565b6119c36118fe84612a07565b61190f61190a866117c1565b612b21565b600f61191a87612a07565b61192661186489611006565b60008981526010602052604090206004015461194190612a07565b60008a8152601060205260409020600601546119609061ffff16612a07565b60008b81526010602052604090206005015461197b90612a07565b60405160200161198d93929190613a77565b60408051601f19818403018152908290526119af9695949392916020016138ed565b604051602081830303815290604052612b21565b6040516020016119d39190613b8b565b604051602081830303815290604052915050919050565b60008181526010602052604090206001015481906001600160a01b03163314611a255760405162461bcd60e51b815260040161095190613d51565b600082815260106020526040902060030154829015611a565760405162461bcd60e51b815260040161095190613cee565b611a5f83611006565b6000938452601060205260409093206004810193909355505060068101805461ffff1916600f17905542600590910155565b60606000611a9d61116f565b905060008060005b83811015611b35573360106000611abd846001613e9e565b81526020810191909152604001600020600101546001600160a01b03161480611b1057503360106000611af1846001613e9e565b81526020810191909152604001600020600201546001600160a01b0316145b15611b2357611b20600184613e9e565b92505b80611b2d81613f61565b915050611aa5565b5060008267ffffffffffffffff811115611b5f57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b9857816020015b611b856131e9565b815260200190600190039081611b7d5790505b50905060005b84811015610ba2573360106000611bb6846001613e9e565b81526020810191909152604001600020600101546001600160a01b03161480611c0957503360106000611bea846001613e9e565b81526020810191909152604001600020600201546001600160a01b0316145b15611cce576000601081611c1e846001613e9e565b81526020808201929092526040908101600020815160e0810183528154815260018201546001600160a01b03908116948201949094526002820154909316918301919091526003810154606083015260048101546080830152600581015460a0830152600681015461ffff1660c08301528451909250849086908110611cb457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152611cca600185613e9e565b9350505b80611cd881613f61565b915050611b9e565b6006546001600160a01b03163314611d0a5760405162461bcd60e51b815260040161095190613d7e565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b60026007541415611d4b5760405162461bcd60e51b815260040161095190613e04565b60026007556000818152601060205260409020600101546001600160a01b0316336001600160a01b03161415611db95760405162461bcd60e51b815260206004820152601360248201527221b0b73737ba1039b2b636103a379039b2b63360691b6044820152606401610951565b6000818152601060205260409020600301543414611de95760405162461bcd60e51b815260040161095190613c6e565b611df281612898565b600e546115f8906001600160a01b031633836040518060200160405280600081525061267c565b60026007541415611e3c5760405162461bcd60e51b815260040161095190613e04565b6002600755600e54600160a01b900460ff16611e8d5760405162461bcd60e51b815260206004820152601060248201526f26b4b73a1034b9903737ba1037b832b760811b6044820152606401610951565b8051825114611ee85760405162461bcd60e51b815260206004820152602160248201527f417267756d656e74206c656e67746873206d757374206265207468652073616d6044820152606560f81b6064820152608401610951565b6000825111611f395760405162461bcd60e51b815260206004820152601d60248201527f517479206d7573742062652067726561746572207468616e207a65726f0000006044820152606401610951565b600a54611f4e611f4761116f565b845161260e565b1115611f915760405162461bcd60e51b8152602060048201526012602482015271517479206578636565647320737570706c7960701b6044820152606401610951565b60065433906001600160a01b031680821461201c576000805b8451811015611ffa57848181518110611fd357634e487b7160e01b600052603260045260246000fd5b602002602001015182611fe69190613e9e565b915080611ff281613f61565b915050611faa565b5080341461201a5760405162461bcd60e51b815260040161095190613c6e565b505b60005b8351811015610ffa57816001600160a01b0316836001600160a01b03161461208a57600b5484828151811061206457634e487b7160e01b600052603260045260246000fd5b6020026020010151101561208a5760405162461bcd60e51b815260040161095190613c6e565b612098600880546001019055565b60006120a360085490565b90506120d68683815181106120c857634e487b7160e01b600052603260045260246000fd5b602002602001015182612c83565b6040518060e0016040528082815260200187848151811061210757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316815260200160006001600160a01b031681526020016000815260200186848151811061215457634e487b7160e01b600052603260045260246000fd5b602002602001015181526020014281526020016121fe60fb4244868c898151811061218f57634e487b7160e01b600052603260045260246000fd5b60200260200101516040516020016121d3949392919093845260208401929092526040830152606090811b6bffffffffffffffffffffffff19169082015260740190565b6040516020818303038152906040528051906020012060001c6121f69190613f7c565b6101f461260e565b61ffff90811690915260009283526010602090815260409384902083518155908301516001820180546001600160a01b03199081166001600160a01b039384161790915594840151600283018054909616911617909355606082015160038401556080820151600484015560a0820151600584015560c0909101516006909201805461ffff1916929091169190911790558061229981613f61565b91505061201f565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146122f95760405162461bcd60e51b815260040161095190613d7e565b6001600160a01b03811661235e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610951565b61236781612846565b50565b6006546001600160a01b031633146123945760405162461bcd60e51b815260040161095190613d7e565b600b55565b6006546001600160a01b031633146123c35760405162461bcd60e51b815260040161095190613d7e565b600e8054911515600160a01b0260ff60a01b19909216919091179055565b6000908152600260205260409020546001600160a01b0316151590565b6000612409826110f8565b9050806001600160a01b0316836001600160a01b031614156124775760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610951565b336001600160a01b0382161480612493575061249381336122a1565b6125055760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610951565b610a0c8383612c9d565b600061251a826123e1565b61257b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b6000612586836110f8565b9050806001600160a01b0316846001600160a01b031614806125c15750836001600160a01b03166125b6846108e9565b6001600160a01b0316145b806125d157506125d181856122a1565b949350505050565b600081815260106020526040902060010180546001600160a01b0319166001600160a01b038416179055610a0c838383612d0b565b60008261261b8382613e9e565b91508110156108515760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b6044820152606401610951565b6000818310156126735781612675565b825b9392505050565b6126878484846125d9565b61269384848484612ea7565b6118c45760405162461bcd60e51b815260040161095190613c9c565b60008115806126d3575082826126c58183613eca565b92506126d19083613eb6565b145b6108515760405162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b6044820152606401610951565b60008161273d612732856b033b2e3c9fd0803ce80000006126af565b6110ad600286613eb6565b6126759190613eb6565b6000826127548382613ee9565b91508111156108515760405162461bcd60e51b815260206004820152601560248201527464732d6d6174682d7375622d756e646572666c6f7760581b6044820152606401610951565b60006127aa600283613f7c565b6127c0576b033b2e3c9fd0803ce80000006127c2565b825b90506127cf600283613eb6565b91505b8115610851576127e28384612813565b92506127ef600283613f7c565b15612801576127fe8184612813565b90505b61280c600283613eb6565b91506127d2565b60006b033b2e3c9fd0803ce800000061273d61282f85856126af565b6110ad60026b033b2e3c9fd0803ce8000000613eb6565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008181526010602052604090206003015481906128ee5760405162461bcd60e51b815260206004820152601360248201527214db9bddd8985b1b081b9bdd081b1a5cdd1959606a1b6044820152606401610951565b60006129066128fe606434613eb6565b600d546126af565b6000848152601060205260409020600201549091506001600160a01b03166108fc6129318334613ee9565b6040518115909202916000818181858888f19350505050158015612959573d6000803e3d6000fd5b5060008381526010602052604081206002810180546001600160a01b0319169055346004820155600381019190915542600590910155610a0c60095b8054806129e45760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610951565b600019019055565b6109d7338383612fb4565b6000818311156126735781612675565b606081612a2b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a555780612a3f81613f61565b9150612a4e9050600a83613eb6565b9150612a2f565b60008167ffffffffffffffff811115612a7e57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612aa8576020820181803683370190505b5090505b84156125d157612abd600183613ee9565b9150612aca600a86613f7c565b612ad5906030613e9e565b60f81b818381518110612af857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b1a600a86613eb6565b9450612aac565b6060815160001415612b4157505060408051602081019091526000815290565b6000604051806060016040528060408152602001613fe96040913990506000600384516002612b709190613e9e565b612b7a9190613eb6565b612b85906004613eca565b67ffffffffffffffff811115612bab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612bd5576020820181803683370190505b509050600182016020820185865187015b80821015612c41576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612be6565b5050600386510660018114612c5d5760028114612c7057612c78565b603d6001830353603d6002830353612c78565b603d60018303535b509195945050505050565b6109d7828260405180602001604052806000815250613083565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612cd2826110f8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b826001600160a01b0316612d1e826110f8565b6001600160a01b031614612d825760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610951565b6001600160a01b038216612de45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610951565b612def600082612c9d565b6001600160a01b0383166000908152600360205260408120805460019290612e18908490613ee9565b90915550506001600160a01b0382166000908152600360205260408120805460019290612e46908490613e9e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15612fa957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612eeb903390899088908890600401613bd0565b602060405180830381600087803b158015612f0557600080fd5b505af1925050508015612f35575060408051601f3d908101601f19168201909252612f3291810190613611565b60015b612f8f573d808015612f63576040519150601f19603f3d011682016040523d82523d6000602084013e612f68565b606091505b508051612f875760405162461bcd60e51b815260040161095190613c9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125d1565b506001949350505050565b816001600160a01b0316836001600160a01b031614156130165760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610951565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61308d83836130b6565b61309a6000848484612ea7565b610a0c5760405162461bcd60e51b815260040161095190613c9c565b6001600160a01b03821661310c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610951565b613115816123e1565b156131625760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610951565b6001600160a01b038216600090815260036020526040812080546001929061318b908490613e9e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518060e001604052806000815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600061ffff1681525090565b82805461324890613f2c565b90600052602060002090601f01602090048101928261326a57600085556132b0565b82601f1061328357805160ff19168380011785556132b0565b828001600101855582156132b0579182015b828111156132b0578251825591602001919060010190613295565b506132bc9291506132c0565b5090565b5b808211156132bc57600081556001016132c1565b600067ffffffffffffffff8311156132ef576132ef613fbc565b613302601f8401601f1916602001613e49565b905082815283838301111561331657600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461334457600080fd5b919050565b600082601f830112613359578081fd5b8135602061336e61336983613e7a565b613e49565b80838252828201915082860187848660051b890101111561338d578586fd5b855b858110156133ab5781358452928401929084019060010161338f565b5090979650505050505050565b8035801515811461334457600080fd5b6000602082840312156133d9578081fd5b6126758261332d565b600080604083850312156133f4578081fd5b6133fd8361332d565b915061340b6020840161332d565b90509250929050565b600080600060608486031215613428578081fd5b6134318461332d565b925061343f6020850161332d565b9150604084013590509250925092565b60008060008060808587031215613464578081fd5b61346d8561332d565b935061347b6020860161332d565b925060408501359150606085013567ffffffffffffffff81111561349d578182fd5b8501601f810187136134ad578182fd5b6134bc878235602084016132d5565b91505092959194509250565b600080604083850312156134da578182fd5b6134e38361332d565b915061340b602084016133b8565b60008060408385031215613503578182fd5b61350c8361332d565b946020939093013593505050565b6000806040838503121561352c578182fd5b823567ffffffffffffffff80821115613543578384fd5b818501915085601f830112613556578384fd5b8135602061356661336983613e7a565b8083825282820191508286018a848660051b8901011115613585578889fd5b8896505b848710156135ae5761359a8161332d565b835260019690960195918301918301613589565b50965050860135925050808211156135c4578283fd5b506135d185828601613349565b9150509250929050565b6000602082840312156135ec578081fd5b612675826133b8565b600060208284031215613606578081fd5b813561267581613fd2565b600060208284031215613622578081fd5b815161267581613fd2565b60006020828403121561363e578081fd5b813567ffffffffffffffff811115613654578182fd5b8201601f81018413613664578182fd5b6125d1848235602084016132d5565b600060208284031215613684578081fd5b5035919050565b6000806040838503121561369d578182fd5b50508035926020909101359150565b600081518084526136c4816020860160208601613f00565b601f01601f19169290920160200192915050565b600081516136ea818560208601613f00565b9290920192915050565b8054600090600181811c908083168061370e57607f831692505b602080841082141561372e57634e487b7160e01b86526022600452602486fd5b818015613742576001811461375357613780565b60ff19861689528489019650613780565b60008881526020902060005b868110156137785781548b82015290850190830161375f565b505084890196505b50505050505092915050565b80518252602081015160018060a01b0380821660208501528060408401511660408501525050606081015160608301526080810151608083015260a081015160a083015261ffff60c08201511660c08301525050565b7f3c7376672076696577426f783d22302030203130303020313030302220786d6c81527f6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e60208201527f3c7265637420783d22302220793d2230222077696474683d223130303022206860408201527f65696768743d2231303030222066696c6c3d2223303030222f3e00000000000060608201527f3c636972636c652066696c6c3d2223464646222063783d22353030222063793d607a82015268111a98181110391e9160b91b609a820152600082516138c48160a3850160208701613f00565b6211179f60e91b60a3939091019283015250651e17b9bb339f60d11b60a682015260ac01919050565b727b226e616d65223a22536e6f7762616c6c202360681b8152865160009061391c816013850160208c01613f00565b7f222c226465736372697074696f6e223a22416e20696e697469616c20737461746013918401918201527f65206f6620736d616c6c207369676e69666963616e636520746861742062756960338201527f6c64732075706f6e20697473656c662c206265636f6d696e67206c617267657260538201527f2e222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b62607382015265185cd94d8d0b60d21b609382015287516139da816099840160208c01613f00565b7111161132bc3a32b93730b62fbab936111d1160711b60999290910191820152613a6a613a5d613a57613a3c613a36613a1f613a1960ab88018e6136f4565b8c6136d8565b6a1116113b30b63ab2911d1160a91b8152600b0190565b896136d8565b6e11161130ba3a3934b13aba32b9911d60891b8152600f0190565b866136d8565b607d60f81b815260010190565b9998505050505050505050565b7f5b7b2274726169745f74797065223a225072696e636970616c222c2276616c7581526332911d1160e11b602082015260008451613abc816024850160208901613f00565b7f227d2c7b2274726169745f74797065223a2252617465222c2276616c7565223a602491840191820152601160f91b604482018190528551613b05816045850160208a01613f00565b7f227d2c7b2274726169745f74797065223a224566666563746976652046726f6d604593909101928301527f222c22646973706c61795f74797065223a2264617465222c2276616c7565223a606583015260858201528351613b6e816086840160208801613f00565b62227d5d60e81b6086929091019182015260890195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613bc381601d850160208701613f00565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c03908301846136ac565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613c4f57613c3c83855161378c565b9284019260e09290920191600101613c29565b50909695505050505050565b60208152600061267560208301846136ac565b60208082526014908201527314185e5b595b9d081a5cc81a5b98dbdc9c9958dd60621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526012908201527114db9bddd8985b1b081a5cc81b1a5cdd195960721b604082015260600190565b60208082526017908201527f536e6f7762616c6c20646f6573206e6f74206578697374000000000000000000604082015260600190565b6020808252601390820152722737ba103a3432903a37b5b2b71037bbb732b960691b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60e08101610851828461378c565b604051601f8201601f1916810167ffffffffffffffff81118282101715613e7257613e72613fbc565b604052919050565b600067ffffffffffffffff821115613e9457613e94613fbc565b5060051b60200190565b60008219821115613eb157613eb1613f90565b500190565b600082613ec557613ec5613fa6565b500490565b6000816000190483118215151615613ee457613ee4613f90565b500290565b600082821015613efb57613efb613f90565b500390565b60005b83811015613f1b578181015183820152602001613f03565b838111156118c45750506000910152565b600181811c90821680613f4057607f821691505b602082108114156110f257634e487b7160e01b600052602260045260246000fd5b6000600019821415613f7557613f75613f90565b5060010190565b600082613f8b57613f8b613fa6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461236757600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122076686284ddfbacc20a97725b9a33ce2d8b8dc82db397068352aff78837b5481964736f6c63430008040033
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.