Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 148 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 17042695 | 616 days ago | IN | 0 ETH | 0.00156411 | ||||
Set Approval For... | 17015461 | 620 days ago | IN | 0 ETH | 0.00095346 | ||||
Unstake Investor... | 17014224 | 620 days ago | IN | 0 ETH | 0.00070761 | ||||
Unstake Investor... | 17014220 | 620 days ago | IN | 0 ETH | 0.00061812 | ||||
Unstake Investor... | 17014219 | 620 days ago | IN | 0 ETH | 0.00063425 | ||||
Set Approval For... | 16847400 | 643 days ago | IN | 0 ETH | 0.00113022 | ||||
Stake Investor N... | 16582152 | 681 days ago | IN | 0 ETH | 0.00243304 | ||||
Stake Investor N... | 16552910 | 685 days ago | IN | 0 ETH | 0.00189635 | ||||
Stake Investor N... | 16552903 | 685 days ago | IN | 0 ETH | 0.00216676 | ||||
Claim Free Inves... | 16542301 | 686 days ago | IN | 0 ETH | 0.0077944 | ||||
Unstake Investor... | 16525645 | 688 days ago | IN | 0 ETH | 0.00046684 | ||||
Unstake Investor... | 16525641 | 688 days ago | IN | 0 ETH | 0.00048443 | ||||
Unstake Investor... | 16525640 | 688 days ago | IN | 0 ETH | 0.00048681 | ||||
Claim Free Inves... | 16523930 | 689 days ago | IN | 0 ETH | 0.00300452 | ||||
Mint Investor NF... | 16513717 | 690 days ago | IN | 0 ETH | 0.00256002 | ||||
Stake Investor N... | 16510190 | 691 days ago | IN | 0 ETH | 0.00304913 | ||||
Unstake Investor... | 16510186 | 691 days ago | IN | 0 ETH | 0.00085285 | ||||
Safe Transfer Fr... | 16509630 | 691 days ago | IN | 0 ETH | 0.00150843 | ||||
Unstake Investor... | 16509625 | 691 days ago | IN | 0 ETH | 0.00050938 | ||||
Claim Free Inves... | 16506805 | 691 days ago | IN | 0 ETH | 0.00304203 | ||||
Claim Free Inves... | 16506310 | 691 days ago | IN | 0 ETH | 0.00365564 | ||||
Stake Investor N... | 16501777 | 692 days ago | IN | 0 ETH | 0.00142635 | ||||
Stake Investor N... | 16497155 | 692 days ago | IN | 0 ETH | 0.00168786 | ||||
Mint Investor NF... | 16497151 | 692 days ago | IN | 0.08216926 ETH | 0.00272969 | ||||
Safe Transfer Fr... | 16493778 | 693 days ago | IN | 0 ETH | 0.00221078 |
Loading...
Loading
Contract Name:
Astronauts
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contract ERC721Holder is IERC721Receiver { function onERC721Received(address, address, uint256, bytes memory) public pure returns(bytes4){ return this.onERC721Received.selector; } } interface NFTContract { function balanceOf(address owner) external view returns (uint256 balance); } contract Astronauts is ERC721, IERC721Receiver,ERC721Holder{ using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; uint256 public NFTprice; uint256 public DiscountedNFTprice; uint32 public NFTcap; uint32 public constant MooseCap =100; uint32 public constant AlphaCap =36; uint32 public MooseCount; uint32 public AlphaCount; bool public discountPaused; bool public contractPaused; address public MultiSigWallet; address public MooseSociety; address public AlphaHeard; address[] public NFTProjects; uint256[] private _allTokens; mapping(address=>bool) public validator; mapping(address=>bool) public claimedMoose; mapping(address=>bool) public claimedAlpha; mapping(address => mapping(uint256 =>bool)) public StakedNFT; mapping(address => uint256) public claimedSoFar; mapping(address => mapping(uint256 => uint256)) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; mapping(uint256 => uint256) private _allTokensIndex; string public baseURI = "https://reignkit.reignlabs.io/api/nauts/"; // struct StakedMetaData{ // address owner; // uint timeStamp; // } // mapping(uint=>StakedMetaData) public StakedNFTbyId; constructor() ERC721("Astronauts", "ASTRO") payable{ MooseSociety=0xF63063bB20a03B85Bd08d5C1244AF8bA0aEE1B1F; // Moose Society address AlphaHeard=0x24A913B00cbC8C3c747B19C7944E4dA26da1130b; // Alpha Island address MultiSigWallet=0x8239674479128F857822b97aF113946E10DAA43c; validator[msg.sender]=true; validator[0x03717989289c46a101A18b0A3e0Ca8DffB92a5a5] =true; NFTprice =82169269000000000; // $100 DiscountedNFTprice =69843878000000000; // $80 NFTcap=1970; NFTProjects.push(0xF63063bB20a03B85Bd08d5C1244AF8bA0aEE1B1F); // Moose Society address NFTProjects.push(0x24A913B00cbC8C3c747B19C7944E4dA26da1130b); // Alpha Island address NFTProjects.push(0xa50c349912739A4fe4e50BaFD3d8689210642D88); // Crypto punks } receive() external payable {} modifier onlyValidator() { require(validator[msg.sender]==true,"Only a validator can call this function"); _; } modifier whenNotPaused(){ require(contractPaused==false,"Contract is in paused state"); _; } function claimFreeInvestorNFTs() public whenNotPaused { require(MooseCount<MooseCap,"Moose cap reached"); require((AlphaCount+1)<AlphaCap,"Alpha cap reached"); uint256 tokenId = _tokenIdCounter.current(); uint amount; if((claimedMoose[msg.sender]==false && NFTContract(MooseSociety).balanceOf(msg.sender)>0) && (claimedAlpha[msg.sender]==false && NFTContract(AlphaHeard).balanceOf(msg.sender)>0)){ amount=3; claimedMoose[msg.sender]=true; claimedAlpha[msg.sender]=true; MooseCount++; AlphaCount+=2; }else if(claimedMoose[msg.sender]==false && NFTContract(MooseSociety).balanceOf(msg.sender)>0){ amount=1; claimedMoose[msg.sender]=true; MooseCount++; }else if(claimedAlpha[msg.sender]==false && NFTContract(AlphaHeard).balanceOf(msg.sender)>0){ amount=2; claimedAlpha[msg.sender]=true; AlphaCount+=2; }else{ revert("Can't claim free Investors NFTs"); } require(tokenId+amount<=NFTcap,"Maximum cap reached for asto-nauts NFTs"); for(uint i=0; i<amount; i++){ uint256 tokenIdlocal = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(msg.sender, tokenIdlocal); } } function MintInvestorNFTs(address to, uint amount) public whenNotPaused payable{ uint256 tokenId = _tokenIdCounter.current(); require(tokenId+amount<=NFTcap,"Maximum cap reached for asto-nauts NFTs"); if(validator[msg.sender]==false){ require(msg.value>=NFTprice*amount,"Please send sufficient amount of ethers"); (bool success, ) = (MultiSigWallet).call{value: msg.value}(""); require(success, "Failed to send ethers"); } for(uint i=0; i<amount; i++){ uint256 tokenIdlocal = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenIdlocal); } } function MintDiscountedInvestorNFTs(address to, uint amount) public whenNotPaused payable { require(discountPaused==false,"Discounted mint function is currently paused"); // require(amount<=50,"Please pass a value less then 50"); bool isHolder; uint256 tokenId = _tokenIdCounter.current(); for(uint i=0; i<NFTProjects.length; i++){ if(NFTProjects[i]== address(0)) continue; if(NFTContract(NFTProjects[i]).balanceOf(msg.sender)>0){ isHolder=true; break; } } require(isHolder==true,"Caller can't mint discounted NFTs"); require(msg.value>= DiscountedNFTprice*amount ,"Please send sufficient amount of ethers"); (bool success, ) = (MultiSigWallet).call{value: msg.value}(""); require(success, "Failed to send ethers"); require(tokenId+amount<=NFTcap,"Maximum cap reached for asto-nauts NFTs"); for(uint i=0; i<amount; i++){ uint256 tokenIdlocal = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenIdlocal); } } function stakeInvestorNFT(uint[] memory tokenIDs) public whenNotPaused { for(uint i=0; i<tokenIDs.length; i++){ require(StakedNFT[msg.sender][tokenIDs[i]]==false,"Already Staked"); require(ownerOf(tokenIDs[i])==msg.sender,"Not the Owner of this tokenID"); // safeTransferFrom(msg.sender,address(this),tokenIDs[i]); StakedNFT[msg.sender][tokenIDs[i]]=true; StakedNFTbyId[tokenIDs[i]]=StakedMetaData({owner:msg.sender,timeStamp:block.timestamp}); } } function unstakeInvestorNFT(uint[] memory tokenIDs) public whenNotPaused{ for(uint i=0; i<tokenIDs.length; i++){ require(StakedNFT[msg.sender][tokenIDs[i]]==true,"TokenID not staked"); // safeTransferFrom(address(this),msg.sender,tokenIDs[i]); StakedNFT[msg.sender][tokenIDs[i]]=false; StakedNFTbyId[tokenIDs[i]]=StakedMetaData({owner:address(0),timeStamp:0}); } } function addValidator(address _address) public onlyValidator{ require(validator[_address]==false,"Already a validator"); validator[_address]=true; } function addNFTProject(address _address) public onlyValidator{ require(_address!=address(0),"Invalid address"); for(uint i=0; i<NFTProjects.length; i++){ require(NFTProjects[i]!=_address,"Project address already exists in the list"); } NFTProjects.push(_address); } function removeNFTProject(address _address) public onlyValidator{ for(uint i=0;i<NFTProjects.length; i++){ if(NFTProjects[i]==_address) { delete NFTProjects[i]; break; } } } function removeValidator(address _address) public onlyValidator{ require(validator[msg.sender]==true,"Not a validator"); validator[_address]=false; } function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _burn(tokenId); } function contractBalance() public view returns (uint256) { return address(this).balance; } function getTimeStamp() public view returns(uint256){ return block.timestamp; } function withdrawEthers(uint amount) public onlyValidator { (bool success, ) = (MultiSigWallet).call{value: amount}(""); require(success, "Failed to send ethers"); } function updtateNFTPice(bool discounted, uint price) public onlyValidator{ if(discounted){ DiscountedNFTprice=price; }else{ NFTprice=price; } } function pauseUnpauseDiscountMint(bool pause) public onlyValidator{ discountPaused=pause; } function pauseUnpauseContract(bool pause) public onlyValidator{ contractPaused=pause; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); // if(_ownedTokens[owner][index]==0){ // revert("ERC721Enumerable: owner index out of bounds"); // } return _ownedTokens[owner][index]; } function totalSupply() public view virtual returns (uint256) { return _allTokens.length; } function _baseURI() internal view override returns (string memory) { return baseURI; } function updateBaseUri(string memory _newbaseURI) onlyValidator public { baseURI = _newbaseURI; } function _beforeTokenTransfer( address from, address to, uint256 firstTokenId ) internal override virtual { super._beforeTokenTransfer(from, to, firstTokenId); require(StakedNFT[msg.sender][firstTokenId]==false,"Staked NFTs are soulbounded"); uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if ((from != to)) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if ((to != from)) { _addTokenToOwnerEnumeration(to, tokenId); } } function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; struct StakedMetaData{ address owner; uint timeStamp; } mapping(uint=>StakedMetaData) public StakedNFTbyId; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ // struct StakedMetaData{ // address owner; // uint timeStamp; // } // mapping(uint=>StakedMetaData) public StakedNFTbyId; function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender || StakedNFTbyId[tokenId].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 an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// 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.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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/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: 1 } function current(Counter storage counter) internal view returns (uint256) { return (counter._value+1); } 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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
{ "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":"payable","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AlphaCap","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AlphaCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AlphaHeard","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DiscountedNFTprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintDiscountedInvestorNFTs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintInvestorNFTs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"MooseCap","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MooseCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MooseSociety","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MultiSigWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"NFTProjects","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFTcap","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFTprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"StakedNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"StakedNFTbyId","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"timeStamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addNFTProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFreeInvestorNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedAlpha","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedMoose","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedSoFar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseUnpauseContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseUnpauseDiscountMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeNFTProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"stakeInvestorNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"unstakeInvestorNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newbaseURI","type":"string"}],"name":"updateBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"discounted","type":"bool"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updtateNFTPice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"validator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawEthers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e0604052602860808181529062003a8760a03980516200002991601891602090910190620001e9565b50604080518082018252600a815269417374726f6e6175747360b01b602080830191825283518085019094526005845264415354524f60d81b9084015281519192916200007991600191620001e9565b5080516200008f906002906020840190620001e9565b5050600c80546001600160a01b031990811673f63063bb20a03b85bd08d5c1244af8ba0aee1b1f908117909255600d805482167324a913b00cbc8c3c747b19c7944e4da26da1130b908117909155600b80548316738239674479128f857822b97af113946e10daa43c179055336000908152601060205260408120805460ff1990811660019081179092557fc24d06ebc5c05f2e593973a0d195bba6ec67fcb2114a907580047943ae220b70805490911682179055670123ec83ca32d20060085566f822a311ecfc00600955600a805463ffffffff19166107b2179055600e80548083018255928190527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd92830180548616909617909555845480820186558201805485169093179092558354918201909355909101805490911673a50c349912739a4fe4e50bafd3d8689210642d8817905550620002cc565b828054620001f7906200028f565b90600052602060002090601f0160209004810192826200021b576000855562000266565b82601f106200023657805160ff191683800117855562000266565b8280016001018555821562000266579182015b828111156200026657825182559160200191906001019062000249565b506200027492915062000278565b5090565b5b8082111562000274576000815560010162000279565b600181811c90821680620002a457607f821691505b60208210811415620002c657634e487b7160e01b600052602260045260246000fd5b50919050565b6137ab80620002dc6000396000f3fe60806040526004361061031e5760003560e01c806370a08231116101ab578063a3a2f492116100f7578063da235b2211610095578063e985e9c51161006f578063e985e9c5146109cc578063f03247f914610a15578063f420670614610a35578063fe7805f214610a5557600080fd5b8063da235b2214610935578063e2c17fb914610948578063e4b50aa4146109a757600080fd5b8063c82fa0d3116100d1578063c82fa0d3146108cf578063c87b56dd146108e2578063ccc1b1c914610902578063d2296c541461091557600080fd5b8063a3a2f49214610853578063b88d4fde1461088e578063c79ecb23146108ae57600080fd5b80637b0dd0a8116101645780638b7afe2e1161013e5780638b7afe2e146107db57806395d89b41146107ee5780639a59b62614610803578063a22cb4651461083357600080fd5b80637b0dd0a81461077a57806389276d711461079a5780638a67456a146107ba57600080fd5b806370a08231146106ac5780637255d784146106cc57806376756948146106ec578063794e00741461070c5780637a2c57de146107305780637aa5e4b81461074d57600080fd5b806339f7e37f1161026a578063526a296a1161022357806362a9216c116101fd57806362a9216c146106275780636352211e146106475780636725ae7c146106675780636c0360eb1461069757600080fd5b8063526a296a146105d357806352e107f2146105e8578063536f95751461061257600080fd5b806339f7e37f1461051d5780633be4d97f1461053d57806340a141ff1461055357806342842e0e1461057357806342966c68146105935780634d238c8e146105b357600080fd5b8063150b7a02116102d7578063223b3b7a116102b1578063223b3b7a1461048d57806323b872dd146104bd5780632f745c59146104dd578063303e32fe146104fd57600080fd5b8063150b7a021461041f57806318160ddd146104585780631bf1b5581461046d57600080fd5b806301ffc9a71461032a57806306fdde031461035f5780630776c7bd14610381578063081812fc146103a5578063095ea7b3146103dd57806312a603c2146103ff57600080fd5b3661032557005b600080fd5b34801561033657600080fd5b5061034a610345366004612fa5565b610a75565b60405190151581526020015b60405180910390f35b34801561036b57600080fd5b50610374610aa0565b604051610356919061301a565b34801561038d57600080fd5b5061039760085481565b604051908152602001610356565b3480156103b157600080fd5b506103c56103c036600461302d565b610b32565b6040516001600160a01b039091168152602001610356565b3480156103e957600080fd5b506103fd6103f8366004613062565b610b59565b005b34801561040b57600080fd5b506103fd61041a36600461309c565b610c74565b34801561042b57600080fd5b5061043f61043a366004613156565b610cc6565b6040516001600160e01b03199091168152602001610356565b34801561046457600080fd5b50600f54610397565b34801561047957600080fd5b506103c561048836600461302d565b610cd7565b34801561049957600080fd5b5061034a6104a83660046131d2565b60106020526000908152604090205460ff1681565b3480156104c957600080fd5b506103fd6104d83660046131ed565b610d01565b3480156104e957600080fd5b506103976104f8366004613062565b610d33565b34801561050957600080fd5b50600d546103c5906001600160a01b031681565b34801561052957600080fd5b506103fd610538366004613229565b610dc9565b34801561054957600080fd5b5061039760095481565b34801561055f57600080fd5b506103fd61056e3660046131d2565b610e14565b34801561057f57600080fd5b506103fd61058e3660046131ed565b610ebf565b34801561059f57600080fd5b506103fd6105ae36600461302d565b610eda565b3480156105bf57600080fd5b506103fd6105ce3660046131d2565b610f51565b3480156105df57600080fd5b506103fd611008565b3480156105f457600080fd5b506105fd606481565b60405163ffffffff9091168152602001610356565b34801561061e57600080fd5b506105fd602481565b34801561063357600080fd5b506103fd610642366004613272565b61158d565b34801561065357600080fd5b506103c561066236600461302d565b6117a0565b34801561067357600080fd5b5061034a6106823660046131d2565b60116020526000908152604090205460ff1681565b3480156106a357600080fd5b50610374611800565b3480156106b857600080fd5b506103976106c73660046131d2565b61188e565b3480156106d857600080fd5b506103fd6106e736600461309c565b611914565b3480156106f857600080fd5b506103fd6107073660046131d2565b611966565b34801561071857600080fd5b50600a546105fd90600160401b900463ffffffff1681565b34801561073c57600080fd5b50600a546105fd9063ffffffff1681565b34801561075957600080fd5b506103976107683660046131d2565b60146020526000908152604090205481565b34801561078657600080fd5b50600c546103c5906001600160a01b031681565b3480156107a657600080fd5b506103fd6107b5366004613318565b611ae7565b3480156107c657600080fd5b50600a5461034a90600160681b900460ff1681565b3480156107e757600080fd5b5047610397565b3480156107fa57600080fd5b50610374611b2d565b34801561080f57600080fd5b5061034a61081e3660046131d2565b60126020526000908152604090205460ff1681565b34801561083f57600080fd5b506103fd61084e366004613334565b611b3c565b34801561085f57600080fd5b5061034a61086e366004613062565b601360209081526000928352604080842090915290825290205460ff1681565b34801561089a57600080fd5b506103fd6108a9366004613156565b611b47565b3480156108ba57600080fd5b50600a5461034a90600160601b900460ff1681565b6103fd6108dd366004613062565b611b7f565b3480156108ee57600080fd5b506103746108fd36600461302d565b611ea6565b6103fd610910366004613062565b611f0d565b34801561092157600080fd5b506103fd6109303660046131d2565b612074565b34801561094157600080fd5b5042610397565b34801561095457600080fd5b5061098861096336600461302d565b600060208190529081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610356565b3480156109b357600080fd5b50600a546105fd90640100000000900463ffffffff1681565b3480156109d857600080fd5b5061034a6109e7366004613367565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a2157600080fd5b506103fd610a30366004613272565b61212f565b348015610a4157600080fd5b506103fd610a5036600461302d565b6122c8565b348015610a6157600080fd5b50600b546103c5906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b1480610a9a5750610a9a8261236f565b92915050565b606060018054610aaf90613391565b80601f0160208091040260200160405190810160405280929190818152602001828054610adb90613391565b8015610b285780601f10610afd57610100808354040283529160200191610b28565b820191906000526020600020905b815481529060010190602001808311610b0b57829003601f168201915b5050505050905090565b6000610b3d826123bf565b506000908152600560205260409020546001600160a01b031690565b6000610b64826117a0565b9050806001600160a01b0316836001600160a01b03161415610bd75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610bf35750610bf381336109e7565b610c655760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610bce565b610c6f838361241e565b505050565b3360009081526010602052604090205460ff161515600114610ca85760405162461bcd60e51b8152600401610bce906133cc565b600a8054911515600160681b0260ff60681b19909216919091179055565b630a85bd0160e11b5b949350505050565b600e8181548110610ce757600080fd5b6000918252602090912001546001600160a01b0316905081565b610d0c335b8261248c565b610d285760405162461bcd60e51b8152600401610bce90613413565b610c6f83838361252b565b6000610d3e8361188e565b8210610da05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bce565b506001600160a01b03919091166000908152601560209081526040808320938352929052205490565b3360009081526010602052604090205460ff161515600114610dfd5760405162461bcd60e51b8152600401610bce906133cc565b8051610e10906018906020840190612ef6565b5050565b3360009081526010602052604090205460ff161515600114610e485760405162461bcd60e51b8152600401610bce906133cc565b3360009081526010602052604090205460ff161515600114610e9e5760405162461bcd60e51b815260206004820152600f60248201526e2737ba1030903b30b634b230ba37b960891b6044820152606401610bce565b6001600160a01b03166000908152601060205260409020805460ff19169055565b610c6f83838360405180602001604052806000815250611b47565b610ee333610d06565b610f455760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610bce565b610f4e816126d2565b50565b3360009081526010602052604090205460ff161515600114610f855760405162461bcd60e51b8152600401610bce906133cc565b6001600160a01b03811660009081526010602052604090205460ff1615610fe45760405162461bcd60e51b815260206004820152601360248201527220b63932b0b23c9030903b30b634b230ba37b960691b6044820152606401610bce565b6001600160a01b03166000908152601060205260409020805460ff19166001179055565b600a54600160681b900460ff16156110325760405162461bcd60e51b8152600401610bce90613461565b600a54606464010000000090910463ffffffff16106110875760405162461bcd60e51b8152602060048201526011602482015270135bdbdcd94818d85c081c995858da1959607a1b6044820152606401610bce565b600a546024906110a590600160401b900463ffffffff1660016134ae565b63ffffffff16106110ec5760405162461bcd60e51b8152602060048201526011602482015270105b1c1a184818d85c081c995858da1959607a1b6044820152606401610bce565b60006110f86007612779565b336000908152601160205260408120549192509060ff161580156111955750600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561115b57600080fd5b505afa15801561116f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119391906134d6565b115b801561123557503360009081526012602052604090205460ff161580156112355750600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156111fb57600080fd5b505afa15801561120f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123391906134d6565b115b156112f357503360009081526011602090815260408083208054600160ff1991821681179092556012909352922080549091169091179055600a805460039164010000000090910463ffffffff1690600461128f836134ef565b91906101000a81548163ffffffff021916908363ffffffff160217905550506002600a60088282829054906101000a900463ffffffff166112d091906134ae565b92506101000a81548163ffffffff021916908363ffffffff160217905550611518565b3360009081526011602052604090205460ff1615801561138c5750600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561135257600080fd5b505afa158015611366573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138a91906134d6565b115b156113f25750336000908152601160205260409020805460ff19166001908117909155600a805463ffffffff640100000000909104169060046113ce836134ef565b91906101000a81548163ffffffff021916908363ffffffff16021790555050611518565b3360009081526012602052604090205460ff1615801561148b5750600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906134d6565b115b156114d05750336000908152601260205260409020805460ff19166001179055600a805460029182916008906112d090849063ffffffff600160401b909104166134ae565b60405162461bcd60e51b815260206004820152601f60248201527f43616e277420636c61696d206672656520496e766573746f7273204e465473006044820152606401610bce565b600a5463ffffffff1661152b8284613513565b11156115495760405162461bcd60e51b8152600401610bce9061352b565b60005b81811015610c6f5760006115606007612779565b9050611570600780546001019055565b61157a3382612789565b508061158581613572565b91505061154c565b600a54600160681b900460ff16156115b75760405162461bcd60e51b8152600401610bce90613461565b60005b8151811015610e105733600090815260136020526040812083519091908490849081106115e9576115e961358d565b60209081029190910181015182528101919091526040016000205460ff16156116455760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e4814dd185ad95960921b6044820152606401610bce565b336001600160a01b03166116718383815181106116645761166461358d565b60200260200101516117a0565b6001600160a01b0316146116c75760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420746865204f776e6572206f66207468697320746f6b656e49440000006044820152606401610bce565b3360009081526013602052604081208351600192908590859081106116ee576116ee61358d565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055506040518060400160405280336001600160a01b031681526020014281525060008084848151811061174e5761174e61358d565b602090810291909101810151825281810192909252604001600020825181546001600160a01b0319166001600160a01b039091161781559101516001909101558061179881613572565b9150506115ba565b6000818152600360205260408120546001600160a01b031680610a9a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bce565b6018805461180d90613391565b80601f016020809104026020016040519081016040528092919081815260200182805461183990613391565b80156118865780601f1061185b57610100808354040283529160200191611886565b820191906000526020600020905b81548152906001019060200180831161186957829003601f168201915b505050505081565b60006001600160a01b0382166118f85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bce565b506001600160a01b031660009081526004602052604090205490565b3360009081526010602052604090205460ff1615156001146119485760405162461bcd60e51b8152600401610bce906133cc565b600a8054911515600160601b0260ff60601b19909216919091179055565b3360009081526010602052604090205460ff16151560011461199a5760405162461bcd60e51b8152600401610bce906133cc565b6001600160a01b0381166119e25760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610bce565b60005b600e54811015611a9457816001600160a01b0316600e8281548110611a0c57611a0c61358d565b6000918252602090912001546001600160a01b03161415611a825760405162461bcd60e51b815260206004820152602a60248201527f50726f6a656374206164647265737320616c72656164792065786973747320696044820152691b881d1a19481b1a5cdd60b21b6064820152608401610bce565b80611a8c81613572565b9150506119e5565b50600e80546001810182556000919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526010602052604090205460ff161515600114611b1b5760405162461bcd60e51b8152600401610bce906133cc565b8115611b275760095550565b60085550565b606060028054610aaf90613391565b610e103383836127a3565b611b51338361248c565b611b6d5760405162461bcd60e51b8152600401610bce90613413565b611b7984848484612872565b50505050565b600a54600160681b900460ff1615611ba95760405162461bcd60e51b8152600401610bce90613461565b600a54600160601b900460ff1615611c185760405162461bcd60e51b815260206004820152602c60248201527f446973636f756e746564206d696e742066756e6374696f6e206973206375727260448201526b195b9d1b1e481c185d5cd95960a21b6064820152608401610bce565b600080611c256007612779565b905060005b600e54811015611d2c5760006001600160a01b0316600e8281548110611c5257611c5261358d565b6000918252602090912001546001600160a01b03161415611c7257611d1a565b6000600e8281548110611c8757611c8761358d565b6000918252602090912001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611cd357600080fd5b505afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b91906134d6565b1115611d1a5760019250611d2c565b80611d2481613572565b915050611c2a565b50600182151514611d895760405162461bcd60e51b815260206004820152602160248201527f43616c6c65722063616e2774206d696e7420646973636f756e746564204e46546044820152607360f81b6064820152608401610bce565b82600954611d9791906135a3565b341015611db65760405162461bcd60e51b8152600401610bce906135c2565b600b546040516000916001600160a01b03169034908381818185875af1925050503d8060008114611e03576040519150601f19603f3d011682016040523d82523d6000602084013e611e08565b606091505b5050905080611e295760405162461bcd60e51b8152600401610bce90613609565b600a5463ffffffff16611e3c8584613513565b1115611e5a5760405162461bcd60e51b8152600401610bce9061352b565b60005b84811015611e9e576000611e716007612779565b9050611e81600780546001019055565b611e8b8782612789565b5080611e9681613572565b915050611e5d565b505050505050565b6060611eb1826123bf565b6000611ebb6128a5565b90506000815111611edb5760405180602001604052806000815250611f06565b80611ee5846128b4565b604051602001611ef6929190613638565b6040516020818303038152906040525b9392505050565b600a54600160681b900460ff1615611f375760405162461bcd60e51b8152600401610bce90613461565b6000611f436007612779565b600a5490915063ffffffff16611f598383613513565b1115611f775760405162461bcd60e51b8152600401610bce9061352b565b3360009081526010602052604090205460ff166120305781600854611f9c91906135a3565b341015611fbb5760405162461bcd60e51b8152600401610bce906135c2565b600b546040516000916001600160a01b03169034908381818185875af1925050503d8060008114612008576040519150601f19603f3d011682016040523d82523d6000602084013e61200d565b606091505b505090508061202e5760405162461bcd60e51b8152600401610bce90613609565b505b60005b82811015611b795760006120476007612779565b9050612057600780546001019055565b6120618582612789565b508061206c81613572565b915050612033565b3360009081526010602052604090205460ff1615156001146120a85760405162461bcd60e51b8152600401610bce906133cc565b60005b600e54811015610e1057816001600160a01b0316600e82815481106120d2576120d261358d565b6000918252602090912001546001600160a01b0316141561211d57600e81815481106121005761210061358d565b600091825260209091200180546001600160a01b03191690555050565b8061212781613572565b9150506120ab565b600a54600160681b900460ff16156121595760405162461bcd60e51b8152600401610bce90613461565b60005b8151811015610e1057336000908152601360205260408120835190919084908490811061218b5761218b61358d565b60209081029190910181015182528101919091526040016000205460ff1615156001146121ef5760405162461bcd60e51b8152602060048201526012602482015271151bdad95b9251081b9bdd081cdd185ad95960721b6044820152606401610bce565b336000908152601360205260408120835182908590859081106122145761221461358d565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550604051806040016040528060006001600160a01b0316815260200160008152506000808484815181106122765761227661358d565b602090810291909101810151825281810192909252604001600020825181546001600160a01b0319166001600160a01b03909116178155910151600190910155806122c081613572565b91505061215c565b3360009081526010602052604090205460ff1615156001146122fc5760405162461bcd60e51b8152600401610bce906133cc565b600b546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612349576040519150601f19603f3d011682016040523d82523d6000602084013e61234e565b606091505b5050905080610e105760405162461bcd60e51b8152600401610bce90613609565b60006001600160e01b031982166380ac58cd60e01b14806123a057506001600160e01b03198216635b5e139f60e01b145b80610a9a57506301ffc9a760e01b6001600160e01b0319831614610a9a565b6000818152600360205260409020546001600160a01b0316610f4e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bce565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612453826117a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612498836117a0565b9050806001600160a01b0316846001600160a01b031614806124df57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806125035750836001600160a01b03166124f884610b32565b6001600160a01b0316145b80610ccf575050506000908152602081905260409020546001600160a01b0390811691161490565b826001600160a01b031661253e826117a0565b6001600160a01b0316146125a25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bce565b6001600160a01b0382166126045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bce565b61260f8383836129b2565b61261a60008261241e565b6001600160a01b038316600090815260046020526040812080546001929061264390849061365e565b90915550506001600160a01b0382166000908152600460205260408120805460019290612671908490613513565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126dd826117a0565b90506126eb816000846129b2565b6126f660008361241e565b6001600160a01b038116600090815260046020526040812080546001929061271f90849061365e565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8054600090610a9a906001613513565b610e10828260405180602001604052806000815250612adb565b816001600160a01b0316836001600160a01b031614156128055760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bce565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61287d84848461252b565b61288984848484612b0e565b611b795760405162461bcd60e51b8152600401610bce90613675565b606060188054610aaf90613391565b6060816128d85750506040805180820190915260018152600360fc1b602082015290565b8160005b811561290257806128ec81613572565b91506128fb9050600a836136dd565b91506128dc565b60008167ffffffffffffffff81111561291d5761291d6130b7565b6040519080825280601f01601f191660200182016040528015612947576020820181803683370190505b5090505b8415610ccf5761295c60018361365e565b9150612969600a866136f1565b612974906030613513565b60f81b8183815181106129895761298961358d565b60200101906001600160f81b031916908160001a9053506129ab600a866136dd565b945061294b565b33600090815260136020908152604080832084845290915290205460ff1615612a1d5760405162461bcd60e51b815260206004820152601b60248201527f5374616b6564204e4654732061726520736f756c626f756e64656400000000006044820152606401610bce565b806001600160a01b038416612a7957612a7481600f80546000838152601760205260408120829055600182018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b612a9c565b826001600160a01b0316846001600160a01b031614612a9c57612a9c8482612c18565b6001600160a01b038316612ab857612ab381612cb5565b611b79565b836001600160a01b0316836001600160a01b031614611b7957611b798382612d64565b612ae58383612da8565b612af26000848484612b0e565b610c6f5760405162461bcd60e51b8152600401610bce90613675565b60006001600160a01b0384163b15612c1057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b52903390899088908890600401613705565b602060405180830381600087803b158015612b6c57600080fd5b505af1925050508015612b9c575060408051601f3d908101601f19168201909252612b9991810190613742565b60015b612bf6573d808015612bca576040519150601f19603f3d011682016040523d82523d6000602084013e612bcf565b606091505b508051612bee5760405162461bcd60e51b8152600401610bce90613675565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ccf565b506001610ccf565b60006001612c258461188e565b612c2f919061365e565b600083815260166020526040902054909150808214612c82576001600160a01b03841660009081526015602090815260408083208584528252808320548484528184208190558352601690915290208190555b5060009182526016602090815260408084208490556001600160a01b039094168352601581528383209183525290812055565b600f54600090612cc79060019061365e565b600083815260176020526040812054600f8054939450909284908110612cef57612cef61358d565b9060005260206000200154905080600f8381548110612d1057612d1061358d565b600091825260208083209091019290925582815260179091526040808220849055858252812055600f805480612d4857612d4861375f565b6001900381819060005260206000200160009055905550505050565b6000612d6f8361188e565b6001600160a01b039093166000908152601560209081526040808320868452825280832085905593825260169052919091209190915550565b6001600160a01b038216612dfe5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bce565b6000818152600360205260409020546001600160a01b031615612e635760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bce565b612e6f600083836129b2565b6001600160a01b0382166000908152600460205260408120805460019290612e98908490613513565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f0290613391565b90600052602060002090601f016020900481019282612f245760008555612f6a565b82601f10612f3d57805160ff1916838001178555612f6a565b82800160010185558215612f6a579182015b82811115612f6a578251825591602001919060010190612f4f565b50612f76929150612f7a565b5090565b5b80821115612f765760008155600101612f7b565b6001600160e01b031981168114610f4e57600080fd5b600060208284031215612fb757600080fd5b8135611f0681612f8f565b60005b83811015612fdd578181015183820152602001612fc5565b83811115611b795750506000910152565b60008151808452613006816020860160208601612fc2565b601f01601f19169290920160200192915050565b602081526000611f066020830184612fee565b60006020828403121561303f57600080fd5b5035919050565b80356001600160a01b038116811461305d57600080fd5b919050565b6000806040838503121561307557600080fd5b61307e83613046565b946020939093013593505050565b8035801515811461305d57600080fd5b6000602082840312156130ae57600080fd5b611f068261308c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130f6576130f66130b7565b604052919050565b600067ffffffffffffffff831115613118576131186130b7565b61312b601f8401601f19166020016130cd565b905082815283838301111561313f57600080fd5b828260208301376000602084830101529392505050565b6000806000806080858703121561316c57600080fd5b61317585613046565b935061318360208601613046565b925060408501359150606085013567ffffffffffffffff8111156131a657600080fd5b8501601f810187136131b757600080fd5b6131c6878235602084016130fe565b91505092959194509250565b6000602082840312156131e457600080fd5b611f0682613046565b60008060006060848603121561320257600080fd5b61320b84613046565b925061321960208501613046565b9150604084013590509250925092565b60006020828403121561323b57600080fd5b813567ffffffffffffffff81111561325257600080fd5b8201601f8101841361326357600080fd5b610ccf848235602084016130fe565b6000602080838503121561328557600080fd5b823567ffffffffffffffff8082111561329d57600080fd5b818501915085601f8301126132b157600080fd5b8135818111156132c3576132c36130b7565b8060051b91506132d48483016130cd565b81815291830184019184810190888411156132ee57600080fd5b938501935b8385101561330c578435825293850193908501906132f3565b98975050505050505050565b6000806040838503121561332b57600080fd5b61307e8361308c565b6000806040838503121561334757600080fd5b61335083613046565b915061335e6020840161308c565b90509250929050565b6000806040838503121561337a57600080fd5b61338383613046565b915061335e60208401613046565b600181811c908216806133a557607f821691505b602082108114156133c657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526027908201527f4f6e6c7920612076616c696461746f722063616e2063616c6c207468697320666040820152663ab731ba34b7b760c91b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601b908201527f436f6e747261637420697320696e207061757365642073746174650000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff8083168185168083038211156134cd576134cd613498565b01949350505050565b6000602082840312156134e857600080fd5b5051919050565b600063ffffffff8083168181141561350957613509613498565b6001019392505050565b6000821982111561352657613526613498565b500190565b60208082526027908201527f4d6178696d756d20636170207265616368656420666f72206173746f2d6e61756040820152667473204e46547360c81b606082015260800190565b600060001982141561358657613586613498565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156135bd576135bd613498565b500290565b60208082526027908201527f506c656173652073656e642073756666696369656e7420616d6f756e74206f666040820152662065746865727360c81b606082015260800190565b6020808252601590820152744661696c656420746f2073656e642065746865727360581b604082015260600190565b6000835161364a818460208801612fc2565b8351908301906134cd818360208801612fc2565b60008282101561367057613670613498565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826136ec576136ec6136c7565b500490565b600082613700576137006136c7565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061373890830184612fee565b9695505050505050565b60006020828403121561375457600080fd5b8151611f0681612f8f565b634e487b7160e01b600052603160045260246000fdfea264697066735822122080ee08827b452b0e6af09b7cf5742c4a0048784c54de6c9abc581cd3a29a5c9e64736f6c6343000809003368747470733a2f2f726569676e6b69742e726569676e6c6162732e696f2f6170692f6e617574732f
Deployed Bytecode
0x60806040526004361061031e5760003560e01c806370a08231116101ab578063a3a2f492116100f7578063da235b2211610095578063e985e9c51161006f578063e985e9c5146109cc578063f03247f914610a15578063f420670614610a35578063fe7805f214610a5557600080fd5b8063da235b2214610935578063e2c17fb914610948578063e4b50aa4146109a757600080fd5b8063c82fa0d3116100d1578063c82fa0d3146108cf578063c87b56dd146108e2578063ccc1b1c914610902578063d2296c541461091557600080fd5b8063a3a2f49214610853578063b88d4fde1461088e578063c79ecb23146108ae57600080fd5b80637b0dd0a8116101645780638b7afe2e1161013e5780638b7afe2e146107db57806395d89b41146107ee5780639a59b62614610803578063a22cb4651461083357600080fd5b80637b0dd0a81461077a57806389276d711461079a5780638a67456a146107ba57600080fd5b806370a08231146106ac5780637255d784146106cc57806376756948146106ec578063794e00741461070c5780637a2c57de146107305780637aa5e4b81461074d57600080fd5b806339f7e37f1161026a578063526a296a1161022357806362a9216c116101fd57806362a9216c146106275780636352211e146106475780636725ae7c146106675780636c0360eb1461069757600080fd5b8063526a296a146105d357806352e107f2146105e8578063536f95751461061257600080fd5b806339f7e37f1461051d5780633be4d97f1461053d57806340a141ff1461055357806342842e0e1461057357806342966c68146105935780634d238c8e146105b357600080fd5b8063150b7a02116102d7578063223b3b7a116102b1578063223b3b7a1461048d57806323b872dd146104bd5780632f745c59146104dd578063303e32fe146104fd57600080fd5b8063150b7a021461041f57806318160ddd146104585780631bf1b5581461046d57600080fd5b806301ffc9a71461032a57806306fdde031461035f5780630776c7bd14610381578063081812fc146103a5578063095ea7b3146103dd57806312a603c2146103ff57600080fd5b3661032557005b600080fd5b34801561033657600080fd5b5061034a610345366004612fa5565b610a75565b60405190151581526020015b60405180910390f35b34801561036b57600080fd5b50610374610aa0565b604051610356919061301a565b34801561038d57600080fd5b5061039760085481565b604051908152602001610356565b3480156103b157600080fd5b506103c56103c036600461302d565b610b32565b6040516001600160a01b039091168152602001610356565b3480156103e957600080fd5b506103fd6103f8366004613062565b610b59565b005b34801561040b57600080fd5b506103fd61041a36600461309c565b610c74565b34801561042b57600080fd5b5061043f61043a366004613156565b610cc6565b6040516001600160e01b03199091168152602001610356565b34801561046457600080fd5b50600f54610397565b34801561047957600080fd5b506103c561048836600461302d565b610cd7565b34801561049957600080fd5b5061034a6104a83660046131d2565b60106020526000908152604090205460ff1681565b3480156104c957600080fd5b506103fd6104d83660046131ed565b610d01565b3480156104e957600080fd5b506103976104f8366004613062565b610d33565b34801561050957600080fd5b50600d546103c5906001600160a01b031681565b34801561052957600080fd5b506103fd610538366004613229565b610dc9565b34801561054957600080fd5b5061039760095481565b34801561055f57600080fd5b506103fd61056e3660046131d2565b610e14565b34801561057f57600080fd5b506103fd61058e3660046131ed565b610ebf565b34801561059f57600080fd5b506103fd6105ae36600461302d565b610eda565b3480156105bf57600080fd5b506103fd6105ce3660046131d2565b610f51565b3480156105df57600080fd5b506103fd611008565b3480156105f457600080fd5b506105fd606481565b60405163ffffffff9091168152602001610356565b34801561061e57600080fd5b506105fd602481565b34801561063357600080fd5b506103fd610642366004613272565b61158d565b34801561065357600080fd5b506103c561066236600461302d565b6117a0565b34801561067357600080fd5b5061034a6106823660046131d2565b60116020526000908152604090205460ff1681565b3480156106a357600080fd5b50610374611800565b3480156106b857600080fd5b506103976106c73660046131d2565b61188e565b3480156106d857600080fd5b506103fd6106e736600461309c565b611914565b3480156106f857600080fd5b506103fd6107073660046131d2565b611966565b34801561071857600080fd5b50600a546105fd90600160401b900463ffffffff1681565b34801561073c57600080fd5b50600a546105fd9063ffffffff1681565b34801561075957600080fd5b506103976107683660046131d2565b60146020526000908152604090205481565b34801561078657600080fd5b50600c546103c5906001600160a01b031681565b3480156107a657600080fd5b506103fd6107b5366004613318565b611ae7565b3480156107c657600080fd5b50600a5461034a90600160681b900460ff1681565b3480156107e757600080fd5b5047610397565b3480156107fa57600080fd5b50610374611b2d565b34801561080f57600080fd5b5061034a61081e3660046131d2565b60126020526000908152604090205460ff1681565b34801561083f57600080fd5b506103fd61084e366004613334565b611b3c565b34801561085f57600080fd5b5061034a61086e366004613062565b601360209081526000928352604080842090915290825290205460ff1681565b34801561089a57600080fd5b506103fd6108a9366004613156565b611b47565b3480156108ba57600080fd5b50600a5461034a90600160601b900460ff1681565b6103fd6108dd366004613062565b611b7f565b3480156108ee57600080fd5b506103746108fd36600461302d565b611ea6565b6103fd610910366004613062565b611f0d565b34801561092157600080fd5b506103fd6109303660046131d2565b612074565b34801561094157600080fd5b5042610397565b34801561095457600080fd5b5061098861096336600461302d565b600060208190529081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610356565b3480156109b357600080fd5b50600a546105fd90640100000000900463ffffffff1681565b3480156109d857600080fd5b5061034a6109e7366004613367565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a2157600080fd5b506103fd610a30366004613272565b61212f565b348015610a4157600080fd5b506103fd610a5036600461302d565b6122c8565b348015610a6157600080fd5b50600b546103c5906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b1480610a9a5750610a9a8261236f565b92915050565b606060018054610aaf90613391565b80601f0160208091040260200160405190810160405280929190818152602001828054610adb90613391565b8015610b285780601f10610afd57610100808354040283529160200191610b28565b820191906000526020600020905b815481529060010190602001808311610b0b57829003601f168201915b5050505050905090565b6000610b3d826123bf565b506000908152600560205260409020546001600160a01b031690565b6000610b64826117a0565b9050806001600160a01b0316836001600160a01b03161415610bd75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610bf35750610bf381336109e7565b610c655760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610bce565b610c6f838361241e565b505050565b3360009081526010602052604090205460ff161515600114610ca85760405162461bcd60e51b8152600401610bce906133cc565b600a8054911515600160681b0260ff60681b19909216919091179055565b630a85bd0160e11b5b949350505050565b600e8181548110610ce757600080fd5b6000918252602090912001546001600160a01b0316905081565b610d0c335b8261248c565b610d285760405162461bcd60e51b8152600401610bce90613413565b610c6f83838361252b565b6000610d3e8361188e565b8210610da05760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bce565b506001600160a01b03919091166000908152601560209081526040808320938352929052205490565b3360009081526010602052604090205460ff161515600114610dfd5760405162461bcd60e51b8152600401610bce906133cc565b8051610e10906018906020840190612ef6565b5050565b3360009081526010602052604090205460ff161515600114610e485760405162461bcd60e51b8152600401610bce906133cc565b3360009081526010602052604090205460ff161515600114610e9e5760405162461bcd60e51b815260206004820152600f60248201526e2737ba1030903b30b634b230ba37b960891b6044820152606401610bce565b6001600160a01b03166000908152601060205260409020805460ff19169055565b610c6f83838360405180602001604052806000815250611b47565b610ee333610d06565b610f455760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610bce565b610f4e816126d2565b50565b3360009081526010602052604090205460ff161515600114610f855760405162461bcd60e51b8152600401610bce906133cc565b6001600160a01b03811660009081526010602052604090205460ff1615610fe45760405162461bcd60e51b815260206004820152601360248201527220b63932b0b23c9030903b30b634b230ba37b960691b6044820152606401610bce565b6001600160a01b03166000908152601060205260409020805460ff19166001179055565b600a54600160681b900460ff16156110325760405162461bcd60e51b8152600401610bce90613461565b600a54606464010000000090910463ffffffff16106110875760405162461bcd60e51b8152602060048201526011602482015270135bdbdcd94818d85c081c995858da1959607a1b6044820152606401610bce565b600a546024906110a590600160401b900463ffffffff1660016134ae565b63ffffffff16106110ec5760405162461bcd60e51b8152602060048201526011602482015270105b1c1a184818d85c081c995858da1959607a1b6044820152606401610bce565b60006110f86007612779565b336000908152601160205260408120549192509060ff161580156111955750600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561115b57600080fd5b505afa15801561116f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119391906134d6565b115b801561123557503360009081526012602052604090205460ff161580156112355750600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156111fb57600080fd5b505afa15801561120f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123391906134d6565b115b156112f357503360009081526011602090815260408083208054600160ff1991821681179092556012909352922080549091169091179055600a805460039164010000000090910463ffffffff1690600461128f836134ef565b91906101000a81548163ffffffff021916908363ffffffff160217905550506002600a60088282829054906101000a900463ffffffff166112d091906134ae565b92506101000a81548163ffffffff021916908363ffffffff160217905550611518565b3360009081526011602052604090205460ff1615801561138c5750600c546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561135257600080fd5b505afa158015611366573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138a91906134d6565b115b156113f25750336000908152601160205260409020805460ff19166001908117909155600a805463ffffffff640100000000909104169060046113ce836134ef565b91906101000a81548163ffffffff021916908363ffffffff16021790555050611518565b3360009081526012602052604090205460ff1615801561148b5750600d546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561145157600080fd5b505afa158015611465573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148991906134d6565b115b156114d05750336000908152601260205260409020805460ff19166001179055600a805460029182916008906112d090849063ffffffff600160401b909104166134ae565b60405162461bcd60e51b815260206004820152601f60248201527f43616e277420636c61696d206672656520496e766573746f7273204e465473006044820152606401610bce565b600a5463ffffffff1661152b8284613513565b11156115495760405162461bcd60e51b8152600401610bce9061352b565b60005b81811015610c6f5760006115606007612779565b9050611570600780546001019055565b61157a3382612789565b508061158581613572565b91505061154c565b600a54600160681b900460ff16156115b75760405162461bcd60e51b8152600401610bce90613461565b60005b8151811015610e105733600090815260136020526040812083519091908490849081106115e9576115e961358d565b60209081029190910181015182528101919091526040016000205460ff16156116455760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e4814dd185ad95960921b6044820152606401610bce565b336001600160a01b03166116718383815181106116645761166461358d565b60200260200101516117a0565b6001600160a01b0316146116c75760405162461bcd60e51b815260206004820152601d60248201527f4e6f7420746865204f776e6572206f66207468697320746f6b656e49440000006044820152606401610bce565b3360009081526013602052604081208351600192908590859081106116ee576116ee61358d565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055506040518060400160405280336001600160a01b031681526020014281525060008084848151811061174e5761174e61358d565b602090810291909101810151825281810192909252604001600020825181546001600160a01b0319166001600160a01b039091161781559101516001909101558061179881613572565b9150506115ba565b6000818152600360205260408120546001600160a01b031680610a9a5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bce565b6018805461180d90613391565b80601f016020809104026020016040519081016040528092919081815260200182805461183990613391565b80156118865780601f1061185b57610100808354040283529160200191611886565b820191906000526020600020905b81548152906001019060200180831161186957829003601f168201915b505050505081565b60006001600160a01b0382166118f85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bce565b506001600160a01b031660009081526004602052604090205490565b3360009081526010602052604090205460ff1615156001146119485760405162461bcd60e51b8152600401610bce906133cc565b600a8054911515600160601b0260ff60601b19909216919091179055565b3360009081526010602052604090205460ff16151560011461199a5760405162461bcd60e51b8152600401610bce906133cc565b6001600160a01b0381166119e25760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610bce565b60005b600e54811015611a9457816001600160a01b0316600e8281548110611a0c57611a0c61358d565b6000918252602090912001546001600160a01b03161415611a825760405162461bcd60e51b815260206004820152602a60248201527f50726f6a656374206164647265737320616c72656164792065786973747320696044820152691b881d1a19481b1a5cdd60b21b6064820152608401610bce565b80611a8c81613572565b9150506119e5565b50600e80546001810182556000919091527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526010602052604090205460ff161515600114611b1b5760405162461bcd60e51b8152600401610bce906133cc565b8115611b275760095550565b60085550565b606060028054610aaf90613391565b610e103383836127a3565b611b51338361248c565b611b6d5760405162461bcd60e51b8152600401610bce90613413565b611b7984848484612872565b50505050565b600a54600160681b900460ff1615611ba95760405162461bcd60e51b8152600401610bce90613461565b600a54600160601b900460ff1615611c185760405162461bcd60e51b815260206004820152602c60248201527f446973636f756e746564206d696e742066756e6374696f6e206973206375727260448201526b195b9d1b1e481c185d5cd95960a21b6064820152608401610bce565b600080611c256007612779565b905060005b600e54811015611d2c5760006001600160a01b0316600e8281548110611c5257611c5261358d565b6000918252602090912001546001600160a01b03161415611c7257611d1a565b6000600e8281548110611c8757611c8761358d565b6000918252602090912001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611cd357600080fd5b505afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b91906134d6565b1115611d1a5760019250611d2c565b80611d2481613572565b915050611c2a565b50600182151514611d895760405162461bcd60e51b815260206004820152602160248201527f43616c6c65722063616e2774206d696e7420646973636f756e746564204e46546044820152607360f81b6064820152608401610bce565b82600954611d9791906135a3565b341015611db65760405162461bcd60e51b8152600401610bce906135c2565b600b546040516000916001600160a01b03169034908381818185875af1925050503d8060008114611e03576040519150601f19603f3d011682016040523d82523d6000602084013e611e08565b606091505b5050905080611e295760405162461bcd60e51b8152600401610bce90613609565b600a5463ffffffff16611e3c8584613513565b1115611e5a5760405162461bcd60e51b8152600401610bce9061352b565b60005b84811015611e9e576000611e716007612779565b9050611e81600780546001019055565b611e8b8782612789565b5080611e9681613572565b915050611e5d565b505050505050565b6060611eb1826123bf565b6000611ebb6128a5565b90506000815111611edb5760405180602001604052806000815250611f06565b80611ee5846128b4565b604051602001611ef6929190613638565b6040516020818303038152906040525b9392505050565b600a54600160681b900460ff1615611f375760405162461bcd60e51b8152600401610bce90613461565b6000611f436007612779565b600a5490915063ffffffff16611f598383613513565b1115611f775760405162461bcd60e51b8152600401610bce9061352b565b3360009081526010602052604090205460ff166120305781600854611f9c91906135a3565b341015611fbb5760405162461bcd60e51b8152600401610bce906135c2565b600b546040516000916001600160a01b03169034908381818185875af1925050503d8060008114612008576040519150601f19603f3d011682016040523d82523d6000602084013e61200d565b606091505b505090508061202e5760405162461bcd60e51b8152600401610bce90613609565b505b60005b82811015611b795760006120476007612779565b9050612057600780546001019055565b6120618582612789565b508061206c81613572565b915050612033565b3360009081526010602052604090205460ff1615156001146120a85760405162461bcd60e51b8152600401610bce906133cc565b60005b600e54811015610e1057816001600160a01b0316600e82815481106120d2576120d261358d565b6000918252602090912001546001600160a01b0316141561211d57600e81815481106121005761210061358d565b600091825260209091200180546001600160a01b03191690555050565b8061212781613572565b9150506120ab565b600a54600160681b900460ff16156121595760405162461bcd60e51b8152600401610bce90613461565b60005b8151811015610e1057336000908152601360205260408120835190919084908490811061218b5761218b61358d565b60209081029190910181015182528101919091526040016000205460ff1615156001146121ef5760405162461bcd60e51b8152602060048201526012602482015271151bdad95b9251081b9bdd081cdd185ad95960721b6044820152606401610bce565b336000908152601360205260408120835182908590859081106122145761221461358d565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550604051806040016040528060006001600160a01b0316815260200160008152506000808484815181106122765761227661358d565b602090810291909101810151825281810192909252604001600020825181546001600160a01b0319166001600160a01b03909116178155910151600190910155806122c081613572565b91505061215c565b3360009081526010602052604090205460ff1615156001146122fc5760405162461bcd60e51b8152600401610bce906133cc565b600b546040516000916001600160a01b03169083908381818185875af1925050503d8060008114612349576040519150601f19603f3d011682016040523d82523d6000602084013e61234e565b606091505b5050905080610e105760405162461bcd60e51b8152600401610bce90613609565b60006001600160e01b031982166380ac58cd60e01b14806123a057506001600160e01b03198216635b5e139f60e01b145b80610a9a57506301ffc9a760e01b6001600160e01b0319831614610a9a565b6000818152600360205260409020546001600160a01b0316610f4e5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bce565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612453826117a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612498836117a0565b9050806001600160a01b0316846001600160a01b031614806124df57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806125035750836001600160a01b03166124f884610b32565b6001600160a01b0316145b80610ccf575050506000908152602081905260409020546001600160a01b0390811691161490565b826001600160a01b031661253e826117a0565b6001600160a01b0316146125a25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bce565b6001600160a01b0382166126045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bce565b61260f8383836129b2565b61261a60008261241e565b6001600160a01b038316600090815260046020526040812080546001929061264390849061365e565b90915550506001600160a01b0382166000908152600460205260408120805460019290612671908490613513565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006126dd826117a0565b90506126eb816000846129b2565b6126f660008361241e565b6001600160a01b038116600090815260046020526040812080546001929061271f90849061365e565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8054600090610a9a906001613513565b610e10828260405180602001604052806000815250612adb565b816001600160a01b0316836001600160a01b031614156128055760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bce565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61287d84848461252b565b61288984848484612b0e565b611b795760405162461bcd60e51b8152600401610bce90613675565b606060188054610aaf90613391565b6060816128d85750506040805180820190915260018152600360fc1b602082015290565b8160005b811561290257806128ec81613572565b91506128fb9050600a836136dd565b91506128dc565b60008167ffffffffffffffff81111561291d5761291d6130b7565b6040519080825280601f01601f191660200182016040528015612947576020820181803683370190505b5090505b8415610ccf5761295c60018361365e565b9150612969600a866136f1565b612974906030613513565b60f81b8183815181106129895761298961358d565b60200101906001600160f81b031916908160001a9053506129ab600a866136dd565b945061294b565b33600090815260136020908152604080832084845290915290205460ff1615612a1d5760405162461bcd60e51b815260206004820152601b60248201527f5374616b6564204e4654732061726520736f756c626f756e64656400000000006044820152606401610bce565b806001600160a01b038416612a7957612a7481600f80546000838152601760205260408120829055600182018355919091527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8020155565b612a9c565b826001600160a01b0316846001600160a01b031614612a9c57612a9c8482612c18565b6001600160a01b038316612ab857612ab381612cb5565b611b79565b836001600160a01b0316836001600160a01b031614611b7957611b798382612d64565b612ae58383612da8565b612af26000848484612b0e565b610c6f5760405162461bcd60e51b8152600401610bce90613675565b60006001600160a01b0384163b15612c1057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b52903390899088908890600401613705565b602060405180830381600087803b158015612b6c57600080fd5b505af1925050508015612b9c575060408051601f3d908101601f19168201909252612b9991810190613742565b60015b612bf6573d808015612bca576040519150601f19603f3d011682016040523d82523d6000602084013e612bcf565b606091505b508051612bee5760405162461bcd60e51b8152600401610bce90613675565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ccf565b506001610ccf565b60006001612c258461188e565b612c2f919061365e565b600083815260166020526040902054909150808214612c82576001600160a01b03841660009081526015602090815260408083208584528252808320548484528184208190558352601690915290208190555b5060009182526016602090815260408084208490556001600160a01b039094168352601581528383209183525290812055565b600f54600090612cc79060019061365e565b600083815260176020526040812054600f8054939450909284908110612cef57612cef61358d565b9060005260206000200154905080600f8381548110612d1057612d1061358d565b600091825260208083209091019290925582815260179091526040808220849055858252812055600f805480612d4857612d4861375f565b6001900381819060005260206000200160009055905550505050565b6000612d6f8361188e565b6001600160a01b039093166000908152601560209081526040808320868452825280832085905593825260169052919091209190915550565b6001600160a01b038216612dfe5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bce565b6000818152600360205260409020546001600160a01b031615612e635760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bce565b612e6f600083836129b2565b6001600160a01b0382166000908152600460205260408120805460019290612e98908490613513565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612f0290613391565b90600052602060002090601f016020900481019282612f245760008555612f6a565b82601f10612f3d57805160ff1916838001178555612f6a565b82800160010185558215612f6a579182015b82811115612f6a578251825591602001919060010190612f4f565b50612f76929150612f7a565b5090565b5b80821115612f765760008155600101612f7b565b6001600160e01b031981168114610f4e57600080fd5b600060208284031215612fb757600080fd5b8135611f0681612f8f565b60005b83811015612fdd578181015183820152602001612fc5565b83811115611b795750506000910152565b60008151808452613006816020860160208601612fc2565b601f01601f19169290920160200192915050565b602081526000611f066020830184612fee565b60006020828403121561303f57600080fd5b5035919050565b80356001600160a01b038116811461305d57600080fd5b919050565b6000806040838503121561307557600080fd5b61307e83613046565b946020939093013593505050565b8035801515811461305d57600080fd5b6000602082840312156130ae57600080fd5b611f068261308c565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130f6576130f66130b7565b604052919050565b600067ffffffffffffffff831115613118576131186130b7565b61312b601f8401601f19166020016130cd565b905082815283838301111561313f57600080fd5b828260208301376000602084830101529392505050565b6000806000806080858703121561316c57600080fd5b61317585613046565b935061318360208601613046565b925060408501359150606085013567ffffffffffffffff8111156131a657600080fd5b8501601f810187136131b757600080fd5b6131c6878235602084016130fe565b91505092959194509250565b6000602082840312156131e457600080fd5b611f0682613046565b60008060006060848603121561320257600080fd5b61320b84613046565b925061321960208501613046565b9150604084013590509250925092565b60006020828403121561323b57600080fd5b813567ffffffffffffffff81111561325257600080fd5b8201601f8101841361326357600080fd5b610ccf848235602084016130fe565b6000602080838503121561328557600080fd5b823567ffffffffffffffff8082111561329d57600080fd5b818501915085601f8301126132b157600080fd5b8135818111156132c3576132c36130b7565b8060051b91506132d48483016130cd565b81815291830184019184810190888411156132ee57600080fd5b938501935b8385101561330c578435825293850193908501906132f3565b98975050505050505050565b6000806040838503121561332b57600080fd5b61307e8361308c565b6000806040838503121561334757600080fd5b61335083613046565b915061335e6020840161308c565b90509250929050565b6000806040838503121561337a57600080fd5b61338383613046565b915061335e60208401613046565b600181811c908216806133a557607f821691505b602082108114156133c657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526027908201527f4f6e6c7920612076616c696461746f722063616e2063616c6c207468697320666040820152663ab731ba34b7b760c91b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b6020808252601b908201527f436f6e747261637420697320696e207061757365642073746174650000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff8083168185168083038211156134cd576134cd613498565b01949350505050565b6000602082840312156134e857600080fd5b5051919050565b600063ffffffff8083168181141561350957613509613498565b6001019392505050565b6000821982111561352657613526613498565b500190565b60208082526027908201527f4d6178696d756d20636170207265616368656420666f72206173746f2d6e61756040820152667473204e46547360c81b606082015260800190565b600060001982141561358657613586613498565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156135bd576135bd613498565b500290565b60208082526027908201527f506c656173652073656e642073756666696369656e7420616d6f756e74206f666040820152662065746865727360c81b606082015260800190565b6020808252601590820152744661696c656420746f2073656e642065746865727360581b604082015260600190565b6000835161364a818460208801612fc2565b8351908301906134cd818360208801612fc2565b60008282101561367057613670613498565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826136ec576136ec6136c7565b500490565b600082613700576137006136c7565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061373890830184612fee565b9695505050505050565b60006020828403121561375457600080fd5b8151611f0681612f8f565b634e487b7160e01b600052603160045260246000fdfea264697066735822122080ee08827b452b0e6af09b7cf5742c4a0048784c54de6c9abc581cd3a29a5c9e64736f6c63430008090033
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.